Proof: Write Skip Line Tab 11
Let's prove the following theorem:
if the following are true:
- the line at time 11 = 2
- the tab at time 11 = 0
- statement at line 2, tab 1 =
a = 7
then the tab at time 12 = 0
Proof:
Given
1 | the line at time 11 = 2 |
---|---|
2 | the tab at time 11 = 0 |
3 | statement at line 2, tab 1 = a = 7 |
# | Claim | Reason |
---|---|---|
1 | 1 > 0 | 1 > 0 |
2 | the tab at time (11 + 1) = the tab at time 11 | if the line at time 11 = 2 and the tab at time 11 = 0 and statement at line 2, tab 1 = a = 7 and 1 > 0, then the tab at time (11 + 1) = the tab at time 11 |
3 | the tab at time (11 + 1) = 0 | if the tab at time (11 + 1) = the tab at time 11 and the tab at time 11 = 0, then the tab at time (11 + 1) = 0 |
4 | 11 + 1 = 12 | 11 + 1 = 12 |
5 | the tab at time (11 + 1) = the tab at time 12 | if 11 + 1 = 12, then the tab at time (11 + 1) = the tab at time 12 |
6 | the tab at time 12 = 0 | if the tab at time (11 + 1) = the tab at time 12 and the tab at time (11 + 1) = 0, then the tab at time 12 = 0 |
Comments
Please log in to add comments