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