| 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)) ⊦ x[m] ' + restn((m + 1 < # x ⊃ m + 1;# x), firstn((n1 + m < # x ⊃ (n1 + m) + 1;# x), x)) = restn(m, firstn((n1 + m < # x ⊃ (n1 + m) + 1;# x), x)), n1 = 0, x = [] |
⊦ n < # x → restn(n, x) = x[n] + restn(n +1, x)
m < # firstn((n1 + m < # x ⊃ (n1 + m) + 1;# x), x), 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)) ⊦ x[m] ' + restn((m + 1 < # x ⊃ m + 1;# x), firstn((n1 + m < # x ⊃ (n1 + m) + 1;# x), x)) = firstn((n1 + m < # x ⊃ (n1 + m) + 1;# x), x)[m] + restn(m +1, firstn((n1 + m < # x ⊃ (n1 + m) + 1;# x), x)), n1 = 0, x = []
Used simplifier rules: first-length: ⊦ # firstn(n, x) = n; from specification list-del%lels: ⊦ ¬ m < n ↔ n ≤ m; from specification nat%fle-01: ⊦ m ≤ n ∧ n < n0 → m < n0; (forward) from specification nat%ref-1: ⊦ ¬ n < n; from specification nat-basic1%succ-01: ⊦ m + 1 ≤ n ↔ m < n; from specification nat%l-02: ⊦ ¬ m + n < m; from specification nat-basic2%a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic2%c: ⊦ m + n = n + m; from specification nat-basic2 Used terms: firstn((n1 + m < # x ⊃ (n1 + m) + 1;# x), x), m