Proof: Write Test Call End Line10

Let's prove the following theorem:

if the following are true:
  • the line at time 10 = 1
  • the tab at time 10 = 0
  • statement at line 1, tab 0 = if __eq__(1, 3):
  • expression state at time 10 = "end_expr"
  • Return Value at time 10 = False

then the line at time 11 = 2

Proof:

View as a tree | View dependent proofs | Try proving it

Given
1 the line at time 10 = 1
2 the tab at time 10 = 0
3 statement at line 1, tab 0 = if __eq__(1, 3):
4 expression state at time 10 = "end_expr"
5 Return Value at time 10 = False
Proof Table
# Claim Reason
1 the line at time (10 + 1) = 1 + 1 if the line at time 10 = 1 and the tab at time 10 = 0 and statement at line 1, tab 0 = if __eq__(1, 3): and expression state at time 10 = "end_expr" and Return Value at time 10 = False, then the line at time (10 + 1) = 1 + 1
2 1 + 1 = 2 1 + 1 = 2
3 the line at time (10 + 1) = 2 if the line at time (10 + 1) = 1 + 1 and 1 + 1 = 2, then the line at time (10 + 1) = 2
4 10 + 1 = 11 10 + 1 = 11
5 the line at time (10 + 1) = the line at time 11 if 10 + 1 = 11, then the line at time (10 + 1) = the line at time 11
6 the line at time 11 = 2 if the line at time (10 + 1) = the line at time 11 and the line at time (10 + 1) = 2, then the line at time 11 = 2

Comments

Please log in to add comments