| ts[n2 + 1] = m0 .. n0, ts[n2] = m .. n, n2 + 1 < # ts ⊦ m1 .. n1 = m0 .. n0, ts = [], m1 .. n1 = m .. n, (2 + pos(m1 .. n1, restn(n2 + 2, ts))) + n2 = pos(m1 .. n1, ts), m1 .. n1 ∈ firstn(n2, ts), ∃ m, n. m < # ts ∧ n < # ts ∧ m ≠ n ∧ ts[m] = ts[n] |
ts = ts0 + ts1 ∧ # ts0 = n2 + 2 ∧ n2 + 2 ≤ # ts, ts[n2 + 1] = m0 .. n0, ts[n2] = m .. n, n2 + 1 < # ts ⊦ m1 .. n1 = m0 .. n0, ts = [], m1 .. n1 = m .. n, (2 + pos(m1 .. n1, ts1)) + n2 = pos(m1 .. n1, ts), m1 .. n1 ∈ firstn(n2, ts), ∃ m, n. m < # ts ∧ n < # ts ∧ m ≠ n ∧ ts[m] = ts[n]
Used simplifier rules: lels-01: ⊦ ¬ m ≤ n ↔ n < m; from specification nat%f: ⊦ m < n → n ≠ 0; (forward) from specification nat-basic1%lf: ⊦ m < n ∧ n < n0 → m +1 < n0; (forward) from specification nat-basic1%trans-1: ⊦ n < n0 ∧ n0 < n1 → n < n1; (forward) from specification nat-basic1%add-num-03: n < n0 ⊦ (* n) ≠ m0 + (* n0); from specification nat%a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic2%c: ⊦ m + n = n + m; from specification nat-basic2%succ: ⊦ m +1 = m + 1; from specification nat-basic2%l: ⊦ m + n < m + n0 ↔ n < n0; from specification nat-basic2%ref-1: ⊦ ¬ n < n; from specification nat-basic1%⊦ n ≤ # ts → ( ts0 = firstn(n, ts) ∧ ts1 = restn(n, ts) ↔ ts = ts0 + ts1 ∧ # ts0 = n); (elim) Used terms: ts, n2 + 2, ts0, ts1