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