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