Proof: Get Begin Expr Params 28

Let's prove the following theorem:

if the following are true:
  • expression state at time 28 = "begin_expr"
  • the expression at time 28 = __setitem__(locations, "ES", "Spain")
  • arguments stack at time 28 = [ ]

then arguments stack at time 29 = [ [ locations, [ "ES", [ "Spain", [ ] ] ] ], [ ] ]

Proof:

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

Given
1 expression state at time 28 = "begin_expr"
2 the expression at time 28 = __setitem__(locations, "ES", "Spain")
3 arguments stack at time 28 = [ ]
Proof Table
# Claim Reason
1 arguments stack at time (28 + 1) = [ [ locations, [ "ES", [ "Spain", [ ] ] ] ], arguments stack at time 28 ] if expression state at time 28 = "begin_expr" and the expression at time 28 = __setitem__(locations, "ES", "Spain"), then arguments stack at time (28 + 1) = [ [ locations, [ "ES", [ "Spain", [ ] ] ] ], arguments stack at time 28 ]
2 [ [ locations, [ "ES", [ "Spain", [ ] ] ] ], arguments stack at time 28 ] = [ [ locations, [ "ES", [ "Spain", [ ] ] ] ], [ ] ] if arguments stack at time 28 = [ ], then [ [ locations, [ "ES", [ "Spain", [ ] ] ] ], arguments stack at time 28 ] = [ [ locations, [ "ES", [ "Spain", [ ] ] ] ], [ ] ]
3 arguments stack at time (28 + 1) = [ [ locations, [ "ES", [ "Spain", [ ] ] ] ], [ ] ] if arguments stack at time (28 + 1) = [ [ locations, [ "ES", [ "Spain", [ ] ] ] ], arguments stack at time 28 ] and [ [ locations, [ "ES", [ "Spain", [ ] ] ] ], arguments stack at time 28 ] = [ [ locations, [ "ES", [ "Spain", [ ] ] ] ], [ ] ], then arguments stack at time (28 + 1) = [ [ locations, [ "ES", [ "Spain", [ ] ] ] ], [ ] ]
4 28 + 1 = 29 28 + 1 = 29
5 arguments stack at time (28 + 1) = arguments stack at time 29 if 28 + 1 = 29, then arguments stack at time (28 + 1) = arguments stack at time 29
6 arguments stack at time 29 = [ [ locations, [ "ES", [ "Spain", [ ] ] ] ], [ ] ] if arguments stack at time (28 + 1) = arguments stack at time 29 and arguments stack at time (28 + 1) = [ [ locations, [ "ES", [ "Spain", [ ] ] ] ], [ ] ], then arguments stack at time 29 = [ [ locations, [ "ES", [ "Spain", [ ] ] ] ], [ ] ]

Comments

Please log in to add comments