Lean library · module TopologyByExample.Theorems.CountableOrdinalSpaces

Ordinal spaces

Source file

For an ordinal α, the ordinal space [0, α) is the set Set.Iio α of ordinals below α with the order topology. Mathlib's topology on Ordinal is the order topology, and the subspace topology on the order-connected set Set.Iio α is again the order topology (orderTopology_of_ordConnected), so we use Set.Iio α with its subspace topology.

Every ordinal space is linearly orderable, scattered and weakly locally compact: each closed initial segment [0, β], β < α, is open (it is the ray of ordinals < β + 1) and compact (a closed interval of the conditionally complete order of the ordinals). It is compact exactly when α is not a limit ordinal: [0, β + 1) is the compact set [0, β], while if α is a nonzero limit, a compact set of ordinals below α has a greatest element m, and m + 1 < α. If ω < α, the point ω is not isolated, so the space is not discrete.

The family countable-ordinal-spaces of the project uses these spaces for countable α.

Main statements

References

  • L. A. Steen and J. A. Seebach, Counterexamples in Topology, Examples 40 and 41.

Tags

ordinal space, order topology, scattered, compact, limit ordinal

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 {α : Ordinal.{0}}

theorem linearlyOrderable

TopologyByExample.OrdinalSpace.linearlyOrderable

The ordinal space [0, α) is linearly orderable: its topology is the order topology of the order of the ordinals.

theorem linearlyOrderable :
    ∃ o : LinearOrder (Set.Iio α), letI := o; OrderTopology (Set.Iio α)
Proof
:=
  ⟨inferInstance, inferInstance⟩

On this site: Countable ordinal spaces: the space is linearly orderable

theorem isOpen_Iic

TopologyByExample.OrdinalSpace.isOpen_Iic

In the ordinal space [0, α), every closed initial segment [0, β] is open: it is the trace of the open ray of ordinals < β + 1.

theorem isOpen_Iic (b : Set.Iio α) : IsOpen (Iic b)
Proof
:= by
  have : Iic b = ((↑) : Set.Iio α → Ordinal.{0}) ⁻¹' Iio ((b : Ordinal.{0}) + 1) := by
    ext x
    simp [Subtype.coe_le_coe, Order.lt_add_one_iff]
  rw [this]
  exact isOpen_Iio.preimage continuous_subtypeVal

theorem isCompact_Iic

TopologyByExample.OrdinalSpace.isCompact_Iic

In the ordinal space [0, α), every closed initial segment [0, β] is compact.

theorem isCompact_Iic (b : Set.Iio α) : IsCompact (Iic b)
Proof
:= by
  rw [Subtype.isCompact_iff]
  have : ((↑) : Set.Iio α → Ordinal.{0}) '' Iic b = Iic (b : Ordinal.{0}) := by
    ext x
    constructor
    · rintro ⟨y, hy, rfl⟩
      exact hy
    · intro hx
      exact ⟨⟨x, mem_Iio.2 (lt_of_le_of_lt hx b.property)⟩, hx, rfl⟩
  rw [this]
  exact Icc_bot (a := (b : Ordinal.{0})) ▸ isCompact_Icc

theorem scatteredSpace

TopologyByExample.OrdinalSpace.scatteredSpace

The ordinal space [0, α) is scattered, as is every well-ordered space whose closed initial segments are open.

theorem scatteredSpace : ScatteredSpace (Set.Iio α)
Proof
:=
  scatteredSpace_of_isOpen_Iic isOpen_Iic

On this site: Countable ordinal spaces: the space is scattered

theorem weaklyLocallyCompactSpace

TopologyByExample.OrdinalSpace.weaklyLocallyCompactSpace

The ordinal space [0, α) is weakly locally compact: each point β has the compact neighbourhood [0, β].

theorem weaklyLocallyCompactSpace : WeaklyLocallyCompactSpace (Set.Iio α)
Proof
:=
  ⟨fun b ↦ ⟨Iic b, isCompact_Iic b, (isOpen_Iic b).mem_nhds (mem_Iic.2 le_rfl)⟩⟩

On this site: Countable ordinal spaces: the space is weakly locally compact

theorem not_discreteTopology

TopologyByExample.OrdinalSpace.not_discreteTopology

If ω < α, the ordinal space [0, α) is not discrete: the point ω is not isolated, since it is a limit ordinal.

theorem not_discreteTopology (h : ω < α) : ¬DiscreteTopology (Set.Iio α)
Proof
:= fun _ ↦ by
  have hω : IsOpen ({(⟨ω, h⟩ : Set.Iio α)} : Set (Set.Iio α)) := isOpen_discrete _
  have himg : IsOpen (((↑) : Set.Iio α → Ordinal.{0}) '' {⟨ω, h⟩}) :=
    isOpen_Iio.isOpenEmbedding_subtypeVal.isOpenMap _ hω
  rw [image_singleton] at himg
  exact SuccOrder.isOpen_singleton_iff.1 himg Ordinal.isSuccLimit_omega0

On this site: Countable ordinal spaces: the space is not discrete when \(\alpha > \omega\)

theorem compactSpace

TopologyByExample.OrdinalSpace.compactSpace

If α is not a limit ordinal, the ordinal space [0, α) is compact: it is empty if α = 0, and it is the compact set [0, β] if α = β + 1.

theorem compactSpace (h : ¬IsSuccLimit α) : CompactSpace (Set.Iio α)
Proof
:= by
  rcases eq_or_ne α 0 with rfl | h0
  · have : IsEmpty (Set.Iio (0 : Ordinal.{0})) := ⟨fun x ↦ by simpa using x.property⟩
    infer_instance
  · obtain ⟨b, rfl⟩ := Ordinal.zero_or_succ_or_isSuccLimit α |>.resolve_left h0
      |>.resolve_right h
    refine ⟨?_⟩
    rw [Subtype.isCompact_iff, image_univ, Subtype.range_coe]
    have : Set.Iio (Order.succ b) = Iic b := by
      ext x
      simp
    rw [this]
    exact Icc_bot (a := (b : Ordinal.{0})) ▸ isCompact_Icc

On this site: Countable ordinal spaces: the space is compact when \(\alpha\) is not a limit ordinal

theorem not_compactSpace

TopologyByExample.OrdinalSpace.not_compactSpace

If α is a limit ordinal, the ordinal space [0, α) is not compact: a nonempty compact set of ordinals has a greatest element m, and m + 1 is still below α.

theorem not_compactSpace (h : IsSuccLimit α) : ¬CompactSpace (Set.Iio α)
Proof
:= fun hc ↦ by
  have hK : IsCompact (Set.Iio α) := by
    rw [← Subtype.range_coe (s := Set.Iio α), ← image_univ]
    exact isCompact_univ.image continuous_subtypeVal
  obtain ⟨m, hm, hmax⟩ := hK.exists_isGreatest ⟨0, h.bot_lt⟩
  exact (Order.lt_succ m).not_ge (hmax (h.succ_lt hm))

On this site: Countable ordinal spaces: the space is not compact when \(\alpha\) is a limit ordinal

theorem countable_Iio_omega0_mul_two

TopologyByExample.OrdinalSpace.countable_Iio_omega0_mul_two

The ordinals below ω · 2 are countable.

theorem countable_Iio_omega0_mul_two : Countable (Set.Iio (ω * 2 : Ordinal.{0}))
Proof
:= by
  refine (Cardinal.countable_Iio_of_lt_omega_one ?_).to_subtype
  rw [Ordinal.mul_two]
  exact Ordinal.isPrincipal_add_omega 1 Ordinal.omega0_lt_omega_one Ordinal.omega0_lt_omega_one

theorem omega0_lt_omega0_mul_two

TopologyByExample.OrdinalSpace.omega0_lt_omega0_mul_two

ω < ω · 2.

theorem omega0_lt_omega0_mul_two : (ω : Ordinal.{0}) < ω * 2
Proof
:= by
  rw [Ordinal.mul_two]
  exact lt_add_of_pos_right _ Ordinal.omega0_pos

theorem isSuccLimit_omega0_mul_two

TopologyByExample.OrdinalSpace.isSuccLimit_omega0_mul_two

ω · 2 is a limit ordinal.

theorem isSuccLimit_omega0_mul_two : IsSuccLimit (ω * 2 : Ordinal.{0})
Proof
:= by
  rw [Ordinal.mul_two]
  exact Ordinal.isSuccLimit_add _ Ordinal.isSuccLimit_omega0

theorem countable_Iio_omega0_add_one

TopologyByExample.OrdinalSpace.countable_Iio_omega0_add_one

The ordinals below ω + 1 are countable.

theorem countable_Iio_omega0_add_one : Countable (Set.Iio (ω + 1 : Ordinal.{0}))
Proof
:=
  (Cardinal.countable_Iio_of_lt_omega_one (Ordinal.isPrincipal_add_omega 1
    Ordinal.omega0_lt_omega_one
    (Ordinal.one_lt_omega0.trans Ordinal.omega0_lt_omega_one))).to_subtype

theorem omega0_lt_omega0_add_one

TopologyByExample.OrdinalSpace.omega0_lt_omega0_add_one

ω < ω + 1.

theorem omega0_lt_omega0_add_one : (ω : Ordinal.{0}) < ω + 1
Proof
:=
  Order.lt_add_one_iff.2 le_rfl

theorem not_isSuccLimit_omega0_add_one

TopologyByExample.OrdinalSpace.not_isSuccLimit_omega0_add_one

ω + 1 is not a limit ordinal.

theorem not_isSuccLimit_omega0_add_one : ¬IsSuccLimit (ω + 1 : Ordinal.{0})
Proof
:= by
  rw [← Order.succ_eq_add_one]
  exact not_isSuccLimit_succ _

On this site: Space: Ordinal space of a countable limit ordinal above \(\omega\); Space: Ordinal space of a countable successor ordinal above \(\omega\); Family: Countable ordinal spaces