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