Proof: Write Decrement Tab Control Map 12

Let's prove the following theorem:

if the following are true:
  • the line at time 12 = 3
  • the tab at time 12 = 1
  • statement at line 3, tab 0 = else:
  • Control Map at time 12 = [ entry 0: (pair ("if", True)), [ ] ]

then Control Map at time 13 = [ entry 0: (pair ("if", True)), [ ] ]

Proof:

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

Given
1 the line at time 12 = 3
2 the tab at time 12 = 1
3 statement at line 3, tab 0 = else:
4 Control Map at time 12 = [ entry 0: (pair ("if", True)), [ ] ]
Proof Table
# Claim Reason
1 0 < 1 0 < 1
2 value at (1 - 1) in map (Control Map at time 12) = pair ("if", True) if Control Map at time 12 = [ entry 0: (pair ("if", True)), [ ] ], then value at (1 - 1) in map (Control Map at time 12) = pair ("if", True)
3 Control Map at time (12 + 1) = Control Map at time 12 if the line at time 12 = 3 and the tab at time 12 = 1 and statement at line 3, tab 0 = else: and 0 < 1 and value at (1 - 1) in map (Control Map at time 12) = pair ("if", True), then Control Map at time (12 + 1) = Control Map at time 12
4 Control Map at time (12 + 1) = [ entry 0: (pair ("if", True)), [ ] ] if Control Map at time (12 + 1) = Control Map at time 12 and Control Map at time 12 = [ entry 0: (pair ("if", True)), [ ] ], then Control Map at time (12 + 1) = [ entry 0: (pair ("if", True)), [ ] ]
5 12 + 1 = 13 12 + 1 = 13
6 Control Map at time (12 + 1) = Control Map at time 13 if 12 + 1 = 13, then Control Map at time (12 + 1) = Control Map at time 13
7 Control Map at time 13 = [ entry 0: (pair ("if", True)), [ ] ] if Control Map at time (12 + 1) = Control Map at time 13 and Control Map at time (12 + 1) = [ entry 0: (pair ("if", True)), [ ] ], then Control Map at time 13 = [ entry 0: (pair ("if", True)), [ ] ]

Comments

Please log in to add comments