Proof: Get Begin Expr State 70

Let's prove the following theorem:

if the following are true:
  • the expression at time 70 = 12
  • expression state at time 70 = "begin_expr"
  • 12 is constant
  • parent stack at time 70 = [ __mul__(self.age, 12), [ ] ]

then expression state at time 71 = "return"

Proof:

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

Given
1 the expression at time 70 = 12
2 expression state at time 70 = "begin_expr"
3 12 is constant
4 parent stack at time 70 = [ __mul__(self.age, 12), [ ] ]
Proof Table
# Claim Reason
1 expression state at time (70 + 1) = "return" if expression state at time 70 = "begin_expr" and the expression at time 70 = 12 and 12 is constant and parent stack at time 70 = [ __mul__(self.age, 12), [ ] ], then expression state at time (70 + 1) = "return"
2 70 + 1 = 71 70 + 1 = 71
3 expression state at time (70 + 1) = expression state at time 71 if 70 + 1 = 71, then expression state at time (70 + 1) = expression state at time 71
4 expression state at time 71 = "return" if expression state at time (70 + 1) = expression state at time 71 and expression state at time (70 + 1) = "return", then expression state at time 71 = "return"

Comments

Please log in to add comments