| # x = n0 + n, x = firstn(n0, x) + restn(n0, x) ⊦ n = 0, x = firstn(n0, x) + lastn(n, x) ∧ # firstn(n0, x) = n0, ∃ y. x = y + lastn(n, x) ∧ # y = n0 |
n ≤ # x ⊦ lastn(n, x) = restn(# x - n, x)
Used simplifier rules: first-length: ⊦ # firstn(n, x) = n;%first-length: ⊦ # firstn(n, x) = n;%eq-01: ⊦ m + n - 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%lels-01: ⊦ ¬ m ≤ n ↔ n < m; from specification nat%f: ⊦ m < n → n ≠ 0; (forward) from specification nat-basic1%lf-02: ⊦ m < n ∧ m = n0 → n0 < n; (forward) from specification nat-basic1%l-02: ⊦ ¬ m + n < m; from specification nat-basic2 Used terms: x, n