Proof: Get Begin Expr State 33

Let's prove the following theorem:

if the following are true:
  • the expression at time 33 = "ES"
  • expression state at time 33 = "begin_expr"
  • "ES" is constant
  • parent stack at time 33 = [ __setitem__(locations, "ES", "Spain"), [ ] ]

then expression state at time 34 = "return"

Proof:

View as a tree | View dependent proofs | Try proving it

Given
1 the expression at time 33 = "ES"
2 expression state at time 33 = "begin_expr"
3 "ES" is constant
4 parent stack at time 33 = [ __setitem__(locations, "ES", "Spain"), [ ] ]
Proof Table
# Claim Reason
1 expression state at time (33 + 1) = "return" if expression state at time 33 = "begin_expr" and the expression at time 33 = "ES" and "ES" is constant and parent stack at time 33 = [ __setitem__(locations, "ES", "Spain"), [ ] ], then expression state at time (33 + 1) = "return"
2 33 + 1 = 34 33 + 1 = 34
3 expression state at time (33 + 1) = expression state at time 34 if 33 + 1 = 34, then expression state at time (33 + 1) = expression state at time 34
4 expression state at time 34 = "return" if expression state at time (33 + 1) = expression state at time 34 and expression state at time (33 + 1) = "return", then expression state at time 34 = "return"

Comments

Please log in to add comments