| 0 < n, n + n0 + n1 ≤ # x0 + 1, ∀ n, n0, n1. n + n0 + n1 ≤ # x0 → firstn(n0, restn(n, x0)) + firstn(n1, restn(n + n0, x0)) = firstn(n0 + n1, restn(n, x0)) ⊦ firstn(n0, restn(n -1, (a ' + x0).rest)) + firstn(n1, restn(n + n0, a ' + x0)) = firstn(n0 + n1, restn(n -1, (a ' + x0).rest)) |
n + n0 + n1 ≤ # x0 + 1, ∀ n, n0, n1. n + n0 + n1 ≤ # x0 → firstn(n0, restn(n, x0)) + firstn(n1, restn(n + n0, x0)) = firstn(n0 + n1, restn(n, x0)) ⊦ firstn(n0, restn(n - 1, x0)) + firstn(n1, restn(n + n0, a ' + x0)) = firstn(n0 + n1, restn(n - 1, x0)), n = 0
Used simplifier rules: zero: ⊦ 0 < m ↔ m ≠ 0; from specification nat-basic1%a: ⊦ (x + y) + z = x + y + z; from specification list%c-07: ⊦ (a ' + x).rest = x; from specification list%pred-03: ⊦ n -1 = n - 1; from specification nat