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