[Imprint][Data Privacy Statement][E-Mail]



View long theorem info. View the proof. Back to main index. View the specification. View theorem base summary, View theorem base listing, the used properties by spec, the dependency list, the symbol table,

Proof step 1 from proof twomon-limsize (conclusion) (back to tree)

mon(⌜σf⌝ ), mon(⌜αf⌝ ), ∀ n. # σf(n) = # αf(n) + ⌜m⌝ ⊦ # lim(⌜σf⌝ ) = # lim(⌜αf⌝ ) + ⌜m⌝

System applied rule normalize

And obtained the following new goals

Rule argument

Additional information

Proof step 2 from proof twomon-limsize (previous step) (back to tree)

# lim(⌜σf⌝ ) ≠ # lim(⌜αf⌝ ) + ⌜m⌝ , mon(⌜αf⌝ ), mon(⌜σf⌝ ), ∀ n. # σf(n) = # αf(n) + ⌜m⌝ ⊦

User applied rule apply lemma

And obtained the following new goals

Rule argument

spec: streamseq-mon-lim, name:lim-def, seq:⊦ mon(σσ) ∧ σσ ≠ [] → (∀ n. ⌜n⌝ < # σσ → σσ(n) ⊑ lim(σσ)) ∧ (∀ m. ¬ # lim(σσ) < ⌜m⌝ → (∃ n. ⌜n⌝ < # σσ ∧ ⌜lim(σσ).take(m)⌝ ⊑ σσ(n))), subst:[σσ] → [⌜αf⌝ ]; [A] → [A]

Additional information

Used terms: ⌜αf⌝

Proof step 3 from proof twomon-limsize (previous step) (back to tree)

⊦ mon(σσ) ∧ σσ ≠ [] → (∀ n. ⌜n⌝ < # σσ → σσ(n) ⊑ lim(σσ)) ∧ (∀ m. ¬ # lim(σσ) < ⌜m⌝ → (∃ n. ⌜n⌝ < # σσ ∧ ⌜lim(σσ).take(m)⌝ ⊑ σσ(n)))

A spec-lemma

Proof step 4 from proof twomon-limsize (previous step) (back to tree)

# lim(⌜σf⌝ ) ≠ # lim(⌜αf⌝ ) + ⌜m⌝ , mon(⌜σf⌝ ), mon(⌜αf⌝ ), mon(⌜αf⌝ ) ∧ ⌜αf⌝ ≠ [] → (∀ n. ⌜n⌝ < # ⌜αf⌝ → ⌜αf⌝ (n) ⊑ lim(⌜αf⌝ )) ∧ (∀ m. ¬ # lim(⌜αf⌝ ) < ⌜m⌝ → (∃ n. ⌜n⌝ < # ⌜αf⌝ ∧ ⌜lim(⌜αf⌝ ).take(m)⌝ ⊑ ⌜αf⌝ (n))), ∀ n. # σf(n) = # αf(n) + ⌜m⌝ ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: ⊦ ⌜nf⌝ (n) = nf(n); (s) ⊦ ⌜m⌝ < ∞; (s) ⊦ # ⌜nf⌝ = ∞; (s) ⊦ [] ≠ ⌜nf⌝ ; (s)

Proof step 5 from proof twomon-limsize (previous step) (back to tree)

# lim(⌜σf⌝ ) ≠ # lim(⌜αf⌝ ) + ⌜m⌝ , mon(⌜αf⌝ ), mon(⌜σf⌝ ), ∀ n. # σf(n) = # αf(n) + ⌜m⌝ , ∀ n. αf(n) ⊑ lim(⌜αf⌝ ), ∀ m0. ¬ # lim(⌜αf⌝ ) < ⌜m0⌝ → (∃ n. ⌜lim(⌜αf⌝ ).take(m0)⌝ ⊑ αf(n)) ⊦

User applied rule apply lemma

And obtained the following new goals

Rule argument

spec: streamseq-mon-lim, name:lim-def, seq:⊦ mon(σσ) ∧ σσ ≠ [] → (∀ n. ⌜n⌝ < # σσ → σσ(n) ⊑ lim(σσ)) ∧ (∀ m. ¬ # lim(σσ) < ⌜m⌝ → (∃ n. ⌜n⌝ < # σσ ∧ ⌜lim(σσ).take(m)⌝ ⊑ σσ(n))), subst:[σσ] → [⌜σf⌝ ]; [A] → [S]

Additional information

Used terms: ⌜σf⌝

Proof step 6 from proof twomon-limsize (previous step) (back to tree)

⊦ mon(σσ) ∧ σσ ≠ [] → (∀ n. ⌜n⌝ < # σσ → σσ(n) ⊑ lim(σσ)) ∧ (∀ m. ¬ # lim(σσ) < ⌜m⌝ → (∃ n. ⌜n⌝ < # σσ ∧ ⌜lim(σσ).take(m)⌝ ⊑ σσ(n)))

A spec-lemma

Proof step 7 from proof twomon-limsize (previous step) (back to tree)

# lim(⌜σf⌝ ) ≠ # lim(⌜αf⌝ ) + ⌜m⌝ , mon(⌜σf⌝ ), mon(⌜αf⌝ ), mon(⌜σf⌝ ) ∧ ⌜σf⌝ ≠ [] → (∀ n. ⌜n⌝ < # ⌜σf⌝ → ⌜σf⌝ (n) ⊑ lim(⌜σf⌝ )) ∧ (∀ m. ¬ # lim(⌜σf⌝ ) < ⌜m⌝ → (∃ n. ⌜n⌝ < # ⌜σf⌝ ∧ ⌜lim(⌜σf⌝ ).take(m)⌝ ⊑ ⌜σf⌝ (n))), ∀ m0. ¬ # lim(⌜αf⌝ ) < ⌜m0⌝ → (∃ n. ⌜lim(⌜αf⌝ ).take(m0)⌝ ⊑ αf(n)), ∀ n. αf(n) ⊑ lim(⌜αf⌝ ), ∀ n. # σf(n) = # αf(n) + ⌜m⌝ ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: ⊦ ⌜nf⌝ (n) = nf(n); (s) ⊦ ⌜m⌝ < ∞; (s) ⊦ # ⌜nf⌝ = ∞; (s) ⊦ [] ≠ ⌜nf⌝ ; (s)

Proof step 8 from proof twomon-limsize (previous step) (back to tree)

# lim(⌜σf⌝ ) ≠ # lim(⌜αf⌝ ) + ⌜m⌝ , mon(⌜αf⌝ ), mon(⌜σf⌝ ), ∀ n. # σf(n) = # αf(n) + ⌜m⌝ , ∀ n. αf(n) ⊑ lim(⌜αf⌝ ), ∀ m0. ¬ # lim(⌜αf⌝ ) < ⌜m0⌝ → (∃ n. ⌜lim(⌜αf⌝ ).take(m0)⌝ ⊑ αf(n)), ∀ n. σf(n) ⊑ lim(⌜σf⌝ ), ∀ m0. ¬ # lim(⌜σf⌝ ) < ⌜m0⌝ → (∃ n. ⌜lim(⌜σf⌝ ).take(m0)⌝ ⊑ σf(n)) ⊦

User applied rule constructor cut

And obtained the following new goals

Rule argument

term: lim(⌜αf⌝ )

Additional information

Used simplifier rules: Stream[A] freely generated by ⌝, ⌝;

Proof step 9 from proof twomon-limsize (previous step) (back to tree)

lim(⌜αf⌝ ) = ⌜al⌝ , # lim(⌜σf⌝ ) ≠ # lim(⌜αf⌝ ) + ⌜m⌝ , mon(⌜σf⌝ ), mon(⌜αf⌝ ), ∀ m0. ¬ # lim(⌜σf⌝ ) < ⌜m0⌝ → (∃ n. ⌜lim(⌜σf⌝ ).take(m0)⌝ ⊑ σf(n)), ∀ n. σf(n) ⊑ lim(⌜σf⌝ ), ∀ m0. ¬ # lim(⌜αf⌝ ) < ⌜m0⌝ → (∃ n. ⌜lim(⌜αf⌝ ).take(m0)⌝ ⊑ αf(n)), ∀ n. αf(n) ⊑ lim(⌜αf⌝ ), ∀ n. # σf(n) = # αf(n) + ⌜m⌝ ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: ⊦ ⌜x⌝ .take(n) = x.take(n); (s) ⊦ ⌜m⌝ < ⌜n⌝ ↔ m < n; (s) ⊦ # ⌜x⌝ = ⌜# x⌝ ; (s)

Proof step 10 from proof twomon-limsize (previous step) (back to tree)

lim(⌜αf⌝ ) = ⌜al⌝ , # lim(⌜σf⌝ ) ≠ ⌜# al⌝ + ⌜m⌝ , mon(⌜σf⌝ ), mon(⌜αf⌝ ), ∀ m0. ¬ # lim(⌜σf⌝ ) < ⌜m0⌝ → (∃ n. ⌜lim(⌜σf⌝ ).take(m0)⌝ ⊑ σf(n)), ∀ n. σf(n) ⊑ lim(⌜σf⌝ ), ∀ n. αf(n) ⊑ ⌜al⌝ , ∀ n. # σf(n) = # αf(n) + ⌜m⌝ , ∀ m0. ¬ # al < m0 → (∃ n. ⌜al.take(m0)⌝ ⊑ αf(n)) ⊦

User applied rule constructor cut

And obtained the following new goals

Rule argument

term: lim(⌜σf⌝ )

Additional information

Used simplifier rules: Stream[A] freely generated by ⌝, ⌝;

Proof step 11 from proof twomon-limsize (previous step) (back to tree)

lim(⌜αf⌝ ) = ⌜al⌝ , lim(⌜σf⌝ ) = ⌜sl⌝ , # lim(⌜σf⌝ ) ≠ ⌜# al⌝ + ⌜m⌝ , mon(⌜αf⌝ ), mon(⌜σf⌝ ), ∀ m0. ¬ # al < m0 → (∃ n. ⌜al.take(m0)⌝ ⊑ αf(n)), ∀ n. # σf(n) = # αf(n) + ⌜m⌝ , ∀ n. αf(n) ⊑ ⌜al⌝ , ∀ n. σf(n) ⊑ lim(⌜σf⌝ ), ∀ m0. ¬ # lim(⌜σf⌝ ) < ⌜m0⌝ → (∃ n. ⌜lim(⌜σf⌝ ).take(m0)⌝ ⊑ σf(n)) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: ⊦ ⌜x⌝ .take(n) = x.take(n); (s) ⊦ ⌜m⌝ < ⌜n⌝ ↔ m < n; (s) ⊦ # ⌜x⌝ = ⌜# x⌝ ; (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 ⊦ ⌜n⌝ + ⌜m⌝ = ⌜n0⌝ ↔ n + m = n0; (s)

Proof step 12 from proof twomon-limsize (previous step) (back to tree)

lim(⌜αf⌝ ) = ⌜al⌝ , lim(⌜σf⌝ ) = ⌜sl⌝ , # al + m ≠ # sl, mon(⌜αf⌝ ), mon(⌜σf⌝ ), ∀ m0. ¬ # al < m0 → (∃ n. ⌜al.take(m0)⌝ ⊑ αf(n)), ∀ n. # σf(n) = # αf(n) + ⌜m⌝ , ∀ n. αf(n) ⊑ ⌜al⌝ , ∀ n. σf(n) ⊑ ⌜sl⌝ , ∀ m0. ¬ # sl < m0 → (∃ n. ⌜sl.take(m0)⌝ ⊑ σf(n)) ⊦

User applied rule cut formula

And obtained the following new goals

Rule argument

fma: # al + m < # sl

Additional information

Used formulas: # al + m < # sl

Proof step 13 from proof twomon-limsize (previous step) (back to tree)

lim(⌜σf⌝ ) = ⌜sl⌝ , lim(⌜αf⌝ ) = ⌜al⌝ , # al + m ≠ # sl, # al + m < # sl, mon(⌜σf⌝ ), mon(⌜αf⌝ ), ∀ m0. ¬ # sl < m0 → (∃ n. ⌜sl.take(m0)⌝ ⊑ σf(n)), ∀ n. σf(n) ⊑ ⌜sl⌝ , ∀ n. αf(n) ⊑ ⌜al⌝ , ∀ n. # σf(n) = # αf(n) + ⌜m⌝ , ∀ m0. ¬ # al < m0 → (∃ n. ⌜al.take(m0)⌝ ⊑ αf(n)) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: ⊦ # x = 0 ↔ x = []; (s) f: ⊦ m < n → n ≠ 0; (forward) from specification nat-basic

Proof step 14 from proof twomon-limsize (previous step) (back to tree)

lim(⌜σf⌝ ) = ⌜sl⌝ , lim(⌜αf⌝ ) = ⌜al⌝ , # al + m ≠ # sl, sl ≠ [], # al + m < # sl, mon(⌜σf⌝ ), mon(⌜αf⌝ ), ∀ m0. ¬ # sl < m0 → (∃ n. ⌜sl.take(m0)⌝ ⊑ σf(n)), ∀ n. σf(n) ⊑ ⌜sl⌝ , ∀ n. αf(n) ⊑ ⌜al⌝ , ∀ n. # σf(n) = # αf(n) + ⌜m⌝ , ∀ m0. ¬ # al < m0 → (∃ n. ⌜al.take(m0)⌝ ⊑ αf(n)) ⊦

User applied rule all left

And obtained the following new goals

Rule argument

pos: left 8 terms: # sl abort: F discard: T computed: T

Additional information

Used terms: # sl

Proof step 15 from proof twomon-limsize (previous step) (back to tree)

lim(⌜αf⌝ ) = ⌜al⌝ , lim(⌜σf⌝ ) = ⌜sl⌝ , # al + m ≠ # sl, sl ≠ [], # al + m < # sl, mon(⌜αf⌝ ), mon(⌜σf⌝ ), ¬ # sl < # sl → (∃ n. ⌜sl.take(# sl)⌝ ⊑ σf(n)), ∀ m0. ¬ # al < m0 → (∃ n. ⌜al.take(m0)⌝ ⊑ αf(n)), ∀ n. # σf(n) = # αf(n) + ⌜m⌝ , ∀ n. αf(n) ⊑ ⌜al⌝ , ∀ n. σf(n) ⊑ ⌜sl⌝ ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: ⊦ # x = n → x.take(n) = x; (s) ⊦ ¬ n < n; (s)

Proof step 16 from proof twomon-limsize (previous step) (back to tree)

lim(⌜σf⌝ ) = ⌜sl⌝ , lim(⌜αf⌝ ) = ⌜al⌝ , # al + m ≠ # sl, sl ≠ [], # al + m < # sl, mon(⌜σf⌝ ), mon(⌜αf⌝ ), ⌜sl⌝ ⊑ σf(n), ∀ n. σf(n) ⊑ ⌜sl⌝ , ∀ n. αf(n) ⊑ ⌜al⌝ , ∀ n. # σf(n) = # αf(n) + ⌜m⌝ , ∀ m0. ¬ # al < m0 → (∃ n. ⌜al.take(m0)⌝ ⊑ αf(n)) ⊦

User applied rule all left

And obtained the following new goals

Rule argument

pos: left 9 terms: n abort: F discard: T computed: F

Additional information

Used terms: n

Proof step 17 from proof twomon-limsize (previous step) (back to tree)

lim(⌜αf⌝ ) = ⌜al⌝ , lim(⌜σf⌝ ) = ⌜sl⌝ , # al + m ≠ # sl, sl ≠ [], # al + m < # sl, mon(⌜αf⌝ ), mon(⌜σf⌝ ), ⌜sl⌝ ⊑ σf(n), σf(n) ⊑ ⌜sl⌝ , ∀ m0. ¬ # al < m0 → (∃ n. ⌜al.take(m0)⌝ ⊑ αf(n)), ∀ n. # σf(n) = # αf(n) + ⌜m⌝ , ∀ n. αf(n) ⊑ ⌜al⌝ ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: ⊦ # x0 = # x1 → (x0 ⊑ x1 ↔ x0 = x1); (s) ⊦ ⌜x⌝ ⊑ ⌜y⌝ ↔ x ⊑ y; (s) ⊦ σ1 ⊑ σ2 → (σ2 ⊑ σ1 ↔ σ1 = σ2); (as)

Proof step 18 from proof twomon-limsize (previous step) (back to tree)

lim(⌜αf⌝ ) = ⌜al⌝ , lim(⌜σf⌝ ) = ⌜sl⌝ , ⌜sl⌝ = σf(n), # al + m ≠ # sl, sl ≠ [], # al + m < # sl, mon(⌜αf⌝ ), mon(⌜σf⌝ ), ∀ m0. ¬ # al < m0 → (∃ n. ⌜al.take(m0)⌝ ⊑ αf(n)), ∀ n. # σf(n) = # αf(n) + ⌜m⌝ , ∀ n. αf(n) ⊑ ⌜al⌝ ⊦

User applied rule all left

And obtained the following new goals

Rule argument

pos: left 10 terms: n abort: F discard: T computed: F

Additional information

Used terms: n

Proof step 19 from proof twomon-limsize (previous step) (back to tree)

# σf(n) = # αf(n) + ⌜m⌝ , lim(⌜σf⌝ ) = ⌜sl⌝ , lim(⌜αf⌝ ) = ⌜al⌝ , ⌜sl⌝ = σf(n), # al + m ≠ # sl, sl ≠ [], # al + m < # sl, mon(⌜σf⌝ ), mon(⌜αf⌝ ), ∀ n. αf(n) ⊑ ⌜al⌝ , ∀ m0. ¬ # al < m0 → (∃ n. ⌜al.take(m0)⌝ ⊑ αf(n)) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: ⊦ # ⌜x⌝ = ⌜# x⌝ ; (s)

Proof step 20 from proof twomon-limsize (previous step) (back to tree)

lim(⌜σf⌝ ) = ⌜sl⌝ , lim(⌜αf⌝ ) = ⌜al⌝ , ⌜sl⌝ = σf(n), ⌜# sl⌝ = # αf(n) + ⌜m⌝ , # al + m ≠ # sl, sl ≠ [], # al + m < # sl, mon(⌜σf⌝ ), mon(⌜αf⌝ ), ∀ n. αf(n) ⊑ ⌜al⌝ , ∀ m0. ¬ # al < m0 → (∃ n. ⌜al.take(m0)⌝ ⊑ αf(n)) ⊦

User applied rule all left

And obtained the following new goals

Rule argument

pos: left 10 terms: n abort: F discard: T computed: F

Additional information

Used terms: n

Proof step 21 from proof twomon-limsize (previous step) (back to tree)

lim(⌜αf⌝ ) = ⌜al⌝ , lim(⌜σf⌝ ) = ⌜sl⌝ , ⌜# sl⌝ = # αf(n) + ⌜m⌝ , ⌜sl⌝ = σf(n), # al + m ≠ # sl, sl ≠ [], # al + m < # sl, mon(⌜αf⌝ ), mon(⌜σf⌝ ), αf(n) ⊑ ⌜al⌝ , ∀ m0. ¬ # al < m0 → (∃ n. ⌜al.take(m0)⌝ ⊑ αf(n)) ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: stream, name:prefix-def, seq: ⊦ σ ⊑ σ0 ↔ (∃ σ1. σ + σ1 = σ0), subst:[σ, σ0] → [αf(n), ⌜al⌝ ]; [A] → [A], lhs:αf(n) ⊑ ⌜al⌝ , <all paths>

Additional information

Used simplifier rules: ⊦ σ0 + σ = ⌜z⌝ ↔ finp(σ0) ∧ finp(σ) ∧ σ0.l + σ.l = z; (as) append-assoc: ⊦ (σ + σ1) + σ2 = σ + σ1 + σ2; from specification stream ⊦ finp(σ) ↔ (∃ x. ⌜x⌝ = σ); (as) ⊦ ⌜x + y⌝ = ⌜x⌝ + ⌜y⌝ ; (s) ⊦ # ⌜x⌝ = ⌜# x⌝ ; (s) ⊦ ⌜n⌝ + ⌜m⌝ = ⌜n0⌝ ↔ n + m = n0; (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 ⊦ #(x + y) = # x + # y; (s) a: ⊦ (x + y) + z = x + y + z; from specification list ⊦ ⌜x⌝ .l = x; (s) lf-01: ⊦ m < n ∧ n = n0 → m < n0; (forward) from specification nat-basic ⊦ m + n < m + n0 ↔ n < n0; (s) ⊦ ¬ m + n < m; (s) a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic c: ⊦ m + n = n + m; from specification nat-basic Used terms: αf(n), ⌜al⌝

Proof step 22 from proof twomon-limsize (previous step) (back to tree)

⊦ σ ⊑ σ0 ↔ (∃ σ1. σ + σ1 = σ0)

A spec-lemma

Proof step 23 from proof twomon-limsize (previous step) (back to tree)

lim(⌜σf⌝ ) = ⌜sl⌝ , lim(⌜αf⌝ ) = ⌜al⌝ , # al + m ≠ # sl, mon(⌜σf⌝ ), mon(⌜αf⌝ ), ¬ # al + m < # sl, ∀ m0. ¬ # sl < m0 → (∃ n. ⌜sl.take(m0)⌝ ⊑ σf(n)), ∀ n. σf(n) ⊑ ⌜sl⌝ , ∀ n. αf(n) ⊑ ⌜al⌝ , ∀ n. # σf(n) = # αf(n) + ⌜m⌝ , ∀ m0. ¬ # al < m0 → (∃ n. ⌜al.take(m0)⌝ ⊑ αf(n)) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: ⊦ m < n → n ≠ 0; (s) f: ⊦ m < n → n ≠ 0; (forward) from specification nat-basic ⊦ m ≠ n → (m < n ↔ ¬ n < m); (ss)

Proof step 24 from proof twomon-limsize (previous step) (back to tree)

lim(⌜σf⌝ ) = ⌜sl⌝ , lim(⌜αf⌝ ) = ⌜al⌝ , # al + m ≠ # sl, # sl < # al + m, mon(⌜σf⌝ ), mon(⌜αf⌝ ), ∀ m0. ¬ # sl < m0 → (∃ n. ⌜sl.take(m0)⌝ ⊑ σf(n)), ∀ n. σf(n) ⊑ ⌜sl⌝ , ∀ n. αf(n) ⊑ ⌜al⌝ , ∀ n. # σf(n) = # αf(n) + ⌜m⌝ , ∀ m0. ¬ # al < m0 → (∃ n. ⌜al.take(m0)⌝ ⊑ αf(n)) ⊦

User applied rule all left

And obtained the following new goals

Rule argument

pos: left 11 terms: # al abort: F discard: T computed: T

Additional information

Used terms: # al

Proof step 25 from proof twomon-limsize (previous step) (back to tree)

lim(⌜αf⌝ ) = ⌜al⌝ , lim(⌜σf⌝ ) = ⌜sl⌝ , # al + m ≠ # sl, # sl < # al + m, mon(⌜αf⌝ ), mon(⌜σf⌝ ), ¬ # al < # al → (∃ n. ⌜al.take(# al)⌝ ⊑ αf(n)), ∀ n. # σf(n) = # αf(n) + ⌜m⌝ , ∀ n. αf(n) ⊑ ⌜al⌝ , ∀ n. σf(n) ⊑ ⌜sl⌝ , ∀ m0. ¬ # sl < m0 → (∃ n. ⌜sl.take(m0)⌝ ⊑ σf(n)) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: ⊦ # x = n → x.take(n) = x; (s) ⊦ ¬ n < n; (s)

Proof step 26 from proof twomon-limsize (previous step) (back to tree)

lim(⌜σf⌝ ) = ⌜sl⌝ , lim(⌜αf⌝ ) = ⌜al⌝ , # al + m ≠ # sl, # sl < # al + m, mon(⌜σf⌝ ), mon(⌜αf⌝ ), ⌜al⌝ ⊑ αf(n), ∀ m0. ¬ # sl < m0 → (∃ n. ⌜sl.take(m0)⌝ ⊑ σf(n)), ∀ n. σf(n) ⊑ ⌜sl⌝ , ∀ n. αf(n) ⊑ ⌜al⌝ , ∀ n. # σf(n) = # αf(n) + ⌜m⌝ ⊦

User applied rule all left

And obtained the following new goals

Rule argument

pos: left 10 terms: n abort: F discard: T computed: F

Additional information

Used terms: n

Proof step 27 from proof twomon-limsize (previous step) (back to tree)

lim(⌜αf⌝ ) = ⌜al⌝ , lim(⌜σf⌝ ) = ⌜sl⌝ , # al + m ≠ # sl, # sl < # al + m, mon(⌜αf⌝ ), mon(⌜σf⌝ ), ⌜al⌝ ⊑ αf(n), αf(n) ⊑ ⌜al⌝ , ∀ n. # σf(n) = # αf(n) + ⌜m⌝ , ∀ n. σf(n) ⊑ ⌜sl⌝ , ∀ m0. ¬ # sl < m0 → (∃ n. ⌜sl.take(m0)⌝ ⊑ σf(n)) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: ⊦ # x0 = # x1 → (x0 ⊑ x1 ↔ x0 = x1); (s) ⊦ ⌜x⌝ ⊑ ⌜y⌝ ↔ x ⊑ y; (s) ⊦ σ1 ⊑ σ2 → (σ2 ⊑ σ1 ↔ σ1 = σ2); (as)

Proof step 28 from proof twomon-limsize (previous step) (back to tree)

lim(⌜αf⌝ ) = ⌜al⌝ , lim(⌜σf⌝ ) = ⌜sl⌝ , ⌜al⌝ = αf(n), # al + m ≠ # sl, # sl < # al + m, mon(⌜αf⌝ ), mon(⌜σf⌝ ), ∀ n. # σf(n) = # αf(n) + ⌜m⌝ , ∀ n. σf(n) ⊑ ⌜sl⌝ , ∀ m0. ¬ # sl < m0 → (∃ n. ⌜sl.take(m0)⌝ ⊑ σf(n)) ⊦

User applied rule all left

And obtained the following new goals

Rule argument

pos: left 8 terms: n abort: F discard: T computed: F

Additional information

Used terms: n

Proof step 29 from proof twomon-limsize (previous step) (back to tree)

# σf(n) = # αf(n) + ⌜m⌝ , lim(⌜σf⌝ ) = ⌜sl⌝ , lim(⌜αf⌝ ) = ⌜al⌝ , ⌜al⌝ = αf(n), # al + m ≠ # sl, # sl < # al + m, mon(⌜σf⌝ ), mon(⌜αf⌝ ), ∀ m0. ¬ # sl < m0 → (∃ n. ⌜sl.take(m0)⌝ ⊑ σf(n)), ∀ n. σf(n) ⊑ ⌜sl⌝ ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: ⊦ # ⌜x⌝ = ⌜# x⌝ ; (s)

Proof step 30 from proof twomon-limsize (previous step) (back to tree)

# σf(n) = ⌜# al⌝ + ⌜m⌝ , lim(⌜σf⌝ ) = ⌜sl⌝ , lim(⌜αf⌝ ) = ⌜al⌝ , ⌜al⌝ = αf(n), # al + m ≠ # sl, # sl < # al + m, mon(⌜σf⌝ ), mon(⌜αf⌝ ), ∀ m0. ¬ # sl < m0 → (∃ n. ⌜sl.take(m0)⌝ ⊑ σf(n)), ∀ n. σf(n) ⊑ ⌜sl⌝ ⊦

User applied rule all left

And obtained the following new goals

Rule argument

pos: left 10 terms: n abort: F discard: T computed: F

Additional information

Used terms: n

Proof step 31 from proof twomon-limsize (previous step) (back to tree)

# σf(n) = ⌜# al⌝ + ⌜m⌝ , lim(⌜αf⌝ ) = ⌜al⌝ , lim(⌜σf⌝ ) = ⌜sl⌝ , ⌜al⌝ = αf(n), # al + m ≠ # sl, # sl < # al + m, mon(⌜αf⌝ ), mon(⌜σf⌝ ), σf(n) ⊑ ⌜sl⌝ , ∀ m0. ¬ # sl < m0 → (∃ n. ⌜sl.take(m0)⌝ ⊑ σf(n)) ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: stream, name:prefix-def, seq: ⊦ σ ⊑ σ0 ↔ (∃ σ1. σ + σ1 = σ0), subst:[σ, σ0] → [σf(n), ⌜sl⌝ ]; [A] → [S], lhs:σf(n) ⊑ ⌜sl⌝ , <all paths>

Additional information

Used simplifier rules: ⊦ σ0 + σ = ⌜z⌝ ↔ finp(σ0) ∧ finp(σ) ∧ σ0.l + σ.l = z; (as) append-assoc: ⊦ (σ + σ1) + σ2 = σ + σ1 + σ2; from specification stream ⊦ finp(σ) ↔ (∃ x. ⌜x⌝ = σ); (as) ⊦ # ⌜x⌝ = ⌜# x⌝ ; (s) ⊦ ⌜n⌝ + ⌜m⌝ = ⌜n0⌝ ↔ n + m = n0; (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 ⊦ ⌜x + y⌝ = ⌜x⌝ + ⌜y⌝ ; (s) ⊦ #(x + y) = # x + # y; (s) a: ⊦ (x + y) + z = x + y + z; from specification list ⊦ ⌜x⌝ .l = x; (s) f: ⊦ m < n → n ≠ 0; (forward) from specification nat-basic lf-01: ⊦ m < n ∧ n = n0 → m < n0; (forward) from specification nat-basic ⊦ m = m + n ↔ n = 0; (s) ⊦ # x = 0 ↔ x = []; (s) ⊦ ¬ m + n < m; (s) a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic c: ⊦ m + n = n + m; from specification nat-basic Used terms: σf(n), ⌜sl⌝

Proof step 32 from proof twomon-limsize (previous step) (back to tree)

⊦ σ ⊑ σ0 ↔ (∃ σ1. σ + σ1 = σ0)

A spec-lemma

Proof step 33 from proof twomon-limsize (previous step) (back to tree)

lim(⌜αf⌝ ) = ⌜al⌝ , lim(⌜σf⌝ ) = ⌜sf⌝ , # lim(⌜σf⌝ ) ≠ ⌜# al⌝ + ⌜m⌝ , mon(⌜αf⌝ ), mon(⌜σf⌝ ), ∀ m0. ¬ # al < m0 → (∃ n. ⌜al.take(m0)⌝ ⊑ αf(n)), ∀ n. # σf(n) = # αf(n) + ⌜m⌝ , ∀ n. αf(n) ⊑ ⌜al⌝ , ∀ n. σf(n) ⊑ lim(⌜σf⌝ ), ∀ m0. ¬ # lim(⌜σf⌝ ) < ⌜m0⌝ → (∃ n. ⌜lim(⌜σf⌝ ).take(m0)⌝ ⊑ σf(n)) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: ⊦ ⌜nf⌝ .take(n) = nf.take(n); (s) ⊦ ¬ ∞ < n∞; (s) ⊦ # ⌜nf⌝ = ∞; (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 ⊦ ⌜n⌝ ≠ ∞; (s) ⊦ ⌜m⌝ + n∞ = ∞ ↔ n∞ = ∞; (s)

Proof step 34 from proof twomon-limsize (previous step) (back to tree)

lim(⌜αf⌝ ) = ⌜al⌝ , lim(⌜σf⌝ ) = ⌜sf⌝ , mon(⌜αf⌝ ), mon(⌜σf⌝ ), ∀ m0. ¬ # al < m0 → (∃ n. ⌜al.take(m0)⌝ ⊑ αf(n)), ∀ n. # σf(n) = # αf(n) + ⌜m⌝ , ∀ n. αf(n) ⊑ ⌜al⌝ , ∀ n. σf(n) ⊑ ⌜sf⌝ , ∀ m0. ∃ n. ⌜sf.take(m0)⌝ ⊑ σf(n) ⊦

User applied rule all left

And obtained the following new goals

Rule argument

pos: left 9 terms: # al + m + 1 abort: F discard: T computed: F

Additional information

Used terms: # al + m + 1

Proof step 35 from proof twomon-limsize (previous step) (back to tree)

lim(⌜σf⌝ ) = ⌜sf⌝ , lim(⌜αf⌝ ) = ⌜al⌝ , mon(⌜σf⌝ ), mon(⌜αf⌝ ), ∀ n. σf(n) ⊑ ⌜sf⌝ , ∀ n. αf(n) ⊑ ⌜al⌝ , ∀ n. # σf(n) = # αf(n) + ⌜m⌝ , ∀ m0. ¬ # al < m0 → (∃ n. ⌜al.take(m0)⌝ ⊑ αf(n)), ∃ n. ⌜sf.take(# al + m + 1)⌝ ⊑ σf(n) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 36 from proof twomon-limsize (previous step) (back to tree)

lim(⌜αf⌝ ) = ⌜al⌝ , lim(⌜σf⌝ ) = ⌜sf⌝ , mon(⌜αf⌝ ), mon(⌜σf⌝ ), ⌜sf.take(# al + m + 1)⌝ ⊑ σf(n), ∀ m0. ¬ # al < m0 → (∃ n. ⌜al.take(m0)⌝ ⊑ αf(n)), ∀ n. # σf(n) = # αf(n) + ⌜m⌝ , ∀ n. αf(n) ⊑ ⌜al⌝ , ∀ n. σf(n) ⊑ ⌜sf⌝ ⊦

User applied rule all left

And obtained the following new goals

Rule argument

pos: left 7 terms: n abort: F discard: T computed: F

Additional information

Used terms: n

Proof step 37 from proof twomon-limsize (previous step) (back to tree)

# σf(n) = # αf(n) + ⌜m⌝ , lim(⌜σf⌝ ) = ⌜sf⌝ , lim(⌜αf⌝ ) = ⌜al⌝ , mon(⌜σf⌝ ), mon(⌜αf⌝ ), ⌜sf.take(# al + m + 1)⌝ ⊑ σf(n), ∀ n. σf(n) ⊑ ⌜sf⌝ , ∀ n. αf(n) ⊑ ⌜al⌝ , ∀ m0. ¬ # al < m0 → (∃ n. ⌜al.take(m0)⌝ ⊑ αf(n)) ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: stream, name:prefix-def, seq: ⊦ σ ⊑ σ0 ↔ (∃ σ1. σ + σ1 = σ0), subst:[σ, σ0] → [⌜sf.take(# al + m + 1)⌝ , σf(n)]; [A] → [S], lhs:⌜sf.take(# al + m + 1)⌝ ⊑ σf(n), <all paths>

Additional information

Used terms: ⌜sf.take(# al + m + 1)⌝ , σf(n)

Proof step 38 from proof twomon-limsize (previous step) (back to tree)

⊦ σ ⊑ σ0 ↔ (∃ σ1. σ + σ1 = σ0)

A spec-lemma

Proof step 39 from proof twomon-limsize (previous step) (back to tree)

# σf(n) = # αf(n) + ⌜m⌝ , lim(⌜αf⌝ ) = ⌜al⌝ , lim(⌜σf⌝ ) = ⌜sf⌝ , mon(⌜αf⌝ ), mon(⌜σf⌝ ), ∀ m0. ¬ # al < m0 → (∃ n. ⌜al.take(m0)⌝ ⊑ αf(n)), ∀ n. αf(n) ⊑ ⌜al⌝ , ∀ n. σf(n) ⊑ ⌜sf⌝ , ∃ σ1. ⌜sf.take(# al + m + 1)⌝ + σ1 = σf(n) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 40 from proof twomon-limsize (previous step) (back to tree)

# σf(n) = # αf(n) + ⌜m⌝ , ⌜sf.take(# al + m + 1)⌝ + σ1 = σf(n), lim(⌜σf⌝ ) = ⌜sf⌝ , lim(⌜αf⌝ ) = ⌜al⌝ , mon(⌜σf⌝ ), mon(⌜αf⌝ ), ∀ n. σf(n) ⊑ ⌜sf⌝ , ∀ n. αf(n) ⊑ ⌜al⌝ , ∀ m0. ¬ # al < m0 → (∃ n. ⌜al.take(m0)⌝ ⊑ αf(n)) ⊦

User applied rule all left

And obtained the following new goals

Rule argument

pos: left 8 terms: n abort: F discard: T computed: F

Additional information

Used terms: n

Proof step 41 from proof twomon-limsize (previous step) (back to tree)

# σf(n) = # αf(n) + ⌜m⌝ , ⌜sf.take(# al + m + 1)⌝ + σ1 = σf(n), lim(⌜αf⌝ ) = ⌜al⌝ , lim(⌜σf⌝ ) = ⌜sf⌝ , mon(⌜αf⌝ ), mon(⌜σf⌝ ), αf(n) ⊑ ⌜al⌝ , ∀ m0. ¬ # al < m0 → (∃ n. ⌜al.take(m0)⌝ ⊑ αf(n)), ∀ n. σf(n) ⊑ ⌜sf⌝ ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: stream, name:prefix-def, seq: ⊦ σ ⊑ σ0 ↔ (∃ σ1. σ + σ1 = σ0), subst:[σ, σ0] → [αf(n), ⌜al⌝ ]; [A] → [A], lhs:αf(n) ⊑ ⌜al⌝ , <all paths>

Additional information

Used terms: αf(n), ⌜al⌝

Proof step 42 from proof twomon-limsize (previous step) (back to tree)

⊦ σ ⊑ σ0 ↔ (∃ σ1. σ + σ1 = σ0)

A spec-lemma

Proof step 43 from proof twomon-limsize (previous step) (back to tree)

# σf(n) = # αf(n) + ⌜m⌝ , ⌜sf.take(# al + m + 1)⌝ + σ1 = σf(n), lim(⌜σf⌝ ) = ⌜sf⌝ , lim(⌜αf⌝ ) = ⌜al⌝ , mon(⌜σf⌝ ), mon(⌜αf⌝ ), ∀ n. σf(n) ⊑ ⌜sf⌝ , ∀ m0. ¬ # al < m0 → (∃ n. ⌜al.take(m0)⌝ ⊑ αf(n)), ∃ α. αf(n) + α = ⌜al⌝ ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: ⊦ ⌜x⌝ .l = x; (s) a: ⊦ (x + y) + z = x + y + z; from specification list ⊦ #(x + y) = # x + # y; (s) ⊦ ⌜x + y⌝ = ⌜x⌝ + ⌜y⌝ ; (s) a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic ⊦ # ⌜x⌝ = ⌜# x⌝ ; (s) ⊦ finp(σ) ↔ (∃ x. ⌜x⌝ = σ); (as) append-assoc: ⊦ (σ + σ1) + σ2 = σ + σ1 + σ2; from specification stream ⊦ σ0 + σ = ⌜z⌝ ↔ finp(σ0) ∧ finp(σ) ∧ σ0.l + σ.l = z; (as)

Proof step 44 from proof twomon-limsize (previous step) (back to tree)

# σf(n) = ⌜# al0⌝ + ⌜m⌝ , ⌜sf.take((# al0 + # al1) + m + 1)⌝ + σ1 = σf(n), lim(⌜σf⌝ ) = ⌜sf⌝ , lim(⌜αf⌝ ) = ⌜al0⌝ + ⌜al1⌝ , ⌜al0⌝ = αf(n), mon(⌜σf⌝ ), mon(⌜αf⌝ ), ∀ n. σf(n) ⊑ ⌜sf⌝ , ∀ m0. ¬ # al0 + # al1 < m0 → (∃ n0. ⌜(al0 + al1).take(m0)⌝ ⊑ αf(n0)) ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: stream, name:extensionality, seq: ⊦ σ0 = σ1 ↔ # σ0 = # σ1 ∧ (∀ n. ⌜n⌝ < # σ0 → σ0(n) = σ1(n)), subst:[σ1, σ0] → [⌜sf.take((# al0 + # al1) + m + 1)⌝ + σ1, σf(n)]; [A] → [S], lhs:⌜sf.take((# al0 + # al1) + m + 1)⌝ + σ1 = σf(n), <all paths>

Additional information

Used terms: ⌜sf.take((# al0 + # al1) + m + 1)⌝ + σ1, σf(n)

Proof step 45 from proof twomon-limsize (previous step) (back to tree)

⊦ σ0 = σ1 ↔ # σ0 = # σ1 ∧ (∀ n. ⌜n⌝ < # σ0 → σ0(n) = σ1(n))

A spec-lemma

Proof step 46 from proof twomon-limsize (previous step) (back to tree)

# σf(n) = #(⌜sf.take((# al0 + # al1) + m + 1)⌝ + σ1), # σf(n) = ⌜# al0⌝ + ⌜m⌝ , lim(⌜αf⌝ ) = ⌜al0⌝ + ⌜al1⌝ , lim(⌜σf⌝ ) = ⌜sf⌝ , ⌜al0⌝ = αf(n), mon(⌜αf⌝ ), mon(⌜σf⌝ ), ∀ m0. ¬ # al0 + # al1 < m0 → (∃ n0. ⌜(al0 + al1).take(m0)⌝ ⊑ αf(n0)), ∀ n. σf(n) ⊑ ⌜sf⌝ , ∀ n0. ⌜n0⌝ < # σf(n) → σf(n)(n0) = (⌜sf.take((# al0 + # al1) + m + 1)⌝ + σ1)(n0) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: ⊦ n∞ = ⌜m⌝ + ⌜n0⌝ → (⌜n⌝ < n∞ ↔ n < m + n0); (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 append-assoc: ⊦ (σ + σ1) + σ2 = σ + σ1 + σ2; from specification stream 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) ⊦ # ⌜nf.take(n)⌝ = ⌜n⌝ ; (s) ⊦ #(σ + σ1) = # σ + # σ1; (s)

Proof step 47 from proof twomon-limsize (previous step) (back to tree)

# σf(n) = ⌜# al0⌝ + ⌜m⌝ , # σf(n) = (⌜# al0⌝ + ⌜# al1⌝ + ⌜m⌝ + ⌜1⌝ ) + # σ1, lim(⌜σf⌝ ) = ⌜sf⌝ , lim(⌜αf⌝ ) = ⌜al0⌝ + ⌜al1⌝ , ⌜al0⌝ = αf(n), mon(⌜σf⌝ ), mon(⌜αf⌝ ), ∀ n. σf(n) ⊑ ⌜sf⌝ , ∀ m0. ¬ # al0 + # al1 < m0 → (∃ n0. ⌜(al0 + al1).take(m0)⌝ ⊑ αf(n0)), ∀ n0. n0 < # al0 + m → σf(n)(n0) = (⌜sf.take((# al0 + # al1) + m + 1)⌝ + σ1)(n0) ⊦

User applied rule subst equation

And closed the goal!

Rule argument

pos: left 1, flags: discard

Additional information

Used simplifier rules: ⊦ ⌜n⌝ + n∞1 = ⌜n⌝ + n∞2 ↔ n∞1 = n∞2; (s) ⊦ ⌜n⌝ + n∞ = ⌜n⌝ ↔ n∞ = ⌜0⌝ ; (s) ⊦ ⌜n⌝ + n∞ = ⌜0⌝ ↔ n∞ = ⌜0⌝ ∧ n = 0; (ws) ⊦ n < m → (⌜(* n)⌝ = ⌜(* m)⌝ + n∞2 ↔ false); (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

Proof step 48 from proof twomon-limsize (previous step) (back to tree)

lim(⌜αf⌝ ) = ⌜af⌝ , # lim(⌜σf⌝ ) ≠ # lim(⌜αf⌝ ) + ⌜m⌝ , mon(⌜σf⌝ ), mon(⌜αf⌝ ), ∀ m0. ¬ # lim(⌜σf⌝ ) < ⌜m0⌝ → (∃ n. ⌜lim(⌜σf⌝ ).take(m0)⌝ ⊑ σf(n)), ∀ n. σf(n) ⊑ lim(⌜σf⌝ ), ∀ m0. ¬ # lim(⌜αf⌝ ) < ⌜m0⌝ → (∃ n. ⌜lim(⌜αf⌝ ).take(m0)⌝ ⊑ αf(n)), ∀ n. αf(n) ⊑ lim(⌜αf⌝ ), ∀ n. # σf(n) = # αf(n) + ⌜m⌝ ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: ⊦ ⌜nf⌝ .take(n) = nf.take(n); (s) ⊦ ¬ ∞ < n∞; (s) ⊦ # ⌜nf⌝ = ∞; (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)

Proof step 49 from proof twomon-limsize (previous step) (back to tree)

lim(⌜αf⌝ ) = ⌜af⌝ , # lim(⌜σf⌝ ) ≠ ∞, mon(⌜σf⌝ ), mon(⌜αf⌝ ), ∀ m0. ¬ # lim(⌜σf⌝ ) < ⌜m0⌝ → (∃ n. ⌜lim(⌜σf⌝ ).take(m0)⌝ ⊑ σf(n)), ∀ n. σf(n) ⊑ lim(⌜σf⌝ ), ∀ n. αf(n) ⊑ ⌜af⌝ , ∀ n. # σf(n) = # αf(n) + ⌜m⌝ , ∀ m0. ∃ n. ⌜af.take(m0)⌝ ⊑ αf(n) ⊦

User applied rule constructor cut

And obtained the following new goals

Rule argument

term: lim(⌜σf⌝ )

Additional information

Used simplifier rules: Stream[A] freely generated by ⌝, ⌝; ⊦ # ⌜nf⌝ = ∞; (s)

Proof step 50 from proof twomon-limsize (previous step) (back to tree)

lim(⌜αf⌝ ) = ⌜af⌝ , lim(⌜σf⌝ ) = ⌜sl⌝ , # lim(⌜σf⌝ ) ≠ ∞, mon(⌜αf⌝ ), mon(⌜σf⌝ ), ∀ m0. ∃ n. ⌜af.take(m0)⌝ ⊑ αf(n), ∀ n. # σf(n) = # αf(n) + ⌜m⌝ , ∀ n. αf(n) ⊑ ⌜af⌝ , ∀ n. σf(n) ⊑ lim(⌜σf⌝ ), ∀ m0. ¬ # lim(⌜σf⌝ ) < ⌜m0⌝ → (∃ n. ⌜lim(⌜σf⌝ ).take(m0)⌝ ⊑ σf(n)) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: ⊦ ⌜x⌝ .take(n) = x.take(n); (s) ⊦ ⌜m⌝ < ⌜n⌝ ↔ m < n; (s) ⊦ # ⌜x⌝ = ⌜# x⌝ ; (s) ⊦ ⌜n⌝ ≠ ∞; (s)

Proof step 51 from proof twomon-limsize (previous step) (back to tree)

lim(⌜αf⌝ ) = ⌜af⌝ , lim(⌜σf⌝ ) = ⌜sl⌝ , mon(⌜αf⌝ ), mon(⌜σf⌝ ), ∀ m0. ∃ n. ⌜af.take(m0)⌝ ⊑ αf(n), ∀ n. # σf(n) = # αf(n) + ⌜m⌝ , ∀ n. αf(n) ⊑ ⌜af⌝ , ∀ n. σf(n) ⊑ ⌜sl⌝ , ∀ m0. ¬ # sl < m0 → (∃ n. ⌜sl.take(m0)⌝ ⊑ σf(n)) ⊦

User applied rule all left

And obtained the following new goals

Rule argument

pos: left 5 terms: # sl + 1 abort: F discard: T computed: F

Additional information

Used terms: # sl + 1

Proof step 52 from proof twomon-limsize (previous step) (back to tree)

lim(⌜σf⌝ ) = ⌜sl⌝ , lim(⌜αf⌝ ) = ⌜af⌝ , mon(⌜σf⌝ ), mon(⌜αf⌝ ), ∀ m0. ¬ # sl < m0 → (∃ n. ⌜sl.take(m0)⌝ ⊑ σf(n)), ∀ n. σf(n) ⊑ ⌜sl⌝ , ∀ n. αf(n) ⊑ ⌜af⌝ , ∀ n. # σf(n) = # αf(n) + ⌜m⌝ , ∃ n. ⌜af.take(# sl + 1)⌝ ⊑ αf(n) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 53 from proof twomon-limsize (previous step) (back to tree)

lim(⌜αf⌝ ) = ⌜af⌝ , lim(⌜σf⌝ ) = ⌜sl⌝ , mon(⌜αf⌝ ), mon(⌜σf⌝ ), ⌜af.take(# sl + 1)⌝ ⊑ αf(n), ∀ n. # σf(n) = # αf(n) + ⌜m⌝ , ∀ n. αf(n) ⊑ ⌜af⌝ , ∀ n. σf(n) ⊑ ⌜sl⌝ , ∀ m0. ¬ # sl < m0 → (∃ n. ⌜sl.take(m0)⌝ ⊑ σf(n)) ⊦

User applied rule all left

And obtained the following new goals

Rule argument

pos: left 6 terms: n abort: F discard: T computed: F

Additional information

Used terms: n

Proof step 54 from proof twomon-limsize (previous step) (back to tree)

# σf(n) = # αf(n) + ⌜m⌝ , lim(⌜σf⌝ ) = ⌜sl⌝ , lim(⌜αf⌝ ) = ⌜af⌝ , mon(⌜σf⌝ ), mon(⌜αf⌝ ), ⌜af.take(# sl + 1)⌝ ⊑ αf(n), ∀ m0. ¬ # sl < m0 → (∃ n. ⌜sl.take(m0)⌝ ⊑ σf(n)), ∀ n. σf(n) ⊑ ⌜sl⌝ , ∀ n. αf(n) ⊑ ⌜af⌝ ⊦

User applied rule all left

And obtained the following new goals

Rule argument

pos: left 8 terms: n abort: F discard: T computed: F

Additional information

Used terms: n

Proof step 55 from proof twomon-limsize (previous step) (back to tree)

# σf(n) = # αf(n) + ⌜m⌝ , lim(⌜αf⌝ ) = ⌜af⌝ , lim(⌜σf⌝ ) = ⌜sl⌝ , mon(⌜αf⌝ ), mon(⌜σf⌝ ), ⌜af.take(# sl + 1)⌝ ⊑ αf(n), σf(n) ⊑ ⌜sl⌝ , ∀ n. αf(n) ⊑ ⌜af⌝ , ∀ m0. ¬ # sl < m0 → (∃ n. ⌜sl.take(m0)⌝ ⊑ σf(n)) ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: stream, name:prefix-def, seq: ⊦ σ ⊑ σ0 ↔ (∃ σ1. σ + σ1 = σ0), subst:[σ, σ0] → [σf(n), ⌜sl⌝ ]; [A] → [S], lhs:σf(n) ⊑ ⌜sl⌝ , <all paths>

Additional information

Used terms: σf(n), ⌜sl⌝

Proof step 56 from proof twomon-limsize (previous step) (back to tree)

⊦ σ ⊑ σ0 ↔ (∃ σ1. σ + σ1 = σ0)

A spec-lemma

Proof step 57 from proof twomon-limsize (previous step) (back to tree)

# σf(n) = # αf(n) + ⌜m⌝ , lim(⌜σf⌝ ) = ⌜sl⌝ , lim(⌜αf⌝ ) = ⌜af⌝ , mon(⌜σf⌝ ), mon(⌜αf⌝ ), ⌜af.take(# sl + 1)⌝ ⊑ αf(n), ∀ m0. ¬ # sl < m0 → (∃ n. ⌜sl.take(m0)⌝ ⊑ σf(n)), ∀ n. αf(n) ⊑ ⌜af⌝ , ∃ σ1. σf(n) + σ1 = ⌜sl⌝ ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: ⊦ ⌜x⌝ .l = x; (s) a: ⊦ (x + y) + z = x + y + z; from specification list ⊦ #(x + y) = # x + # y; (s) a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic ⊦ ⌜x + y⌝ = ⌜x⌝ + ⌜y⌝ ; (s) ⊦ # ⌜x⌝ = ⌜# x⌝ ; (s) ⊦ finp(σ) ↔ (∃ x. ⌜x⌝ = σ); (as) append-assoc: ⊦ (σ + σ1) + σ2 = σ + σ1 + σ2; from specification stream ⊦ σ0 + σ = ⌜z⌝ ↔ finp(σ0) ∧ finp(σ) ∧ σ0.l + σ.l = z; (as)

Proof step 58 from proof twomon-limsize (previous step) (back to tree)

lim(⌜αf⌝ ) = ⌜af⌝ , lim(⌜σf⌝ ) = ⌜sl0⌝ + ⌜sl1⌝ , ⌜sl0⌝ = σf(n), ⌜# sl0⌝ = # αf(n) + ⌜m⌝ , mon(⌜σf⌝ ), mon(⌜αf⌝ ), ⌜af.take((# sl0 + # sl1) + 1)⌝ ⊑ αf(n), ∀ n. αf(n) ⊑ ⌜af⌝ , ∀ m0. ¬ # sl0 + # sl1 < m0 → (∃ n0. ⌜(sl0 + sl1).take(m0)⌝ ⊑ σf(n0)) ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: stream, name:prefix-def, seq: ⊦ σ ⊑ σ0 ↔ (∃ σ1. σ + σ1 = σ0), subst:[σ, σ0] → [⌜af.take((# sl0 + # sl1) + 1)⌝ , αf(n)]; [A] → [A], lhs:⌜af.take((# sl0 + # sl1) + 1)⌝ ⊑ αf(n), <all paths>

Additional information

Used terms: ⌜af.take((# sl0 + # sl1) + 1)⌝ , αf(n)

Proof step 59 from proof twomon-limsize (previous step) (back to tree)

⊦ σ ⊑ σ0 ↔ (∃ σ1. σ + σ1 = σ0)

A spec-lemma

Proof step 60 from proof twomon-limsize (previous step) (back to tree)

lim(⌜σf⌝ ) = ⌜sl0⌝ + ⌜sl1⌝ , lim(⌜αf⌝ ) = ⌜af⌝ , ⌜# sl0⌝ = # αf(n) + ⌜m⌝ , ⌜sl0⌝ = σf(n), mon(⌜αf⌝ ), mon(⌜σf⌝ ), ∀ m0. ¬ # sl0 + # sl1 < m0 → (∃ n0. ⌜(sl0 + sl1).take(m0)⌝ ⊑ σf(n0)), ∀ n. αf(n) ⊑ ⌜af⌝ , ∃ α. ⌜af.take((# sl0 + # sl1) + 1)⌝ + α = αf(n) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 61 from proof twomon-limsize (previous step) (back to tree)

⌜af.take((# sl0 + # sl1) + 1)⌝ + α = αf(n), lim(⌜αf⌝ ) = ⌜af⌝ , lim(⌜σf⌝ ) = ⌜sl0⌝ + ⌜sl1⌝ , ⌜sl0⌝ = σf(n), ⌜# sl0⌝ = # αf(n) + ⌜m⌝ , mon(⌜σf⌝ ), mon(⌜αf⌝ ), ∀ n. αf(n) ⊑ ⌜af⌝ , ∀ m0. ¬ # sl0 + # sl1 < m0 → (∃ n0. ⌜(sl0 + sl1).take(m0)⌝ ⊑ σf(n0)) ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: stream, name:extensionality, seq: ⊦ σ0 = σ1 ↔ # σ0 = # σ1 ∧ (∀ n. ⌜n⌝ < # σ0 → σ0(n) = σ1(n)), subst:[σ1, σ0] → [⌜af.take((# sl0 + # sl1) + 1)⌝ + α, αf(n)]; [A] → [A], lhs:⌜af.take((# sl0 + # sl1) + 1)⌝ + α = αf(n), <all paths>

Additional information

Used terms: ⌜af.take((# sl0 + # sl1) + 1)⌝ + α, αf(n)

Proof step 62 from proof twomon-limsize (previous step) (back to tree)

⊦ σ0 = σ1 ↔ # σ0 = # σ1 ∧ (∀ n. ⌜n⌝ < # σ0 → σ0(n) = σ1(n))

A spec-lemma

Proof step 63 from proof twomon-limsize (previous step) (back to tree)

# αf(n) = #(⌜af.take((# sl0 + # sl1) + 1)⌝ + α), lim(⌜σf⌝ ) = ⌜sl0⌝ + ⌜sl1⌝ , lim(⌜αf⌝ ) = ⌜af⌝ , ⌜# sl0⌝ = # αf(n) + ⌜m⌝ , ⌜sl0⌝ = σf(n), mon(⌜αf⌝ ), mon(⌜σf⌝ ), ∀ m0. ¬ # sl0 + # sl1 < m0 → (∃ n0. ⌜(sl0 + sl1).take(m0)⌝ ⊑ σf(n0)), ∀ n. αf(n) ⊑ ⌜af⌝ , ∀ n0. ⌜n0⌝ < # αf(n) → αf(n)(n0) = (⌜af.take((# sl0 + # sl1) + 1)⌝ + α)(n0) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: append-assoc: ⊦ (σ + σ1) + σ2 = σ + σ1 + σ2; from specification stream 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) ⊦ # ⌜nf.take(n)⌝ = ⌜n⌝ ; (s) ⊦ #(σ + σ1) = # σ + # σ1; (s)

Proof step 64 from proof twomon-limsize (previous step) (back to tree)

# αf(n) = (⌜# sl0⌝ + ⌜# sl1⌝ + ⌜1⌝ ) + # α, lim(⌜αf⌝ ) = ⌜af⌝ , lim(⌜σf⌝ ) = ⌜sl0⌝ + ⌜sl1⌝ , ⌜sl0⌝ = σf(n), ⌜# sl0⌝ = # αf(n) + ⌜m⌝ , mon(⌜σf⌝ ), mon(⌜αf⌝ ), ∀ n0. ⌜n0⌝ < # αf(n) → αf(n)(n0) = (⌜af.take((# sl0 + # sl1) + 1)⌝ + α)(n0), ∀ n. αf(n) ⊑ ⌜af⌝ , ∀ m0. ¬ # sl0 + # sl1 < m0 → (∃ n0. ⌜(sl0 + sl1).take(m0)⌝ ⊑ σf(n0)) ⊦

User applied rule subst equation

And closed the goal!

Rule argument

pos: left 1, flags: discard

Additional information

Used simplifier rules: ⊦ ⌜n⌝ + n∞ = ⌜n⌝ ↔ n∞ = ⌜0⌝ ; (s) ⊦ ⌜n⌝ + n∞ = ⌜0⌝ ↔ n∞ = ⌜0⌝ ∧ n = 0; (ws) ⊦ n < m → (⌜(* n)⌝ = ⌜(* m)⌝ + n∞2 ↔ false); (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

Proof Tree for twomon-limsize (View conclusion)

The following image shows the proof tree of sequent calculus. The proved goal is at the bottom. You can click on the nodes to view additional rules. See here for details on colors in a proof tree.

the proof tree