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