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