Documentation

Cslib.Foundations.Data.OmegaSequence.InfOcc

Infinite occurrences #

def Cslib.ωSequence.infOcc {α : Type u} (xs : ωSequence α) :
Set α

The set of elements that appear infinitely often in an ω-sequence.

Equations
  • xs.infOcc = {x : α | ∃ᶠ (k : ) in Filter.atTop, xs k = x}
Instances For
    theorem Cslib.ωSequence.frequently_iff_strictMono {p : Prop} :
    (∃ᶠ (n : ) in Filter.atTop, p n) ∃ (f : ), StrictMono f ∀ (m : ), p (f m)

    An alternative characterization of "infinitely often".

    theorem Cslib.ωSequence.frequently_in_finite_type {α : Type u} [Finite α] {s : Set α} {xs : ωSequence α} :
    (∃ᶠ (k : ) in Filter.atTop, xs k s) xs, ∃ᶠ (k : ) in Filter.atTop, xs k = x

    In a finite type, the elements of a set occurs infinitely often iff some element in the set occurs infinitely often.

    theorem Cslib.ωSequence.frequently_in_strictMono {p : Prop} {f : } (hm : StrictMono f) (hf : ∃ᶠ (k : ) in Filter.atTop, p k) :
    ∃ᶠ (n : ) in Filter.atTop, k < f (n + 1) - f n, p (f n + k)

    If p is true infinitely often, then p is true in infinitely many segments of any strictly monotonic function f.

    theorem Cslib.ωSequence.strictMono_of_infinite {ns : Set } (h : ns.Infinite) :
    ∃ (φ : ), StrictMono φ Set.range φ = ns

    Every infinite subset of ℕ is the range of a strictly monotonic function from ℕ to ℕ.