Proof: Write Skip Line Stack At 58

Let's prove the following theorem:

if the following are true:
  • the line at time 58 = 3
  • the tab at time 58 = 0
  • statement at line 3, tab 1 = a = __add__(a, 1)
  • stack at time 58 = [ ]

then stack at time 59 = [ ]

Proof:

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

Given
1 the line at time 58 = 3
2 the tab at time 58 = 0
3 statement at line 3, tab 1 = a = __add__(a, 1)
4 stack at time 58 = [ ]
Proof Table
# Claim Reason
1 1 > 0 1 > 0
2 stack at time (58 + 1) = stack at time 58 if the line at time 58 = 3 and the tab at time 58 = 0 and statement at line 3, tab 1 = a = __add__(a, 1) and 1 > 0, then stack at time (58 + 1) = stack at time 58
3 stack at time (58 + 1) = [ ] if stack at time (58 + 1) = stack at time 58 and stack at time 58 = [ ], then stack at time (58 + 1) = [ ]
4 58 + 1 = 59 58 + 1 = 59
5 stack at time (58 + 1) = stack at time 59 if 58 + 1 = 59, then stack at time (58 + 1) = stack at time 59
6 stack at time 59 = [ ] if stack at time (58 + 1) = stack at time 59 and stack at time (58 + 1) = [ ], then stack at time 59 = [ ]

Comments

Please log in to add comments