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