Proof: Write End Decrement If Line14
Let's prove the following theorem:
if the following are true:
- the line at time 14 = 5
- the tab at time 14 = 1
- number of lines = 5 - 1
- Control Map at time 14 = [ entry 0: (pair ("if", False)), [ ] ]
then the line at time 15 = 5
Proof:
Given
1 | the line at time 14 = 5 |
---|---|
2 | the tab at time 14 = 1 |
3 | number of lines = 5 - 1 |
4 | Control Map at time 14 = [ entry 0: (pair ("if", False)), [ ] ] |
# | Claim | Reason |
---|---|---|
1 | value at (1 - 1) in map (Control Map at time 14) = pair ("if", False) | if Control Map at time 14 = [ entry 0: (pair ("if", False)), [ ] ], then value at (1 - 1) in map (Control Map at time 14) = pair ("if", False) |
2 | the line at time (14 + 1) = 5 | if the line at time 14 = 5 and the tab at time 14 = 1 and number of lines = 5 - 1 and value at (1 - 1) in map (Control Map at time 14) = pair ("if", False), then the line at time (14 + 1) = 5 |
3 | 14 + 1 = 15 | 14 + 1 = 15 |
4 | the line at time (14 + 1) = the line at time 15 | if 14 + 1 = 15, then the line at time (14 + 1) = the line at time 15 |
5 | the line at time 15 = 5 | if the line at time (14 + 1) = the line at time 15 and the line at time (14 + 1) = 5, then the line at time 15 = 5 |
Comments
Please log in to add comments