Proof: Write Assign End Stack 52

Let's prove the following theorem:

if the following are true:
  • the line at time 52 = 8
  • the tab at time 52 = 0
  • statement at line 8, tab 0 = p = Person("John", "Smith", 25)
  • stack at time 52 = [ ]
  • expression state at time 52 = "end_expr"

then stack at time 53 = [ ]

Proof:

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

Given
1 the line at time 52 = 8
2 the tab at time 52 = 0
3 statement at line 8, tab 0 = p = Person("John", "Smith", 25)
4 stack at time 52 = [ ]
5 expression state at time 52 = "end_expr"
Proof Table
# Claim Reason
1 stack at time (52 + 1) = stack at time 52 if the line at time 52 = 8 and the tab at time 52 = 0 and statement at line 8, tab 0 = p = Person("John", "Smith", 25) and expression state at time 52 = "end_expr", then stack at time (52 + 1) = stack at time 52
2 stack at time (52 + 1) = [ ] if stack at time (52 + 1) = stack at time 52 and stack at time 52 = [ ], then stack at time (52 + 1) = [ ]
3 52 + 1 = 53 52 + 1 = 53
4 stack at time (52 + 1) = stack at time 53 if 52 + 1 = 53, then stack at time (52 + 1) = stack at time 53
5 stack at time 53 = [ ] if stack at time (52 + 1) = stack at time 53 and stack at time (52 + 1) = [ ], then stack at time 53 = [ ]

Comments

Please log in to add comments