| n0 = m0 + 1, n0 + n1 = m + 1, m ≤ # x0, ∀ n, n0, n1. n + n0 + n1 ≤ # x0 → firstn(n0, restn(n, x0)) + firstn(n1, restn(n + n0, x0)) = firstn(n0 + n1, restn(n, x0)) ⊦ n0 = 0, firstn(m0, x0) + firstn(n1, restn(n0, a ' + x0)) = firstn(m, x0) |
m0 + n1 ≤ # x0, ∀ 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(m0, x0) + firstn(n1, restn(m0, x0)) = firstn(m0 + n1, x0)
Used simplifier rules: restN-rec: ⊦ restn(n + 1, x) = restn(n, x.rest);%a: ⊦ (x + y) + z = x + y + z; from specification list%c-07: ⊦ (a ' + x).rest = x; from specification list%oz: ⊦ m + 1 ≠ 0; from specification nat-basic2%c: ⊦ m + n = n + m; from specification nat-basic2%a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic2%eq-01: ⊦ m + n = m + n0 ↔ n = n0; from specification nat-basic2