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