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