Lean library · module TopologyByExample.Spaces.CofiniteLeftRayOmegaOne
The join of the cofinite and left ray topologies on ω₁
The space TopologyByExample.CofiniteLeftRayOmegaOne is the set of countable ordinals with the
topology generated by the cofinite topology together with the left ray topology (whose open sets
are the initial segments). A base is formed by the sets Set.Iic a \ F, F finite, and a set is
a neighbourhood of x exactly when it contains Set.Iic x \ F for some finite F not
containing x.
Main statements
TopologyByExample.CofiniteLeftRayOmegaOne.mem_nhds_iff: the neighbourhoods of a point;instT1Space,not_disjoint_nhds: the space is T₁, but no two infinite ordinals have disjoint neighbourhoods;separableSpace,instFirstCountableTopology: it is separable and first countable;scatteredSpace: it is scattered (every initial segmentSet.Iic ais open);seqCompactSpace: it is sequentially compact;isCompact_Iic,weaklyLocallyCompactSpace: every closed initial segment is compact, so the space is weakly locally compact;not_locallyRelativelyCompactSpace,not_semiregularSpace,not_extremallyDisconnected: the closure of a neighbourhood of a point lying above infinitely many points contains every larger point; so the space is neither locally relatively compact nor semiregular, and the even and the odd finite ordinals are disjoint open sets whose closures meet.
Tags
cofinite topology, left ray topology, join of topologies, first uncountable 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
definition CofiniteLeftRayOmegaOne
TopologyByExample.CofiniteLeftRayOmegaOne
The set of countable ordinals with the join of the cofinite and the left ray topologies: the
topology generated by the sets Set.Iic a \ F with F finite.
def CofiniteLeftRayOmegaOne : Type
:= OmegaOne
On this site: Space: Join of the cofinite and left ray topologies on \(\omega_1\)
instance
The order of the countable ordinals.
noncomputable instance : LinearOrder CofiniteLeftRayOmegaOne
Proof
:=
inferInstanceAs (LinearOrder OmegaOne)
instance
instance : WellFoundedLT CofiniteLeftRayOmegaOne
Proof
:=
inferInstanceAs (WellFoundedLT OmegaOne)
instance
The least countable ordinal.
noncomputable instance : OrderBot CofiniteLeftRayOmegaOne
Proof
:=
inferInstanceAs (OrderBot OmegaOne)
instance
The successor of a countable ordinal.
noncomputable instance : SuccOrder CofiniteLeftRayOmegaOne
Proof
:=
inferInstanceAs (SuccOrder OmegaOne)
instance
instance : NoMaxOrder CofiniteLeftRayOmegaOne
Proof
:=
inferInstanceAs (NoMaxOrder OmegaOne)
instance
instance : Nonempty CofiniteLeftRayOmegaOne
Proof
:=
⟨⊥⟩
definition basis
TopologyByExample.CofiniteLeftRayOmegaOne.basis
The basic open sets Set.Iic a \ F, F finite.
def basis : Set (Set CofiniteLeftRayOmegaOne)
:=
{s | ∃ a : CofiniteLeftRayOmegaOne, ∃ F : Set CofiniteLeftRayOmegaOne, F.Finite ∧ s = Iic a \ F}
instance
The topology generated by the sets Set.Iic a \ F, F finite.
instance : TopologicalSpace CofiniteLeftRayOmegaOne
Proof
:=
generateFrom basis
local notation "C" => CofiniteLeftRayOmegaOne
theorem isTopologicalBasis
TopologyByExample.CofiniteLeftRayOmegaOne.isTopologicalBasis
The sets Set.Iic a \ F, F finite, form a base.
theorem isTopologicalBasis : IsTopologicalBasis basis
Proof
where
exists_subset_inter := by
rintro _ ⟨a, F, hF, rfl⟩ _ ⟨b, G, hG, rfl⟩ x hx
refine ⟨Iic (min a b) \ (F ∪ G), ⟨min a b, F ∪ G, hF.union hG, rfl⟩,
⟨mem_Iic.2 (le_min hx.1.1 hx.2.1), fun h ↦ h.elim hx.1.2 hx.2.2⟩, ?_⟩
rintro y ⟨hy, hyFG⟩
exact ⟨⟨(mem_Iic.1 hy).trans (min_le_left _ _), fun h ↦ hyFG (.inl h)⟩,
(mem_Iic.1 hy).trans (min_le_right _ _), fun h ↦ hyFG (.inr h)⟩
sUnion_eq := eq_univ_of_forall fun x ↦
⟨Iic x \ ∅, ⟨x, ∅, finite_empty, rfl⟩, mem_Iic.2 le_rfl, notMem_empty x⟩
eq_generateFrom := rfl
theorem isOpen_Iic_diff
TopologyByExample.CofiniteLeftRayOmegaOne.isOpen_Iic_diff
A set Set.Iic a \ F with F finite is open.
theorem isOpen_Iic_diff (a : C) {F : Set C} (hF : F.Finite) : IsOpen (Iic a \ F)
Proof
:=
isTopologicalBasis.isOpen ⟨a, F, hF, rfl⟩
theorem isOpen_Iic
TopologyByExample.CofiniteLeftRayOmegaOne.isOpen_Iic
Every closed initial segment Set.Iic a is open.
theorem isOpen_Iic (a : C) : IsOpen (Iic a)
Proof
:= by
simpa using isOpen_Iic_diff a finite_empty
theorem mem_nhds_iff
TopologyByExample.CofiniteLeftRayOmegaOne.mem_nhds_iff
A set is a neighbourhood of x iff it contains Set.Iic x \ F for some finite set F not
containing x.
theorem mem_nhds_iff {x : C} {s : Set C} :
s ∈ 𝓝 x ↔ ∃ F : Set C, F.Finite ∧ x ∉ F ∧ Iic x \ F ⊆ s
Proof
:= by
rw [isTopologicalBasis.mem_nhds_iff]
constructor
· rintro ⟨_, ⟨a, F, hF, rfl⟩, hx, hs⟩
exact ⟨F, hF, hx.2, fun y hy ↦ hs ⟨(mem_Iic.1 hy.1).trans hx.1, hy.2⟩⟩
· rintro ⟨F, hF, hxF, hs⟩
exact ⟨Iic x \ F, ⟨x, F, hF, rfl⟩, ⟨mem_Iic.2 le_rfl, hxF⟩, hs⟩
theorem mem_closure_of_infinite
TopologyByExample.CofiniteLeftRayOmegaOne.mem_closure_of_infinite
A point lies in the closure of every set having infinitely many points below it.
theorem mem_closure_of_infinite {A : Set C} {p : C} (h : (A ∩ Iic p).Infinite) :
p ∈ closure A
Proof
:=
mem_closure_iff_nhds.2 fun t ht ↦ by
obtain ⟨F, hF, -, hFt⟩ := mem_nhds_iff.1 ht
obtain ⟨y, ⟨hyA, hyp⟩, hyF⟩ := (h.sdiff hF).nonempty
exact ⟨y, hFt ⟨hyp, hyF⟩, hyA⟩
The finite ordinals
definition nat
TopologyByExample.CofiniteLeftRayOmegaOne.nat
The finite ordinals: nat 0 = ⊥ and nat (n + 1) is the successor of nat n.
noncomputable def nat : ℕ → C
| 0 => ⊥
| n + 1 => Order.succ (nat n)
theorem nat_strictMono
TopologyByExample.CofiniteLeftRayOmegaOne.nat_strictMono
The finite ordinals increase.
theorem nat_strictMono : StrictMono nat
Proof
:=
strictMono_nat_of_lt_succ fun n ↦ Order.lt_succ (nat n)
theorem infinite_range_nat
TopologyByExample.CofiniteLeftRayOmegaOne.infinite_range_nat
There are infinitely many finite ordinals.
theorem infinite_range_nat : (range nat).Infinite
Proof
:=
infinite_range_of_injective nat_strictMono.injective
theorem Iio_nat_subset
TopologyByExample.CofiniteLeftRayOmegaOne.Iio_nat_subset
Below a finite ordinal there are only finite ordinals.
theorem Iio_nat_subset (n : ℕ) : Iio (nat n) ⊆ nat '' Iio n
Proof
:= by
induction n with
| zero => exact fun y hy ↦ absurd (mem_Iio.1 hy) not_lt_bot
| succ n ih =>
intro y hy
have hy' : y ≤ nat n := Order.lt_succ_iff.1 (mem_Iio.1 hy)
rcases hy'.lt_or_eq with h | rfl
· obtain ⟨m, hm, rfl⟩ := ih h
exact ⟨m, (mem_Iio.1 hm).trans n.lt_succ_self, rfl⟩
· exact ⟨n, n.lt_succ_self, rfl⟩
theorem isOpen_singleton_nat
TopologyByExample.CofiniteLeftRayOmegaOne.isOpen_singleton_nat
Every finite ordinal is an isolated point.
theorem isOpen_singleton_nat (n : ℕ) : IsOpen {nat n}
Proof
:= by
rw [← Iic_sdiff_Iio_same]
exact isOpen_Iic_diff _ (((finite_Iio n).image nat).subset (Iio_nat_subset n))
theorem exists_forall_nat_lt
TopologyByExample.CofiniteLeftRayOmegaOne.exists_forall_nat_lt
Some countable ordinal lies above every finite ordinal.
theorem exists_forall_nat_lt : ∃ b : C, ∀ n, nat n < b
Proof
:= by
obtain ⟨b, hb⟩ := OmegaOne.bddAbove_of_countable (countable_range nat)
exact ⟨b, fun n ↦ (nat_strictMono n.lt_succ_self).trans_le (hb (mem_range_self _))⟩
theorem Ici_subset_closure
TopologyByExample.CofiniteLeftRayOmegaOne.Ici_subset_closure
If every finite ordinal lies below b, the closure of any neighbourhood of b contains every
point above b.
theorem Ici_subset_closure {b : C} (hb : ∀ n, nat n < b) {U : Set C} (hU : U ∈ 𝓝 b) :
Ici b ⊆ closure U
Proof
:= fun y hy ↦ by
obtain ⟨F, hF, -, hFU⟩ := mem_nhds_iff.1 hU
refine mem_closure_of_infinite ((infinite_range_nat.sdiff hF).mono ?_)
rintro _ ⟨⟨n, rfl⟩, hn⟩
exact ⟨hFU ⟨(hb n).le, hn⟩, (hb n).le.trans hy⟩
theorem bddAbove_of_isCompact
TopologyByExample.CofiniteLeftRayOmegaOne.bddAbove_of_isCompact
Every compact set is bounded above: it is covered by finitely many of the open sets
Set.Iic a.
theorem bddAbove_of_isCompact {K : Set C} (hK : IsCompact K) : BddAbove K
Proof
:= by
obtain ⟨t, ht⟩ := hK.elim_finite_subcover (fun a : C ↦ Iic a) isOpen_Iic
fun x _ ↦ mem_iUnion.2 ⟨x, mem_Iic.2 le_rfl⟩
obtain ⟨m, hm⟩ := t.bddAbove
refine ⟨m, fun x hx ↦ ?_⟩
obtain ⟨i, hi, hxi⟩ := mem_iUnion₂.1 (ht hx)
exact (mem_Iic.1 hxi).trans (hm hi)
The values
instance instT1Space
TopologyByExample.CofiniteLeftRayOmegaOne.instT1Space
The space is T₁: the complement of {x} contains Set.Iic y \ {x} for each y ≠ x.
instance instT1Space : T1Space C
Proof
:=
⟨fun x ↦ isOpen_compl_iff.1 <| isOpen_iff_mem_nhds.2 fun _ hy ↦
mem_nhds_iff.2 ⟨{x}, finite_singleton x, hy, fun _ hz ↦ hz.2⟩⟩
theorem not_disjoint_nhds
TopologyByExample.CofiniteLeftRayOmegaOne.not_disjoint_nhds
No two infinite ordinals have disjoint neighbourhoods: every neighbourhood of either contains all but finitely many finite ordinals. In particular the space is not Hausdorff.
theorem not_disjoint_nhds {x y : C} (hx : ∀ n, nat n < x) (hy : ∀ n, nat n < y) :
¬Disjoint (𝓝 x) (𝓝 y)
Proof
:= fun h ↦ by
obtain ⟨U, hU, V, hV, hUV⟩ := Filter.disjoint_iff.1 h
obtain ⟨F, hF, -, hFU⟩ := mem_nhds_iff.1 hU
obtain ⟨G, hG, -, hGV⟩ := mem_nhds_iff.1 hV
obtain ⟨_, ⟨n, rfl⟩, hn⟩ := (infinite_range_nat.sdiff (hF.union hG)).nonempty
exact disjoint_left.1 hUV (hFU ⟨(hx n).le, fun h ↦ hn (.inl h)⟩)
(hGV ⟨(hy n).le, fun h ↦ hn (.inr h)⟩)
On this site: Join of the cofinite and left ray topologies on \(\omega_1\): No two infinite ordinals have disjoint neighbourhoods
theorem separableSpace
TopologyByExample.CofiniteLeftRayOmegaOne.separableSpace
The space is separable: the countable set Set.Iic b, for b above every finite ordinal,
is dense.
theorem separableSpace : SeparableSpace C
Proof
:= by
obtain ⟨b, hb⟩ := exists_forall_nat_lt
refine ⟨⟨Iic b, OmegaOne.countable_Iic b, dense_iff_inter_open.2 fun U hU ⟨x, hx⟩ ↦ ?_⟩⟩
rcases le_or_gt x b with hxb | hbx
· exact ⟨x, hx, hxb⟩
obtain ⟨F, hF, -, hFU⟩ := mem_nhds_iff.1 (hU.mem_nhds hx)
obtain ⟨_, ⟨n, rfl⟩, hn⟩ := (infinite_range_nat.sdiff hF).nonempty
exact ⟨nat n, hFU ⟨((hb n).trans hbx).le, hn⟩, (hb n).le⟩
On this site: The join of the cofinite and left ray topologies on \(\omega_1\) is separable
instance instFirstCountableTopology
TopologyByExample.CofiniteLeftRayOmegaOne.instFirstCountableTopology
The space is first countable: the sets Set.Iic x \ F, for the countably many finite sets
F ⊆ Set.Iic x not containing x, form a neighbourhood base at x.
instance instFirstCountableTopology : FirstCountableTopology C
Proof
:= by
refine ⟨fun x ↦ HasCountableBasis.isCountablyGenerated (p := fun F : Set C ↦
F.Finite ∧ F ⊆ Iic x ∧ x ∉ F) (s := fun F ↦ Iic x \ F) ⟨⟨fun s ↦ ?_⟩, ?_⟩⟩
· rw [mem_nhds_iff]
constructor
· rintro ⟨F, hF, hxF, hs⟩
exact ⟨F ∩ Iic x, ⟨hF.inter_of_left _, inter_subset_right, fun h ↦ hxF h.1⟩,
fun y hy ↦ hs ⟨hy.1, fun h ↦ hy.2 ⟨h, hy.1⟩⟩⟩
· rintro ⟨F, ⟨hF, -, hxF⟩, hs⟩
exact ⟨F, hF, hxF, hs⟩
· have hc : {F : Set C | F.Finite ∧ F ⊆ Iic x}.Countable :=
countable_ofPred_finite_subset (OmegaOne.countable_Iic x)
refine hc.mono fun F hF ↦ ?_
exact ⟨hF.1, hF.2.1⟩
theorem scatteredSpace
TopologyByExample.CofiniteLeftRayOmegaOne.scatteredSpace
The space is scattered: it is well ordered and every closed initial segment is open.
theorem scatteredSpace : ScatteredSpace C
Proof
:=
scatteredSpace_of_isOpen_Iic isOpen_Iic
On this site: The join of the cofinite and left ray topologies on \(\omega_1\) is scattered
theorem seqCompactSpace
TopologyByExample.CofiniteLeftRayOmegaOne.seqCompactSpace
The space is sequentially compact: a sequence that takes some value infinitely often has a constant subsequence; otherwise it converges to any upper bound of its terms.
theorem seqCompactSpace : SeqCompactSpace C
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, mem_univ v, φ, hφ, ?_⟩
have : x ∘ φ = fun _ ↦ v := funext hφv
rw [this]
exact tendsto_const_nhds
· simp only [not_exists, not_frequently] at h
obtain ⟨b, hb⟩ := OmegaOne.bddAbove_of_countable (countable_range x)
refine ⟨b, mem_univ b, id, strictMono_id, ?_⟩
rw [Function.comp_id]
intro s hs
obtain ⟨F, hF, -, hFs⟩ := mem_nhds_iff.1 hs
have hev : ∀ᶠ n in atTop, ∀ v ∈ F, x n ≠ v := (eventually_all_finite hF).2 fun v _ ↦ h v
exact Filter.mem_map.2 (hev.mono fun n hn ↦ hFs ⟨hb (mem_range_self n), fun h ↦ hn _ h rfl⟩)
On this site: The join of the cofinite and left ray topologies on \(\omega_1\) is sequentially compact
theorem isCompact_Iic
TopologyByExample.CofiniteLeftRayOmegaOne.isCompact_Iic
Every closed initial segment Set.Iic a is compact: an ultrafilter containing it either
contains a finite set, and is then principal, or contains every cofinite set, and then converges
to a.
theorem isCompact_Iic (a : C) : IsCompact (Iic a)
Proof
:= by
refine isCompact_iff_ultrafilter_le_nhds'.2 fun f hf ↦ ?_
by_cases h : ∃ F : Set C, 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.1 hf, by rw [Ultrafilter.coe_pure]; exact pure_le_nhds y⟩
· simp only [not_exists, not_and] at h
refine ⟨a, mem_Iic.2 le_rfl, fun s hs ↦ ?_⟩
obtain ⟨F, hF, -, hFs⟩ := mem_nhds_iff.1 hs
have hc : Fᶜ ∈ f := Ultrafilter.compl_mem_iff_notMem.2 (h F hF)
exact Filter.mem_of_superset (Filter.inter_mem (Ultrafilter.mem_coe.2 hf)
(Ultrafilter.mem_coe.2 hc)) fun y hy ↦ hFs ⟨hy.1, hy.2⟩
theorem weaklyLocallyCompactSpace
TopologyByExample.CofiniteLeftRayOmegaOne.weaklyLocallyCompactSpace
The space is weakly locally compact: Set.Iic x is a compact open set containing x.
theorem weaklyLocallyCompactSpace : WeaklyLocallyCompactSpace C
Proof
:=
⟨fun x ↦ ⟨Iic x, isCompact_Iic x, (isOpen_Iic x).mem_nhds (mem_Iic.2 le_rfl)⟩⟩
On this site: The join of the cofinite and left ray topologies on \(\omega_1\) is weakly locally compact
theorem not_locallyRelativelyCompactSpace
TopologyByExample.CofiniteLeftRayOmegaOne.not_locallyRelativelyCompactSpace
The space is not locally relatively compact: the closure of an open set containing a point
b above every finite ordinal contains every point above b, so it is not bounded, and hence
not compact.
theorem not_locallyRelativelyCompactSpace : ¬LocallyRelativelyCompactSpace C
Proof
:= fun h ↦ by
obtain ⟨b, hb⟩ := exists_forall_nat_lt
obtain ⟨U, hUo, hbU, hK⟩ := h.exists_isOpen_isCompact_closure b
obtain ⟨m, hm⟩ := bddAbove_of_isCompact hK
obtain ⟨c, hc⟩ := exists_gt (max m b)
exact (max_lt_iff.1 hc).1.not_ge
(hm (Ici_subset_closure hb (hUo.mem_nhds hbU) (max_lt_iff.1 hc).2.le))
On this site: The join of the cofinite and left ray topologies on \(\omega_1\) is not locally relatively compact
theorem not_semiregularSpace
TopologyByExample.CofiniteLeftRayOmegaOne.not_semiregularSpace
The space is not semiregular: if b lies above every finite ordinal, every regular open set
containing b contains the successor of b, so none lies inside the open set Set.Iic b.
theorem not_semiregularSpace : ¬SemiregularSpace C
Proof
:= fun h ↦ by
obtain ⟨b, hb⟩ := exists_forall_nat_lt
obtain ⟨s, hs, hbs, hsb⟩ :=
h.isTopologicalBasis.exists_subset_of_mem_open (mem_Iic.2 le_rfl) (isOpen_Iic b)
have hso : IsOpen s := h.isTopologicalBasis.isOpen hs
obtain ⟨F, hF, -, hFs⟩ := mem_nhds_iff.1 (hso.mem_nhds hbs)
have hcl : closure s ∈ 𝓝 (Order.succ b) := by
refine mem_nhds_iff.2 ⟨F ∩ Iic b, hF.inter_of_left _,
fun h ↦ (Order.lt_succ b).not_ge h.2, fun y hy ↦ ?_⟩
rcases le_or_gt y b with hyb | hby
· exact subset_closure (hFs ⟨hyb, fun hyF ↦ hy.2 ⟨hyF, hyb⟩⟩)
· exact Ici_subset_closure hb (hso.mem_nhds hbs) hby.le
have hmem : Order.succ b ∈ s := by
have : Order.succ b ∈ interior (closure s) := mem_interior_iff_mem_nhds.2 hcl
rwa [show interior (closure s) = s from hs] at this
exact (Order.lt_succ b).not_ge (hsb hmem)
On this site: The join of the cofinite and left ray topologies on \(\omega_1\) is not semiregular
theorem not_extremallyDisconnected
TopologyByExample.CofiniteLeftRayOmegaOne.not_extremallyDisconnected
The space is not extremally disconnected: the even finite ordinals form an open set whose
closure contains a point b above every finite ordinal but no odd finite ordinal, so the closure
is not a neighbourhood of b.
theorem not_extremallyDisconnected : ¬ExtremallyDisconnected C
Proof
:= fun h ↦ by
obtain ⟨b, hb⟩ := exists_forall_nat_lt
set E : Set C := range fun n ↦ nat (2 * n) with hE
have hEo : IsOpen E := by
rw [hE, ← iUnion_singleton_eq_range]
exact isOpen_iUnion fun n ↦ isOpen_singleton_nat _
have hinj : Function.Injective fun n ↦ nat (2 * n) :=
nat_strictMono.injective.comp fun m n h ↦ by simpa using h
have hsub : range (fun n ↦ nat (2 * n)) ⊆ E ∩ Iic b := by
rintro _ ⟨n, rfl⟩
exact ⟨⟨n, rfl⟩, (hb _).le⟩
have hbE : b ∈ closure E := mem_closure_of_infinite ((infinite_range_of_injective hinj).mono hsub)
obtain ⟨F, hF, -, hFE⟩ := mem_nhds_iff.1 ((h.open_closure E hEo).mem_nhds hbE)
have hinj' : Function.Injective fun n ↦ nat (2 * n + 1) :=
nat_strictMono.injective.comp fun m n h ↦ by simpa using h
obtain ⟨_, ⟨m, rfl⟩, hm⟩ := ((infinite_range_of_injective hinj').sdiff hF).nonempty
have hcl := hFE ⟨(hb _).le, hm⟩
obtain ⟨_, rfl, ⟨n, hn⟩⟩ :=
mem_closure_iff.1 hcl {nat (2 * m + 1)} (isOpen_singleton_nat _) rfl
have := nat_strictMono.injective hn
omega
On this site: The join of the cofinite and left ray topologies on \(\omega_1\) is not extremally disconnected