Proof: Get Begin Expr State 8

Let's prove the following theorem:

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

then expression state at time 9 = "return"

Proof:

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

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

Comments

Please log in to add comments