| # y + 1 = n0 + n, ∀ x0, n0, n. # x0 < #(y + a ') → # x0 = n0 + n → # butlastn(n, x0) = n0 ⊦ # butlastn(n, y + a ') = n0 |
⊦ n ≠ 0 → butlastn(n, x + a ') = butlastn(n -1, x)
# y + 1 = n0 + n, ∀ x0, n0, n. # x0 < #(y + a ') → # x0 = n0 + n → # butlastn(n, x0) = n0 ⊦ # butlastn(n -1, y) = n0, n = 0
Used simplifier rules: butlastN-base: ⊦ butlastn(0, x) = x;% ⊦ 0 + m = m; (s)%a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic%c: ⊦ m + n = n + m; from specification nat-basic% ⊦ #(x + y) = # x + # y; (s)% ⊦ # a ' = 0 +1; (s)%a: ⊦ (x + y) + z = x + y + z; from specification list Used terms: a, y, n