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