| m < # x, ∀ n0, m1, x. n0 - m1 < 0 → m1 ≤ n0 → x[m1 .. n0] = restn((m1 < # x ⊃ m1;# x), firstn((n0 < # x ⊃ n0 + 1;# x), x)) ⊦ x = [], x[m] ' = restn(m, firstn(m, x) + x[m] ') |
⊦ m ≤ # x + # y ∧ # x ≤ m → restn(m, x + y) = restn(m - # x, y)
Used simplifier rules: firstn-length-03: ⊦ n < # x → # firstn(n, x) = n; from specification list-del%zero: ⊦ m - m = 0; from specification nat%restN-zero: ⊦ restn(0, x) = x; from specification list-del%c-04: ⊦ a ' = b ' ↔ a = b; from specification list%len-02: ⊦ # a ' = 0 +1; from specification list%lep: ⊦ m ≤ m + n; from specification nat%a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic2%c: ⊦ m + n = n + m; from specification nat-basic2%ler: ⊦ m ≤ m; from specification nat Used terms: x[m] ', firstn(m, x), m