| # x = n0 + n ⊦ restn(n, x) = firstn(n0, restn(n, x)) |
∀ x, n0. # x = n0 + n1 → restn(n1, x) = firstn(n0, restn(n1, x)), # x = n0 + n1 +1 ⊦ restn(n1 +1, x) = firstn(n0, restn(n1 +1, x))
Used simplifier rules: restN-zero: ⊦ restn(0, x) = x;%first-all-01: ⊦ # x = n → firstn(n, x) = x;%nat freely generated by 0, +1;;%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