| σ6 = mem0 + σ0, # σ6 = # cp(ts1, r), mem2 ' + σ5 = σ6 + mem ' + mklist(mem, # runevs(m4, m5, r)), (σ4 + mem2 ')[0] = ∅, ((m2 .. m3)' + ts1)[n] = m .. m0, # σ4 = # cp(ts0, r), σ6 = mklist(mem, # σ6), ⟦cp(ts1, r)⟧ (σ6 + mem '), ⟦cp(ts0, r)⟧ (σ4 + mem2 '), ⟦runevs(m2, m3, r)⟧ (mem2 ' + mklist(mem2, # runevs(m2, m3, r))), transseq(r, ts0 + (m2 .. m3)' + ts1 + (m4 .. m5)'), ltrans(m2, m3, p, r), ⟦[]⟧ (mem2 '), nowrites(runevs(m2, m3, r)), ⟦runevs(m4, m5, r)⟧ (mem ' + mklist(mem, # runevs(m4, m5, r))), nowrites(runevs(m4, m5, r)), ∀ n0. ¬ # ts0 + # ts1 + 1 < n0 → (∃ σ. σ[0] = ∅ ∧ ⟦ cp(firstn(n0, ts0 + (m2 .. m3)' + ts1 + (m4 .. m5)'), r) + runevs((ts0 + (m2 .. m3)' + ts1 + (m4 .. m5)')[n0].begin, (ts0 + (m2 .. m3)' + ts1 + (m4 .. m5)')[n0].end, r) ⟧ (σ) ∧ (n0 = # ts0 + # ts1 + 1 → σ.last = (mem2 ' + σ5).last)), mem2 ∈ σ6 ∨ mem2 = mem ∨ mem2 ∈ mklist(mem, # runevs(m4, m5, r)) ⊦ mem2(l) = (mem2 ' + σ5).last(l) |
# cp(ts1, r) = # σ0 + 1, (σ4 + mem0 ')[0] = ∅, ((m2 .. m3)' + ts1)[n] = m .. m0, # σ4 = # cp(ts0, r), mem0 ' + σ0 = mklist(mem, # σ0 + 1), ⟦cp(ts0, r)⟧ (σ4 + mem0 '), ⟦runevs(m2, m3, r)⟧ (mem0 ' + mklist(mem0, # runevs(m2, m3, r))), transseq(r, ts0 + (m2 .. m3)' + ts1 + (m4 .. m5)'), ltrans(m2, m3, p, r), ⟦[]⟧ (mem0 '), nowrites(runevs(m2, m3, r)), ⟦runevs(m4, m5, r)⟧ (mem ' + mklist(mem, # runevs(m4, m5, r))), nowrites(runevs(m4, m5, r)), ⟦cp(ts1, r)⟧ ((mem0 ' + σ0) + mem '), ∀ n0. ¬ # ts0 + # ts1 + 1 < n0 → (∃ σ. σ[0] = ∅ ∧ ⟦ cp(firstn(n0, ts0 + (m2 .. m3)' + ts1 + (m4 .. m5)'), r) + runevs((ts0 + (m2 .. m3)' + ts1 + (m4 .. m5)')[n0].begin, (ts0 + (m2 .. m3)' + ts1 + (m4 .. m5)')[n0].end, r) ⟧ (σ) ∧ (n0 = # ts0 + # ts1 + 1 → σ.last = mem)) ⊦ mem0(l) = mem(l)
Used simplifier rules: eq-01: ⊦ m + n = m + n0 ↔ n = n0; from specification nat-basic2%mk-len: ⊦ # mklist(mem, n) = n; from specification list-last[memorylist]%size-01: ⊦ # [] = 0; from specification list-data[run]%consmklist-last: ⊦ (mem ' + mklist(mem, n)).last = mem; from specification list-last[memorylist]%lapp-03: ⊦ (mem ' + σ + mem0 ' + σ0).last = (mem0 ' + σ0).last; from specification list-last[memorylist]%add-num-01: n < n0 ⊦ m + (* n) = m0 + (* n0) ↔ m = m0 + (n0 - n); from specification nat%c: ⊦ m + n = n + m; from specification nat-basic2%a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic2%len-02: ⊦ # mem ' = 0 +1; from specification list[memorylist]%len: ⊦ #(σ + σ0) = # σ + # σ0; from specification list[memorylist]%sem-fw: ⊦ ⟦r⟧ (σ) → # σ = # r + 1; (forward) from specification opaque%in-14: ⊦ mem ' + σ = σ0 → mem ∈ σ0; (forward) from specification list[memorylist]%in-rec: ⊦ mem ∈ mem0 ' + σ ↔ ¬ ¬(mem = mem0 ∨ mem ∈ σ); from specification list[memorylist]%c-06: ⊦ mem ' + σ = mem0 ' + σ0 ↔ mem = mem0 ∧ σ = σ0; from specification list[memorylist]%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]%c: ⊦ mem + σ = mem ' + σ; from specification list[memorylist]