| # x0 + 1 = n0 + n, ∀ n0, n. # x0 = n0 + n → firstn(n0, x0) + restn(n0, x0) = x0 ⊦ firstn(n0, a ' + x0) + restn(n0, a ' + x0) = a ' + x0 |
⊦ n ≠ 0 → firstn(n, a ' + x) = a ' + firstn(n -1, x)
n0 ≠ 0, # x0 + 1 = n0 + n, ∀ n0, n. # x0 = n0 + n → firstn(n0, x0) + restn(n0, x0) = x0 ⊦ (a ' + firstn(n0 -1, x0)) + restn(n0, a ' + x0) = a ' + x0
Used simplifier rules: firstN-zero: ⊦ firstn(0, x) = [];%restN-zero: ⊦ restn(0, x) = x;%add-base: ⊦ n + 0 = n; from specification nat-basic2%a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic2%c: ⊦ m + n = n + m; from specification nat-basic2%Nil: ⊦ [] + x = x; from specification list%a: ⊦ (x + y) + z = x + y + z; from specification list%app-08: ⊦ a ' + x = a ' + y ↔ x = y; from specification list Used terms: x0, a, n0