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