| # x = n0 + n ⊦ lastn(n, x) = restn(n0, x) |
∀ x, n0. # x = n0 + n1 → lastn(n1, x) = restn(n0, x), # x = n0 + n1 +1 ⊦ lastn(n1 +1, x) = restn(n0, x)
Used simplifier rules: lastN-zero: ⊦ lastn(0, x) = [];%rest-empty: ⊦ # x = n → restn(n, 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