| 2 + m0 + n0 + m0 ≤ # x, ∀ n0, x. m0 + n0 + m0 ≤ # x → restn(m0, firstn(n0 + m0, x)) = firstn(n0, restn(m0, x)) ⊦ restn(m0, firstn(n0 + m0, x.rest)) = firstn(n0, restn(m0, x.rest)) |
x = a + y ∧ x ≠ [], 2 + m0 + n0 + m0 ≤ # x, ∀ n0, x. m0 + n0 + m0 ≤ # x → restn(m0, firstn(n0 + m0, x)) = firstn(n0, restn(m0, x)) ⊦ restn(m0, firstn(n0 + m0, y)) = firstn(n0, restn(m0, y))
Used simplifier rules: size-01: ⊦ # [] = 0; from specification list-data%le-num-06: n0 < n ⊦ ¬ m + (* n) ≤ (* n0); from specification nat%a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic2%c: ⊦ m + n = n + m; from specification nat-basic2%x ≠ [] ⊦ a = x.first ∧ y = x.rest ↔ x = a + y; (elim) Used terms: x, a, y