Proof: Get Begin Expr State 16

Let's prove the following theorem:

if the following are true:
  • the expression at time 16 = "MX"
  • expression state at time 16 = "begin_expr"
  • "MX" is constant
  • parent stack at time 16 = [ entry "MX": "Mexico", [ {"ES": "Estonia", "MX": "Mexico"}, [ ] ] ]

then expression state at time 17 = "return"

Proof:

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

Given
1 the expression at time 16 = "MX"
2 expression state at time 16 = "begin_expr"
3 "MX" is constant
4 parent stack at time 16 = [ entry "MX": "Mexico", [ {"ES": "Estonia", "MX": "Mexico"}, [ ] ] ]
Proof Table
# Claim Reason
1 expression state at time (16 + 1) = "return" if expression state at time 16 = "begin_expr" and the expression at time 16 = "MX" and "MX" is constant and parent stack at time 16 = [ entry "MX": "Mexico", [ {"ES": "Estonia", "MX": "Mexico"}, [ ] ] ], then expression state at time (16 + 1) = "return"
2 16 + 1 = 17 16 + 1 = 17
3 expression state at time (16 + 1) = expression state at time 17 if 16 + 1 = 17, then expression state at time (16 + 1) = expression state at time 17
4 expression state at time 17 = "return" if expression state at time (16 + 1) = expression state at time 17 and expression state at time (16 + 1) = "return", then expression state at time 17 = "return"

Comments

Please log in to add comments