| n ≤ # x, x ≠ [] → x = y + a ', ∀ x0, n. # x0 < # x → n ≤ # x0 → butlastn(n, x0) + lastn(n, x0) = x0 ⊦ butlastn(n, x) + lastn(n, x) = x |
n ≤ # x, x ≠ [] → x = y + a ', ∀ x0, n. # x0 < # x → n ≤ # x0 → butlastn(n, x0) + lastn(n, x0) = x0 ⊦ butlastn(n, x) + lastn(n, x) = x, x = []
Used simplifier rules: lastN-zero: ⊦ lastn(0, x) = [];% ⊦ # [] = 0; (s)% ⊦ m ≤ 0 ↔ m = 0; (s)% ⊦ butlastn(0, x) = x; (s)% ⊦ [] + x = x; (s)%a: ⊦ (x + y) + z = x + y + z; from specification list Used formulas: x = []