Proof: Write Skip Line State 11
Let's prove the following theorem:
if the following are true:
- the line at time 11 = 2
- the tab at time 11 = 0
- statement at line 2, tab 1 =
a = 7
then expression state at time 12 = "not_expr"
Proof:
Given
1 | the line at time 11 = 2 |
---|---|
2 | the tab at time 11 = 0 |
3 | statement at line 2, tab 1 = a = 7 |
# | Claim | Reason |
---|---|---|
1 | 1 > 0 | 1 > 0 |
2 | expression state at time (11 + 1) = "not_expr" | if the line at time 11 = 2 and the tab at time 11 = 0 and statement at line 2, tab 1 = a = 7 and 1 > 0, then expression state at time (11 + 1) = "not_expr" |
3 | 11 + 1 = 12 | 11 + 1 = 12 |
4 | expression state at time (11 + 1) = expression state at time 12 | if 11 + 1 = 12, then expression state at time (11 + 1) = expression state at time 12 |
5 | expression state at time 12 = "not_expr" | if expression state at time (11 + 1) = expression state at time 12 and expression state at time (11 + 1) = "not_expr", then expression state at time 12 = "not_expr" |
Comments
Please log in to add comments