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