Proof: Get Begin Expr Params 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()
- arguments stack at time 67 = [ ]
then arguments stack at time 68 = [ [ ], [ ] ]
Proof:
Given
1 | expression state at time 67 = "begin_expr" |
---|---|
2 | the expression at time 67 = joe.jump() |
3 | arguments stack at time 67 = [ ] |
# | Claim | Reason |
---|---|---|
1 | arguments stack at time (67 + 1) = [ [ ], arguments stack at time 67 ] | if expression state at time 67 = "begin_expr" and the expression at time 67 = joe.jump() , then arguments stack at time (67 + 1) = [ [ ], arguments stack at time 67 ] |
2 | [ [ ], arguments stack at time 67 ] = [ [ ], [ ] ] | if arguments stack at time 67 = [ ], then [ [ ], arguments stack at time 67 ] = [ [ ], [ ] ] |
3 | arguments stack at time (67 + 1) = [ [ ], [ ] ] | if arguments stack at time (67 + 1) = [ [ ], arguments stack at time 67 ] and [ [ ], arguments stack at time 67 ] = [ [ ], [ ] ], then arguments stack at time (67 + 1) = [ [ ], [ ] ] |
4 | 67 + 1 = 68 | 67 + 1 = 68 |
5 | arguments stack at time (67 + 1) = arguments stack at time 68 | if 67 + 1 = 68, then arguments stack at time (67 + 1) = arguments stack at time 68 |
6 | arguments stack at time 68 = [ [ ], [ ] ] | if arguments stack at time (67 + 1) = arguments stack at time 68 and arguments stack at time (67 + 1) = [ [ ], [ ] ], then arguments stack at time 68 = [ [ ], [ ] ] |
Comments
Please log in to add comments