| mem = mem0, # σ4 = # r0, # σ2 = # r0, (σ3 + mem0 ' + σ4)[0] = (σ1 + mem ' + σ2)[0], 1 = # σ3, 1 = # σ1, ⟦r0⟧ (mem ' + σ2), ⟦r0⟧ (mem0 ' + σ4), ⟦re⟧ ((σ3 + mem0 ')[0], mem0), ⟦re⟧ ((σ1 + mem ')[0], mem), ∀ σ, σ0. # σ = # σ0 ∧ # σ0 = # r0 + 1 ∧ σ[0] = σ0[0] ∧ ⟦r0⟧ (σ0) ∧ ⟦r0⟧ (σ) → σ = σ0 ⊦ σ3 + mem0 ' + σ4 = σ1 + mem ' + σ2 |
1 = # σ1, 1 = # σ3, (σ3 + mem0 ' + σ4)[0] = (σ1 + mem0 ' + σ2)[0], # σ2 = # r0, # σ4 = # r0, ⟦re⟧ ((σ1 + mem0 ')[0], mem0), ⟦re⟧ ((σ3 + mem0 ')[0], mem0), ⟦r0⟧ (mem0 ' + σ4), ⟦r0⟧ (mem0 ' + σ2), ∀ σ, σ0. # σ = # σ0 ∧ # σ0 = # r0 + 1 ∧ σ[0] = σ0[0] ∧ ⟦r0⟧ (σ0) ∧ ⟦r0⟧ (σ) → σ = σ0 ⊦ σ3 + mem0 ' + σ4 = σ1 + mem0 ' + σ2
Used simplifier rules: sem-fw: ⊦ ⟦r⟧ (σ) → # σ = # r + 1;%c: ⊦ m + n = n + m; from specification nat-basic2%a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic2%eq-01: ⊦ m + n = m + n0 ↔ n = n0; from specification nat-basic2%a: ⊦ (σ + σ0) + σ1 = σ + σ0 + σ1; from specification list[memorylist]%succ: ⊦ m +1 = m + 1; from specification nat-basic2%len-05: ⊦ #(mem ' + σ) = (# σ)+1; from specification list[memorylist]