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