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