Lean library · module TopologyByExample.Theorems.TwoOmegaSum
The ordinal ω · 2 as a convergent sequence plus a discrete sequence
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 Initial
TopologyByExample.TwoOmegaSum.Initial
The compact initial segment.
abbrev Initial
:= ↥(Iio (ω + 1 : Ordinal.{0}))
definition Space
TopologyByExample.TwoOmegaSum.Space
The full ordinal subspace.
abbrev Space
:= ↥(Iio (ω * 2 : Ordinal.{0}))
theorem initial_le
TopologyByExample.TwoOmegaSum.initial_le
The compact initial segment lies below the full ordinal.
theorem initial_le : (ω + 1 : Ordinal.{0}) ≤ ω * 2
Proof
:= by
rw [Ordinal.mul_two]
exact ((add_lt_add_iff_left ω).mpr Ordinal.one_lt_omega0).le
definition initial
TopologyByExample.TwoOmegaSum.initial
Inclusion of the compact initial segment.
def initial : Initial → Space
:= Set.inclusion (fun _ h ↦ h.trans_le initial_le)
definition tail
TopologyByExample.TwoOmegaSum.tail
The isolated points beyond the unique limit point.
def tail (n : ℕ) : Space
Definition
:= ⟨ω + (n + 1 : ℕ), by
change (ω : Ordinal.{0}) + (n + 1 : ℕ) < ω * 2
rw [Ordinal.mul_two]
exact (add_lt_add_iff_left ω).mpr (Ordinal.natCast_lt_omega0 _)⟩
definition combine
TopologyByExample.TwoOmegaSum.combine
Combine the two disjoint pieces.
def combine : Initial ⊕ ℕ → Space
:= Sum.elim initial tail
theorem combine_injective
TopologyByExample.TwoOmegaSum.combine_injective
The combined map is injective.
theorem combine_injective : Function.Injective combine
Proof
:= by
intro x y h
have hv := congrArg Subtype.val h
cases x with
| inl x =>
cases y with
| inl y => exact congrArg Sum.inl (Subtype.ext hv)
| inr n =>
have hn : (ω + 1 : Ordinal.{0}) ≤ ω + (n + 1 : ℕ) :=
(add_le_add_iff_left ω).mpr (by exact_mod_cast Nat.succ_le_succ (Nat.zero_le n))
change (x : Ordinal) = ω + (n + 1 : ℕ) at hv
have hx : (x : Ordinal) < ω + 1 := x.property
exact (hx.not_ge (by rw [hv]; exact hn)).elim
| inr n =>
cases y with
| inl y =>
have hn : (ω + 1 : Ordinal.{0}) ≤ ω + (n + 1 : ℕ) :=
(add_le_add_iff_left ω).mpr (by exact_mod_cast Nat.succ_le_succ (Nat.zero_le n))
change (ω : Ordinal.{0}) + (n + 1 : ℕ) = (y : Ordinal) at hv
have hy : (y : Ordinal) < ω + 1 := y.property
exact (hy.not_ge (by rw [← hv]; exact hn)).elim
| inr m =>
have he : (n + 1 : ℕ) = m + 1 := by
exact_mod_cast add_left_cancel hv
exact congrArg Sum.inr (Nat.add_right_cancel he)
theorem combine_surjective
TopologyByExample.TwoOmegaSum.combine_surjective
Every ordinal below ω · 2 belongs to one of these pieces.
theorem combine_surjective : Function.Surjective combine
Proof
:= by
intro x
by_cases hx : (x : Ordinal) < ω + 1
· exact ⟨Sum.inl ⟨x, hx⟩, rfl⟩
· have hω : (ω : Ordinal.{0}) ≤ x :=
le_trans (le_add_of_nonneg_right (zero_le)) (le_of_not_gt hx)
have he := Ordinal.add_sub_cancel_of_le hω
have hd : (x : Ordinal) - ω < ω := by
apply (add_lt_add_iff_left ω).mp
rw [he]
have hxlt : (x : Ordinal) < ω * 2 := x.property
simpa only [Ordinal.mul_two] using hxlt
obtain ⟨n, hn⟩ := Ordinal.lt_omega0.mp hd
cases n with
| zero =>
have hzero : (x : Ordinal) = ω := by simpa [hn] using he.symm
apply (hx ?_).elim
rw [hzero]
exact OrdinalSpace.omega0_lt_omega0_add_one
| succ n =>
refine ⟨Sum.inr n, Subtype.ext ?_⟩
change ω + (n + 1 : ℕ) = (x : Ordinal)
simpa only [hn] using he
theorem isOpenEmbedding_initial
TopologyByExample.TwoOmegaSum.isOpenEmbedding_initial
Inclusion of the initial segment is an open embedding.
theorem isOpenEmbedding_initial : IsOpenEmbedding initial
theorem isOpen_singleton_tail
TopologyByExample.TwoOmegaSum.isOpen_singleton_tail
Each tail point is isolated in the ordinal subspace.
theorem isOpen_singleton_tail (n : ℕ) : IsOpen ({tail n} : Set Space)
Proof
:= by
have ho : IsOpen ({(ω : Ordinal.{0}) + (n + 1 : ℕ)} : Set Ordinal) := by
apply SuccOrder.isOpen_singleton_of_not_isSuccLimit
rw [Nat.cast_add, Nat.cast_one, ← add_assoc, ← Order.succ_eq_add_one]
exact not_isSuccLimit_succ _
convert ho.preimage continuous_subtypeVal using 1
ext x
simp only [mem_singleton_iff, mem_preimage, Subtype.ext_iff, tail]
theorem isOpenMap_tail
TopologyByExample.TwoOmegaSum.isOpenMap_tail
The tail map is open.
theorem isOpenMap_tail : IsOpenMap tail
Proof
:= by
intro s _
apply isOpen_iff_mem_nhds.mpr
rintro _ ⟨n, hn, rfl⟩
exact Filter.mem_of_superset ((isOpen_singleton_tail n).mem_nhds (mem_singleton _))
(singleton_subset_iff.mpr ⟨n, hn, rfl⟩)
definition homeomorph
TopologyByExample.TwoOmegaSum.homeomorph
The ordinal subspace is the topological sum of its initial segment and tail.
def homeomorph : Initial ⊕ ℕ ≃ₜ Space
Definition
:=
(Equiv.ofBijective combine ⟨combine_injective, combine_surjective⟩).toHomeomorphOfContinuousOpen
(continuous_sum_dom.mpr ⟨isOpenEmbedding_initial.continuous, continuous_of_discreteTopology⟩)
(isOpenMap_sum.mpr ⟨isOpenEmbedding_initial.isOpenMap, isOpenMap_tail⟩)
definition alternatingHomeomorph
TopologyByExample.TwoOmegaSum.alternatingHomeomorph
The alternating reciprocal subset is exactly the existing ordinal witness.
def alternatingHomeomorph : AlternatingReciprocals.subset ≃ₜ Space
Definition
:=
AlternatingReciprocals.homeomorph.trans
((Homeomorph.sumComm _ _).trans
(((FortSpaces.exists_homeomorph_Iio_omega0_add_one (X := ℕ)).choose.sumCongr
(Homeomorph.refl ℕ)).trans homeomorph))
On this site: Theorem: The alternating reciprocal subset is homeomorphic to the ordinal space below omega times two