The areas / V13. General topology
Mathlib.Order.Filter.Cofinite
54 declarations and 1 deprecated aliases. Mathlib docs · Source
The cofinite filter
In this file we define
Filter.cofinite: the filter of sets with finite complement
and prove its basic properties. In particular, we prove that for ℕ it is equal to Filter.atTop.
TODO
Define filters for other cardinalities of the complement.
def Filter.cofinite E1 #
{α : Type u_2} → Filter α
The cofinite filter is the filter of subsets whose complements are finite.
theorem Filter.mem_cofinite E0 #
∀ {α : Type u_2} {s : Set α}, s ∈ Filter.cofinite ↔ sᶜ.Finite
theorem Filter.eventually_cofinite E0 #
∀ {α : Type u_2} {p : α → Prop}, (∀ᶠ (x : α) in Filter.cofinite, p x) ↔ {x | ¬p x}.Finite
theorem Filter.hasBasis_cofinite E1 #
∀ {α : Type u_2}, Filter.cofinite.HasBasis (fun s ↦ s.Finite) compl
instance Filter.cofinite_neBot E0 #
∀ {α : Type u_2} [Infinite α], Filter.cofinite.NeBot
theorem Filter.cofinite_eq_bot_iff E0 #
∀ {α : Type u_2}, Filter.cofinite = ⊥ ↔ Finite α
theorem Filter.cofinite_eq_bot E0 #
∀ {α : Type u_2} [Finite α], Filter.cofinite = ⊥
theorem Filter.frequently_cofinite_iff_infinite E1 #
∀ {α : Type u_2} {p : α → Prop}, (∃ᶠ (x : α) in Filter.cofinite, p x) ↔ {x | p x}.Infinite
theorem Filter.frequently_cofinite_mem_iff_infinite E1 #
∀ {α : Type u_2} {s : Set α}, (∃ᶠ (x : α) in Filter.cofinite, x ∈ s) ↔ s.Infinite
theorem Set.Infinite.frequently_cofinite E1 #
∀ {α : Type u_2} {s : Set α}, s.Infinite → ∃ᶠ (x : α) in Filter.cofinite, x ∈ s
Alias of the reverse direction of Filter.frequently_cofinite_mem_iff_infinite.
theorem Filter.cofinite_inf_principal_neBot_iff E0 #
∀ {α : Type u_2} {s : Set α}, (Filter.cofinite ⊓ Filter.principal s).NeBot ↔ s.Infinite
theorem Set.Infinite.cofinite_inf_principal_neBot E1 #
∀ {α : Type u_2} {s : Set α}, s.Infinite → (Filter.cofinite ⊓ Filter.principal s).NeBot
Alias of the reverse direction of Filter.cofinite_inf_principal_neBot_iff.
theorem Set.Finite.compl_mem_cofinite E1 #
∀ {α : Type u_2} {s : Set α}, s.Finite → sᶜ ∈ Filter.cofinite
theorem Set.Finite.eventually_cofinite_notMem E1 #
∀ {α : Type u_2} {s : Set α}, s.Finite → ∀ᶠ (x : α) in Filter.cofinite, x ∉ s
theorem Finset.eventually_cofinite_notMem E1 #
∀ {α : Type u_2} (s : Finset α), ∀ᶠ (x : α) in Filter.cofinite, x ∉ s
theorem Set.infinite_iff_frequently_cofinite E1 #
∀ {α : Type u_2} {s : Set α}, s.Infinite ↔ ∃ᶠ (x : α) in Filter.cofinite, x ∈ s
theorem Filter.eventually_cofinite_ne E1 #
∀ {α : Type u_2} (x : α), ∀ᶠ (a : α) in Filter.cofinite, a ≠ x
theorem Filter.le_cofinite_iff_compl_singleton_mem E1 #
∀ {α : Type u_2} {l : Filter α}, l ≤ Filter.cofinite ↔ ∀ (x : α), {x}ᶜ ∈ l
theorem Filter.le_cofinite_iff_eventually_ne E1 #
∀ {α : Type u_2} {l : Filter α}, l ≤ Filter.cofinite ↔ ∀ (x : α), ∀ᶠ (y : α) in l, y ≠ x
theorem Filter.atTop_le_cofinite E1 #
∀ {α : Type u_2} [inst : Preorder α] [NoTopOrder α], Filter.atTop ≤ Filter.cofinite
If α is a preorder with no top element, then atTop ≤ cofinite.
theorem Filter.atBot_le_cofinite E1 #
∀ {α : Type u_2} [inst : Preorder α] [NoBotOrder α], Filter.atBot ≤ Filter.cofinite
If α is a preorder with no bottom element, then atBot ≤ cofinite.
theorem Filter.comap_cofinite_le E1 #
∀ {α : Type u_2} {β : Type u_3} (f : α → β), Filter.comap f Filter.cofinite ≤ Filter.cofinite
theorem Filter.coprod_cofinite E1 #
∀ {α : Type u_2} {β : Type u_3}, Filter.cofinite.coprod Filter.cofinite = Filter.cofinite
The coproduct of the cofinite filters on two types is the cofinite filter on their product.
theorem Filter.coprodᵢ_cofinite E1 #
∀ {ι : Type u_1} {α : ι → Type u_4} [Finite ι], (Filter.coprodᵢ fun i ↦ Filter.cofinite) = Filter.cofinite
theorem Filter.disjoint_cofinite_left E1 #
∀ {α : Type u_2} {l : Filter α}, Disjoint Filter.cofinite l ↔ ∃ s ∈ l, s.Finite
theorem Filter.disjoint_cofinite_right E1 #
∀ {α : Type u_2} {l : Filter α}, Disjoint l Filter.cofinite ↔ ∃ s ∈ l, s.Finite
theorem Filter.countable_compl_ker E1 #
∀ {α : Type u_2} {l : Filter α} [l.IsCountablyGenerated], Filter.cofinite ≤ l → l.kerᶜ.Countable
If l ≥ Filter.cofinite is a countably generated filter, then l.ker is cocountable.
theorem Filter.Tendsto.countable_compl_preimage_ker E1 #
∀ {α : Type u_2} {β : Type u_3} {f : α → β} {l : Filter β} [l.IsCountablyGenerated],
Filter.Tendsto f Filter.cofinite l → (f ⁻¹' l.ker)ᶜ.Countable
If f tends to a countably generated filter l along Filter.cofinite,
then for all but countably many elements, f x ∈ l.ker.
theorem Filter.univ_pi_mem_pi E1 #
∀ {ι : Type u_1} {α : ι → Type u_4} {s : (i : ι) → Set (α i)} {l : (i : ι) → Filter (α i)},
(∀ (i : ι), s i ∈ l i) → (∀ᶠ (i : ι) in Filter.cofinite, s i = Set.univ) → Set.univ.pi s ∈ Filter.pi l
Given a collection of filters l i : Filter (α i) and sets s i ∈ l i,
if all but finitely many of s i are the whole space,
then their indexed product Set.pi Set.univ s belongs to the filter Filter.pi l.
theorem Filter.map_piMap_pi E0 #
∀ {ι : Type u_1} {α : ι → Type u_4} {β : ι → Type u_5} {f : (i : ι) → α i → β i},
(∀ᶠ (i : ι) in Filter.cofinite, Function.Surjective (f i)) →
∀ (l : (i : ι) → Filter (α i)), Filter.map (Pi.map f) (Filter.pi l) = Filter.pi fun i ↦ Filter.map (f i) (l i)
Given a family of maps f i : α i → β i and a family of filters l i : Filter (α i),
if all but finitely many of f i are surjective,
then the indexed product of f is maps the indexed product of the filters l i
to the indexed products of their pushforwards under individual f is.
See also map_piMap_pi_finite for the case of a finite index type.
theorem Filter.map_piMap_pi_finite E0 #
∀ {ι : Type u_1} {α : ι → Type u_4} {β : ι → Type u_5} [Finite ι] (f : (i : ι) → α i → β i)
(l : (i : ι) → Filter (α i)), Filter.map (Pi.map f) (Filter.pi l) = Filter.pi fun i ↦ Filter.map (f i) (l i)
Given finite families of maps f i : α i → β i and of filters l i : Filter (α i),
the indexed product of f is maps the indexed product of the filters l i
to the indexed products of their pushforwards under individual f is.
See also map_piMap_pi for a more general case.
theorem Set.Finite.cofinite_inf_principal_compl E1 #
∀ {α : Type u_2} {s : Set α}, s.Finite → Filter.cofinite ⊓ Filter.principal sᶜ = Filter.cofinite
theorem Set.Finite.cofinite_inf_principal_sdiff E1 #
∀ {α : Type u_2} {s t : Set α},
t.Finite → Filter.cofinite ⊓ Filter.principal (s \ t) = Filter.cofinite ⊓ Filter.principal s
theorem Nat.cofinite_eq_atTop E1 #
Filter.cofinite = Filter.atTop
For natural numbers the filters Filter.cofinite and Filter.atTop coincide.
theorem Nat.frequently_atTop_iff_infinite E1 #
∀ {p : ℕ → Prop}, (∃ᶠ (n : ℕ) in Filter.atTop, p n) ↔ {n | p n}.Infinite
theorem Nat.eventually_pos E1 #
∀ᶠ (k : ℕ) in Filter.atTop, 0 < k
theorem Filter.Tendsto.exists_within_forall_le E1 #
∀ {α : Type u_4} {β : Type u_5} [inst : LinearOrder β] {s : Set α},
s.Nonempty → ∀ {f : α → β}, Filter.Tendsto f Filter.cofinite Filter.atTop → ∃ a₀ ∈ s, ∀ a ∈ s, f a₀ ≤ f a
theorem Filter.Tendsto.exists_forall_le E1 #
∀ {α : Type u_2} {β : Type u_3} [Nonempty α] [inst : LinearOrder β] {f : α → β},
Filter.Tendsto f Filter.cofinite Filter.atTop → ∃ a₀, ∀ (a : α), f a₀ ≤ f a
theorem Filter.Tendsto.exists_within_forall_ge E1 #
∀ {α : Type u_2} {β : Type u_3} [inst : LinearOrder β] {s : Set α},
s.Nonempty → ∀ {f : α → β}, Filter.Tendsto f Filter.cofinite Filter.atBot → ∃ a₀ ∈ s, ∀ a ∈ s, f a ≤ f a₀
theorem Filter.Tendsto.exists_forall_ge E1 #
∀ {α : Type u_2} {β : Type u_3} [Nonempty α] [inst : LinearOrder β] {f : α → β},
Filter.Tendsto f Filter.cofinite Filter.atBot → ∃ a₀, ∀ (a : α), f a ≤ f a₀
theorem Function.Surjective.le_map_cofinite E1 #
∀ {α : Type u_2} {β : Type u_3} {f : α → β}, Function.Surjective f → Filter.cofinite ≤ Filter.map f Filter.cofinite
theorem Function.Injective.tendsto_cofinite E1 #
∀ {α : Type u_2} {β : Type u_3} {f : α → β}, Function.Injective f → Filter.Tendsto f Filter.cofinite Filter.cofinite
For an injective function f, inverse images of finite sets are finite. See also
Filter.comap_cofinite_le and Function.Injective.comap_cofinite_eq.
theorem Filter.Tendsto.cofinite_of_finite_preimage_singleton E1 #
∀ {α : Type u_2} {β : Type u_3} {f : α → β},
(∀ (b : β), Finite ↑(f ⁻¹' {b})) → Filter.Tendsto f Filter.cofinite Filter.cofinite
For a function with finite fibres, inverse images of finite sets are finite.
theorem Function.Injective.comap_cofinite_eq E0 #
∀ {α : Type u_2} {β : Type u_3} {f : α → β}, Function.Injective f → Filter.comap f Filter.cofinite = Filter.cofinite
The pullback of the Filter.cofinite under an injective function is equal to Filter.cofinite.
See also Filter.comap_cofinite_le and Function.Injective.tendsto_cofinite.
theorem Function.Injective.nat_tendsto_atTop E1 #
∀ {f : ℕ → ℕ}, Function.Injective f → Filter.Tendsto f Filter.atTop Filter.atTop
An injective sequence f : ℕ → ℕ tends to infinity at infinity.
theorem Function.update_eventuallyEq E1 #
∀ {α : Type u_2} {β : Type u_3} [inst : DecidableEq α] (f : α → β) (a : α) (b : β),
Function.update f a b =ᶠ[Filter.principal {a}ᶜ] f
theorem Function.update_eventuallyEq_cofinite E1 #
∀ {α : Type u_2} {β : Type u_3} [inst : DecidableEq α] (f : α → β) (a : α) (b : β),
Function.update f a b =ᶠ[Filter.cofinite] f
theorem tendsto_cofinite_pure_iff E0 #
∀ {α : Type u_2} {β : Type u_3} {f : α → β} [inst : Zero β],
Filter.Tendsto f Filter.cofinite (pure 0) ↔ Function.HasFiniteSupport f
A function tendsto 0 along the cofinite filter iff it has finite support.
theorem le_cofinite_iff_ker E1 #
∀ {α : Type u_2} {f : Filter α}, f ≤ Filter.cofinite ↔ f.ker = ∅
A filter is free iff it is smaller than the cofinite filter.
theorem le_cofinite_iff_boundary E1 #
∀ {α : Type u_2} {f : Filter α}, f ≤ Filter.cofinite ↔ Coheyting.boundary f = f
theorem boundary_le_cofinite E1 #
∀ {α : Type u_2} (f : Filter α), Coheyting.boundary f ≤ Filter.cofinite
theorem boundary_principal E0 #
∀ {α : Type u_2} (s : Set α), Coheyting.boundary (Filter.principal s) = ⊥
theorem existsUnique_eq_principal_sup_free E1 #
∀ {α : Type u_2} (f : Filter α),
∃! p, p.2 ≤ Filter.cofinite ∧ Disjoint (Filter.principal p.1) p.2 ∧ f = Filter.principal p.1 ⊔ p.2
Every filter is the disjoint supremum of a principal filter and a free filter in a unique way.
theorem exists_eq_principal_sup_free E1 #
∀ {α : Type u_2} (f : Filter α),
∃ s, ∃ g ≤ Filter.cofinite, Disjoint (Filter.principal s) g ∧ f = Filter.principal s ⊔ g
Every filter is the disjoint supremum of a principal filter and a free filter.
Deprecated aliases
| Name | New name | Since |
|---|---|---|
Set.Finite.cofinite_inf_principal_diff | Set.Finite.cofinite_inf_principal_sdiff | 2026-06-03 |