Frequently in finite type
Cslib.ωSequence.frequently_in_finite_type
Plain-language statement
In a finite type, the elements of a set occurs infinitely often iff some element in the set occurs infinitely often.
Exact Lean statement
theorem frequently_in_finite_type [Finite α] {s : Set α} {xs : ωSequence α} :
(∃ᶠ k in atTop, xs k ∈ s) ↔ ∃ x ∈ s, ∃ᶠ k in atTop, xs k = xFormal artifact
Lean source
theorem frequently_in_finite_type [Finite α] {s : Set α} {xs : ωSequence α} : (∃ᶠ k in atTop, xs k ∈ s) ↔ ∃ x ∈ s, ∃ᶠ k in atTop, xs k = x := by constructor · intro h_inf rw [Nat.frequently_atTop_iff_infinite] at h_inf have : Infinite (xs ⁻¹' s) := h_inf.to_subtype let rf := Set.restrictPreimage s xs obtain ⟨⟨x, h_x⟩, h_inf'⟩ := Finite.exists_infinite_fiber rf rw [← Set.infinite_range_iff (Subtype.val_injective.comp Subtype.val_injective)] at h_inf' simp only [range, comp_apply, Subtype.exists, mem_preimage, mem_singleton_iff, restrictPreimage_mk, Subtype.mk.injEq, ← Nat.frequently_atTop_iff_infinite, rf] at h_inf' grind · rintro ⟨_, _, h_inf⟩ apply Frequently.mono h_inf grind- Project
- Lean Computer Science Library
- License
- Apache-2.0
- Commit
- f36649cff2c9
- Source
- Cslib/Foundations/Data/OmegaSequence/InfOcc.lean:46-60
Reuse this declaration
Bring the exact result into your workflow
The import identifies the source module. Your project still needs the pinned package dependency shown on this page.
What this badge means
This completion status comes from the project or community source. It has not yet been represented here as an independent rebuild and axiom audit.
Continue in this project
Related declarations
Unique minimal
Cslib.Automata.DA.FinAcc.unique_minimal
Plain-language statement
The minimal DFA M accepting the language l is unique up to unique isomorphism.
Source project: Lean Computer Science Library
Person-level attribution pending.
Buchi Family cover
Cslib.Automata.NA.Buchi.buchiFamily_cover
Project documentation
na.buchiFamily is a cover if na has only finitely many states. This theorem uses the Ramsey theorem for infinite graphs and does not depend on any details of na.BuchiCongruence other than that it is of finite index.
Source project: Lean Computer Science Library
Person-level attribution pending.
Buchi Family saturation
Cslib.Automata.NA.Buchi.buchiFamily_saturation
Plain-language statement
na.buchiFamily saturates the ω-language accepted by na.
Source project: Lean Computer Science Library
Person-level attribution pending.