| ¬ m0 .. n0 ∈ restn(n + 1, ts), ts[n] = m .. n1, m0 .. n0 ∈ ts, n < # ts ⊦ ts = [], pos(m0 .. n0, restn(n + 1, ts) + (m .. n1)') + n = (m0 .. n0 = m .. n1 ⊃ # ts - 1;pos(m0 .. n0, ts) - (n < pos(m0 .. n0, ts) ⊃ 1;0)), dups(ts), m0 .. n0 ∈ firstn(n, ts) |
ts[n] = m .. n1, m0 .. n0 ∈ ts, n < # ts ⊦ ts = [], # ts + pos(m0 .. n0, (m .. n1)') = 1 + (m0 .. n0 = m .. n1 ⊃ # ts - 1;pos(m0 .. n0, ts) - (n < pos(m0 .. n0, ts) ⊃ 1;0)), dups(ts), m0 .. n0 ∈ firstn(n, ts), m0 .. n0 ∈ restn(n + 1, ts)
Used simplifier rules: eq-01: ⊦ m + n = m + n0 ↔ n = n0; from specification nat-basic2%eq-02: n ≤ m ⊦ (m - n) + n0 = n1 ↔ m + n0 = n + n1; from specification nat%a: ⊦ (ts + ts0) + ts1 = ts + ts0 + ts1; from specification list[translist]%rest-len: n ≤ # ts ⊦ # restn(n, ts) = # ts - n; from specification list-del[translist]%c: ⊦ m + n = n + m; from specification nat-basic2%a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic2%ls-le-simp: ⊦ m < n → (n ≤ m ↔ false); from specification nat%lels: ⊦ ¬ m < n ↔ n ≤ m; from specification nat%succ-01: ⊦ m + 1 ≤ n ↔ m < n; from specification nat%app-05-neg: ⊦ ¬ rg ∈ ts → pos(rg, ts + ts0) = pos(rg, ts0) + # ts; from specification list-del[translist]