| ltrans(m, n, re.p, r), n2 < m0, tr(m0, n1, r + re '), ftr(m1, n2, r + re '), tr(m1, n2, r + re '), pos(m0 .. n1, ts0 + (m .. # r)' + restn(# ts0 + 1, ts0 + (m .. n)' + ts2)) ≤ pos(m1 .. n2, ts0 + (m .. # r)' + restn(# ts0 + 1, ts0 + (m .. n)' + ts2)), ∀ n0, n3. n0 .. n3 ∈ ts0 ∨ n0 .. n3 = m .. # r ∨ n0 .. n3 ∈ restn(# ts0 + 1, ts0 + (m .. n)' + ts2) ↔ tr(n0, n3, r + re '), ∀ m2, n0, m3, n3. <rt(m2 .. n0, m3 .. n3, r) → pos(m2 .. n0, ts0 + (m .. n)' + ts2) < pos(m3 .. n3, ts0 + (m .. n)' + ts2), <rt(m1 .. n2, m0 .. n1, r) → pos(m1 .. n2, ts0 + (m .. n)' + ts2) < pos(m0 .. n1, ts0 + (m .. n)' + ts2), m1 .. n2 ∈ ts0 ∨ m1 .. n2 ∈ restn(# ts0 + 1, ts0 + (m .. n)' + ts2), ∀ n0, n3. n0 .. n3 ∈ ts0 ∨ n0 .. n3 = m .. n ∨ n0 .. n3 ∈ ts2 ↔ tr(n0, n3, r) ⊦ m1 .. n2 = m .. # r, m0 = 0, re = Begin(re.p), m .. n ∈ ts0, m .. n ∈ ts2, dups(ts0 + ts2), dups(ts0 + restn(# ts0 + 1, ts0 + (m .. n)' + ts2)), m .. # r ∈ restn(# ts0 + 1, ts0 + (m .. n)' + ts2), m .. # r ∈ ts0, dups(ts0), dups(restn(# ts0 + 1, ts0 + (m .. n)' + ts2)), dups(ts2), (m1 .. n2 ∈ ts0 ∨ m1 .. n2 ∈ ts2) ∧ m .. n ≠ m1 .. n2 |
⊦ m ≤ # ts + # ts0 ∧ # ts ≤ m → restn(m, ts + ts0) = restn(m - # ts, ts0)
Used simplifier rules: len-05: ⊦ #(rg ' + ts) = (# ts)+1; from specification list[translist]%succ: ⊦ m +1 = m + 1; from specification nat-basic2%a: ⊦ (ts + ts0) + ts1 = ts + ts0 + ts1; from specification list[translist]%a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic2%lep-02: ⊦ m + n ≤ m + n0 ↔ n ≤ n0; from specification nat%lep: ⊦ m ≤ m + n; from specification nat%c: ⊦ m + n = n + m; from specification nat-basic2%eq-01: ⊦ m + n - m = n; from specification nat%rest-one: ⊦ restn(1, rg ' + ts) = ts; from specification list-del[translist]%inj: ⊦ m .. m0 = m1 .. m2 ↔ m = m1 ∧ m0 = m2; from specification range%lf-02: ⊦ m < n ∧ m = n0 → n0 < n; (forward) from specification nat-basic1%app-05-neg: ⊦ ¬ rg ∈ ts → pos(rg, ts + ts0) = pos(rg, ts0) + # ts; from specification list-del[translist]%ltrans-notaddr0ftr: ⊦ ltrans(m, m0, p, r) → (ftr(m, m0, r + r0) ↔ false); from specification transaction%a: ⊦ (r + r0) + r1 = r + r0 + r1; from specification list[run] Used terms: (m .. n)' + ts2, ts0, # ts0 + 1