Proof: Do Stack At Unchanged 16

Let's prove the following theorem:

if the following are true:
  • expression state at time 16 = "iterate_args"
  • stack at time 16 = [ ]

then stack at time 17 = [ ]

Proof:

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

Given
1 expression state at time 16 = "iterate_args"
2 stack at time 16 = [ ]
Proof Table
# Claim Reason
1 stack at time (16 + 1) = stack at time 16 if expression state at time 16 = "iterate_args", then stack at time (16 + 1) = stack at time 16
2 stack at time (16 + 1) = [ ] if stack at time (16 + 1) = stack at time 16 and stack at time 16 = [ ], then stack at time (16 + 1) = [ ]
3 16 + 1 = 17 16 + 1 = 17
4 stack at time (16 + 1) = stack at time 17 if 16 + 1 = 17, then stack at time (16 + 1) = stack at time 17
5 stack at time 17 = [ ] if stack at time (16 + 1) = stack at time 17 and stack at time (16 + 1) = [ ], then stack at time 17 = [ ]

Comments

Please log in to add comments