Lean library · module TopologyByExample.Spaces.DeletedOrdinalSquare

The deleted ordinal square

Source file

The square of the closed ordinal interval [0, ω₁], with its top corner removed, is locally compact and ω-bounded. The bounded-strip argument keeps the closure of every countable subset away from the missing corner.

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.

Imports

definition DeletedOrdinalSquare

TopologyByExample.DeletedOrdinalSquare

The square of the closed first uncountable ordinal with the top corner removed.

abbrev DeletedOrdinalSquare
:=
  ↥({((⊤, ⊤) : WithTop OmegaOne × WithTop OmegaOne)}ᶜ :
    Set (WithTop OmegaOne × WithTop OmegaOne))

On this site: Space: The deleted ordinal square

definition Compactification

TopologyByExample.DeletedOrdinalSquare.Compactification

The compact square containing the deleted ordinal square.

abbrev Compactification
:= WithTop OmegaOne × WithTop OmegaOne

instance

The closed first uncountable ordinal is compact.

instance : CompactSpace (WithTop OmegaOne)
Proof
:=
  OmegaOnePlusOne.homeomorphWithTop.compactSpace

definition left

TopologyByExample.DeletedOrdinalSquare.left

A point with a finite first coordinate.

def left (a : OmegaOne) (b : WithTop OmegaOne) : DeletedOrdinalSquare
:=
  ⟨(a, b), by simp⟩

definition right

TopologyByExample.DeletedOrdinalSquare.right

A point with a finite second coordinate.

def right (a : WithTop OmegaOne) (b : OmegaOne) : DeletedOrdinalSquare
:=
  ⟨(a, b), by simp⟩

definition diagonal

TopologyByExample.DeletedOrdinalSquare.diagonal

A point on the diagonal below the deleted corner.

def diagonal (a : OmegaOne) : DeletedOrdinalSquare
:= left a a

theorem continuous_left

TopologyByExample.DeletedOrdinalSquare.continuous_left

The inclusion of the strip with finite first coordinate is continuous.

theorem continuous_left : Continuous fun p : OmegaOne × WithTop OmegaOne ↦ left p.1 p.2
Proof
:=
  ((WithTop.continuous_coe.comp continuous_fst).prodMk continuous_snd).subtype_mk _

theorem continuous_right

TopologyByExample.DeletedOrdinalSquare.continuous_right

The inclusion of the strip with finite second coordinate is continuous.

theorem continuous_right : Continuous fun p : WithTop OmegaOne × OmegaOne ↦ right p.1 p.2
Proof
:=
  (continuous_fst.prodMk (WithTop.continuous_coe.comp continuous_snd)).subtype_mk _

theorem continuous_diagonal

TopologyByExample.DeletedOrdinalSquare.continuous_diagonal

The diagonal map is continuous.

theorem continuous_diagonal : Continuous diagonal
Proof
:=
  continuous_left.comp (continuous_id.prodMk WithTop.continuous_coe)

instance

The deleted square is inhabited.

instance : Nonempty DeletedOrdinalSquare
Proof
:= ⟨diagonal ⊥⟩

instance

The deleted square has distinct points.

instance : Nontrivial DeletedOrdinalSquare
Proof
:=
  ⟨⟨left ⊥ ⊤, right ⊤ ⊥, fun h ↦ WithTop.coe_ne_top
    (congrArg (fun p : DeletedOrdinalSquare ↦ p.val.1) h)⟩⟩

theorem isOpen_underlying

TopologyByExample.DeletedOrdinalSquare.isOpen_underlying

The deleted square is an open subspace of the compact square.

theorem isOpen_underlying : IsOpen ({((⊤, ⊤) : Compactification)}ᶜ)
Proof
:=
  isClosed_singleton.isOpen_compl

instance

The deleted square is locally compact.

instance : LocallyCompactSpace DeletedOrdinalSquare
Proof
:= isOpen_underlying.locallyCompactSpace

definition strip

TopologyByExample.DeletedOrdinalSquare.strip

The union of the two closed strips bounded by a countable ordinal.

def strip (a : OmegaOne) : Set Compactification
:=
  {p | p.1 ≤ (a : WithTop OmegaOne) ∨ p.2 ≤ (a : WithTop OmegaOne)}

theorem isClosed_strip

TopologyByExample.DeletedOrdinalSquare.isClosed_strip

A bounded strip is closed.

theorem isClosed_strip (a : OmegaOne) : IsClosed (strip a)
Proof
:=
  (isClosed_le continuous_fst continuous_const).union
    (isClosed_le continuous_snd continuous_const)

theorem isCompact_strip

TopologyByExample.DeletedOrdinalSquare.isCompact_strip

A bounded strip is compact.

theorem isCompact_strip (a : OmegaOne) : IsCompact (strip a)
Proof
:= (isClosed_strip a).isCompact

theorem strip_subset_range

TopologyByExample.DeletedOrdinalSquare.strip_subset_range

The bounded strips avoid the deleted corner.

theorem strip_subset_range (a : OmegaOne) :
    strip a ⊆ range (Subtype.val : DeletedOrdinalSquare → Compactification)
Proof
:= by
  intro p hp
  refine ⟨⟨p, ?_⟩, rfl⟩
  intro he
  subst p
  simp [strip] at hp

theorem exists_strip_of_countable

TopologyByExample.DeletedOrdinalSquare.exists_strip_of_countable

Every countable subset is contained in one bounded strip.

theorem exists_strip_of_countable {s : Set DeletedOrdinalSquare} (hs : s.Countable) :
    ∃ a : OmegaOne, s ⊆ Subtype.val ⁻¹' strip a
Proof
:= by
  have h₁ : (((↑) : OmegaOne → WithTop OmegaOne) ⁻¹' ((fun p ↦ p.val.1) '' s)).Countable :=
    (hs.image _).preimage WithTop.coe_injective
  have h₂ : (((↑) : OmegaOne → WithTop OmegaOne) ⁻¹' ((fun p ↦ p.val.2) '' s)).Countable :=
    (hs.image _).preimage WithTop.coe_injective
  obtain ⟨a, ha⟩ := OmegaOne.bddAbove_of_countable (h₁.union h₂)
  refine ⟨a, fun p hp ↦ ?_⟩
  rcases p with ⟨⟨x, y⟩, hxy⟩
  induction x using WithTop.recTopCoe with
  | coe x =>
    exact Or.inl (WithTop.coe_le_coe.mpr (ha (Or.inl ⟨_, hp, rfl⟩)))
  | top =>
    induction y using WithTop.recTopCoe with
    | top => exact False.elim (hxy rfl)
    | coe y =>
      exact Or.inr (WithTop.coe_le_coe.mpr (ha (Or.inr ⟨_, hp, rfl⟩)))

theorem omegaBounded

TopologyByExample.DeletedOrdinalSquare.omegaBounded

Every countable subset has compact closure.

theorem omegaBounded (s : Set DeletedOrdinalSquare) (hs : s.Countable) : IsCompact (closure s)
Proof
:= by
  obtain ⟨a, ha⟩ := exists_strip_of_countable hs
  have hK := IsInducing.subtypeVal.isCompact_preimage' (isCompact_strip a) (strip_subset_range a)
  exact hK.of_isClosed_subset isClosed_closure
    (closure_minimal ha ((isClosed_strip a).preimage continuous_subtypeVal))

On this site: The deleted ordinal square is ω-bounded

instance

The deleted ordinal square is countably compact.

instance : CountablyCompactSpace DeletedOrdinalSquare
Proof
:=
  countablyCompactSpace_of_omegaBounded omegaBounded

theorem pseudocompactSpace

TopologyByExample.DeletedOrdinalSquare.pseudocompactSpace

The deleted ordinal square is pseudocompact.

theorem pseudocompactSpace : PseudocompactSpace DeletedOrdinalSquare
Proof
:= inferInstance

theorem corner_mem_closure

TopologyByExample.DeletedOrdinalSquare.corner_mem_closure

The missing corner belongs to the closure of the deleted square.

theorem corner_mem_closure :
    (⊤, ⊤) ∈ closure (range (Subtype.val : DeletedOrdinalSquare → Compactification))
Proof
:= by
  apply mem_closure_of_tendsto
    (WithTop.tendsto_coe_atTop.prodMk_nhds WithTop.tendsto_coe_atTop)
  exact Eventually.of_forall fun a : OmegaOne ↦ ⟨diagonal a, rfl⟩

theorem not_compactSpace

TopologyByExample.DeletedOrdinalSquare.not_compactSpace

The deleted ordinal square is not compact.

theorem not_compactSpace : ¬CompactSpace DeletedOrdinalSquare
Proof
:= by
  intro h
  have hclosed : IsClosed (range (Subtype.val : DeletedOrdinalSquare → Compactification)) :=
    (isCompact_range continuous_subtypeVal).isClosed
  obtain ⟨p, hp⟩ := hclosed.closure_eq ▸ corner_mem_closure
  exact p.property hp