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