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