Proof: Write Skip Line Class Defs At 2
Let's prove the following theorem:
if the following are true:
- the line at time 2 = 3
- the tab at time 2 = 0
- statement at line 3, tab 1 =
return z
- Class Map at time 2 = [ ]
then Class Map at time 3 = [ ]
Proof:
Given
1 | the line at time 2 = 3 |
---|---|
2 | the tab at time 2 = 0 |
3 | statement at line 3, tab 1 = return z |
4 | Class Map at time 2 = [ ] |
# | Claim | Reason |
---|---|---|
1 | 1 > 0 | 1 > 0 |
2 | Class Map at time (2 + 1) = Class Map at time 2 | if the line at time 2 = 3 and the tab at time 2 = 0 and statement at line 3, tab 1 = return z and 1 > 0, then Class Map at time (2 + 1) = Class Map at time 2 |
3 | Class Map at time (2 + 1) = [ ] | if Class Map at time (2 + 1) = Class Map at time 2 and Class Map at time 2 = [ ], then Class Map at time (2 + 1) = [ ] |
4 | 2 + 1 = 3 | 2 + 1 = 3 |
5 | Class Map at time (2 + 1) = Class Map at time 3 | if 2 + 1 = 3, then Class Map at time (2 + 1) = Class Map at time 3 |
6 | Class Map at time 3 = [ ] | if Class Map at time (2 + 1) = Class Map at time 3 and Class Map at time (2 + 1) = [ ], then Class Map at time 3 = [ ] |
Comments
Please log in to add comments