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