Proof: Do Stack At Unchanged 10

Let's prove the following theorem:

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

then stack at time 11 = [ ]

Proof:

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

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

Comments

Please log in to add comments