Lean library · module TopologyByExample.Spaces.OmegaOnePlusOnePlusReverseOmega

The ordered space ω₁ + 1 + ω*

Source file

The space TopologyByExample.OmegaOnePlusOnePlusReverseOmega is the linear order ω₁ + 1 + ω* with its order topology: the ordinals up to and including ω₁, followed by a copy of the natural numbers in reverse order, ⋯ < 2 < 1 < 0. We model it as the lexicographic sum WithTop OmegaOne ⊕ₗ ℕᵒᵈ; the point ofTop ⊤ is ω₁, and ofNat n is the copy of n.

Main statements

  • exists_isLUB, exists_completeLinearOrder_orderTopology: the order is complete, so the space is the order topology of a complete linear order;
  • scatteredSpace: the space is scattered;
  • not_countableChainCondition: the successor ordinals below ω₁ are uncountably many disjoint open singletons;
  • isSeqClosed_countableOrdinals, not_sequentialSpace: the countable ordinals form a sequentially closed set that is not closed;
  • tendsto_ofNat_and_not_isCountablyGenerated: the point ω₁ is the limit of the sequence 0, 1, 2, … of the reversed copy of ω, but has no countable neighbourhood base.

Tags

ordinal, order topology, lexicographic sum, sequential space, first countable

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

definition OmegaOnePlusOnePlusReverseOmega

TopologyByExample.OmegaOnePlusOnePlusReverseOmega

The linear order ω₁ + 1 + ω*, as the lexicographic sum of ω₁ + 1 (WithTop OmegaOne) and the natural numbers in reverse order, with its order topology.

def OmegaOnePlusOnePlusReverseOmega : Type
:= WithTop OmegaOne ⊕ₗ ℕᵒᵈ

On this site: Space: Ordered space \(\omega_1 + 1 + \omega^*\)

local notation "W" => OmegaOnePlusOnePlusReverseOmega

instance

The lexicographic order.

noncomputable instance : LinearOrder W
Proof
:=
  inferInstanceAs (LinearOrder (WithTop OmegaOne ⊕ₗ ℕᵒᵈ))

instance

The order topology.

noncomputable instance : TopologicalSpace W
Proof
:=
  Preorder.topology W

instance

instance : OrderTopology W
Proof
:=
  ⟨rfl⟩

definition ofTop

TopologyByExample.OmegaOnePlusOnePlusReverseOmega.ofTop

The point of ω₁ + 1 given by an ordinal at most ω₁.

def ofTop (a : WithTop OmegaOne) : W
:=
  toLex (Sum.inl a)

definition ofNat

TopologyByExample.OmegaOnePlusOnePlusReverseOmega.ofNat

The copy of the natural number n in the final segment ω*.

def ofNat (n : ℕ) : W
:=
  toLex (Sum.inr (OrderDual.toDual n))

instance

instance : Nonempty W
Proof
:=
  ⟨ofNat 0⟩

theorem eq_ofTop_or_eq_ofNat

TopologyByExample.OmegaOnePlusOnePlusReverseOmega.eq_ofTop_or_eq_ofNat

theorem eq_ofTop_or_eq_ofNat (x : W) : (∃ a, x = ofTop a) ∨ ∃ n, x = ofNat n
Proof
:= by
  obtain ⟨a | n, rfl⟩ := toLex.surjective (x : WithTop OmegaOne ⊕ₗ ℕᵒᵈ)
  · exact .inl ⟨a, rfl⟩
  · exact .inr ⟨OrderDual.ofDual n, rfl⟩

theorem ofTop_le_ofTop

TopologyByExample.OmegaOnePlusOnePlusReverseOmega.ofTop_le_ofTop

@[simp]
theorem ofTop_le_ofTop {a b : WithTop OmegaOne} : ofTop a ≤ ofTop b ↔ a ≤ b
Proof
:=
  Sum.Lex.inl_le_inl_iff

theorem ofTop_lt_ofTop

TopologyByExample.OmegaOnePlusOnePlusReverseOmega.ofTop_lt_ofTop

@[simp]
theorem ofTop_lt_ofTop {a b : WithTop OmegaOne} : ofTop a < ofTop b ↔ a < b
Proof
:=
  Sum.Lex.inl_lt_inl_iff

theorem ofNat_le_ofNat

TopologyByExample.OmegaOnePlusOnePlusReverseOmega.ofNat_le_ofNat

@[simp]
theorem ofNat_le_ofNat {m n : ℕ} : ofNat m ≤ ofNat n ↔ n ≤ m
Proof
:=
  Sum.Lex.inr_le_inr_iff

theorem ofNat_lt_ofNat

TopologyByExample.OmegaOnePlusOnePlusReverseOmega.ofNat_lt_ofNat

@[simp]
theorem ofNat_lt_ofNat {m n : ℕ} : ofNat m < ofNat n ↔ n < m
Proof
:=
  Sum.Lex.inr_lt_inr_iff

theorem ofTop_lt_ofNat

TopologyByExample.OmegaOnePlusOnePlusReverseOmega.ofTop_lt_ofNat

theorem ofTop_lt_ofNat (a : WithTop OmegaOne) (n : ℕ) : ofTop a < ofNat n
Proof
:=
  Sum.Lex.inl_lt_inr _ _

theorem not_ofNat_le_ofTop

TopologyByExample.OmegaOnePlusOnePlusReverseOmega.not_ofNat_le_ofTop

@[simp]
theorem not_ofNat_le_ofTop {a : WithTop OmegaOne} {n : ℕ} : ¬ofNat n ≤ ofTop a
Proof
:=
  Sum.Lex.not_inr_le_inl

theorem not_ofNat_lt_ofTop

TopologyByExample.OmegaOnePlusOnePlusReverseOmega.not_ofNat_lt_ofTop

@[simp]
theorem not_ofNat_lt_ofTop {a : WithTop OmegaOne} {n : ℕ} : ¬ofNat n < ofTop a
Proof
:=
  Sum.Lex.not_inr_lt_inl

theorem ofTop_inj

TopologyByExample.OmegaOnePlusOnePlusReverseOmega.ofTop_inj

@[simp]
theorem ofTop_inj {a b : WithTop OmegaOne} : ofTop a = ofTop b ↔ a = b
Proof
:=
  ⟨fun h ↦ le_antisymm (ofTop_le_ofTop.1 h.le) (ofTop_le_ofTop.1 h.ge), fun h ↦ h ▸ rfl⟩

theorem ofNat_inj

TopologyByExample.OmegaOnePlusOnePlusReverseOmega.ofNat_inj

@[simp]
theorem ofNat_inj {m n : ℕ} : ofNat m = ofNat n ↔ m = n
Proof
:=
  ⟨fun h ↦ le_antisymm (ofNat_le_ofNat.1 h.ge) (ofNat_le_ofNat.1 h.le), fun h ↦ h ▸ rfl⟩

theorem ofTop_ne_ofNat

TopologyByExample.OmegaOnePlusOnePlusReverseOmega.ofTop_ne_ofNat

@[simp]
theorem ofTop_ne_ofNat {a : WithTop OmegaOne} {n : ℕ} : ofTop a ≠ ofNat n
Proof
:=
  (ofTop_lt_ofNat a n).ne

Completeness

theorem exists_isLUB

TopologyByExample.OmegaOnePlusOnePlusReverseOmega.exists_isLUB

Every set has a least upper bound: the greatest point of ω* it contains, if it meets ω*, and otherwise the supremum of its points in ω₁ + 1.

theorem exists_isLUB (s : Set W) : ∃ x, IsLUB s x
Proof
:= by
  classical
  by_cases hB : ∃ n, ofNat n ∈ s
  · refine ⟨ofNat (Nat.find hB), fun x hx ↦ ?_, fun v hv ↦ hv (Nat.find_spec hB)⟩
    rcases eq_ofTop_or_eq_ofNat x with ⟨a, rfl⟩ | ⟨k, rfl⟩
    · exact (ofTop_lt_ofNat a _).le
    · exact ofNat_le_ofNat.2 (Nat.find_min' hB hx)
  · simp only [not_exists] at hB
    refine ⟨ofTop (sSup {a | ofTop a ∈ s}), fun x hx ↦ ?_, fun v hv ↦ ?_⟩
    · rcases eq_ofTop_or_eq_ofNat x with ⟨a, rfl⟩ | ⟨k, rfl⟩
      · exact ofTop_le_ofTop.2 (le_sSup hx)
      · exact absurd hx (hB k)
    · rcases eq_ofTop_or_eq_ofNat v with ⟨c, rfl⟩ | ⟨k, rfl⟩
      · exact ofTop_le_ofTop.2 (sSup_le fun a ha ↦ ofTop_le_ofTop.1 (hv ha))
      · exact (ofTop_lt_ofNat _ k).le

theorem exists_completeLinearOrder_orderTopology

TopologyByExample.OmegaOnePlusOnePlusReverseOmega.exists_completeLinearOrder_orderTopology

The space is the order topology of a complete linear order.

theorem exists_completeLinearOrder_orderTopology :
    ∃ o : CompleteLinearOrder W, letI := o; OrderTopology W
Proof
:= by
  choose u hu using exists_isLUB
  have hl (s : Set W) : IsGLB s (u (lowerBounds s)) := isLUB_lowerBounds.1 (hu _)
  let : CompleteLattice W :=
    { (inferInstance : Lattice W) with
      sSup := u
      sInf := fun s ↦ u (lowerBounds s)
      isLUB_sSup := hu
      isGLB_sInf := hl
      top := u univ
      le_top := fun x ↦ (hu univ).1 (mem_univ x)
      bot := u (lowerBounds univ)
      bot_le := fun x ↦ (hl univ).1 (mem_univ x) }
  exact ⟨{ (inferInstance : LinearOrder W), this, LinearOrder.toBiheytingAlgebra W with },
    inferInstance⟩

On this site: The ordered space \(\omega_1 + 1 + \omega^*\) is the order topology of a complete linear order

Isolated points and open initial segments

theorem isOpen_singleton_ofNat

TopologyByExample.OmegaOnePlusOnePlusReverseOmega.isOpen_singleton_ofNat

Every point of the final segment ω* is isolated.

theorem isOpen_singleton_ofNat (n : ℕ) : IsOpen ({ofNat n} : Set W)
Proof
:= by
  cases n with
  | zero =>
    convert isOpen_Ioi (a := ofNat 1) using 1
    ext x
    rcases eq_ofTop_or_eq_ofNat x with ⟨a, rfl⟩ | ⟨k, rfl⟩
    · simp
    · simp only [mem_singleton_iff, ofNat_inj, mem_Ioi, ofNat_lt_ofNat]
      omega
  | succ n =>
    convert isOpen_Ioo (a := ofNat (n + 2)) (b := ofNat n) using 1
    ext x
    rcases eq_ofTop_or_eq_ofNat x with ⟨a, rfl⟩ | ⟨k, rfl⟩
    · simp
    · simp only [mem_singleton_iff, ofNat_inj, mem_Ioo, ofNat_lt_ofNat]
      omega

theorem isOpen_Iic_ofTop_coe

TopologyByExample.OmegaOnePlusOnePlusReverseOmega.isOpen_Iic_ofTop_coe

For a countable ordinal α, the closed initial segment [0, α] is open: it is [0, α + 1).

theorem isOpen_Iic_ofTop_coe (α : OmegaOne) : IsOpen (Iic (ofTop (α : WithTop OmegaOne)))
Proof
:= by
  convert isOpen_Iio (a := ofTop ((Order.succ α : OmegaOne) : WithTop OmegaOne)) using 1
  ext x
  rcases eq_ofTop_or_eq_ofNat x with ⟨a, rfl⟩ | ⟨k, rfl⟩
  · simp only [mem_Iic, mem_Iio, ofTop_le_ofTop, ofTop_lt_ofTop]
    cases a using WithTop.recTopCoe with
    | top => simp
    | coe γ => simp [Order.lt_succ_iff]
  · simp

The values

theorem scatteredSpace

TopologyByExample.OmegaOnePlusOnePlusReverseOmega.scatteredSpace

The space is scattered: a set meeting ω* has an isolated point there, and otherwise its least element is isolated in it.

theorem scatteredSpace : ScatteredSpace W
Proof
:= by
  refine scatteredSpace_iff_exists_isolated.2 fun s hs ↦ ?_
  by_cases hB : ∃ n, ofNat n ∈ s
  · obtain ⟨n, hn⟩ := hB
    exact ⟨ofNat n, hn, {ofNat n}, (isOpen_singleton_ofNat n).mem_nhds rfl, inter_subset_left⟩
  simp only [not_exists] at hB
  have hA : {a | ofTop a ∈ s}.Nonempty := by
    obtain ⟨x, hx⟩ := hs
    rcases eq_ofTop_or_eq_ofNat x with ⟨a, rfl⟩ | ⟨k, rfl⟩
    · exact ⟨a, hx⟩
    · exact absurd hx (hB k)
  obtain ⟨a, ha, hmin⟩ := wellFounded_lt.has_min _ hA
  have hs' : ∀ x ∈ s, ∃ c, x = ofTop c ∧ a ≤ c := fun x hx ↦ by
    rcases eq_ofTop_or_eq_ofNat x with ⟨c, rfl⟩ | ⟨k, rfl⟩
    · exact ⟨c, rfl, not_lt.1 (hmin c hx)⟩
    · exact absurd hx (hB k)
  cases a using WithTop.recTopCoe with
  | top =>
    refine ⟨_, ha, univ, univ_mem, fun x hx ↦ ?_⟩
    obtain ⟨c, rfl, hc⟩ := hs' x hx.2
    exact ofTop_inj.2 (top_le_iff.1 hc)
  | coe α =>
    refine ⟨_, ha, Iic (ofTop α), (isOpen_Iic_ofTop_coe α).mem_nhds (mem_Iic.2 le_rfl),
      fun x hx ↦ ?_⟩
    obtain ⟨c, rfl, hc⟩ := hs' x hx.2
    exact le_antisymm hx.1 (ofTop_le_ofTop.2 hc)

On this site: The ordered space \(\omega_1 + 1 + \omega^*\) is scattered

theorem not_countableChainCondition

TopologyByExample.OmegaOnePlusOnePlusReverseOmega.not_countableChainCondition

The space does not satisfy the countable chain condition: the sets (α, α + 1], for the uncountably many countable ordinals α, are disjoint, open and nonempty.

theorem not_countableChainCondition :
    ¬∀ S : Set (Set W), (∀ s ∈ S, IsOpen s ∧ s.Nonempty) → S.PairwiseDisjoint id → S.Countable
Proof
:= by
  set U : OmegaOne → Set W := fun α ↦
    Iic (ofTop ((Order.succ α : OmegaOne) : WithTop OmegaOne)) ∩ Ioi (ofTop α) with hU
  have hdisj {α β : OmegaOne} (h : α < β) : Disjoint (U α) (U β) := by
    refine disjoint_left.2 fun x hx hy ↦ ?_
    have h1 : ofTop ((Order.succ α : OmegaOne) : WithTop OmegaOne) ≤ ofTop β :=
      ofTop_le_ofTop.2 (WithTop.coe_le_coe.2 (Order.succ_le_of_lt h))
    exact (hy.2.trans_le (hx.1.trans h1)).false
  refine not_countableChainCondition_of_pairwise_disjoint (ι := OmegaOne) (U := U)
    (fun α ↦ (isOpen_Iic_ofTop_coe _).inter isOpen_Ioi)
    (fun α ↦ ⟨_, mem_Iic.2 le_rfl, ofTop_lt_ofTop.2 (WithTop.coe_lt_coe.2 (Order.lt_succ α))⟩)
    fun α β hne ↦ ?_
  rcases lt_or_gt_of_ne hne with h | h
  · exact hdisj h
  · exact (hdisj h).symm

On this site: The ordered space \(\omega_1 + 1 + \omega^*\) does not satisfy the countable chain condition

definition countableOrdinals

TopologyByExample.OmegaOnePlusOnePlusReverseOmega.countableOrdinals

The countable ordinals, as a subset of ω₁ + 1 + ω*.

def countableOrdinals : Set W
:=
  range fun α : OmegaOne ↦ ofTop α

theorem isLUB_countableOrdinals

TopologyByExample.OmegaOnePlusOnePlusReverseOmega.isLUB_countableOrdinals

ω₁ is the least upper bound of the countable ordinals.

theorem isLUB_countableOrdinals : IsLUB countableOrdinals (ofTop ⊤)
Proof
:= by
  refine ⟨?_, fun v hv ↦ ?_⟩
  · rintro _ ⟨α, rfl⟩
    exact ofTop_le_ofTop.2 le_top
  · rcases eq_ofTop_or_eq_ofNat v with ⟨c, rfl⟩ | ⟨k, rfl⟩
    · refine ofTop_le_ofTop.2 ?_
      cases c using WithTop.recTopCoe with
      | top => exact le_rfl
      | coe γ =>
        exact absurd (WithTop.coe_le_coe.1 (ofTop_le_ofTop.1 (hv ⟨Order.succ γ, rfl⟩)))
          (Order.lt_succ γ).not_ge
    · exact (ofTop_lt_ofNat _ k).le

theorem top_mem_closure

TopologyByExample.OmegaOnePlusOnePlusReverseOmega.top_mem_closure

ω₁ lies in the closure of the countable ordinals.

theorem top_mem_closure : ofTop ⊤ ∈ closure countableOrdinals
Proof
:=
  isLUB_countableOrdinals.mem_closure ⟨_, ⊥, rfl⟩

theorem top_notMem

TopologyByExample.OmegaOnePlusOnePlusReverseOmega.top_notMem

ω₁ is not a countable ordinal.

theorem top_notMem : ofTop ⊤ ∉ countableOrdinals
Proof
:= by
  rintro ⟨α, h⟩
  exact WithTop.coe_ne_top (ofTop_inj.1 h)

theorem isSeqClosed_countableOrdinals

TopologyByExample.OmegaOnePlusOnePlusReverseOmega.isSeqClosed_countableOrdinals

The countable ordinals form a sequentially closed set: a sequence of countable ordinals is bounded by a countable ordinal b, so its limit lies in the closed set [0, b].

theorem isSeqClosed_countableOrdinals : IsSeqClosed countableOrdinals
Proof
:= by
  intro x p hx hp
  choose f hf using hx
  obtain ⟨b, hb⟩ := OmegaOne.bddAbove_of_countable (countable_range f)
  have hle : p ≤ ofTop b := isClosed_Iic.mem_of_tendsto hp (Eventually.of_forall fun n ↦ by
    rw [← hf n]
    exact ofTop_le_ofTop.2 (WithTop.coe_le_coe.2 (hb (mem_range_self n))))
  rcases eq_ofTop_or_eq_ofNat p with ⟨c, rfl⟩ | ⟨k, rfl⟩
  · cases c using WithTop.recTopCoe with
    | top => exact absurd (ofTop_le_ofTop.1 hle) (by simp)
    | coe γ => exact ⟨γ, rfl⟩
  · exact absurd hle not_ofNat_le_ofTop

theorem not_sequentialSpace

TopologyByExample.OmegaOnePlusOnePlusReverseOmega.not_sequentialSpace

The space is not sequential: the countable ordinals form a sequentially closed set that is not closed.

theorem not_sequentialSpace : ¬SequentialSpace W
Proof
:= fun _ ↦
  top_notMem (isSeqClosed_countableOrdinals.isClosed.closure_eq ▸ top_mem_closure)

On this site: The ordered space \(\omega_1 + 1 + \omega^*\) is not sequential

theorem tendsto_ofNat

TopologyByExample.OmegaOnePlusOnePlusReverseOmega.tendsto_ofNat

The copies ofNat n of the natural numbers converge to ω₁.

theorem tendsto_ofNat : Tendsto ofNat atTop (𝓝 (ofTop ⊤))
Proof
:= by
  refine tendsto_order.2 ⟨fun a ha ↦ Eventually.of_forall fun n ↦ ?_, fun b hb ↦ ?_⟩
  · rcases eq_ofTop_or_eq_ofNat a with ⟨c, rfl⟩ | ⟨k, rfl⟩
    · exact ofTop_lt_ofNat c n
    · exact absurd ha not_ofNat_lt_ofTop
  · rcases eq_ofTop_or_eq_ofNat b with ⟨c, rfl⟩ | ⟨k, rfl⟩
    · exact absurd hb (not_lt.2 (ofTop_le_ofTop.2 le_top))
    · exact (eventually_gt_atTop k).mono fun n hn ↦ ofNat_lt_ofNat.2 hn

theorem not_isCountablyGenerated_nhds_top

TopologyByExample.OmegaOnePlusOnePlusReverseOmega.not_isCountablyGenerated_nhds_top

ω₁ has no countable neighbourhood base: otherwise, choosing a countable ordinal in each member of a decreasing countable base would give a sequence of countable ordinals converging to ω₁, against isSeqClosed_countableOrdinals.

theorem not_isCountablyGenerated_nhds_top : ¬(𝓝 (ofTop ⊤ : W)).IsCountablyGenerated
Proof
:= fun h ↦ by
  obtain ⟨U, hU⟩ := (𝓝 (ofTop ⊤ : W)).exists_antitone_basis
  have hex (n : ℕ) : ∃ y ∈ countableOrdinals, y ∈ U n := by
    obtain ⟨y, hyU, hyA⟩ := mem_closure_iff_nhds.1 top_mem_closure (U n) (hU.mem n)
    exact ⟨y, hyA, hyU⟩
  choose y hyA hyU using hex
  exact top_notMem (isSeqClosed_countableOrdinals hyA (hU.tendsto hyU))

theorem tendsto_ofNat_and_not_isCountablyGenerated

TopologyByExample.OmegaOnePlusOnePlusReverseOmega.tendsto_ofNat_and_not_isCountablyGenerated

The point ω₁ is the limit of the sequence 0, 1, 2, … of the final segment ω*, but it has no countable neighbourhood base.

theorem tendsto_ofNat_and_not_isCountablyGenerated :
    Tendsto ofNat atTop (𝓝 (ofTop ⊤)) ∧ ¬(𝓝 (ofTop ⊤ : W)).IsCountablyGenerated
Proof
:=
  ⟨tendsto_ofNat, not_isCountablyGenerated_nhds_top⟩

On this site: Ordered space \(\omega_1 + 1 + \omega^*\): \(\omega_1\) is a sequential limit without a countable neighbourhood base