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