| n ≤ # x, x ≠ [] → x = y + a0 ', ∀ x0, n, a. # x0 < # x → n ≤ # x0 → butlastn(n, a ' + x0) = a ' + butlastn(n, x0) ⊦ butlastn(n, a ' + x) = a ' + butlastn(n, x) |
n ≤ # x, x ≠ [] → x = y + a0 ', ∀ x0, n, a. # x0 < # x → n ≤ # x0 → butlastn(n, a ' + x0) = a ' + butlastn(n, x0) ⊦ x = [], butlastn(n, a ' + x) = a ' + butlastn(n, x)
Used simplifier rules: butlastN-base: ⊦ butlastn(0, x) = x;%app: ⊦ x + [] = x; from specification list%a: ⊦ (x + y) + z = x + y + z; from specification list%size-01: ⊦ # [] = 0; from specification list-data%lez-01: ⊦ m ≤ 0 ↔ m = 0; from specification nat%c-04: ⊦ a ' = b ' ↔ a = b; from specification list Used formulas: x = []