Proof: Write Skip Line Line 5

Let's prove the following theorem:

if the following are true:
  • the line at time 5 = 6
  • the tab at time 5 = 1
  • statement at line 6, tab 2 = self.x = self.x + 5

then the line at time 6 = 7

Proof:

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

Given
1 the line at time 5 = 6
2 the tab at time 5 = 1
3 statement at line 6, tab 2 = self.x = self.x + 5
Proof Table
# Claim Reason
1 2 > 1 2 > 1
2 the line at time (5 + 1) = 6 + 1 if the line at time 5 = 6 and the tab at time 5 = 1 and statement at line 6, tab 2 = self.x = self.x + 5 and 2 > 1, then the line at time (5 + 1) = 6 + 1
3 6 + 1 = 7 6 + 1 = 7
4 the line at time (5 + 1) = 7 if the line at time (5 + 1) = 6 + 1 and 6 + 1 = 7, then the line at time (5 + 1) = 7
5 5 + 1 = 6 5 + 1 = 6
6 the line at time (5 + 1) = the line at time 6 if 5 + 1 = 6, then the line at time (5 + 1) = the line at time 6
7 the line at time 6 = 7 if the line at time (5 + 1) = the line at time 6 and the line at time (5 + 1) = 7, then the line at time 6 = 7

Comments

Please log in to add comments