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