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