Proof: Write Skip Line Line 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 line at time 12 = 3
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 line at time (11 + 1) = 2 + 1 | 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 line at time (11 + 1) = 2 + 1 |
3 | 2 + 1 = 3 | 2 + 1 = 3 |
4 | the line at time (11 + 1) = 3 | if the line at time (11 + 1) = 2 + 1 and 2 + 1 = 3, then the line at time (11 + 1) = 3 |
5 | 11 + 1 = 12 | 11 + 1 = 12 |
6 | the line at time (11 + 1) = the line at time 12 | if 11 + 1 = 12, then the line at time (11 + 1) = the line at time 12 |
7 | the line at time 12 = 3 | if the line at time (11 + 1) = the line at time 12 and the line at time (11 + 1) = 3, then the line at time 12 = 3 |
Comments
Please log in to add comments