| 1 + # x0 - n = 0, n ≤ 1 + # x0, ∀ n. n ≤ # x0 → butlastn(n, x0) = firstn(# x0 - n, x0) ⊦ butlastn(n, a ' + x0) = firstn(1 + # x0 - n, a ' + x0) |
∀ n. n ≤ # x0 → butlastn(n, x0) = firstn(# x0 - n, x0) ⊦ butlastn(# x0, (a ' + x0).butlast) = []
Used simplifier rules: firstN-zero: ⊦ firstn(0, x) = [];% ⊦ m ≤ m; (s)% ⊦ m + n ≤ m + n0 ↔ n ≤ n0; (s)% ⊦ m + n - n + n1 = m - n1; (s)%c: ⊦ m + n = n + m; from specification nat-basic%a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic% ⊦ butlastn(n + 1, x) = butlastn(n, x.butlast); (s)% ⊦ m ≤ n → (n - m = 0 ↔ n = m); (s)