Frequently in finite set
frequently_in_finite_set
Plain-language statement
Note that only the → direction needs the finiteness assumption.
Exact Lean statement
theorem frequently_in_finite_set {X : Type*} [Finite X] {s : Set X} {xs : Stream' X} :
(∃ᶠ k in atTop, xs k ∈ s) ↔ ∃ x ∈ s, ∃ᶠ k in atTop, xs k = xFormal artifact
Lean source
theorem frequently_in_finite_set {X : Type*} [Finite X] {s : Set X} {xs : Stream' X} : (∃ᶠ 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 [rf, Set.range, ← Nat.frequently_atTop_iff_infinite] at h_inf' use x ; simp [h_x] apply Frequently.mono h_inf' tauto · rintro ⟨x, h_x, h_inf⟩ apply Frequently.mono h_inf intro k h_k ; simpa [h_k]- Project
- Automata Theory
- License
- Apache-2.0
- Commit
- f196548710ce
- Source
- AutomataTheory/Sequences/InfOcc.lean:41-56
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
Acc lang congr
acc_lang_congr
Plain-language statement
The language accepted by c.toDA with a unique accepting state s is exactly the equivalence class of s.
Source project: Automata Theory
Person-level attribution pending.
Acc lang concat e
Automata.acc_lang_concat_e
Plain-language statement
The language of the concatenation NA that is accepted by M0's accepting states is the language accepted by M0.
Source project: Automata Theory
Person-level attribution pending.
Acc lang concat ne
Automata.acc_lang_concat_ne
Plain-language statement
The language of the concatenation NA that is accepted by M1's accepting states is the language accepted by M0 concatenated with the language accepted by M1 minus the empty word.
Source project: Automata Theory
Person-level attribution pending.