Lean library · module TopologyByExample.Theorems.OnePointCompactification

Dense neighbourhoods and the one-point compactification

Source file

A point all of whose neighbourhoods are dense forces strong restrictions on a space: every continuous map from the space to a Hausdorff space is constant, and the space is not semiregular unless the point's only neighbourhood is the whole space. In the one-point compactification OnePoint X the point at infinity has this property exactly when every closed compact subset of X has empty interior. We also characterise when OnePoint X is connected and show that the one-point compactification of a first countable space is sequentially compact.

Main statements

Tags

one-point compactification, dense neighbourhood, semiregular, connected, sequentially compact

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.

Imports

Points all of whose neighbourhoods are dense

variable {X : Type*} [TopologicalSpace X]

theorem apply_eq_of_forall_mem_nhds_dense

TopologyByExample.apply_eq_of_forall_mem_nhds_dense

If every neighbourhood of x is dense, then every continuous map f from X to a Hausdorff space is constant: if f y ≠ f x, disjoint open neighbourhoods of f y and f x would pull back to a nonempty open set and a neighbourhood of x that do not meet.

theorem apply_eq_of_forall_mem_nhds_dense {Y : Type*} [TopologicalSpace Y] [T2Space Y] {x : X}
    (hx : ∀ s ∈ 𝓝 x, Dense s) {f : X → Y} (hf : Continuous f) (y : X) : f y = f x
Proof
:= by
  by_contra h
  obtain ⟨U, V, hU, hV, hyU, hxV, hUV⟩ := t2_separation h
  obtain ⟨z, hzU, hzV⟩ := (hx _ ((hV.preimage hf).mem_nhds hxV)).inter_open_nonempty _
    (hU.preimage hf) ⟨y, hyU⟩
  exact disjoint_left.1 hUV hzU hzV

On this site: Theorem: If every neighbourhood of a point is dense, every continuous map to a Hausdorff space is constant

theorem not_semiregularSpace_of_forall_mem_nhds_dense

TopologyByExample.not_semiregularSpace_of_forall_mem_nhds_dense

If every neighbourhood of x is dense and some neighbourhood of x is not the whole space, then X is not semiregular: a regular open set containing x is dense, so it is the interior of the whole space.

theorem not_semiregularSpace_of_forall_mem_nhds_dense {x : X} (hx : ∀ s ∈ 𝓝 x, Dense s)
    {s : Set X} (hs : s ∈ 𝓝 x) (hne : s ≠ univ) : ¬SemiregularSpace X
Proof
:= fun h ↦ by
  obtain ⟨t, ht, hxt, hts⟩ := h.isTopologicalBasis.mem_nhds_iff.1 hs
  have ht' : interior (closure t) = t := ht
  have hto : IsOpen t := ht' ▸ isOpen_interior
  rw [(hx t (hto.mem_nhds hxt)).closure_eq, interior_univ] at ht'
  exact hne (eq_univ_of_univ_subset (ht' ▸ hts))

On this site: Theorem: If every neighbourhood of a point is dense and one is not the whole space, the space is not semiregular

The one-point compactification

variable {X : Type*} [TopologicalSpace X]

theorem forall_mem_nhds_infty_dense_iff

TopologyByExample.forall_mem_nhds_infty_dense_iff

Every neighbourhood of the point at infinity of OnePoint X is dense if and only if every closed compact subset of X has empty interior.

theorem forall_mem_nhds_infty_dense_iff :
    (∀ s ∈ 𝓝 (∞ : OnePoint X), Dense s) ↔
      ∀ K : Set X, IsClosed K → IsCompact K → interior K = ∅
Proof
:= by
  constructor
  · intro h K hKc hK
    by_contra hne
    obtain ⟨x, hx⟩ := ne_empty_iff_nonempty.1 hne
    have hW : ((↑) '' Kᶜ ∪ {∞} : Set (OnePoint X)) ∈ 𝓝 ∞ :=
      hasBasis_nhds_infty.mem_of_mem ⟨hKc, hK⟩
    obtain ⟨z, ⟨y, hy, rfl⟩, hzW⟩ := (h _ hW).inter_open_nonempty ((↑) '' interior K)
      (isOpen_image_coe.2 isOpen_interior) ⟨x, x, hx, rfl⟩
    rcases hzW with ⟨y', hy', hyy'⟩ | hinf
    · exact hy' (coe_injective hyy' ▸ interior_subset hy)
    · exact coe_ne_infty y hinf
  · intro h s hs
    obtain ⟨K, ⟨hKc, hK⟩, hKs⟩ := hasBasis_nhds_infty.mem_iff.1 hs
    refine Dense.mono hKs (dense_iff_inter_open.2 fun U hU ⟨z, hz⟩ ↦ ?_)
    cases z with
    | infty => exact ⟨∞, hz, Or.inr rfl⟩
    | coe x =>
      have hUo : IsOpen ((↑) ⁻¹' U : Set X) := hU.preimage continuous_coe
      have hnot : ¬((↑) ⁻¹' U : Set X) ⊆ K := fun hsub ↦ by
        have hint := interior_maximal hsub hUo
        rw [h K hKc hK] at hint
        exact hint hz
      obtain ⟨y, hyU, hyK⟩ := not_subset.1 hnot
      exact ⟨(y : OnePoint X), hyU, Or.inl ⟨y, hyK, rfl⟩⟩

theorem preconnectedSpace_onePoint_iff

TopologyByExample.preconnectedSpace_onePoint_iff

The one-point compactification of X is connected if and only if the only compact clopen subset of X is the empty set.

theorem preconnectedSpace_onePoint_iff :
    PreconnectedSpace (OnePoint X) ↔ ∀ K : Set X, IsClopen K → IsCompact K → K = ∅
Proof
:= by
  constructor
  · intro _ K hK hKc
    have hcl : IsClopen ((↑) '' K : Set (OnePoint X)) :=
      ⟨isClosed_image_coe.2 ⟨hK.isClosed, hKc⟩, isOpen_image_coe.2 hK.isOpen⟩
    rcases isClopen_iff.1 hcl with h | h
    · exact image_eq_empty.1 h
    · exact absurd (h ▸ mem_univ ∞) infty_notMem_image_coe
  · intro h
    have key : ∀ t : Set (OnePoint X), IsClopen t → ∞ ∉ t → t = ∅ := by
      intro t ht hinf
      have h0 := h ((↑) ⁻¹' t) ⟨ht.isClosed.preimage continuous_coe,
        ht.isOpen.preimage continuous_coe⟩ ((isClosed_iff_of_notMem hinf).1 ht.isClosed).2
      refine eq_empty_iff_forall_notMem.2 fun z hz ↦ ?_
      cases z with
      | infty => exact hinf hz
      | coe x =>
        have hx : x ∈ ((↑) ⁻¹' t : Set X) := hz
        rw [h0] at hx
        exact hx
    refine preconnectedSpace_iff_clopen.2 fun s hs ↦ ?_
    by_cases hinf : ∞ ∈ s
    · exact Or.inr (compl_empty_iff.1 (key sᶜ hs.compl (not_not_intro hinf)))
    · exact Or.inl (key s hs hinf)

On this site: Theorem: A one-point compactification is connected iff the space has no nonempty compact clopen subset

theorem seqCompactSpace_onePoint_of_firstCountableTopology

TopologyByExample.seqCompactSpace_onePoint_of_firstCountableTopology

The one-point compactification of a first countable space is sequentially compact: a sequence that does not converge to the point at infinity has infinitely many terms in a closed compact subset of X, which is sequentially compact.

theorem seqCompactSpace_onePoint_of_firstCountableTopology [FirstCountableTopology X] :
    SeqCompactSpace (OnePoint X)
Proof
:= by
  refine ⟨fun u _ ↦ ?_⟩
  by_cases hu : Tendsto u atTop (𝓝 ∞)
  · exact ⟨∞, mem_univ _, id, strictMono_id, hu⟩
  · rw [hasBasis_nhds_infty.tendsto_right_iff] at hu
    push Not at hu
    obtain ⟨K, ⟨hKc, hK⟩, hfreq⟩ := hu
    have hsub : ∀ z : OnePoint X, z ∉ ((↑) '' Kᶜ ∪ {∞} : Set (OnePoint X)) →
        z ∈ ((↑) '' K : Set (OnePoint X)) := by
      intro z hz
      cases z with
      | infty => exact absurd (Or.inr rfl) hz
      | coe x =>
        by_contra hx
        exact hz (Or.inl ⟨x, fun hxK ↦ hx ⟨x, hxK, rfl⟩, rfl⟩)
    obtain ⟨a, -, φ, hφ, ha⟩ := (hK.isSeqCompact.image continuous_coe.seqContinuous)
      |>.subseq_of_frequently_in (hfreq.mono fun n hn ↦ hsub _ hn)
    exact ⟨a, mem_univ _, φ, hφ, ha⟩

On this site: Theorem: The one-point compactification of a first countable space is sequentially compact