Proof: Write Assign Const State 25
Let's prove the following theorem:
if the following are true:
- the line at time 25 = 6
- the tab at time 25 = 1
- statement at line 6, tab 1 =
a = 9
- 9 is constant
then expression state at time 26 = "not_expr"
Proof:
Given
1 | the line at time 25 = 6 |
---|---|
2 | the tab at time 25 = 1 |
3 | statement at line 6, tab 1 = a = 9 |
4 | 9 is constant |
# | Claim | Reason |
---|---|---|
1 | expression state at time (25 + 1) = "not_expr" | if the line at time 25 = 6 and the tab at time 25 = 1 and statement at line 6, tab 1 = a = 9 and 9 is constant, then expression state at time (25 + 1) = "not_expr" |
2 | 25 + 1 = 26 | 25 + 1 = 26 |
3 | expression state at time (25 + 1) = expression state at time 26 | if 25 + 1 = 26, then expression state at time (25 + 1) = expression state at time 26 |
4 | expression state at time 26 = "not_expr" | if expression state at time (25 + 1) = expression state at time 26 and expression state at time (25 + 1) = "not_expr", then expression state at time 26 = "not_expr" |
Comments
Please log in to add comments