| # x ≤ n1 + m, m < # x, ∀ n0, m1, x. n0 - m1 < n1 → m1 ≤ n0 → x[m1 .. n0] = restn((m1 < # x ⊃ m1;# x), firstn((n0 < # x ⊃ n0 + 1;# x), x)) ⊦ restn((m + 1 < # x ⊃ m + 1;# x), x) = restn(m + 1, x), x = [], n1 = 0 |
Used simplifier rules: restN-all: ⊦ restn(# x, x) = []; from specification list-del%lels: ⊦ ¬ m < n ↔ n ≤ m; from specification nat%les: ⊦ m < n → (n ≤ m + 1 ↔ n = m + 1); from specification nat%a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic2%c: ⊦ m + n = n + m; from specification nat-basic2%rest-empty: ⊦ # x = n → restn(n, x) = []; from specification list-del