| ts = ts0 + ts1 ∧ # ts0 = n0 ∧ n0 ≤ # ts, (ts0 + (m .. # r)' + restn(n0 + 1, ts))[n1] = m0 .. m1, ts[n0] = m .. n, # ts = n2 + n0 + 1, n1 ≤ n0 + n2, transseq(r, ts), ltrans(m, n, re.p, r), n0 < # ts, read?(re) → mem(re.l) = re.v, write?(re) ∨ ¬ nowrites(runevs(m, n, r)) → # ts = n0 + 1, read?(re) → (∀ n1. n0 < n1 ∧ n1 < # ts → nowrites(runevs(ts[n1].begin, ts[n1].end, r))), ∀ n. n < # ts → (∃ σ. σ[0] = ∅ ∧ ⟦cp(firstn(n, ts), r) + runevs(ts[n].begin, ts[n].end, r)⟧ (σ) ∧ (n + 1 = # ts → σ.last = mem)) ⊦ ts = [], re = Begin(re.p), ∃ σ. σ[0] = ∅ ∧ ⟦cp(firstn(n1, ts0 + (m .. # r)' + restn(n0 + 1, ts)), r + re ') + runevs(m0, m1, r + re ')⟧ (σ) ∧ (# ts = 1 + n1 → σ.last = (write?(re) ⊃ mem(re.l; re.v);mem)) |
# ts1 = n2 + 1, (ts0 + ts1)[# ts0] = m .. n, (ts0 + (m .. # r)' + restn(# ts0 + 1, ts0 + ts1))[n1] = m0 .. m1, ltrans(m, n, re.p, r), transseq(r, ts0 + ts1), n1 ≤ # ts0 + n2, read?(re) → mem(re.l) = re.v, ∀ n0. ¬ # ts0 + n2 < n0 → (∃ σ. σ[0] = ∅ ∧ ⟦cp(firstn(n0, ts0 + ts1), r) + runevs((ts0 + ts1)[n0].begin, (ts0 + ts1)[n0].end, r)⟧ (σ) ∧ (n0 = # ts0 + n2 → σ.last = mem)), read?(re) → (∀ n0. # ts0 < n0 ∧ ¬ # ts0 + n2 < n0 → nowrites(runevs((ts0 + ts1)[n0].begin, (ts0 + ts1)[n0].end, r))), write?(re) ∨ ¬ nowrites(runevs(m, n, r)) → n2 = 0 ⊦ ts1 = [], re = Begin(re.p), ts0 + ts1 = [], ∃ σ. σ[0] = ∅ ∧ ⟦cp(firstn(n1, ts0 + (m .. # r)' + restn(# ts0 + 1, ts0 + ts1)), r + re ') + runevs(m0, m1, r + re ')⟧ (σ) ∧ (# ts0 + n2 = n1 → σ.last = (write?(re) ⊃ mem(re.l; re.v);mem))
Used simplifier rules: one-03: ⊦ 1 = m + 1 ↔ m = 0; from specification nat-basic2%s: ⊦ m < n + 1 ↔ ¬ n < m; from specification nat-basic2%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]