Lean library · module TopologyByExample.Theorems.UltraconnectedDispersion
Compactness from ultraconnectedness and dispersion
This file was written by Codex (OpenAI's AI model) working under the direction of David R. MacIver, who reviews it and is responsible for it.
variable {X : Type*} [TopologicalSpace X]
theorem closure_singleton_subset_pair_of_dispersion
TopologyByExample.closure_singleton_subset_pair_of_dispersion
Away from a dispersion point, a singleton's closure has no other possible point.
theorem closure_singleton_subset_pair_of_dispersion {p q : X}
(hp : IsTotallyDisconnected ({p}ᶜ : Set X)) (hq : q ≠ p) :
closure ({q} : Set X) ⊆ {p,q}
Proof
:= by
intro z hz
by_cases hzp : z = p
· simp [hzp]
have hc : IsPreconnected ({q,z} : Set X) :=
(isPreconnected_singleton (x := q)).subset_closure (by simp)
(insert_subset (subset_closure (by simp)) (singleton_subset_iff.mpr hz))
have hs := hp {q,z} (by simp [hq.symm, Ne.symm hzp]) hc
have he : z = q := hs (by simp) (by simp)
simp [he]
theorem compactSpace_of_ultraconnectedSpace_of_hasDispersionPoint
TopologyByExample.compactSpace_of_ultraconnectedSpace_of_hasDispersionPoint
An ultraconnected space with a dispersion point is compact.
theorem compactSpace_of_ultraconnectedSpace_of_hasDispersionPoint
[UltraconnectedSpace X] [HasDispersionPoint X] : CompactSpace X
Proof
:= by
classical
obtain ⟨p, hp⟩ := HasDispersionPoint.exists_point (X := X)
by_cases hs : ({p}ᶜ : Set X).Subsingleton
· have hf : (univ : Set X).Finite := by
rw [← union_compl_self ({p} : Set X)]
exact (finite_singleton p).union hs.finite
let : Finite X := finite_univ_iff.mp hf
infer_instance
have hall (q : X) : q ⤳ p := by
by_cases hqp : q = p
· subst q; exact specializes_rfl
obtain ⟨a, ha, b, hb, hab⟩ := Set.not_subsingleton_iff.mp hs
have hr : ∃ r : X, r ≠ p ∧ r ≠ q := by
by_cases haq : a = q
· exact ⟨b, hb, fun h ↦ hab (haq.trans h.symm)⟩
· exact ⟨a, ha, haq⟩
obtain ⟨r, hrp, hrq⟩ := hr
obtain ⟨z, hzq, hzr⟩ := UltraconnectedSpace.closure_inter_closure_nonempty q r
have hqz := closure_singleton_subset_pair_of_dispersion hp hqp hzq
have hrz := closure_singleton_subset_pair_of_dispersion hp hrp hzr
have hzp : z = p := by simp only [mem_insert_iff, mem_singleton_iff] at hqz hrz; grind
exact specializes_iff_mem_closure.mpr (hzp ▸ hzq)
refine ⟨isCompact_iff_finite_subcover.mpr ?_⟩
intro ι U hU hcov
obtain ⟨i, hpi⟩ := mem_iUnion.mp (hcov (mem_univ p))
refine ⟨{i}, ?_⟩
intro x _
have hxi : x ∈ U i := (hall x).mem_open (hU i) hpi
exact mem_iUnion.mpr ⟨i, mem_iUnion.mpr ⟨by simp, hxi⟩⟩
On this site: Theorem: Ultraconnected spaces with dispersion points are compact