| ⌜n1⌝ < # σ0 ∧ finp(σ0) ⊦ # σ0 < ⌜n1⌝ , # σ < ⌜n⌝ , #((σ to n) + σ0 from n1 + n) = ⌜(# σ0).n - n1⌝ ∧ (⌜n0⌝ < #((σ to n) + σ0 from n1 + n) → ((σ to n) + σ0 from n1 + n)[n0] = (σ0 from n1)[n0]) |
n1 < # x ⊦ x = [], # σ < ⌜n⌝ , #((σ to n) + ⌜x⌝ from n1 + n) = ⌜# x - n1⌝ ∧ (n1 + n0 < # x → ((σ to n) + ⌜x⌝ from n1 + n)[n0] = x[n1 + n0])
Used simplifier rules: size-append: ⊦ #(σ + σ1) = # σ + # σ1;%size-to: ¬ # σ < ⌜n⌝ ⊦ #(σ to n) = ⌜n⌝ ;%append-assoc: ⊦ (σ + σ1) + σ2 = σ + σ1 + σ2;%less-size-from: ⌜n⌝ < # σ ⊦ ⌜n0⌝ < #(σ from n) ↔ ⌜n0 + n⌝ < # σ;%get-from: ⊦ ⌜n⌝ + ⌜m⌝ < # σ → (σ from n)[m] = σ[n + m];%size-fin: ⊦ # ⌜x⌝ = ⌜# x⌝ ;%sel-fin: ⊦ ⌜x⌝ [n] = x[n];%l: ⊦ # x = 0 ↔ x = []; from specification list-data%f: ⊦ m < n → n ≠ 0; (forward) from specification nat-basic1%ls-natinf-to-nat-2-1: ⊦ ⌜n⌝ + ⌜m⌝ < ⌜n0⌝ ↔ n + m < n0; from specification nat-inf%sel: ⊦ ⌜m⌝ .n = m; from specification nat-inf-basic%test-02: ⊦ finp(⌜x⌝ ); from specification stream-basic%less-fin: ⊦ ⌜m⌝ < ⌜n⌝ ↔ m < n; from specification nat-inf%stream-fin-forward: ⊦ finp(σ) → (∃ x. ⌜x⌝ = σ); (forward) from specification stream-basic%add-comm: ⊦ n∞1 + n∞2 = n∞2 + n∞1; from specification nat-inf%add-assoc: ⊦ (n∞ + n∞1) + n∞2 = n∞ + n∞1 + n∞2; from specification nat-inf%add-ls-cancel-01: ⊦ ⌜n⌝ + n∞1 < ⌜n⌝ + n∞2 ↔ n∞1 < n∞2; from specification nat-inf%c: ⊦ m + n = n + m; from specification nat-basic2%a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic2%add-fin: ⊦ ⌜m + n⌝ = ⌜m⌝ + ⌜n⌝ ; from specification nat-inf%ls-le: ⊦ n∞ < n∞0 → ¬ n∞0 < n∞; from specification nat-inf