| σ0 + mem0 ' = σ + mem1 ' + σ2, # σ0 = # σ + # σ2, # σ1 = # runevs(m2, m3, r), (σ0 + mem0 ')[0] = ∅, ((m .. n)' + ts2)[n2] = m2 .. m3, ((m .. # r)' + ts2)[n2] = m0 .. m1, # σ = # cp(ts0, r), # σ2 = # cp(firstn(n2, (m .. n)' + ts2), r), ⟦cp(firstn(n2, (m .. n)' + ts2), r)⟧ (mem1 ' + σ2), ⟦cp(ts0, r)⟧ (σ + mem1 '), n2 ≤ # ts2, ltrans(m, n, re.p, r), transseq(r, ts0 + (m .. n)' + ts2), ⟦runevs(m2, m3, r)⟧ (mem0 ' + σ1), n2 = # ts2 → (mem0 ' + σ1).last = mem, read?(re) → (∀ n0. # ts0 < n0 ∧ ¬ # ts0 + # ts2 < n0 → nowrites(runevs((ts0 + (m .. n)' + ts2)[n0].begin, (ts0 + (m .. n)' + ts2)[n0].end, r))), write?(re) ∨ ¬ nowrites(runevs(m, n, r)) → ts2 = [], read?(re) → mem(re.l) = re.v, ¬ # ts0 + # ts2 < # ts0 + # ts2 → (∃ σ. σ[0] = ∅ ∧ ⟦ cp(firstn(# ts0 + # ts2, ts0 + (m .. n)' + ts2), r) + runevs((ts0 + (m .. n)' + ts2)[# ts0 + # ts2].begin, (ts0 + (m .. n)' + ts2)[# ts0 + # ts2].end, r) ⟧ (σ) ∧ (# ts0 + # ts2 = # ts0 + # ts2 → σ.last = mem)), ∀ n0. ¬ # ts0 + # ts2 < n0 → (∃ σ. σ[0] = ∅ ∧ ⟦cp(firstn(n0, ts0 + (m .. n)' + ts2), r) + runevs((ts0 + (m .. n)' + ts2)[n0].begin, (ts0 + (m .. n)' + ts2)[n0].end, r)⟧ (σ) ∧ (n0 = # ts0 + # ts2 → σ.last = mem)), mem0 ∈ σ ∨ mem0 = mem1 ∨ mem0 ∈ σ2 ⊦ re = Begin(re.p), ∃ σ3. σ3[0] = ∅ ∧ ⟦(cp(ts0, r) + cp(firstn(n2, (m .. # r)' + ts2), r + re ')) + runevs(m0, m1, r + re ')⟧ (σ3) ∧ (# ts2 = n2 → σ3.last = (write?(re) ⊃ mem(re.l; re.v);mem)) |
# σ2 = # cp(firstn(n2, (m .. n)' + ts2), r), # σ = # σ4, ((m .. # r)' + ts2)[n2] = m0 .. m1, ((m .. n)' + ts2)[n2] = m2 .. m3, (σ0 + mem0 ')[0] = ∅, # σ1 = # runevs(m2, m3, r), # σ0 = # σ4 + # σ2, σ0 + mem0 ' = σ + mem1 ' + σ2, # σ4 = # cp(ts0, r), # σ6 = # cp(firstn(# ts2, (m .. n)' + ts2), r), # σ7 = # runevs(((m .. n)' + ts2)[# ts2].begin, ((m .. n)' + ts2)[# ts2].end, r), mem2 ' + σ5 = σ6 + mem3 ' + σ7, (σ4 + mem2 ')[0] = ∅, ⟦runevs(((m .. n)' + ts2)[# ts2].begin, ((m .. n)' + ts2)[# ts2].end, r)⟧ (mem3 ' + σ7), ⟦cp(firstn(# ts2, (m .. n)' + ts2), r)⟧ (σ6 + mem3 '), ⟦cp(ts0, r)⟧ (σ4 + mem2 '), ⟦runevs(m2, m3, r)⟧ (mem0 ' + σ1), transseq(r, ts0 + (m .. n)' + ts2), ltrans(m, n, re.p, r), n2 ≤ # ts2, ⟦cp(ts0, r)⟧ (σ + mem1 '), ⟦cp(firstn(n2, (m .. n)' + ts2), r)⟧ (mem1 ' + σ2), write?(re) ∨ ¬ nowrites(runevs(m, n, r)) → ts2 = [], read?(re) → (∀ n0. # ts0 < n0 ∧ ¬ # ts0 + # ts2 < n0 → nowrites(runevs((ts0 + (m .. n)' + ts2)[n0].begin, (ts0 + (m .. n)' + ts2)[n0].end, r))), mem0 ∈ σ ∨ mem0 = mem1 ∨ mem0 ∈ σ2, mem2 ∈ σ6 ∨ mem2 = mem3 ∨ mem2 ∈ σ7, read?(re) → (mem2 ' + σ5).last(re.l) = re.v, n2 = # ts2 → (mem0 ' + σ1).last = (mem2 ' + σ5).last, ∀ n0. ¬ # ts0 + # ts2 < n0 → (∃ σ3. σ3[0] = ∅ ∧ ⟦cp(firstn(n0, ts0 + (m .. n)' + ts2), r) + runevs((ts0 + (m .. n)' + ts2)[n0].begin, (ts0 + (m .. n)' + ts2)[n0].end, r)⟧ (σ3) ∧ (n0 = # ts0 + # ts2 → σ3.last = (mem2 ' + σ5).last)) ⊦ re = Begin(re.p), ∃ σ3. σ3[0] = ∅ ∧ ⟦(cp(ts0, r) + cp(firstn(n2, (m .. # r)' + ts2), r + re ')) + runevs(m0, m1, r + re ')⟧ (σ3) ∧ (# ts2 = n2 → σ3.last = (write?(re) ⊃ (mem2 ' + σ5).last(re.l; re.v);(mem2 ' + σ5).last))
Used simplifier rules: app-getzero: ⊦ (σ + mem ' + σ0)[0] = (σ + mem ')[0];%lapp-01: ⊦ (σ + mem ' + σ0).last = (mem ' + σ0).last; from specification list-last[memorylist]%in-rec: ⊦ mem ∈ mem0 ' + σ ↔ ¬ ¬(mem = mem0 ∨ mem ∈ σ); from specification list[memorylist]%in-append: ⊦ mem ∈ σ + σ0 ↔ ¬ ¬(mem ∈ σ ∨ mem ∈ σ0); from specification list[memorylist]%succ: ⊦ m +1 = m + 1; from specification nat-basic2%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]%sem-fw: ⊦ ⟦r⟧ (σ) → # σ = # r + 1; (forward) from specification opaque%a: ⊦ (σ + σ0) + σ1 = σ + σ0 + σ1; from specification list[memorylist]%in-14: ⊦ mem ' + σ = σ0 → mem ∈ σ0; (forward) from specification list[memorylist]%sem-append: ⊦ ¬ ¬ ⟦r + r0⟧ (σ) ↔ (∃ σ0, mem, σ1. σ = σ0 + mem ' + σ1 ∧ ⟦r⟧ (σ0 + mem ') ∧ ⟦r0⟧ (mem ' + σ1)); from specification opaque%a: ⊦ (r + r0) + r1 = r + r0 + r1; from specification list[run]%get-append-grt-02: ⊦ (ts + ts0)[n + # ts] = ts0[n]; from specification list-del[translist]%cp-append: ⊦ cp(ts0 + ts1, r) = cp(ts0, r) + cp(ts1, r); from specification transaction%a: ⊦ (ts + ts0) + ts1 = ts + ts0 + ts1; from specification list[translist]%firstn-app: ⊦ firstn(# ts + n, ts + ts0) = ts + firstn(n, ts0); 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%ref-1: ⊦ ¬ n < n; from specification nat-basic1%l: ⊦ m + n < m + n0 ↔ n < n0; from specification nat-basic2