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