| # 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)
n ≠ 0, # y + 1 = n0 + n, ∀ x0, n0, n. # x0 < #(y + a ') → # x0 = n0 + n → # butlastn(n, x0) = n0 ⊦ # butlastn(n -1, y) = n0
Used simplifier rules: butlastN-base: ⊦ butlastn(0, x) = 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%len: ⊦ #(x + y) = # x + # y; from specification list%len-02: ⊦ # a ' = 0 +1; from specification list%a: ⊦ (x + y) + z = x + y + z; from specification list Used terms: a, y, n