| # σσ = ∞, # σσ[0] = ⌜n⌝ , σσ[m0] = σσ[0] + ⌜nf to ii(m0)⌝ , ii(0) = 0, n2 < n0, n2 < ii(m0 + 1), n0 < ii(m0 + 1), ii(m0) < ii(m0 + 1), n2 + 1 < ii(m0 + 1), mon(σσ), ii(m0) ≤ n0, ∀ m, n. m ≤ n → ii(m) ≤ ii(n), ∀ n. σσ[n + 1] = σσ[n] + ⌜lf(n)⌝ , ∀ n. ii(n + 1) = ii(n) + # lf(n) ∧ (nf from ii(n)) to # lf(n) = lf(n) ⊦ ii(m0 + 1) + n = 0, (σσ[0] + ⌜nf⌝ )[n2 + n] = nf(n2), ii(m0 + 1) = 0, n0 = 0, σσ = [], ∃ n. # σσ[n] = ∞ |
⊦ ¬ ⌜m⌝ < # σ → (σ + σ1)[m] = σ1[m - (# σ).n]
Used simplifier rules: ⊦ ⌜nf⌝ [n] = nf(n); (s)% ⊦ ⌜m + n⌝ = ⌜m⌝ + ⌜n⌝ ; (s)%a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic%c: ⊦ m + n = n + m; from specification nat-basic% ⊦ ⌜m⌝ .n = m; (s)% ⊦ m + n - m = n; (s)% ⊦ ⌜m⌝ < # σ → (σ + σ1)[m] = σ[m]; (s)%append-assoc: ⊦ (σ + σ1) + σ2 = σ + σ1 + σ2; from specification stream% ⊦ ⌜n⌝ + ⌜m⌝ < ⌜n0⌝ ↔ n + m < n0; (s)% ⊦ ¬ m + n < m; (s)%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 Used terms: n2 + n, ⌜nf⌝ , σσ[0]