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