Proof: Write Stmt Control Map At Unchanged 13
Let's prove the following theorem:
if the following are true:
- the line at time 13 = 4
- the tab at time 13 = 1
- statement at line 4, tab 1 =
a = 9
- Control Map at time 13 = [ entry 0: (pair ("if", False)), [ ] ]
then Control Map at time 14 = [ entry 0: (pair ("if", False)), [ ] ]
Proof:
Given
1 | the line at time 13 = 4 |
---|---|
2 | the tab at time 13 = 1 |
3 | statement at line 4, tab 1 = a = 9 |
4 | Control Map at time 13 = [ entry 0: (pair ("if", False)), [ ] ] |
# | Claim | Reason |
---|---|---|
1 | Control Map at time (13 + 1) = Control Map at time 13 | if the line at time 13 = 4 and the tab at time 13 = 1 and statement at line 4, tab 1 = a = 9 , then Control Map at time (13 + 1) = Control Map at time 13 |
2 | Control Map at time (13 + 1) = [ entry 0: (pair ("if", False)), [ ] ] | if Control Map at time (13 + 1) = Control Map at time 13 and Control Map at time 13 = [ entry 0: (pair ("if", False)), [ ] ], then Control Map at time (13 + 1) = [ entry 0: (pair ("if", False)), [ ] ] |
3 | 13 + 1 = 14 | 13 + 1 = 14 |
4 | Control Map at time (13 + 1) = Control Map at time 14 | if 13 + 1 = 14, then Control Map at time (13 + 1) = Control Map at time 14 |
5 | Control Map at time 14 = [ entry 0: (pair ("if", False)), [ ] ] | if Control Map at time (13 + 1) = Control Map at time 14 and Control Map at time (13 + 1) = [ entry 0: (pair ("if", False)), [ ] ], then Control Map at time 14 = [ entry 0: (pair ("if", False)), [ ] ] |
Comments
Please log in to add comments