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