Proof: Write Test Call End in Block 10

Let's prove the following theorem:

if the following are true:
  • the line at time 10 = 1
  • the tab at time 10 = 0
  • statement at line 1, tab 0 = if __eq__(3, 3):
  • expression state at time 10 = "end_expr"
  • Return Value at time 10 = True
  • Control Map at time 10 = [ ]

then Control Map at time 11 = [ pair ("if", True), [ ] ]

Proof:

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

Given
1 the line at time 10 = 1
2 the tab at time 10 = 0
3 statement at line 1, tab 0 = if __eq__(3, 3):
4 expression state at time 10 = "end_expr"
5 Return Value at time 10 = True
6 Control Map at time 10 = [ ]
Proof Table
# Claim Reason
1 Control Map at time (10 + 1) = [ pair ("if", True), Control Map at time 10 ] if the line at time 10 = 1 and the tab at time 10 = 0 and statement at line 1, tab 0 = if __eq__(3, 3): and expression state at time 10 = "end_expr" and Return Value at time 10 = True, then Control Map at time (10 + 1) = [ pair ("if", True), Control Map at time 10 ]
2 [ pair ("if", True), Control Map at time 10 ] = [ pair ("if", True), [ ] ] if Control Map at time 10 = [ ], then [ pair ("if", True), Control Map at time 10 ] = [ pair ("if", True), [ ] ]
3 Control Map at time (10 + 1) = [ pair ("if", True), [ ] ] if Control Map at time (10 + 1) = [ pair ("if", True), Control Map at time 10 ] and [ pair ("if", True), Control Map at time 10 ] = [ pair ("if", True), [ ] ], then Control Map at time (10 + 1) = [ pair ("if", True), [ ] ]
4 10 + 1 = 11 10 + 1 = 11
5 Control Map at time (10 + 1) = Control Map at time 11 if 10 + 1 = 11, then Control Map at time (10 + 1) = Control Map at time 11
6 Control Map at time 11 = [ pair ("if", True), [ ] ] if Control Map at time (10 + 1) = Control Map at time 11 and Control Map at time (10 + 1) = [ pair ("if", True), [ ] ], then Control Map at time 11 = [ pair ("if", True), [ ] ]

Comments

Please log in to add comments