Proof: Write Test Call End Line22
Let's prove the following theorem:
if the following are true:
- the line at time 22 = 3
- the tab at time 22 = 0
- statement at line 3, tab 0 =
elif __eq__(7, 9):
- expression state at time 22 = "end_expr"
- Return Value at time 22 = False
then the line at time 23 = 4
Proof:
Given
1 | the line at time 22 = 3 |
---|---|
2 | the tab at time 22 = 0 |
3 | statement at line 3, tab 0 = elif __eq__(7, 9): |
4 | expression state at time 22 = "end_expr" |
5 | Return Value at time 22 = False |
# | Claim | Reason |
---|---|---|
1 | the line at time (22 + 1) = 3 + 1 | if the line at time 22 = 3 and the tab at time 22 = 0 and statement at line 3, tab 0 = elif __eq__(7, 9): and expression state at time 22 = "end_expr" and Return Value at time 22 = False, then the line at time (22 + 1) = 3 + 1 |
2 | 3 + 1 = 4 | 3 + 1 = 4 |
3 | the line at time (22 + 1) = 4 | if the line at time (22 + 1) = 3 + 1 and 3 + 1 = 4, then the line at time (22 + 1) = 4 |
4 | 22 + 1 = 23 | 22 + 1 = 23 |
5 | the line at time (22 + 1) = the line at time 23 | if 22 + 1 = 23, then the line at time (22 + 1) = the line at time 23 |
6 | the line at time 23 = 4 | if the line at time (22 + 1) = the line at time 23 and the line at time (22 + 1) = 4, then the line at time 23 = 4 |
Comments
Please log in to add comments