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