Proof: Get Begin Expr Params 62

Let's prove the following theorem:

if the following are true:
  • expression state at time 62 = "begin_expr"
  • the expression at time 62 = self.age
  • arguments stack at time 62 = [ [ 12, [ ] ], [ ] ]

then arguments stack at time 63 = [ [ self, [ ] ], [ [ 12, [ ] ], [ ] ] ]

Proof:

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

Given
1 expression state at time 62 = "begin_expr"
2 the expression at time 62 = self.age
3 arguments stack at time 62 = [ [ 12, [ ] ], [ ] ]
Proof Table
# Claim Reason
1 arguments stack at time (62 + 1) = [ [ self, [ ] ], arguments stack at time 62 ] if expression state at time 62 = "begin_expr" and the expression at time 62 = self.age, then arguments stack at time (62 + 1) = [ [ self, [ ] ], arguments stack at time 62 ]
2 [ [ self, [ ] ], arguments stack at time 62 ] = [ [ self, [ ] ], [ [ 12, [ ] ], [ ] ] ] if arguments stack at time 62 = [ [ 12, [ ] ], [ ] ], then [ [ self, [ ] ], arguments stack at time 62 ] = [ [ self, [ ] ], [ [ 12, [ ] ], [ ] ] ]
3 arguments stack at time (62 + 1) = [ [ self, [ ] ], [ [ 12, [ ] ], [ ] ] ] if arguments stack at time (62 + 1) = [ [ self, [ ] ], arguments stack at time 62 ] and [ [ self, [ ] ], arguments stack at time 62 ] = [ [ self, [ ] ], [ [ 12, [ ] ], [ ] ] ], then arguments stack at time (62 + 1) = [ [ self, [ ] ], [ [ 12, [ ] ], [ ] ] ]
4 62 + 1 = 63 62 + 1 = 63
5 arguments stack at time (62 + 1) = arguments stack at time 63 if 62 + 1 = 63, then arguments stack at time (62 + 1) = arguments stack at time 63
6 arguments stack at time 63 = [ [ self, [ ] ], [ [ 12, [ ] ], [ ] ] ] if arguments stack at time (62 + 1) = arguments stack at time 63 and arguments stack at time (62 + 1) = [ [ self, [ ] ], [ [ 12, [ ] ], [ ] ] ], then arguments stack at time 63 = [ [ self, [ ] ], [ [ 12, [ ] ], [ ] ] ]

Comments

Please log in to add comments