English
Construct a Compactum from a compact Hausdorff space via an explicit noncomputable construction.
Русский
Построение Compactum из компактного Hausdorff пространства по невычислимому конструктору.
LaTeX
$$$\\text{ofTopologicalSpace}(X)$$$
Lean4
/-- Given any compact Hausdorff space, we construct a Compactum. -/
noncomputable def ofTopologicalSpace (X : Type*) [TopologicalSpace X] [CompactSpace X] [T2Space X] : Compactum
where
A := X
a := Ultrafilter.lim
unit := by
ext x
exact lim_eq (pure_le_nhds _)
assoc := by
ext FF
change Ultrafilter (Ultrafilter X) at FF
set x := (Ultrafilter.map Ultrafilter.lim FF).lim with c1
have c2 : ∀ (U : Set X) (F : Ultrafilter X), F.lim ∈ U → IsOpen U → U ∈ F :=
by
intro U F h1 hU
exact isOpen_iff_ultrafilter.mp hU _ h1 _ (Ultrafilter.le_nhds_lim _)
have c3 : ↑(Ultrafilter.map Ultrafilter.lim FF) ≤ 𝓝 x :=
by
rw [le_nhds_iff]
intro U hx hU
exact mem_coe.2 (c2 _ _ (by rwa [← c1]) hU)
have c4 : ∀ U : Set X, x ∈ U → IsOpen U → {G : Ultrafilter X | U ∈ G} ∈ FF :=
by
intro U hx hU
suffices Ultrafilter.lim ⁻¹' U ∈ FF by
apply mem_of_superset this
intro P hP
exact c2 U P hP hU
exact @c3 U (IsOpen.mem_nhds hU hx)
apply lim_eq
rw [le_nhds_iff]
exact c4