Proof: Write Stmt Tab Unchanged Expr79

Let's prove the following theorem:

if the following are true:
  • the line at time 79 = 9
  • the tab at time 79 = 2
  • statement at line 9, tab 2 = self."y" = 5
  • expression state at time 79 = "end_expr"

then the tab at time 80 = 2

Proof:

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

Given
1 the line at time 79 = 9
2 the tab at time 79 = 2
3 statement at line 9, tab 2 = self."y" = 5
4 expression state at time 79 = "end_expr"
Proof Table
# Claim Reason
1 the tab at time (79 + 1) = the tab at time 79 if the line at time 79 = 9 and the tab at time 79 = 2 and statement at line 9, tab 2 = self."y" = 5 and expression state at time 79 = "end_expr", then the tab at time (79 + 1) = the tab at time 79
2 the tab at time (79 + 1) = 2 if the tab at time (79 + 1) = the tab at time 79 and the tab at time 79 = 2, then the tab at time (79 + 1) = 2
3 79 + 1 = 80 79 + 1 = 80
4 the tab at time (79 + 1) = the tab at time 80 if 79 + 1 = 80, then the tab at time (79 + 1) = the tab at time 80
5 the tab at time 80 = 2 if the tab at time (79 + 1) = the tab at time 80 and the tab at time (79 + 1) = 2, then the tab at time 80 = 2

Comments

Please log in to add comments