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