Proof: Get Iterate End Parent 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 parent stack at time 39 = [ ]
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 | parent stack at time (38 + 1) = [ ] | if expression state at time 38 = "iterate_args" and arguments stack at time 38 = [ [ ], [ ] ] and parent stack at time 38 = [ joe.move() , [ ] ], then parent stack at time (38 + 1) = [ ] |
2 | 38 + 1 = 39 | 38 + 1 = 39 |
3 | parent stack at time (38 + 1) = parent stack at time 39 | if 38 + 1 = 39, then parent stack at time (38 + 1) = parent stack at time 39 |
4 | parent stack at time 39 = [ ] | if parent stack at time (38 + 1) = parent stack at time 39 and parent stack at time (38 + 1) = [ ], then parent stack at time 39 = [ ] |
Comments
Please log in to add comments