| ts = ts0 + ts1 ∧ # ts0 = n ∧ n ≤ # ts, (restn(n + 1, ts) + ts[n] ')[n2] = m .. m0, # ts = n1 + n + 1, transseq(r, ts0 + restn(n + 1, ts) + ts[n] '), n < # ts, presrt(r, ts), transseq(r, ts), n2 ≤ n1, ∀ n. n < # ts → (∃ σ. σ[0] = ∅ ∧ ⟦cp(firstn(n, ts), r) + runevs(ts[n].begin, ts[n].end, r)⟧ (σ) ∧ (n + 1 = # ts → σ.last = mem)), ∀ n0. n ≤ n0 ∧ n0 < # ts → ltr(ts[n0].begin, ts[n0].end, r) ∧ nowrites(runevs(ts[n0].begin, ts[n0].end, r)) ⊦ ts = [], ∃ σ. σ[0] = ∅ ∧ ⟦cp(firstn(n2 + n, ts0 + restn(n + 1, ts) + ts[n] '), r) + runevs(m, m0, r)⟧ (σ) ∧ (# ts = 1 + n2 + n → σ.last = mem) |
# ts1 = n1 + 1, (restn(# ts0 + 1, ts0 + ts1) + (ts0 + ts1)[# ts0] ')[n2] = m .. m0, transseq(r, ts0 + restn(# ts0 + 1, ts0 + ts1) + (ts0 + ts1)[# ts0] '), n2 ≤ n1, transseq(r, ts0 + ts1), presrt(r, ts0 + ts1), ∀ n. # ts0 ≤ n ∧ ¬ # ts0 + n1 < n → ltr((ts0 + ts1)[n].begin, (ts0 + ts1)[n].end, r) ∧ nowrites(runevs((ts0 + ts1)[n].begin, (ts0 + ts1)[n].end, r)), ∀ n. ¬ # ts0 + n1 < n → (∃ σ. σ[0] = ∅ ∧ ⟦cp(firstn(n, ts0 + ts1), r) + runevs((ts0 + ts1)[n].begin, (ts0 + ts1)[n].end, r)⟧ (σ) ∧ (n = # ts0 + n1 → σ.last = mem)) ⊦ ts1 = [], ts0 + ts1 = [], ∃ σ. σ[0] = ∅ ∧ ⟦(cp(ts0, r) + cp(firstn(n2, restn(# ts0 + 1, ts0 + ts1) + (ts0 + ts1)[# ts0] '), r)) + runevs(m, m0, r)⟧ (σ) ∧ (n1 = n2 → σ.last = mem)
Used simplifier rules: s: ⊦ m < n + 1 ↔ ¬ n < m; from specification nat-basic2%a: ⊦ (r + r0) + r1 = r + r0 + r1; from specification list[run]%cp-append: ⊦ cp(ts0 + ts1, r) = cp(ts0, r) + cp(ts1, r); from specification transaction%firstn-app: ⊦ firstn(# ts + n, ts + ts0) = ts + firstn(n, ts0); from specification list-del[translist]%l: ⊦ # ts = 0 ↔ ts = []; from specification list-data[translist]%l-01: ⊦ m < m + n ↔ n ≠ 0; from specification nat-basic2%lep: ⊦ m ≤ m + n; from specification nat%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: ⊦ (ts + ts0) + ts1 = ts + ts0 + ts1; from specification list[translist]%len: ⊦ #(ts + ts0) = # ts + # ts0; from specification list[translist]