| # x = n0 + n, n ≠ 0 → x = firstn(n0, x) + restn(n0, x) ⊦ ∃ y. x = y + lastn(n, x) ∧ # y = n0 |
# x = n0 + n, n ≠ 0 → x = firstn(n0, x) + restn(n0, x) ⊦ n = 0, ∃ y. x = y + lastn(n, x) ∧ # y = n0
Used simplifier rules: lastN-zero: ⊦ lastn(0, 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%app: ⊦ x + [] = x; from specification list%a: ⊦ (x + y) + z = x + y + z; from specification list Used formulas: n = 0