| ts1 = rg + ts, m1 .. n1 ∈ ts1 ⊦ ts0 + ts1 = [], ts1 = [], (ts0 + ts1)[# ts0] = m1 .. n1, m1 .. n1 = m0 .. n0, pos(m1 .. n1, restn(# ts0 + 1, ts0 + ts1)) + 1 = pos(m1 .. n1, ts1), dups(ts0 + ts1), m1 .. n1 ∈ ts0, dups(ts0), dups(ts1) |
m1 .. n1 ∈ ts ⊦ m1 .. n1 = m0 .. n0, pos(m1 .. n1, restn(# ts0 + 1, ts0 + rg ' + ts)) = pos(m1 .. n1, ts), rg ∈ ts0, rg ∈ ts, dups(ts0 + ts), m1 .. n1 ∈ ts0, dups(ts0), dups(ts)
Used simplifier rules: a: ⊦ ¬ dups(ts + ts0) → ¬ dups(ts) ∧ ¬ dups(ts0); (forward) from specification list-dup[translist]%c-02: ⊦ ¬ rg ∈ ts → (dups(rg ' + ts) ↔ dups(ts)); from specification list-dup[translist]%f-01: ⊦ dups(ts + rg ' + ts0) ↔ rg ∈ ts ∨ rg ∈ ts0 ∨ dups(ts + ts0); from specification list-dup[translist]%in-01: ⊦ rg ≠ rg0 → (rg ∈ rg0 ' + ts ↔ rg ∈ ts); from specification list[translist]%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%pos-n: ⊦ rg ≠ rg0 → pos(rg, rg0 ' + ts) = pos(rg, ts) + 1; from specification list-del[translist]%get-app: ⊦ (ts + rg ' + ts0)[# ts] = rg; from specification list-del[translist]%e-01: ⊦ rg ' + ts ≠ []; from specification list[translist]%e-03: ⊦ ts + rg ' + ts0 ≠ []; from specification list[translist]%a: ⊦ (ts + ts0) + ts1 = ts + ts0 + ts1; from specification list[translist]%c: ⊦ rg + ts = rg ' + ts; from specification list[translist]