| # 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) = [];% ⊦ n + 0 = n; (s)%a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic%c: ⊦ m + n = n + m; from specification nat-basic% ⊦ x + [] = x; (s)%a: ⊦ (x + y) + z = x + y + z; from specification list Used formulas: n = 0