Proof: Get Iterate End Parent 24
Let's prove the following theorem:
if the following are true:
- expression state at time 24 = "iterate_args"
- arguments stack at time 24 = [ [ ], [ ] ]
- parent stack at time 24 = [
{"ES": "Estonia", "MX": "Mexico"}
, [ ] ]
then parent stack at time 25 = [ ]
Proof:
Given
1 | expression state at time 24 = "iterate_args" |
---|---|
2 | arguments stack at time 24 = [ [ ], [ ] ] |
3 | parent stack at time 24 = [ {"ES": "Estonia", "MX": "Mexico"} , [ ] ] |
# | Claim | Reason |
---|---|---|
1 | parent stack at time (24 + 1) = [ ] | if expression state at time 24 = "iterate_args" and arguments stack at time 24 = [ [ ], [ ] ] and parent stack at time 24 = [ {"ES": "Estonia", "MX": "Mexico"} , [ ] ], then parent stack at time (24 + 1) = [ ] |
2 | 24 + 1 = 25 | 24 + 1 = 25 |
3 | parent stack at time (24 + 1) = parent stack at time 25 | if 24 + 1 = 25, then parent stack at time (24 + 1) = parent stack at time 25 |
4 | parent stack at time 25 = [ ] | if parent stack at time (24 + 1) = parent stack at time 25 and parent stack at time (24 + 1) = [ ], then parent stack at time 25 = [ ] |
Comments
Please log in to add comments