| ¬ ¬ n2 + 1 < # ts0, (ts0 + ts1)[n2 + 1] = m0 .. n0, # ts0 = n2 + 2, ts0[n2] = m .. n ⊦ (2 + pos(m1 .. n1, ts1)) + n2 = pos(m1 .. n1, ts0 + ts1), m1 .. n1 = m .. n, ts0 + ts1 = [], m1 .. n1 = m0 .. n0, m1 .. n1 ∈ firstn(n2, ts0 + ts1), ∃ m2, n3. m2 < (n2 + 2) + # ts1 ∧ n3 < (n2 + 2) + # ts1 ∧ m2 ≠ n3 ∧ (ts0 + ts1)[m2] = (ts0 + ts1)[n3] |
# ts0 = n2 + 2, ts0[n2] = m .. n, ts0[n2 + 1] = m0 .. n0 ⊦ (2 + pos(m1 .. n1, ts1)) + n2 = pos(m1 .. n1, ts0 + ts1), m1 .. n1 = m .. n, ts0 + ts1 = [], m1 .. n1 = m0 .. n0, m1 .. n1 ∈ firstn(n2, ts0 + ts1), ∃ m2, n3. m2 < (n2 + 2) + # ts1 ∧ n3 < (n2 + 2) + # ts1 ∧ m2 ≠ n3 ∧ (ts0 + ts1)[m2] = (ts0 + ts1)[n3]
Used simplifier rules: l-06: ⊦ m = m0 + n0 ∧ n < n0 → m0 + n < m; from specification nat-basic2%c: ⊦ m + n = n + m; from specification nat-basic2%a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic2%a: ⊦ (ts + ts0) + ts1 = ts + ts0 + ts1; from specification list[translist]%get-append-less: ⊦ n < # ts → (ts + ts0)[n] = ts[n]; from specification list-del[translist]