Proof: Get Begin Expr Value 67

Let's prove the following theorem:

if the following are true:
  • expression state at time 67 = "begin_expr"
  • the expression at time 67 = joe.jump()
  • Value Stack at time 67 = [ ]

then Value Stack at time 68 = [ [ ], [ ] ]

Proof:

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

Given
1 expression state at time 67 = "begin_expr"
2 the expression at time 67 = joe.jump()
3 Value Stack at time 67 = [ ]
Proof Table
# Claim Reason
1 Value Stack at time (67 + 1) = [ [ ], Value Stack at time 67 ] if expression state at time 67 = "begin_expr" and the expression at time 67 = joe.jump(), then Value Stack at time (67 + 1) = [ [ ], Value Stack at time 67 ]
2 [ [ ], Value Stack at time 67 ] = [ [ ], [ ] ] if Value Stack at time 67 = [ ], then [ [ ], Value Stack at time 67 ] = [ [ ], [ ] ]
3 Value Stack at time (67 + 1) = [ [ ], [ ] ] if Value Stack at time (67 + 1) = [ [ ], Value Stack at time 67 ] and [ [ ], Value Stack at time 67 ] = [ [ ], [ ] ], then Value Stack at time (67 + 1) = [ [ ], [ ] ]
4 67 + 1 = 68 67 + 1 = 68
5 Value Stack at time (67 + 1) = Value Stack at time 68 if 67 + 1 = 68, then Value Stack at time (67 + 1) = Value Stack at time 68
6 Value Stack at time 68 = [ [ ], [ ] ] if Value Stack at time (67 + 1) = Value Stack at time 68 and Value Stack at time (67 + 1) = [ [ ], [ ] ], then Value Stack at time 68 = [ [ ], [ ] ]

Comments

Please log in to add comments