Lean library · module TopologyByExample.Spaces.CofiniteRightRayOmegaOnePlusOne
Cofinite right rays on the successor of the first uncountable ordinal
A basic open set is a final segment beginning at a countable ordinal, with finitely many points removed. The first uncountable ordinal itself may be removed, but cannot start a basic ray.
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 CofiniteRightRayOmegaOnePlusOne
TopologyByExample.CofiniteRightRayOmegaOnePlusOne
The ordinal successor of the first uncountable ordinal, with the cofinite right ray topology.
def CofiniteRightRayOmegaOnePlusOne
:= WithTop OmegaOne
On this site: Space: Join of the cofinite and modified right ray topologies on \(\omega_1+1\)
local notation "X" => CofiniteRightRayOmegaOnePlusOne
instance
noncomputable instance : LinearOrder X
Proof
:= inferInstanceAs (LinearOrder (WithTop OmegaOne))
instance
noncomputable instance : OrderTop X
Proof
:= inferInstanceAs (OrderTop (WithTop OmegaOne))
instance
instance : WellFoundedLT X
Proof
:= inferInstanceAs (WellFoundedLT (WithTop OmegaOne))
definition point
TopologyByExample.CofiniteRightRayOmegaOnePlusOne.point
The ordinary points of the space are the countable ordinals.
def point (a : OmegaOne) : X
:= (a : WithTop OmegaOne)
instance
instance : Nontrivial X
Proof
:= inferInstanceAs (Nontrivial (WithTop OmegaOne))
theorem point_le
TopologyByExample.CofiniteRightRayOmegaOnePlusOne.point_le
private theorem point_le {a b : OmegaOne} : point a ≤ point b ↔ a ≤ b
Proof
:= WithTop.coe_le_coe
theorem point_injective
TopologyByExample.CofiniteRightRayOmegaOnePlusOne.point_injective
private theorem point_injective : Function.Injective point
Proof
:= WithTop.coe_injective
theorem point_ne_top
TopologyByExample.CofiniteRightRayOmegaOnePlusOne.point_ne_top
private theorem point_ne_top (a : OmegaOne) : point a ≠ ⊤
Proof
:= WithTop.coe_ne_top
definition basis
TopologyByExample.CofiniteRightRayOmegaOnePlusOne.basis
The final segments beginning below the endpoint, with a finite set of exceptions.
def basis : Set (Set X)
:= {U | ∃ a : OmegaOne, ∃ F : Set X, F.Finite ∧ U = Ici (point a) \ F}
instance
instance : TopologicalSpace X
Proof
:= generateFrom basis
theorem isTopologicalBasis
TopologyByExample.CofiniteRightRayOmegaOnePlusOne.isTopologicalBasis
The indicated family is a base for the topology.
theorem isTopologicalBasis : IsTopologicalBasis basis
Proof
where
exists_subset_inter := by
rintro _ ⟨a, F, hF, rfl⟩ _ ⟨b, G, hG, rfl⟩ x hx
have he : point (max a b) = max (point a) (point b) := by
rcases le_total a b with h | h
· simp [max_eq_right h, max_eq_right (point_le.mpr h)]
· simp [max_eq_left h, max_eq_left (point_le.mpr h)]
refine ⟨Ici (point (max a b)) \ (F ∪ G), ⟨_, _, hF.union hG, rfl⟩, ?_, ?_⟩
· exact ⟨mem_Ici.mpr (he ▸ max_le hx.1.1 hx.2.1), fun h ↦ h.elim hx.1.2 hx.2.2⟩
· rintro y ⟨hy, hyFG⟩
rw [mem_Ici, he, max_le_iff] at hy
exact ⟨⟨hy.1, fun h ↦ hyFG (.inl h)⟩, hy.2, fun h ↦ hyFG (.inr h)⟩
sUnion_eq := eq_univ_of_forall fun x ↦ by
refine ⟨Ici (point ⊥) \ ∅, ⟨_, _, finite_empty, rfl⟩, ?_, notMem_empty x⟩
exact (bot_le : (⊥ : WithTop OmegaOne) ≤ x)
eq_generateFrom := rfl
theorem basic_open
TopologyByExample.CofiniteRightRayOmegaOnePlusOne.basic_open
private theorem basic_open (a : OmegaOne) {F : Set X} (hF : F.Finite) :
IsOpen (Ici (point a) \ F)
Proof
:= isTopologicalBasis.isOpen ⟨_, _, hF, rfl⟩
instance
instance : T1Space X
Proof
:= ⟨fun x ↦ isOpen_compl_iff.mp <| by
have h : Ici (point ⊥) = (univ : Set X) := eq_univ_of_forall fun x ↦
(bot_le : (⊥ : WithTop OmegaOne) ≤ x)
have hset : Ici (point ⊥) \ {x} = {x}ᶜ := by ext; simp [h]
rw [← hset]
exact basic_open ⊥ (finite_singleton x)⟩
theorem contains_tail
TopologyByExample.CofiniteRightRayOmegaOnePlusOne.contains_tail
Every nonempty open set contains all sufficiently large ordinary points.
theorem contains_tail {U : Set X} (ho : IsOpen U) (hne : U.Nonempty) :
∃ b : OmegaOne, ∀ c ≥ b, point c ∈ U
Proof
:= by
obtain ⟨x, hx⟩ := hne
obtain ⟨_, ⟨a, F, hF, rfl⟩, -, hs⟩ := isTopologicalBasis.exists_subset_of_mem_open hx ho
obtain ⟨b, hb⟩ := OmegaOne.bddAbove_of_countable (hF.countable.preimage point_injective)
refine ⟨max a (Order.succ b), fun c hc ↦ hs ⟨point_le.mpr ((le_max_left _ _).trans hc), ?_⟩⟩
exact fun h ↦ ((Order.lt_succ b).trans_le ((le_max_right _ _).trans hc)).not_ge (hb h)
On this site: Join of the cofinite and modified right ray topologies on \(\omega_1+1\): Tails in open sets
theorem preirreducible
TopologyByExample.CofiniteRightRayOmegaOnePlusOne.preirreducible
Every two nonempty open sets meet in an ordinary point.
theorem preirreducible : PreirreducibleSpace X
Proof
:= by
rw [preirreducibleSpace_iff_open_dense]
intro U hU hne
obtain ⟨a, ha⟩ := contains_tail hU hne
refine dense_iff_inter_open.mpr fun V hV hv ↦ ?_
obtain ⟨b, hb⟩ := contains_tail hV hv
exact ⟨point (max a b), hb _ (le_max_right _ _), ha _ (le_max_left _ _)⟩
On this site: The join of the cofinite and modified right ray topologies on \(\omega_1+1\) is hyperconnected
theorem baire
TopologyByExample.CofiniteRightRayOmegaOnePlusOne.baire
Countably many nonempty opens contain a common tail, so the space is Baire.
theorem baire : BaireSpace X
Proof
:= by
refine ⟨fun U ho hd ↦ dense_iff_inter_open.mpr fun V hV hv ↦ ?_⟩
choose a ha using fun n ↦ contains_tail (ho n) (hd n).nonempty
obtain ⟨b, hb⟩ := OmegaOne.bddAbove_of_countable (countable_range a)
obtain ⟨c, hc⟩ := contains_tail hV hv
exact ⟨point (max b c), hc _ (le_max_right _ _), mem_iInter.mpr fun n ↦
ha n _ ((hb (mem_range_self n)).trans (le_max_left _ _))⟩
On this site: The join of the cofinite and modified right ray topologies on \(\omega_1+1\) is a Baire space
theorem isCompact_any
TopologyByExample.CofiniteRightRayOmegaOnePlusOne.isCompact_any
Every subset is compact: a nonprincipal ultrafilter on it converges to its least point.
theorem isCompact_any (S : Set X) : IsCompact S
Proof
:= by
refine isCompact_iff_ultrafilter_le_nhds'.2 fun f hf ↦ ?_
by_cases h : ∃ F : Set X, F.Finite ∧ F ∈ f
· obtain ⟨F, hF, hFf⟩ := h
obtain ⟨y, -, rfl⟩ := Ultrafilter.eq_pure_of_finite_mem hF hFf
exact ⟨y, Ultrafilter.mem_pure.mp hf, by rw [Ultrafilter.coe_pure]; exact pure_le_nhds y⟩
· obtain ⟨m, hm, hmin⟩ := wellFounded_lt.has_min S (Filter.nonempty_of_mem hf)
refine ⟨m, hm, fun U hU ↦ ?_⟩
obtain ⟨_, ⟨a, F, hF, rfl⟩, hx, hs⟩ := isTopologicalBasis.mem_nhds_iff.mp hU
have hc : Fᶜ ∈ f := Ultrafilter.compl_mem_iff_notMem.mpr fun h' ↦ h ⟨F, hF, h'⟩
exact Filter.mem_of_superset (Filter.inter_mem (Ultrafilter.mem_coe.mpr hf)
(Ultrafilter.mem_coe.mpr hc)) fun y hy ↦ hs ⟨hx.1.trans (le_of_not_gt (hmin y hy.1)), hy.2⟩
On this site: Join of the cofinite and modified right ray topologies on \(\omega_1+1\): Compactness of all subsets
theorem seqCompactSpace
TopologyByExample.CofiniteRightRayOmegaOnePlusOne.seqCompactSpace
Every sequence has a constant subsequence or converges to the least ordinary ordinal.
theorem seqCompactSpace : SeqCompactSpace X
Proof
:= by
refine ⟨fun x _ ↦ ?_⟩
by_cases h : ∃ v, ∃ᶠ n in atTop, x n = v
· obtain ⟨v, hv⟩ := h
obtain ⟨φ, hφ, hφv⟩ := extraction_of_frequently_atTop hv
refine ⟨v, trivial, φ, hφ, ?_⟩
rw [show x ∘ φ = fun _ ↦ v from funext hφv]
exact tendsto_const_nhds
· simp only [not_exists, not_frequently] at h
refine ⟨point ⊥, trivial, id, strictMono_id, ?_⟩
rw [Function.comp_id]
intro U hU
obtain ⟨_, ⟨a, F, hF, rfl⟩, hx, hs⟩ := isTopologicalBasis.mem_nhds_iff.mp hU
have hev := (eventually_all_finite hF).mpr fun v _ ↦ h v
exact Filter.mem_map.mpr (hev.mono fun n hn ↦ hs
⟨hx.1.trans (bot_le : (⊥ : WithTop OmegaOne) ≤ x n), fun hm ↦ hn _ hm rfl⟩)
On this site: The join of the cofinite and modified right ray topologies on \(\omega_1+1\) is sequentially compact
theorem cardinality
TopologyByExample.CofiniteRightRayOmegaOnePlusOne.cardinality
The underlying set has cardinality aleph one.
theorem cardinality : Cardinal.mk X = Cardinal.aleph 1
Proof
:= by
change Cardinal.mk (Option (Ordinal.omega (1 : Ordinal.{0})).ToType) = _
rw [Cardinal.mk_option, Cardinal.mk_toType, Ordinal.card_omega,
Cardinal.add_one_eq (Cardinal.aleph0_le_aleph _)]
On this site: Join of the cofinite and modified right ray topologies on \(\omega_1+1\): Cardinality
theorem compactSpace
TopologyByExample.CofiniteRightRayOmegaOnePlusOne.compactSpace
The whole space is compact.
theorem compactSpace : CompactSpace X
Proof
:= ⟨isCompact_any univ⟩
On this site: The join of the cofinite and modified right ray topologies on \(\omega_1+1\) is compact
theorem atMost
TopologyByExample.CofiniteRightRayOmegaOnePlusOne.atMost
The cardinality is at most two to the continuum.
theorem atMost : CardinalityAtMostTwoToContinuum X
Proof
:= by
unfold CardinalityAtMostTwoToContinuum
rw [cardinality]
exact Cardinal.aleph_one_le_continuum.trans (Cardinal.cantor _).le
On this site: The join of the cofinite and modified right ray topologies on \(\omega_1+1\) has cardinality at most \(2^{\mathfrak{c}}\)
theorem continuum_of_ch
TopologyByExample.CofiniteRightRayOmegaOnePlusOne.continuum_of_ch
Under the continuum hypothesis the space has continuum cardinality.
theorem continuum_of_ch (h : (Cardinal.continuum : Cardinal.{0}) = Cardinal.aleph 1) :
CardinalityContinuum X
Proof
:= cardinality.trans h.symm
theorem less_of_not_ch
TopologyByExample.CofiniteRightRayOmegaOnePlusOne.less_of_not_ch
If the continuum hypothesis fails, the space is smaller than the continuum.
theorem less_of_not_ch (h : (Cardinal.continuum : Cardinal.{0}) ≠ Cardinal.aleph 1) :
CardinalityLessThanContinuum X
Proof
:= by
unfold CardinalityLessThanContinuum
rw [cardinality]
exact lt_of_le_of_ne Cardinal.aleph_one_le_continuum h.symm
theorem not_less_of_ch
TopologyByExample.CofiniteRightRayOmegaOnePlusOne.not_less_of_ch
Under the continuum hypothesis the space is not smaller than the continuum.
theorem not_less_of_ch (h : (Cardinal.continuum : Cardinal.{0}) = Cardinal.aleph 1) :
¬ CardinalityLessThanContinuum X
Proof
:= cardinalityContinuum_not_less (continuum_of_ch h)
theorem not_continuum_of_not_ch
TopologyByExample.CofiniteRightRayOmegaOnePlusOne.not_continuum_of_not_ch
If the continuum hypothesis fails, the space does not have continuum cardinality.
theorem not_continuum_of_not_ch (h : (Cardinal.continuum : Cardinal.{0}) ≠ Cardinal.aleph 1) :
¬ CardinalityContinuum X
Proof
:= fun he ↦ h (he.symm.trans cardinality)
theorem countable_bounded
TopologyByExample.CofiniteRightRayOmegaOnePlusOne.countable_bounded
private theorem countable_bounded (a : OmegaOne) : ((point '' Iic a) ∪ {⊤}).Countable
Proof
:=
((OmegaOne.countable_Iic a).image point).union (countable_singleton _)
theorem countable_range
TopologyByExample.CofiniteRightRayOmegaOnePlusOne.countable_range
A continuous image of a separable space has only countably many points.
theorem countable_range {D : Type*} [TopologicalSpace D] [SeparableSpace D] {f : D → X}
(hf : Continuous f) : (range f).Countable
Proof
:= by
obtain ⟨C, hc, hd⟩ := exists_countable_dense D
obtain ⟨b, hb⟩ := OmegaOne.bddAbove_of_countable ((hc.image f).preimage point_injective)
refine (countable_bounded b).mono ?_
rintro _ ⟨x, rfl⟩
cases e : (f x : WithTop OmegaOne) with
| none => exact Or.inr rfl
| some a =>
have he : f x = point a := e
refine Or.inl ⟨a, ?_, rfl⟩
by_contra h
have hlt : b < a := lt_of_not_ge h
have hx : f x ∈ Ici (point a) \ {⊤} := by
rw [he]
exact ⟨mem_Ici.mpr le_rfl, point_ne_top a⟩
obtain ⟨y, hy, hyC⟩ := hd.inter_open_nonempty _
((basic_open a (finite_singleton ⊤)).preimage hf) ⟨x, hx⟩
obtain ⟨d, hed⟩ := WithTop.ne_top_iff_exists.mp (show (f y : WithTop OmegaOne) ≠ ⊤ from hy.2)
have hed' : point d = f y := hed
exact (hlt.trans_le (point_le.mp (hed' ▸ hy.1))).not_ge (hb ⟨y, hyC, hed'.symm⟩)
On this site: Join of the cofinite and modified right ray topologies on \(\omega_1+1\): Continuous images of separable spaces
theorem not_separable
TopologyByExample.CofiniteRightRayOmegaOnePlusOne.not_separable
The space itself is uncountable, hence cannot be separable.
theorem not_separable : ¬ SeparableSpace X
Proof
:= by
intro _
have hc : (range (id : X → X)).Countable := countable_range continuous_id
have hh : (univ : Set OmegaOne).Countable := by
simpa using hc.preimage point_injective
exact not_countable_univ hh
On this site: The join of the cofinite and modified right ray topologies on \(\omega_1+1\) is not separable
theorem totallyPathDisconnected
TopologyByExample.CofiniteRightRayOmegaOnePlusOne.totallyPathDisconnected
Every path has countable T₁ range and hence is constant.
theorem totallyPathDisconnected : TotallyPathDisconnectedSpace X
Proof
:= by
refine ⟨fun x y ⟨p⟩ ↦ ?_⟩
let := (countable_range p.continuous).to_subtype
have h := PreconnectedSpace.constant_of_countable (Y := range p) (x := (0 : unitInterval))
(y := 1) inferInstance (p.continuous.subtype_mk fun t ↦ mem_range_self t)
simpa using congrArg Subtype.val h
On this site: The join of the cofinite and modified right ray topologies on \(\omega_1+1\) is totally path disconnected
theorem not_sequential
TopologyByExample.CofiniteRightRayOmegaOnePlusOne.not_sequential
No sequence of ordinary points converges to the endpoint, although these points are dense.
theorem not_sequential : ¬ SequentialSpace X
Proof
:= by
intro _
have hs : IsSeqClosed (range point) := by
intro x p hx hp
by_contra h
have he : (p : WithTop OmegaOne) = ⊤ := by
cases p with
| none => rfl
| some a => exact False.elim (h ⟨a, rfl⟩)
choose a ha using hx
obtain ⟨b, hb⟩ := OmegaOne.bddAbove_of_countable (Set.countable_range a)
have htop : p ∈ Ici (point (Order.succ b)) \ (∅ : Set X) :=
⟨he ▸ mem_Ici.mpr le_top, notMem_empty _⟩
obtain ⟨n, hn⟩ := (hp.eventually ((basic_open _ finite_empty).mem_nhds htop)).exists
have hle : Order.succ b ≤ a n := point_le.mp (ha n ▸ hn.1)
exact (Order.lt_succ b).not_ge (hle.trans (hb (mem_range_self n)))
have hd : Dense (range point) := dense_iff_inter_open.mpr fun U ho hu ↦ by
obtain ⟨a, ha⟩ := contains_tail ho hu
exact ⟨point a, ha a le_rfl, mem_range_self a⟩
have hh : ⊤ ∈ range point := by rw [← hs.isClosed.closure_eq, hd.closure_eq]; trivial
obtain ⟨a, ha⟩ := hh
exact point_ne_top a ha
On this site: The join of the cofinite and modified right ray topologies on \(\omega_1+1\) is not sequential
theorem eventually_mem_of_hit
TopologyByExample.CofiniteRightRayOmegaOnePlusOne.eventually_mem_of_hit
private theorem eventually_mem_of_hit {g : ℕ → X} (hg : StrictMono g) {U : Set X}
(ho : IsOpen U) {k : ℕ} (hk : g k ∈ U) : ∀ᶠ n in atTop, g n ∈ U
Proof
:= by
obtain ⟨_, ⟨a, F, hF, rfl⟩, hx, hs⟩ := isTopologicalBasis.exists_subset_of_mem_open hk ho
obtain ⟨b, hb⟩ := (hF.preimage hg.injective.injOn).bddAbove
filter_upwards [eventually_ge_atTop k, eventually_gt_atTop b] with n hn hbn
exact hs ⟨hx.1.trans (hg.monotone hn), fun hm ↦ hbn.not_ge (hb hm)⟩
theorem preconnected_range
TopologyByExample.CofiniteRightRayOmegaOnePlusOne.preconnected_range
private theorem preconnected_range {g : ℕ → X} (hg : StrictMono g) : IsPreconnected (range g)
Proof
:= by
apply IsPreirreducible.isPreconnected
rintro U V hu hv ⟨_, ⟨m, rfl⟩, hm⟩ ⟨_, ⟨k, rfl⟩, hk⟩
obtain ⟨n, hn, hn'⟩ :=
((eventually_mem_of_hit hg hu hm).and (eventually_mem_of_hit hg hv hk)).exists
exact ⟨g n, mem_range_self _, hn, hn'⟩
theorem not_biconnected
TopologyByExample.CofiniteRightRayOmegaOnePlusOne.not_biconnected
The even and odd finite ordinals give disjoint nondegenerate connected subsets.
theorem not_biconnected : ¬ BiconnectedSpace X
Proof
:= by
intro _
let f (n : ℕ) := point (CofiniteLeftRayOmegaOne.nat n)
have hf : StrictMono f := fun _ _ h ↦
WithTop.coe_lt_coe.mpr (CofiniteLeftRayOmegaOne.nat_strictMono h)
let g (n : ℕ) := f (2 * n)
let k (n : ℕ) := f (2 * n + 1)
have hg : StrictMono g := fun _ _ h ↦ hf (by omega)
have hk : StrictMono k := fun _ _ h ↦ hf (by omega)
have hd : Disjoint (range g) (range k) := by
rw [Set.disjoint_left]
rintro _ ⟨m, rfl⟩ ⟨n, he⟩
have h := hf.injective he
omega
rcases BiconnectedSpace.subsingleton_or_subsingleton
(preconnected_range hg) (preconnected_range hk) hd with h | h
· exact (hg (show 0 < 1 by decide)).ne (h (mem_range_self 0) (mem_range_self 1))
· exact (hk (show 0 < 1 by decide)).ne (h (mem_range_self 0) (mem_range_self 1))
On this site: The join of the cofinite and modified right ray topologies on \(\omega_1+1\) is not biconnected