| rg = loc .. loc0, # σ1 = # cp(ts, r), # σ0 = # cp(rg ', r), ⟦cp(rg ', r)⟧ (σ0 + mem '), ⟦cp(ts, r)⟧ (mem ' + σ1), transseq(r, ts0 + (rg ' + ts) + ts2), ∀ σ, r, ts0, ts2. # σ = # cp(ts, r) + 1 ∧ ⟦cp(ts, r)⟧ (σ) ∧ transseq(r, ts0 + ts + ts2) ∧ (∀ n1. n1 < # ts → nowrites(runevs(ts[n1].begin, ts[n1].end, r))) → (∃ mem. σ = mklist(mem, # σ)), ∀ n. ¬ # ts < n → nowrites(runevs((rg ' + ts)[n].begin, (rg ' + ts)[n].end, r)) ⊦ ∃ mem0. σ0 + mem ' + σ1 = mklist(mem0, # σ0 + # σ1 + 1) |
# σ0 = # (ctr(loc, loc0, r) ⊃ runevs(loc, loc0, r);[]), # σ1 = # cp(ts, r), ⟦(ctr(loc, loc0, r) ⊃ runevs(loc, loc0, r);[])⟧ (σ0 + mem '), transseq(r, ts0 + ((loc .. loc0)' + ts) + ts2), ⟦cp(ts, r)⟧ (mem ' + σ1), ∀ n. ¬ # ts < n → nowrites(runevs(((loc .. loc0)' + ts)[n].begin, ((loc .. loc0)' + ts)[n].end, r)), ∀ σ, r, ts0, ts2. # σ = # cp(ts, r) + 1 ∧ ⟦cp(ts, r)⟧ (σ) ∧ transseq(r, ts0 + ts + ts2) ∧ (∀ n1. n1 < # ts → nowrites(runevs(ts[n1].begin, ts[n1].end, r))) → (∃ mem. σ = mklist(mem, # σ)) ⊦ ∃ mem0. σ0 + mem ' + σ1 = mklist(mem0, # σ0 + # σ1 + 1)
Used simplifier rules: 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]%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%cp-one: ⊦ cp((n0 .. n1)', r) = (ctr(n0, n1, r) ⊃ runevs(n0, n1, r);[]); from specification transaction