Proof: Get Begin Expr Value 27

Let's prove the following theorem:

if the following are true:
  • expression state at time 27 = "begin_expr"
  • the expression at time 27 = self."first_name" = first_name
  • Value Stack at time 27 = [ ]

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

Proof:

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

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

Comments

Please log in to add comments