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