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