Proof: Get Iterate End Expr 38
Let's prove the following theorem:
if the following are true:
- expression state at time 38 = "iterate_args"
- arguments stack at time 38 = [ [ ], [ ] ]
- parent stack at time 38 = [
joe.move()
, [ ] ]
then the expression at time 39 = joe.move()
Proof:
Given
1 | expression state at time 38 = "iterate_args" |
---|---|
2 | arguments stack at time 38 = [ [ ], [ ] ] |
3 | parent stack at time 38 = [ joe.move() , [ ] ] |
# | Claim | Reason |
---|---|---|
1 | the expression at time (38 + 1) = joe.move() |
if expression state at time 38 = "iterate_args" and arguments stack at time 38 = [ [ ], [ ] ] and parent stack at time 38 = [ joe.move() , [ ] ], then the expression at time (38 + 1) = joe.move() |
2 | 38 + 1 = 39 | 38 + 1 = 39 |
3 | the expression at time (38 + 1) = the expression at time 39 | if 38 + 1 = 39, then the expression at time (38 + 1) = the expression at time 39 |
4 | the expression at time 39 = joe.move() |
if the expression at time (38 + 1) = the expression at time 39 and the expression at time (38 + 1) = joe.move() , then the expression at time 39 = joe.move() |
Comments
Please log in to add comments