| # x = n2 + n1 ⊦ n2 = 0, x = [], n2 + n1 = 0, # σ < ⌜n⌝ , #((σ to n) + ⌜x⌝ from n1 + n) = ⌜n2⌝ ∧ (n0 < n2 → ((σ to n) + ⌜x⌝ from n1 + n)[n0] = x[n1 + n0]) |
⊦ ⌜n⌝ < # σ ∧ finp(σ) → #(σ from n) = ⌜(# σ).n - n⌝
⌜n1 + n⌝ < #((σ to n) + ⌜x⌝ ) ∧ finp((σ to n) + ⌜x⌝ ), # x = n2 + n1 ⊦ n2 = 0, x = [], n2 + n1 = 0, # σ < ⌜n⌝ , ⌜(#((σ to n) + ⌜x⌝ )).n - n1 + n⌝ = ⌜n2⌝ ∧ (n0 < n2 → ((σ to n) + ⌜x⌝ from n1 + n)[n0] = x[n1 + n0])
Used simplifier rules: size-append: ⊦ #(σ + σ1) = # σ + # σ1;%size-fin: ⊦ # ⌜x⌝ = ⌜# x⌝ ;%size-to: ¬ # σ < ⌜n⌝ ⊦ #(σ to n) = ⌜n⌝ ;%append-assoc: ⊦ (σ + σ1) + σ2 = σ + σ1 + σ2;%neq-fin-inf-03: ⊦ σ0 + ⌜x⌝ = ⌜nf0⌝ ↔ σ0 = ⌜nf0⌝ ;%inf-not-to: ⊦ ⌜nf⌝ ≠ σ to n;%add-fin: ⊦ ⌜m + n⌝ = ⌜m⌝ + ⌜n⌝ ; from specification nat-inf%a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic2%c: ⊦ m + n = n + m; from specification nat-basic2%ls-natinf-to-nat-2-2: ⊦ ⌜n⌝ + ⌜m⌝ < ⌜n0⌝ + ⌜n1⌝ ↔ n + m < n0 + n1; from specification nat-inf%l: ⊦ m + n < m + n0 ↔ n < n0; from specification nat-basic2%add-assoc: ⊦ (n∞ + n∞1) + n∞2 = n∞ + n∞1 + n∞2; from specification nat-inf%add-comm: ⊦ n∞1 + n∞2 = n∞2 + n∞1; from specification nat-inf%l-01: ⊦ m < m + n ↔ n ≠ 0; from specification nat-basic2%stream-inf-forward: ⊦ ¬ finp(σ) → (∃ nf. ⌜nf⌝ = σ); (forward) from specification stream-basic Used terms: n1 + n, (σ to n) + ⌜x⌝