Proof: Get Iterate Expr 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 the expression at time 16 = "MX"
Proof:
Given
1 | expression state at time 15 = "iterate_args" |
---|---|
2 | arguments stack at time 15 = [ [ "MX", [ "Mexico", [ ] ] ], [ [ ], [ ] ] ] |
# | Claim | Reason |
---|---|---|
1 | the expression at time (15 + 1) = "MX" | if expression state at time 15 = "iterate_args" and arguments stack at time 15 = [ [ "MX", [ "Mexico", [ ] ] ], [ [ ], [ ] ] ], then the expression at time (15 + 1) = "MX" |
2 | 15 + 1 = 16 | 15 + 1 = 16 |
3 | the expression at time (15 + 1) = the expression at time 16 | if 15 + 1 = 16, then the expression at time (15 + 1) = the expression at time 16 |
4 | the expression at time 16 = "MX" | if the expression at time (15 + 1) = the expression at time 16 and the expression at time (15 + 1) = "MX", then the expression at time 16 = "MX" |
Comments
Please log in to add comments