| (σ3 + mem ')[0] = ∅, # σ3 = # cp(ts0, r), # σ2 = # cp(firstn(m6, ts2), r), ((m .. n)' + ts2)[# ts2] = m4 .. m5, mem ' + σ5 = σ6 + mem3 ' + σ7, # σ7 = # runevs(m4, m5, r), # σ6 = # cp(firstn(# ts2, (m .. n)' + ts2), r), σ0 + mem0 ' = σ3 + mem ' + σ2, # σ0 = # σ3 + # σ2, # σ1 = # runevs(m0, m1, r), (σ0 + mem0 ')[0] = ∅, ts2[m6] = m0 .. m1, ctr(m, # r, r + re '), transseq(r, (ts0 + (m .. n)') + firstn(m6, ts2) + restn(m6, ts2)), m6 < # ts2, ltrans(m, n, re.p, r), transseq(r, ts0 + (m .. n)' + ts2), ⟦runevs(m0, m1, r)⟧ (mem0 ' + σ1), ⟦cp(firstn(# ts2, (m .. n)' + ts2), r)⟧ (σ6 + mem3 '), ⟦runevs(m4, m5, r)⟧ (mem3 ' + σ7), ⟦cp(firstn(m6, ts2), r)⟧ (mem ' + σ2), nowrites(runevs(m, n, r)), ⟦cp(ts0, r)⟧ (σ3 + mem '), ⟦runevs(m, n, r)⟧ (mem ' + mklist(mem, # runevs(m, n, r))), ∀ 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 = (mem ' + σ5).last)), m6 + 1 = # ts2 → (mem0 ' + σ1).last = (mem ' + σ5).last, read?(re) → (mem ' + σ5).last(re.l) = re.v, read?(re) → (∀ n0. # ts0 < n0 ∧ ¬ # ts0 + # ts2 < n0 → nowrites(runevs((ts0 + (m .. n)' + ts2)[n0].begin, (ts0 + (m .. n)' + ts2)[n0].end, r))), mem ∈ σ6 ∨ mem = mem3 ∨ mem ∈ σ7, mem0 ∈ σ3 ∨ mem0 = mem ∨ mem0 ∈ σ2 ⊦ # ts2 = m6 + 1 → (mem ' + σ2 + σ1).last = (mem ' + σ5).last, ts2 = [], re = Begin(re.p), write?(re) |
(mem0 ' + σ1).last = (mem ' + σ5).last, # σ6 = # cp(firstn(m6, ts2), r), # ts2 = m6 + 1, (σ3 + mem ')[0] = ∅, # σ3 = # cp(ts0, r), # σ2 = # σ6, ts2[m6] = m0 .. m1, mem ' + σ5 = σ6 + mem3 ' + σ7, # σ7 = # runevs(m0, m1, r), σ0 + mem0 ' = σ3 + mem ' + σ2, # σ0 = # σ3 + # σ6, # σ1 = # σ7, (σ0 + mem0 ')[0] = ∅, ⟦cp(firstn(m6, ts2), r)⟧ (σ6 + mem3 '), ⟦runevs(m0, m1, r)⟧ (mem3 ' + σ7), ⟦cp(firstn(m6, ts2), r)⟧ (mem ' + σ2), nowrites(runevs(m, n, r)), ⟦cp(ts0, r)⟧ (σ3 + mem '), ⟦runevs(m, n, r)⟧ (mem ' + mklist(mem, # runevs(m, n, r))), ctr(m, # r, r + re '), transseq(r, (ts0 + (m .. n)') + firstn(m6, ts2) + restn(m6, ts2)), ltrans(m, n, re.p, r), transseq(r, ts0 + (m .. n)' + ts2), ⟦runevs(m0, m1, r)⟧ (mem0 ' + σ1), read?(re) → (mem ' + σ5).last(re.l) = re.v, read?(re) → (∀ n0. # ts0 < n0 ∧ ¬ # ts0 + m6 + 1 < n0 → nowrites(runevs((ts0 + (m .. n)' + ts2)[n0].begin, (ts0 + (m .. n)' + ts2)[n0].end, r))), mem ∈ σ6 ∨ mem = mem3 ∨ mem ∈ σ7, mem0 ∈ σ3 ∨ mem0 = mem ∨ mem0 ∈ σ2, ∀ n0. ¬ # ts0 + m6 + 1 < 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 + m6 + 1 → σ3.last = (mem ' + σ5).last)) ⊦ (mem ' + σ2 + σ1).last = (mem ' + σ5).last, ts2 = [], re = Begin(re.p), write?(re)
Used simplifier rules: succ: ⊦ m +1 = m + 1; from specification nat-basic2%len-05: ⊦ #(mem ' + σ) = (# σ)+1; from specification list[memorylist]%inj: ⊦ m .. m0 = m1 .. m2 ↔ m = m1 ∧ m0 = m2; from specification range%ref-1: ⊦ ¬ n < n; from specification nat-basic1%s: ⊦ m < n + 1 ↔ ¬ n < m; from specification nat-basic2%les: ⊦ m < n → (n ≤ m + 1 ↔ n = m + 1); from specification nat%oz: ⊦ m + 1 ≠ 0; from specification nat-basic2%get-succ: ⊦ (rg ' + ts)[n + 1] = ts[n]; from specification list-del[translist]%eq-01: ⊦ m + n = m + n0 ↔ n = n0; from specification nat-basic2%a: ⊦ (r + r0) + r1 = r + r0 + r1; from specification list[run]%Nil: ⊦ [] + r = r; from specification list[run]%ltrans-notctr: ⊦ ltrans(m, m0, p, r) → (ctr(m, m0, r) ↔ false); from specification transaction%cp-rec: ⊦ cp((n0 .. n1)' + ts, r) = (ctr(n0, n1, r) ⊃ runevs(n0, n1, r);[]) + cp(ts, r); from specification transaction%a: ⊦ (ts + ts0) + ts1 = ts + ts0 + ts1; from specification list[translist]%c: ⊦ rg + ts = rg ' + ts; from specification list[translist]%weak-firstN-rec: ⊦ firstn(n + 1, rg ' + ts) = rg + firstn(n, ts); from specification list-del[translist]%a: ⊦ (σ + σ0) + σ1 = σ + σ0 + σ1; from specification list[memorylist]%len-02: ⊦ # mem ' = 0 +1; from specification list[memorylist]%len: ⊦ #(σ + σ0) = # σ + # σ0; from specification list[memorylist]%lf-01: ⊦ m < n ∧ n = n0 → m < n0; (forward) from specification nat-basic1%f: ⊦ m < n → n ≠ 0; (forward) from specification nat-basic1%sem-fw: ⊦ ⟦r⟧ (σ) → # σ = # r + 1; (forward) from specification opaque%c: ⊦ m + n = n + m; from specification nat-basic2%a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic2%eqle-one: ⊦ m = n + 1 ∧ n < n0 → m ≤ n0; (forward) from specification nat