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