| # x = n0 + n1 + 1, ∀ x, n0. # x = n0 + n1 → restn(n1, x) = firstn(n0, restn(n1, x)) ⊦ restn(n1, x.tail) = firstn(n0, restn(n1, x.tail)) |
# x = n0 + n1 + 1, x = a + y, ∀ x, n0. # x = n0 + n1 → restn(n1, x) = firstn(n0, restn(n1, x)) ⊦ restn(n1, y) = firstn(n0, restn(n1, y)), x = []
Used simplifier rules: ⊦ # [] = 0; (s)% ⊦ m + 1 ≠ 0; (s)%a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic%c: ⊦ m + n = n + m; from specification nat-basic%x ≠ [] ⊦ a = x.head ∧ y = x.tail ↔ x = a + y; (elim) Used terms: x, a, y