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