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