| ⊦ # σ < ⌜n⌝ , #((σ to n) + ⌜nf⌝ from n1 + n) = ∞ ∧ ((σ to n) + ⌜nf⌝ from n1 + n)[n0] = nf(n0 + n1), ⌜n1 + n⌝ < #((σ to n) + ⌜nf⌝ ) ∧ finp((σ to n) + ⌜nf⌝ ) |
⌜nf0⌝ = (σ to n) + ⌜nf⌝ ⊦ nf0(n0 + n1 + n) = nf(n0 + n1), # σ < ⌜n⌝
Used simplifier rules: size-append: ⊦ #(σ + σ1) = # σ + # σ1;%size-to: ¬ # σ < ⌜n⌝ ⊦ #(σ to n) = ⌜n⌝ ;%size-inf: ⊦ # ⌜nf⌝ = ∞;%append-assoc: ⊦ (σ + σ1) + σ2 = σ + σ1 + σ2;%from-inf: ⊦ ⌜nf⌝ from n = ⌜nf from n⌝ ;%sel-inf: ⊦ ⌜nf⌝ [n] = nf(n);%get-from-inf: ⊦ ((nf from n))(m) = nf(m + n);% ⊦ ⌜nf⌝ = ⌜nf0⌝ ↔ nf = nf0; (s)% ⊦ ¬ finp(⌜nf⌝ ); (s)%stream-inf-forward: ⊦ ¬ finp(σ) → (∃ nf. ⌜nf⌝ = σ); (forward) from specification stream-basic% ⊦ ⌜m⌝ ≠ ∞; (s)% ⊦ ⌜n⌝ + n∞1 = ∞ ↔ n∞1 = ∞; (s)% ⊦ n∞ < ∞ ↔ n∞ ≠ ∞; (s)%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% ⊦ ∞ + ⌜m⌝ = ∞; (s)%c: ⊦ m + n = n + m; from specification nat-basic%a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic% ⊦ ⌜m + n⌝ = ⌜m⌝ + ⌜n⌝ ; (s)