| (m1 .. n1 = m0 .. n0 ⊃ # ts0;pos(m1 .. n1, ts0 + (m .. n)' + (m0 .. n0)' + ts1)) ≤ (m2 .. n2 = m .. n ⊃ # ts0 + 1;(m2 .. n2 = m0 .. n0 ⊃ # ts0;pos(m2 .. n2, ts0 + (m .. n)' + (m0 .. n0)' + ts1))), ftr(m2, n2, r), tr(m1, n1, r), n2 < m1, transseq(r, ts0 + (m0 .. n0)' + (m .. n)' + ts1), nowrites(runevs(m0, n0, r)), ltr(m0, n0, r), nowrites(runevs(m, n, r)), ltr(m, n, r), transseq(r, ts0 + (m .. n)' + (m0 .. n0)' + ts1), pos(m2 .. n2, ts0 + (m .. n)' + (m0 .. n0)' + ts1) < pos(m1 .. n1, ts0 + (m .. n)' + (m0 .. n0)' + ts1), # ts0 < # ts0 + 2 + # ts1 → (∃ σ. σ[0] = ∅ ∧ ⟦ cp(firstn(# ts0, ts0 + (m .. n)' + (m0 .. n0)' + ts1), r) + runevs((ts0 + (m .. n)' + (m0 .. n0)' + ts1)[# ts0].begin, (ts0 + (m .. n)' + (m0 .. n0)' + ts1)[# ts0].end, r) ⟧ (σ) ∧ (# ts0 = # ts0 + # ts1 + 1 → σ.last = mem)), ∀ n3. n3 < # ts0 + 2 + # ts1 → (∃ σ. σ[0] = ∅ ∧ ⟦ cp(firstn(n3, ts0 + (m .. n)' + (m0 .. n0)' + ts1), r) + runevs((ts0 + (m .. n)' + (m0 .. n0)' + ts1)[n3].begin, (ts0 + (m .. n)' + (m0 .. n0)' + ts1)[n3].end, r) ⟧ (σ) ∧ (n3 = # ts0 + # ts1 + 1 → σ.last = mem)) ⊦ pos(m1 .. n1, ts0 + (m .. n)' + (m0 .. n0)' + ts1) = 0, m .. n = m0 .. n0, m1 .. n1 = m .. n, m1 = 0, m .. n ∈ ts0, m .. n ∈ ts1, m0 .. n0 ∈ ts0, m0 .. n0 ∈ ts1, dups(ts0 + ts1), dups(ts0), dups(ts1) |
(σ0 + mem0 ')[0] = ∅, # σ0 = # cp(ts0, r), (m1 .. n1 = m0 .. n0 ⊃ # ts0;pos(m1 .. n1, ts0 + (m .. n)' + (m0 .. n0)' + ts1)) ≤ (m2 .. n2 = m .. n ⊃ # ts0 + 1;(m2 .. n2 = m0 .. n0 ⊃ # ts0;pos(m2 .. n2, ts0 + (m .. n)' + (m0 .. n0)' + ts1))), ftr(m2, n2, r), tr(m1, n1, r), n2 < m1, transseq(r, ts0 + (m0 .. n0)' + (m .. n)' + ts1), nowrites(runevs(m0, n0, r)), ltr(m0, n0, r), nowrites(runevs(m, n, r)), ltr(m, n, r), transseq(r, ts0 + (m .. n)' + (m0 .. n0)' + ts1), pos(m2 .. n2, ts0 + (m .. n)' + (m0 .. n0)' + ts1) < pos(m1 .. n1, ts0 + (m .. n)' + (m0 .. n0)' + ts1), ⟦cp(ts0, r)⟧ (σ0 + mem0 '), ⟦runevs(m, n, r)⟧ (mem0 ' + mklist(mem0, # runevs(m, n, r))), ∀ n3. n3 < # ts0 + 2 + # ts1 → (∃ σ. σ[0] = ∅ ∧ ⟦ cp(firstn(n3, ts0 + (m .. n)' + (m0 .. n0)' + ts1), r) + runevs((ts0 + (m .. n)' + (m0 .. n0)' + ts1)[n3].begin, (ts0 + (m .. n)' + (m0 .. n0)' + ts1)[n3].end, r) ⟧ (σ) ∧ (n3 = # ts0 + # ts1 + 1 → σ.last = mem)) ⊦ pos(m1 .. n1, ts0 + (m .. n)' + (m0 .. n0)' + ts1) = 0, m .. n = m0 .. n0, m1 .. n1 = m .. n, m1 = 0, m .. n ∈ ts0, m .. n ∈ ts1, m0 .. n0 ∈ ts0, m0 .. n0 ∈ ts1, dups(ts0 + ts1), dups(ts0), dups(ts1)
Used simplifier rules: nowrites-sem-01: ⊦ nowrites(runevs(m, n, r)) ∧ ⟦runevs(m, n, r)⟧ (mem ' + σ) → σ = mklist(mem, # runevs(m, n, r));%app-getzero: ⊦ (σ + mem ' + σ0)[0] = (σ + mem ')[0];%succ: ⊦ m +1 = m + 1; from specification nat-basic2%mk-len: ⊦ # mklist(mem, n) = n; from specification list-last[memorylist]%len-05: ⊦ #(mem ' + σ) = (# σ)+1; from specification list[memorylist]%eq-01: ⊦ m + n = m + n0 ↔ n = n0; from specification nat-basic2%len-02: ⊦ # mem ' = 0 +1; from specification list[memorylist]%len: ⊦ #(σ + σ0) = # σ + # σ0; from specification list[memorylist]%a: ⊦ (σ + σ0) + σ1 = σ + σ0 + σ1; from specification list[memorylist]%sem-fw: ⊦ ⟦r⟧ (σ) → # σ = # r + 1; (forward) from specification opaque%a: ⊦ (r + r0) + r1 = r + r0 + r1; from specification list[run]%sem-append: ⊦ ¬ ¬ ⟦r + r0⟧ (σ) ↔ (∃ σ0, mem, σ1. σ = σ0 + mem ' + σ1 ∧ ⟦r⟧ (σ0 + mem ') ∧ ⟦r0⟧ (mem ' + σ1)); from specification opaque%oz: ⊦ m + 1 ≠ 0; from specification nat-basic2%eq: ⊦ m = m + n ↔ n = 0; from specification nat-basic2%sel-02: ⊦ (m .. m0).end = m0; from specification range%sel-01: ⊦ (m .. m0).begin = m; from specification range%get-app: ⊦ (ts + rg ' + ts0)[# ts] = rg; from specification list-del[translist]%a: ⊦ (ts + ts0) + ts1 = ts + ts0 + ts1; from specification list[translist]%firstN-len: ⊦ firstn(# ts, ts + ts0) = ts; from specification list-del[translist]%c: ⊦ m + n = n + m; from specification nat-basic2%a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic2%add-num-03: n < n0 ⊦ (* n) ≠ m0 + (* n0); from specification nat%l-01: ⊦ m < m + n ↔ n ≠ 0; from specification nat-basic2