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