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