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