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