Lean library · module TopologyByExample.Spaces.FreeUltrafilterTopology
The free ultrafilter topology
Let F be an ultrafilter on ℕ. The ultrafilter topology
TopologyByExample.UltrafilterTopology F is ℕ with the members of F, together with the empty
set, as its open sets.
When F is free ((F : Filter ℕ) ≤ cofinite), this is the free ultrafilter topology. Every value
is proved for an arbitrary free ultrafilter (or, where freeness is not needed, an arbitrary
ultrafilter), then stated for the particular free ultrafilter Filter.hyperfilter ℕ.
Main definitions
TopologyByExample.UltrafilterTopology F: the space, a type synonym forℕ.TopologyByExample.UltrafilterTopology.filter: the ultrafilterFon the space.
Main results
For every ultrafilter F:
TopologyByExample.UltrafilterTopology.isOpen_iff: the open sets.TopologyByExample.UltrafilterTopology.preirreducibleSpace: any two nonempty open sets meet.TopologyByExample.UltrafilterTopology.anticompactSpace: every compact set is finite.
For every free ultrafilter F:
TopologyByExample.UltrafilterTopology.t1Space;TopologyByExample.UltrafilterTopology.not_weaklyLocallyCompactSpace.
The statements at Filter.hyperfilter ℕ carry the suffix _hyperfilter.
Tags
ultrafilter, hyperconnected, door space, counterexample
This file was written by Claude (Anthropic's AI model) working under the direction of David R. MacIver, who reviews it and is responsible for it.
definition UltrafilterTopology
TopologyByExample.UltrafilterTopology
The ultrafilter topology of an ultrafilter F on ℕ: the set ℕ, whose open sets are the
members of F and the empty set.
@[nolint unusedArguments]
def UltrafilterTopology (_F : Ultrafilter ℕ) : Type
:= ℕ
variable {F : Ultrafilter ℕ}
definition equivNat
TopologyByExample.UltrafilterTopology.equivNat
The identity equivalence between the ultrafilter topology and ℕ.
def equivNat (F : Ultrafilter ℕ) : UltrafilterTopology F ≃ ℕ
:= Equiv.refl _
instance
The ultrafilter topology is countable.
instance : Countable (UltrafilterTopology F)
Proof
:= inferInstanceAs (Countable ℕ)
definition filter
TopologyByExample.UltrafilterTopology.filter
The ultrafilter F, as a filter on the space.
def filter (F : Ultrafilter ℕ) : Ultrafilter (UltrafilterTopology F)
:= F.map (equivNat F).symm
theorem mem_filter
TopologyByExample.UltrafilterTopology.mem_filter
Membership in filter F is membership in F.
theorem mem_filter {s : Set (UltrafilterTopology F)} :
s ∈ filter F ↔ (equivNat F).symm ⁻¹' s ∈ F
Proof
:=
Ultrafilter.mem_map
instance
The ultrafilter topology: the open sets are the members of F and the empty set.
instance : TopologicalSpace (UltrafilterTopology F)
Proof
where
IsOpen s := s ∈ filter F ∨ s = ∅
isOpen_univ := Or.inl univ_mem
isOpen_inter s t := by
rintro (hs | rfl) (ht | rfl)
exacts [Or.inl (inter_mem hs ht), Or.inr (inter_empty s), Or.inr (empty_inter t),
Or.inr (empty_inter _)]
isOpen_sUnion k hk := by
by_cases h : ∃ s ∈ k, s ∈ filter F
· obtain ⟨s, hsk, hs⟩ := h
exact Or.inl (mem_of_superset hs (subset_sUnion_of_mem hsk))
· push Not at h
exact Or.inr (sUnion_eq_empty.2 fun s hs ↦ (hk s hs).resolve_left (h s hs))
theorem isOpen_iff
TopologyByExample.UltrafilterTopology.isOpen_iff
A set is open if and only if it belongs to F or is empty.
theorem isOpen_iff {s : Set (UltrafilterTopology F)} : IsOpen s ↔ s ∈ filter F ∨ s = ∅
Proof
:=
Iff.rfl
theorem mem_filter_of_isOpen
TopologyByExample.UltrafilterTopology.mem_filter_of_isOpen
A nonempty open set belongs to F.
theorem mem_filter_of_isOpen {s : Set (UltrafilterTopology F)} (hs : IsOpen s)
(hne : s.Nonempty) : s ∈ filter F
Proof
:=
(isOpen_iff.1 hs).resolve_right hne.ne_empty
theorem preirreducibleSpace
TopologyByExample.UltrafilterTopology.preirreducibleSpace
Any two nonempty open sets meet: the space is hyperconnected, for every ultrafilter F.
theorem preirreducibleSpace : PreirreducibleSpace (UltrafilterTopology F)
Proof
:= by
refine ⟨fun u v hu hv hu' hv' ↦ ?_⟩
rw [univ_inter] at hu' hv' ⊢
exact Ultrafilter.nonempty_of_mem
(inter_mem (mem_filter_of_isOpen hu hu') (mem_filter_of_isOpen hv hv'))
theorem anticompactSpace
TopologyByExample.UltrafilterTopology.anticompactSpace
Every compact subset is finite, for every ultrafilter F. An infinite set K has an infinite
subset B outside F; the open sets insert b Bᶜ, b ∈ B, cover K, and each contains only
one point of B.
theorem anticompactSpace : AnticompactSpace (UltrafilterTopology F)
Proof
:= by
refine ⟨fun K hK ↦ ?_⟩
by_contra hKi
obtain ⟨B, hBK, hBi, hBF⟩ := exists_infinite_subset_notMem hKi (filter F)
have hBc : Bᶜ ∈ filter F := (Ultrafilter.compl_mem_iff_notMem).2 hBF
obtain ⟨t, ht⟩ := hK.elim_finite_subcover (fun b : B ↦ insert (b : UltrafilterTopology F) Bᶜ)
(fun b ↦ Or.inl (mem_of_superset hBc (subset_insert _ _))) fun x hx ↦ by
by_cases hxB : x ∈ B
· exact mem_iUnion.2 ⟨⟨x, hxB⟩, mem_insert _ _⟩
· obtain ⟨b⟩ := hBi.nonempty.to_subtype
exact mem_iUnion.2 ⟨b, mem_insert_of_mem _ hxB⟩
refine hBi ((t.finite_toSet.image Subtype.val).subset fun x hxB ↦ ?_)
obtain ⟨b, hbt, hxb⟩ := mem_iUnion₂.1 (ht (hBK hxB))
rcases hxb with rfl | hxc
exacts [⟨b, hbt, rfl⟩, absurd hxB hxc]
Free ultrafilters
variable (hF : (F : Filter ℕ) ≤ cofinite)
include hF
theorem notMem_filter_of_finite
TopologyByExample.UltrafilterTopology.notMem_filter_of_finite
For a free ultrafilter, no finite set belongs to filter F.
theorem notMem_filter_of_finite {s : Set (UltrafilterTopology F)} (hs : s.Finite) :
s ∉ filter F
Proof
:= fun h ↦
(filter F).compl_notMem_iff.2 h
(mem_filter.2 (hF (hs.preimage (equivNat F).symm.injective.injOn).compl_mem_cofinite))
theorem t1Space
TopologyByExample.UltrafilterTopology.t1Space
For a free ultrafilter, the ultrafilter topology is T₁: the complement of a point is in F.
theorem t1Space : T1Space (UltrafilterTopology F)
Proof
:=
⟨fun x ↦ ⟨Or.inl ((filter F).compl_mem_iff_notMem.2
(notMem_filter_of_finite hF (finite_singleton x)))⟩⟩
theorem not_weaklyLocallyCompactSpace
TopologyByExample.UltrafilterTopology.not_weaklyLocallyCompactSpace
For a free ultrafilter, the ultrafilter topology is not weakly locally compact: a compact
neighbourhood of a point contains a nonempty open set, which is in F and so is infinite, but
compact sets are finite.
theorem not_weaklyLocallyCompactSpace :
¬WeaklyLocallyCompactSpace (UltrafilterTopology F)
Proof
:= by
intro _
obtain ⟨K, hK, hKn⟩ := exists_compact_mem_nhds ((equivNat F).symm 0)
obtain ⟨U, hUK, hU, hxU⟩ := mem_nhds_iff.1 hKn
exact notMem_filter_of_finite hF ((anticompactSpace.finite_of_isCompact K hK).subset hUK)
(mem_filter_of_isOpen hU ⟨_, hxU⟩)
The space at the hyperfilter
theorem preirreducibleSpace_hyperfilter
TopologyByExample.UltrafilterTopology.preirreducibleSpace_hyperfilter
The free ultrafilter topology of the hyperfilter is hyperconnected.
theorem preirreducibleSpace_hyperfilter :
PreirreducibleSpace (UltrafilterTopology (hyperfilter ℕ))
Proof
:=
preirreducibleSpace
On this site: The free ultrafilter topology is hyperconnected
theorem anticompactSpace_hyperfilter
TopologyByExample.UltrafilterTopology.anticompactSpace_hyperfilter
Every compact subset of the free ultrafilter topology of the hyperfilter is finite.
theorem anticompactSpace_hyperfilter : AnticompactSpace (UltrafilterTopology (hyperfilter ℕ))
Proof
:=
anticompactSpace
On this site: The free ultrafilter topology is anticompact
theorem t1Space_hyperfilter
TopologyByExample.UltrafilterTopology.t1Space_hyperfilter
The free ultrafilter topology of the hyperfilter is T₁.
theorem t1Space_hyperfilter : T1Space (UltrafilterTopology (hyperfilter ℕ))
Proof
:=
t1Space hyperfilter_le_cofinite
On this site: The free ultrafilter topology is T₁
theorem not_weaklyLocallyCompactSpace_hyperfilter
TopologyByExample.UltrafilterTopology.not_weaklyLocallyCompactSpace_hyperfilter
The free ultrafilter topology of the hyperfilter is not weakly locally compact.
theorem not_weaklyLocallyCompactSpace_hyperfilter :
¬WeaklyLocallyCompactSpace (UltrafilterTopology (hyperfilter ℕ))
Proof
:=
not_weaklyLocallyCompactSpace hyperfilter_le_cofinite
On this site: The free ultrafilter topology is not weakly locally compact
On this site: Space: Free ultrafilter topology