Proof: Write Assign Const State 0

Let's prove the following theorem:

if the following are true:
  • the line at time 0 = 1
  • the tab at time 0 = 0
  • statement at line 1, tab 0 = c = 16
  • 16 is constant

then expression state at time 1 = "not_expr"

Proof:

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

Given
1 the line at time 0 = 1
2 the tab at time 0 = 0
3 statement at line 1, tab 0 = c = 16
4 16 is constant
Proof Table
# Claim Reason
1 expression state at time (0 + 1) = "not_expr" if the line at time 0 = 1 and the tab at time 0 = 0 and statement at line 1, tab 0 = c = 16 and 16 is constant, then expression state at time (0 + 1) = "not_expr"
2 0 + 1 = 1 0 + 1 = 1
3 expression state at time (0 + 1) = expression state at time 1 if 0 + 1 = 1, then expression state at time (0 + 1) = expression state at time 1
4 expression state at time 1 = "not_expr" if expression state at time (0 + 1) = expression state at time 1 and expression state at time (0 + 1) = "not_expr", then expression state at time 1 = "not_expr"

Comments

Please log in to add comments