Lean library · module TopologyByExample.Theorems.OnePointWithTop

The one-point compactification of a well order is the order with a top added

Source file

Let W be a linear order with its order topology, and add a greatest element ⊤ to get WithTop W, again with its order topology. The inclusion W → WithTop W is an embedding whose range misses exactly ⊤ (Mathlib's WithTop.isEmbedding_coe), and WithTop W is Hausdorff, being an order topology. So whenever WithTop W is compact, it is the one-point compactification of W: the identity on W, sending the point at infinity to ⊤, is a homeomorphism OnePoint W ≃ₜ WithTop W.

WithTop W is compact when W is a well order (for instance an ordinal, such as ω₁ or ℕ), and more generally when W is a conditionally complete linear order with a least element: then WithTop W is a complete linear order, and closed intervals of a complete linear order are compact.

So the space [0, ω₁] of ordinals up to and including ω₁, with the order topology, is the one-point compactification of the space ω₁ of countable ordinals, and ω + 1 is the one-point compactification of the discrete space ℕ.

Main definitions

Main statements

Tags

one-point compactification, order topology, well order, ordinal, WithTop

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
variable {W : Type*} [LinearOrder W] [TopologicalSpace W] [OrderTopology W]

instance compactSpace_withTop

TopologyByExample.compactSpace_withTop

If W is a conditionally complete linear order with a least element, then WithTop W, with its order topology, is compact: it is a complete linear order.

instance compactSpace_withTop {W : Type*} [ConditionallyCompleteLinearOrderBot W]
    [TopologicalSpace W] [OrderTopology W] : CompactSpace (WithTop W)
Proof
:=
  compactSpace_of_completeLinearOrder

theorem compactSpace_withTop_of_wellFoundedLT

TopologyByExample.compactSpace_withTop_of_wellFoundedLT

If W is a well order, then WithTop W, with its order topology, is compact.

theorem compactSpace_withTop_of_wellFoundedLT [WellFoundedLT W] : CompactSpace (WithTop W)
Proof
:= by
  rcases isEmpty_or_nonempty W with hW | hW
  · have : Subsingleton (WithTop W) :=
      ⟨fun a b ↦ by
        induction a using WithTop.recTopCoe with
        | top =>
          induction b using WithTop.recTopCoe with
          | top => rfl
          | coe b => exact isEmptyElim b
        | coe a => exact isEmptyElim a⟩
    infer_instance
  · let : OrderBot W := WellFoundedLT.toOrderBot W
    let : ConditionallyCompleteLinearOrderBot W :=
      WellFoundedLT.conditionallyCompleteLinearOrderBot W
    exact compactSpace_withTop

definition onePointHomeomorphWithTop

TopologyByExample.onePointHomeomorphWithTop

The one-point compactification of a well order. If W is a linear order with its order topology and WithTop W is compact (for instance, if W is a well order, by TopologyByExample.compactSpace_withTop_of_wellFoundedLT), then the one-point compactification of W is WithTop W: the map that is the identity on W and sends ∞ to ⊤ is a homeomorphism.

noncomputable def onePointHomeomorphWithTop (W : Type*) [LinearOrder W] [TopologicalSpace W]
    [OrderTopology W] [CompactSpace (WithTop W)] : OnePoint W ≃ₜ WithTop W
:=
  OnePoint.equivOfIsEmbeddingOfRangeEq ⊤ (↑) WithTop.isEmbedding_coe <| by
    rw [WithTop.range_coe, ← compl_Ici, Ici_top]

theorem onePointHomeomorphWithTop_coe

TopologyByExample.onePointHomeomorphWithTop_coe

The homeomorphism onePointHomeomorphWithTop is the identity on W.

@[simp]
theorem onePointHomeomorphWithTop_coe [CompactSpace (WithTop W)] (x : W) :
    onePointHomeomorphWithTop W x = x
Proof
:=
  OnePoint.equivOfIsEmbeddingOfRangeEq_apply_coe ..

theorem onePointHomeomorphWithTop_infty

TopologyByExample.onePointHomeomorphWithTop_infty

The homeomorphism onePointHomeomorphWithTop sends the point at infinity to ⊤.

@[simp]
theorem onePointHomeomorphWithTop_infty [CompactSpace (WithTop W)] :
    onePointHomeomorphWithTop W ∞ = ⊤
Proof
:=
  OnePoint.equivOfIsEmbeddingOfRangeEq_apply_infty ..

theorem exists_onePoint_homeomorph_withTop_of_wellFoundedLT

TopologyByExample.exists_onePoint_homeomorph_withTop_of_wellFoundedLT

The one-point compactification of a well order is the order with a greatest element added: for a well-ordered space W with its order topology there is a homeomorphism from OnePoint W to WithTop W, with its order topology, that is the identity on W and sends ∞ to ⊤.

theorem exists_onePoint_homeomorph_withTop_of_wellFoundedLT [WellFoundedLT W] :
    ∃ e : OnePoint W ≃ₜ WithTop W, (∀ x : W, e x = x) ∧ e ∞ = ⊤
Proof
:=
  have := compactSpace_withTop_of_wellFoundedLT (W := W)
  ⟨onePointHomeomorphWithTop W, onePointHomeomorphWithTop_coe, onePointHomeomorphWithTop_infty⟩

On this site: Theorem: The one-point compactification of a well-ordered space is the order with a greatest element added

theorem exists_onePoint_homeomorph_withTop_of_conditionallyCompleteLinearOrderBot

TopologyByExample.exists_onePoint_homeomorph_withTop_of_conditionallyCompleteLinearOrderBot

The one-point compactification of a conditionally complete linear order with a least element is the order with a greatest element added: if W is such an order with its order topology, there is a homeomorphism from OnePoint W to WithTop W, with its order topology, that is the identity on W and sends ∞ to ⊤.

theorem exists_onePoint_homeomorph_withTop_of_conditionallyCompleteLinearOrderBot
    {W : Type*} [ConditionallyCompleteLinearOrderBot W] [TopologicalSpace W] [OrderTopology W] :
    ∃ e : OnePoint W ≃ₜ WithTop W, (∀ x : W, e x = x) ∧ e ∞ = ⊤
Proof
:=
  ⟨onePointHomeomorphWithTop W, onePointHomeomorphWithTop_coe, onePointHomeomorphWithTop_infty⟩

On this site: Theorem: The one-point compactification of a conditionally complete linear order with a least element is the order with a greatest element added