Lean library · module TopologyByExample.Spaces.LongRay
The long ray, the open long ray and the closed long ray
The long ray is ω₁ × [0, 1) with the lexicographic order, (α, s) < (β, t) iff α < β, or
α = β and s < t, and its order topology: uncountably many copies of [0, 1) laid end to end.
The open long ray is the long ray without its least point (0, 0), and the closed long ray is
the one-point compactification of the long ray.
Choice of type
We take LongRay := OmegaOne ×ₗ Set.Ico (0 : ℝ) 1, with the topology Preorder.topology, as the
lexicographic square is done in TopologyByExample.Spaces.LexicographicSquare. Mathlib has no
order topology on lexicographic products, so every topological fact is proved from the order. Two
order-theoretic facts carry everything:
- the long ray is a conditionally complete linear order with a least element
(
TopologyByExample.LongRay.exists_isLUB, an instance), so its closed intervals are compact; - every closed initial segment
[0, x]has a countable order-dense subset (the points with a rational second coordinate and a first coordinate belowsucc x.1;TopologyByExample.LongRay.exists_mem_denseSet), so byTopologyByExample.nonempty_homeomorph_Icc_of_countable_denseevery nontrivial closed interval is homeomorphic to[0, 1]. This gives path connectedness and first countability.
The open long ray is the subtype Set.Ioi ⊥, an order-connected subset, so its subspace topology is
its order topology and it inherits conditional completeness. The closed long ray is
OnePoint LongRay, which is homeomorphic to WithTop LongRay with its order topology.
Main statements
The long ray (TopologyByExample.LongRay):
exists_linearOrder_orderTopology,instFirstCountableTopology,instPathPreconnectedSpace,instWeaklyLocallyCompactSpace,instSeqCompactSpace,not_compactSpace,not_countableChainCondition,not_perfectlyNormalSpace;nonempty_homeomorph_Icc(every[x, y]withx < yis an arc) andbddAbove_of_countable.
The open long ray (TopologyByExample.OpenLongRay): exists_linearOrder_orderTopology,
instFirstCountableTopology, instPathPreconnectedSpace, instWeaklyLocallyCompactSpace,
not_countablyCompactSpace, instCountablyParacompactSpace, not_paracompactSpace,
not_countableChainCondition, not_perfectlyNormalSpace.
The closed long ray (OnePoint LongRay, in namespace TopologyByExample.ClosedLongRay):
linearlyOrderable, not_sequentialSpace, not_pathPreconnectedSpace.
References
- L. A. Steen and J. A. Seebach, Counterexamples in Topology, Examples 45 and 46.
Tags
long ray, long line, lexicographic order, order topology, ω₁, non-metrizable manifold
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
The type
definition icoZero
TopologyByExample.icoZero
The point 0 of [0, 1).
def icoZero : Ico (0 : ℝ) 1
:= ⟨0, le_rfl, zero_lt_one⟩
definition icoHalf
TopologyByExample.icoHalf
The point 1 / 2 of [0, 1).
noncomputable def icoHalf : Ico (0 : ℝ) 1
:= ⟨1 / 2, by norm_num, by norm_num⟩
theorem icoZero_le
TopologyByExample.icoZero_le
0 is the least element of [0, 1).
theorem icoZero_le (t : Ico (0 : ℝ) 1) : icoZero ≤ t
Proof
:= t.property.1
definition LongRay
TopologyByExample.LongRay
The long ray: ω₁ × [0, 1) with the lexicographic order and (via
TopologyByExample.LongRay.instTopologicalSpace) its order topology.
abbrev LongRay : Type
:= OmegaOne ×ₗ Ico (0 : ℝ) 1
On this site: Space: Long ray
instance instTopologicalSpace
TopologyByExample.LongRay.instTopologicalSpace
The long ray carries the order topology.
noncomputable instance instTopologicalSpace : TopologicalSpace LongRay
Proof
:= Preorder.topology _
instance instOrderTopology
TopologyByExample.LongRay.instOrderTopology
The topology of the long ray is its order topology.
instance instOrderTopology : OrderTopology LongRay
Proof
:= ⟨rfl⟩
instance instOrderBot
TopologyByExample.LongRay.instOrderBot
The least point (0, 0) of the long ray.
noncomputable instance instOrderBot : OrderBot LongRay
Proof
where
bot := toLex (⊥, icoZero)
bot_le p := by
obtain ⟨⟨x, t⟩, rfl⟩ := toLex.surjective p
exact toLex_le_toLex'.2 ⟨bot_le, fun _ ↦ icoZero_le t⟩
theorem bot_eq
TopologyByExample.LongRay.bot_eq
The least point of the long ray is (0, 0).
theorem bot_eq : (⊥ : LongRay) = toLex (⊥, icoZero)
Proof
:= rfl
instance instNoMaxOrder
TopologyByExample.LongRay.instNoMaxOrder
The long ray has no greatest element.
instance instNoMaxOrder : NoMaxOrder LongRay
Proof
:= inferInstance
instance instInhabited
TopologyByExample.LongRay.instInhabited
The long ray is nonempty.
noncomputable instance instInhabited : Inhabited LongRay
Proof
:= ⟨⊥⟩
instance instNontrivial
TopologyByExample.LongRay.instNontrivial
The long ray has at least two points, (0, 0) and (0, 1/2).
instance instNontrivial : Nontrivial LongRay
instance instDenselyOrdered
TopologyByExample.LongRay.instDenselyOrdered
The long ray is densely ordered.
instance instDenselyOrdered : DenselyOrdered LongRay
Proof
:= inferInstance
theorem lt_toLex_succ
TopologyByExample.LongRay.lt_toLex_succ
Every point (α, t) of the long ray lies below (α + 1, 0).
theorem lt_toLex_succ (p : LongRay) : p < toLex (Order.succ (ofLex p).1, icoZero)
Proof
:= by
obtain ⟨⟨x, t⟩, rfl⟩ := toLex.surjective p
exact toLex_lt_toLex.2 (Or.inl (Order.lt_succ x))
Conditional completeness
theorem exists_isLUB
TopologyByExample.LongRay.exists_isLUB
The long ray is conditionally complete: every nonempty set s with an upper bound has a
least upper bound. Let a be the supremum of the first coordinates of s. If no point of s has
first coordinate a, the least upper bound is (a, 0); otherwise let τ be the supremum of the
second coordinates of the points (a, t) of s: the least upper bound is (a, τ) if τ < 1, and
(a + 1, 0) if τ = 1.
theorem exists_isLUB (s : Set LongRay) (hs : s.Nonempty) (hb : BddAbove s) : ∃ x, IsLUB s x
Proof
:= by
set A : Set OmegaOne := (fun p : LongRay ↦ (ofLex p).1) '' s
have hAne : A.Nonempty := hs.image _
have hAb : BddAbove A := by
obtain ⟨u, hu⟩ := hb
exact ⟨(ofLex u).1, by rintro _ ⟨p, hp, rfl⟩; exact monotone_fst _ _ (hu hp)⟩
set a := sSup A
have hle (p) (hp : p ∈ s) : (ofLex p).1 ≤ a := le_csSup hAb ⟨p, hp, rfl⟩
have hge (v : LongRay) (hv : v ∈ upperBounds s) : a ≤ (ofLex v).1 :=
csSup_le hAne (by rintro _ ⟨p, hp, rfl⟩; exact monotone_fst _ _ (hv hp))
by_cases haA : a ∈ A
· set T : Set ℝ := {r | ∃ p ∈ s, (ofLex p).1 = a ∧ ((ofLex p).2 : ℝ) = r}
obtain ⟨p₀, hp₀, hp₀a⟩ := haA
have hTne : T.Nonempty := ⟨_, p₀, hp₀, hp₀a, rfl⟩
have hTb : BddAbove T := ⟨1, by rintro _ ⟨p, -, -, rfl⟩; exact (ofLex p).2.property.2.le⟩
have hτ0 : 0 ≤ sSup T := (ofLex p₀).2.property.1.trans (le_csSup hTb ⟨p₀, hp₀, hp₀a, rfl⟩)
have hτ1 : sSup T ≤ 1 :=
csSup_le hTne (by rintro _ ⟨p, -, -, rfl⟩; exact (ofLex p).2.property.2.le)
-- an upper bound with first coordinate `a` has second coordinate at least `sup T`
have hτv (w : Ico (0 : ℝ) 1) (hv : toLex (a, w) ∈ upperBounds s) : sSup T ≤ w := by
refine csSup_le hTne ?_
rintro _ ⟨p, hp, hpa, rfl⟩
obtain ⟨⟨x, t⟩, rfl⟩ := toLex.surjective p
rcases toLex_le_toLex.1 (hv hp) with h | ⟨-, h⟩
· exact absurd hpa h.ne
· exact h
rcases hτ1.lt_or_eq with hτ1 | hτ1
· refine ⟨toLex (a, ⟨sSup T, hτ0, hτ1⟩), fun p hp ↦ ?_, fun v hv ↦ ?_⟩
· obtain ⟨⟨x, t⟩, rfl⟩ := toLex.surjective p
rcases (hle _ hp).lt_or_eq with h | h
· exact toLex_le_toLex.2 (Or.inl h)
· exact toLex_le_toLex.2 (Or.inr ⟨h, le_csSup hTb ⟨_, hp, h, rfl⟩⟩)
· obtain ⟨⟨y, w⟩, rfl⟩ := toLex.surjective v
rcases (hge _ hv).lt_or_eq with h | h
· exact toLex_le_toLex.2 (Or.inl h)
· change a = y at h
subst h
exact toLex_le_toLex.2 (Or.inr ⟨rfl, hτv w hv⟩)
· refine ⟨toLex (Order.succ a, icoZero), fun p hp ↦ ?_, fun v hv ↦ ?_⟩
· obtain ⟨⟨x, t⟩, rfl⟩ := toLex.surjective p
exact toLex_le_toLex.2 (Or.inl ((hle _ hp).trans_lt (Order.lt_succ a)))
· obtain ⟨⟨y, w⟩, rfl⟩ := toLex.surjective v
rcases (hge _ hv).lt_or_eq with h | h
· exact toLex_le_toLex'.2 ⟨Order.succ_le_of_lt h, fun _ ↦ icoZero_le w⟩
· change a = y at h
subst h
exact absurd (hτv w hv) (not_le.2 (by rw [hτ1]; exact w.property.2))
· refine ⟨toLex (a, icoZero), fun p hp ↦ ?_, fun v hv ↦ ?_⟩
· obtain ⟨⟨x, t⟩, rfl⟩ := toLex.surjective p
refine toLex_le_toLex.2 (Or.inl ((hle _ hp).lt_of_ne ?_))
rintro rfl
exact haA ⟨_, hp, rfl⟩
· obtain ⟨⟨y, w⟩, rfl⟩ := toLex.surjective v
exact toLex_le_toLex'.2 ⟨hge _ hv, fun _ ↦ icoZero_le w⟩
On this site: Long ray: Bounded sets have least upper bounds
instance instConditionallyCompleteLinearOrderBot
TopologyByExample.LongRay.instConditionallyCompleteLinearOrderBot
The long ray is a conditionally complete linear order with a least element.
noncomputable instance instConditionallyCompleteLinearOrderBot :
ConditionallyCompleteLinearOrderBot LongRay
A countable dense set in each initial segment
definition denseSet
TopologyByExample.LongRay.denseSet
The points of the long ray with first coordinate below α and rational second coordinate.
def denseSet (α : OmegaOne) : Set LongRay
:=
{p | (ofLex p).1 < α ∧ ((ofLex p).2 : ℝ) ∈ range ((↑) : ℚ → ℝ)}
theorem countable_denseSet
TopologyByExample.LongRay.countable_denseSet
The set TopologyByExample.LongRay.denseSet α is countable.
theorem countable_denseSet (α : OmegaOne) : (denseSet α).Countable
Proof
:=
((OmegaOne.countable_Iio α).prod ((countable_range _).preimage Subtype.val_injective)).preimage
ofLex.injective
theorem exists_mem_denseSet
TopologyByExample.LongRay.exists_mem_denseSet
Between two points x < y ≤ (α, 0) of the long ray lies a point of
TopologyByExample.LongRay.denseSet α.
theorem exists_mem_denseSet {α : OmegaOne} {x y : LongRay} (hxy : x < y)
(hy : y ≤ toLex (α, icoZero)) : ∃ d ∈ denseSet α, x < d ∧ d < y
Proof
:= by
obtain ⟨⟨β, t⟩, rfl⟩ := toLex.surjective x
obtain ⟨⟨γ, u⟩, rfl⟩ := toLex.surjective y
rcases toLex_lt_toLex.1 hxy with hβγ | ⟨rfl, htu⟩
· obtain ⟨q, htq, hq1⟩ := exists_rat_btwn t.property.2
refine ⟨toLex (β, ⟨q, t.property.1.trans htq.le, hq1⟩),
⟨hβγ.trans_le (monotone_fst _ _ hy), q, rfl⟩, toLex_lt_toLex.2 (Or.inr ⟨rfl, htq⟩),
toLex_lt_toLex.2 (Or.inl hβγ)⟩
· obtain ⟨q, htq, hqu⟩ := exists_rat_btwn (show (t : ℝ) < u from htu)
refine ⟨toLex (β, ⟨q, t.property.1.trans htq.le, hqu.trans u.property.2⟩), ⟨?_, q, rfl⟩,
toLex_lt_toLex.2 (Or.inr ⟨rfl, htq⟩), toLex_lt_toLex.2 (Or.inr ⟨rfl, hqu⟩)⟩
rcases toLex_le_toLex.1 hy with h | ⟨-, h⟩
· exact h
· exact absurd (t.property.1.trans_lt htu) (not_lt.2 h)
theorem exists_countable_dense_Iic
TopologyByExample.LongRay.exists_countable_dense_Iic
Every closed initial segment (←, b] of the long ray has a countable order-dense subset.
theorem exists_countable_dense_Iic (b : LongRay) : ∃ D : Set LongRay, D.Countable ∧
∀ x y, x < y → y ≤ b → ∃ d ∈ D, x < d ∧ d < y
Proof
:=
⟨denseSet (Order.succ (ofLex b).1), countable_denseSet _, fun _ _ hxy hy ↦
exists_mem_denseSet hxy (hy.trans (lt_toLex_succ b).le)⟩
theorem exists_countable_dense
TopologyByExample.LongRay.exists_countable_dense
Every closed interval of the long ray has a countable order-dense subset.
theorem exists_countable_dense (a b : LongRay) : ∃ D : Set LongRay, D.Countable ∧
∀ x y, a ≤ x → x < y → y ≤ b → ∃ d ∈ D, x < d ∧ d < y
Proof
:=
let ⟨D, hD, hd⟩ := exists_countable_dense_Iic b
⟨D, hD, fun x y _ hxy hy ↦ hd x y hxy hy⟩
On this site: Long ray: Closed intervals have countable dense subsets
theorem nonempty_homeomorph_Icc
TopologyByExample.LongRay.nonempty_homeomorph_Icc
Every closed interval [x, y], x < y, of the long ray is homeomorphic to [0, 1].
theorem nonempty_homeomorph_Icc {x y : LongRay} (h : x < y) : Nonempty (Icc x y ≃ₜ unitInterval)
Proof
:=
let ⟨_, hD, hd⟩ := exists_countable_dense x y
nonempty_homeomorph_Icc_of_countable_dense h hD hd
On this site: Long ray: Closed intervals are copies of \([0, 1]\)
theorem bddAbove_of_countable
TopologyByExample.LongRay.bddAbove_of_countable
Every countable subset of the long ray is bounded above.
theorem bddAbove_of_countable {s : Set LongRay} (hs : s.Countable) : BddAbove s
Proof
:= by
obtain ⟨c, hc⟩ := OmegaOne.bddAbove_of_countable (hs.image fun p : LongRay ↦ (ofLex p).1)
refine ⟨toLex (Order.succ c, icoZero), fun p hp ↦ ?_⟩
obtain ⟨⟨x, t⟩, rfl⟩ := toLex.surjective p
exact toLex_le_toLex.2 (Or.inl ((hc ⟨_, hp, rfl⟩).trans_lt (Order.lt_succ c)))
On this site: Long ray: Countable sets are bounded above
The values
theorem exists_linearOrder_orderTopology
TopologyByExample.LongRay.exists_linearOrder_orderTopology
The long ray is linearly orderable: its topology is the order topology of a linear order.
theorem exists_linearOrder_orderTopology :
∃ o : LinearOrder LongRay, letI := o; OrderTopology LongRay
Proof
:=
⟨inferInstance, inferInstance⟩
On this site: The long ray is linearly orderable
instance instFirstCountableTopology
TopologyByExample.LongRay.instFirstCountableTopology
The long ray is first countable.
instance instFirstCountableTopology : FirstCountableTopology LongRay
On this site: The long ray is first countable
instance instPathPreconnectedSpace
TopologyByExample.LongRay.instPathPreconnectedSpace
The long ray is path connected: every closed interval is an arc.
instance instPathPreconnectedSpace : PathPreconnectedSpace LongRay
On this site: The long ray is path connected
instance instWeaklyLocallyCompactSpace
TopologyByExample.LongRay.instWeaklyLocallyCompactSpace
The long ray is weakly locally compact: its closed intervals are compact.
instance instWeaklyLocallyCompactSpace : WeaklyLocallyCompactSpace LongRay
On this site: The long ray is weakly locally compact
instance instSeqCompactSpace
TopologyByExample.LongRay.instSeqCompactSpace
The long ray is sequentially compact: a sequence is bounded, so it lies in a compact interval
[0, b], and the long ray is first countable.
instance instSeqCompactSpace : SeqCompactSpace LongRay
Proof
:=
seqCompactSpace_of_countable_bddAbove_bddBelow fun _ hs ↦
⟨bddAbove_of_countable hs, OrderBot.bddBelow _⟩
On this site: The long ray is sequentially compact
theorem not_compactSpace
TopologyByExample.LongRay.not_compactSpace
The long ray is not compact: it has no greatest element.
theorem not_compactSpace : ¬CompactSpace LongRay
Proof
:= not_compactSpace_of_noMaxOrder
On this site: The long ray is not compact
theorem not_countableChainCondition
TopologyByExample.LongRay.not_countableChainCondition
The long ray does not satisfy the countable chain condition: the open intervals
((α, 1/4), (α, 1/2)), α < ω₁, are uncountably many pairwise disjoint nonempty open sets.
theorem not_countableChainCondition :
¬∀ S : Set (Set LongRay), (∀ s ∈ S, IsOpen s ∧ s.Nonempty) → S.PairwiseDisjoint id →
S.Countable
Proof
:=
ProdLex.not_countableChainCondition (a := icoZero) (b := icoHalf) (c := ⟨3 / 4, by norm_num,
by norm_num⟩) (show (0 : ℝ) < 1 / 2 by norm_num) (show (1 / 2 : ℝ) < 3 / 4 by norm_num)
On this site: The long ray does not satisfy the countable chain condition
The embedded copy of ω₁
definition ofOmegaOne
TopologyByExample.LongRay.ofOmegaOne
The map α ↦ (α, 0) from ω₁ to the long ray.
def ofOmegaOne (α : OmegaOne) : LongRay
:= toLex (α, icoZero)
theorem strictMono_ofOmegaOne
TopologyByExample.LongRay.strictMono_ofOmegaOne
The map α ↦ (α, 0) is strictly monotone.
theorem strictMono_ofOmegaOne : StrictMono ofOmegaOne
Proof
:= fun _ _ h ↦ toLex_lt_toLex.2 (Or.inl h)
theorem continuous_ofOmegaOne
TopologyByExample.LongRay.continuous_ofOmegaOne
The map α ↦ (α, 0) is continuous: the preimage of the ray above (β, t) is the ray above
β, and the preimage of the ray below (β, t) is [0, β) if t = 0 and [0, β] otherwise.
theorem continuous_ofOmegaOne : Continuous ofOmegaOne
Proof
:= by
rw [instOrderTopology.topology_eq_generate_intervals, continuous_generateFrom_iff]
rintro s ⟨p, rfl | rfl⟩ <;> obtain ⟨⟨β, t⟩, rfl⟩ := toLex.surjective p
· convert isOpen_Ioi (a := β) using 1
ext α
simp only [mem_preimage, mem_Ioi, ofOmegaOne, toLex_lt_toLex]
exact ⟨fun h ↦ h.resolve_right fun h' ↦ (icoZero_le t).not_gt h'.2, Or.inl⟩
· by_cases ht : icoZero < t
· convert OmegaOne.isOpen_Iic β using 1
ext α
simp only [mem_preimage, mem_Iio, mem_Iic, ofOmegaOne, toLex_lt_toLex]
refine ⟨fun h ↦ h.elim le_of_lt fun h' ↦ h'.1.le, fun h ↦ ?_⟩
rcases h.lt_or_eq with h | h
exacts [Or.inl h, Or.inr ⟨h, ht⟩]
· convert isOpen_Iio (a := β) using 1
ext α
simp only [mem_preimage, mem_Iio, ofOmegaOne, toLex_lt_toLex]
exact ⟨fun h ↦ h.resolve_right fun h' ↦ ht h'.2, Or.inl⟩
theorem isInducing_ofOmegaOne
TopologyByExample.LongRay.isInducing_ofOmegaOne
The map α ↦ (α, 0) is an embedding of ω₁ in the long ray.
theorem isInducing_ofOmegaOne : IsInducing ofOmegaOne
On this site: Long ray: The space contains a copy of \(\omega_1\)
theorem not_perfectlyNormalSpace
TopologyByExample.LongRay.not_perfectlyNormalSpace
The long ray is not perfectly normal: it contains a copy of ω₁, which is not perfectly normal,
and perfect normality passes to subspaces.
theorem not_perfectlyNormalSpace : ¬PerfectlyNormalSpace LongRay
Proof
:= fun _ ↦
OmegaOne.not_perfectlyNormalSpace isInducing_ofOmegaOne.perfectlyNormalSpace
On this site: The long ray is not perfectly normal
instance instNoncompactSpace
TopologyByExample.LongRay.instNoncompactSpace
The long ray is not compact (as an instance).
instance instNoncompactSpace : NoncompactSpace LongRay
Proof
:= ⟨fun h ↦ not_compactSpace ⟨h⟩⟩
The open long ray
definition OpenLongRay
TopologyByExample.OpenLongRay
The open long ray: the long ray without its least point (0, 0), with the subspace topology,
which is its order topology.
abbrev OpenLongRay : Type
:= Ioi (⊥ : LongRay)
On this site: Space: Open long ray
definition r
TopologyByExample.OpenLongRay.r
The point (0, (1/2)^(n+1)) of the open long ray.
noncomputable def r (n : ℕ) : OpenLongRay
:=
⟨toLex (⊥, ⟨(1 / 2) ^ (n + 1), by positivity, pow_lt_one₀ (by norm_num) (by norm_num) (by simp)⟩),
toLex_lt_toLex.2 (Or.inr ⟨rfl, show (0 : ℝ) < (1 / 2) ^ (n + 1) by positivity⟩)⟩
theorem r_strictAnti
TopologyByExample.OpenLongRay.r_strictAnti
The points (0, (1/2)^(n+1)) decrease strictly.
theorem r_strictAnti : StrictAnti r
Proof
:= fun m n h ↦
Subtype.mk_lt_mk.2 <| toLex_lt_toLex.2 <| Or.inr ⟨rfl, show ((1 : ℝ) / 2) ^ (n + 1) <
(1 / 2) ^ (m + 1) from pow_lt_pow_right_of_lt_one₀ (by norm_num) (by norm_num) (by omega)⟩
theorem exists_r_lt
TopologyByExample.OpenLongRay.exists_r_lt
Every point of the open long ray lies above some point (0, (1/2)^(n+1)).
theorem exists_r_lt (p : OpenLongRay) : ∃ n, r n < p
Proof
:= by
obtain ⟨p, hp⟩ := p
obtain ⟨⟨β, t⟩, rfl⟩ := toLex.surjective p
rcases toLex_lt_toLex.1 (show (⊥ : LongRay) < toLex (β, t) from hp) with h | ⟨h, ht⟩
· exact ⟨0, Subtype.mk_lt_mk.2 (toLex_lt_toLex.2 (Or.inl h))⟩
· change ⊥ = β at h
subst h
obtain ⟨n, hn⟩ := exists_pow_lt_of_lt_one (show (0 : ℝ) < t from ht)
(show (1 / 2 : ℝ) < 1 by norm_num)
exact ⟨n, Subtype.mk_lt_mk.2 (toLex_lt_toLex.2 (Or.inr ⟨rfl,
show ((1 : ℝ) / 2) ^ (n + 1) < t from
(pow_lt_pow_right_of_lt_one₀ (by norm_num) (by norm_num) (Nat.lt_succ_self n)).trans hn⟩))⟩
instance instInhabited
TopologyByExample.OpenLongRay.instInhabited
The open long ray is nonempty.
noncomputable instance instInhabited : Inhabited OpenLongRay
Proof
:= ⟨r 0⟩
instance instNontrivial
TopologyByExample.OpenLongRay.instNontrivial
The open long ray has at least two points.
instance instNontrivial : Nontrivial OpenLongRay
Proof
:= ⟨⟨r 0, r 1, (r_strictAnti zero_lt_one).ne'⟩⟩
instance instConditionallyCompleteLinearOrder
TopologyByExample.OpenLongRay.instConditionallyCompleteLinearOrder
The open long ray is a conditionally complete linear order.
noncomputable instance instConditionallyCompleteLinearOrder :
ConditionallyCompleteLinearOrder OpenLongRay
Proof
:=
inferInstance
theorem bddAbove_of_countable
TopologyByExample.OpenLongRay.bddAbove_of_countable
Every countable subset of the open long ray is bounded above.
theorem bddAbove_of_countable {s : Set OpenLongRay} (hs : s.Countable) : BddAbove s
Proof
:= by
obtain ⟨u, hu⟩ := LongRay.bddAbove_of_countable (hs.image Subtype.val)
exact ⟨⟨max u (r 0), mem_Ioi.2 (lt_max_of_lt_right (r 0).property)⟩, fun p hp ↦
Subtype.mk_le_mk.2 ((hu ⟨p, hp, rfl⟩).trans (le_max_left _ _))⟩
On this site: Open long ray: Countable sets are bounded above
theorem isCountablyCompact_Ici
TopologyByExample.OpenLongRay.isCountablyCompact_Ici
Every ray [a, →) of the open long ray is countably compact: a sequence in it is bounded, so
it lies in a compact interval [a, b].
theorem isCountablyCompact_Ici (a : OpenLongRay) : IsCountablyCompact (Ici a)
Proof
:= by
refine isCountablyCompact_iff_seq_clusterPt.2 fun x hx ↦ ?_
obtain ⟨b, hb⟩ := bddAbove_of_countable (countable_range x)
obtain ⟨c, hc, hcl⟩ := isCountablyCompact_iff_seq_clusterPt.1
(isCompact_Icc (a := a) (b := b)).isCountablyCompact x
(hx.mono fun n hn ↦ ⟨hn, hb (mem_range_self n)⟩)
exact ⟨c, hc.1, hcl⟩
On this site: Open long ray: Rays to the right are countably compact
theorem exists_linearOrder_orderTopology
TopologyByExample.OpenLongRay.exists_linearOrder_orderTopology
The open long ray is linearly orderable: its topology is the order topology of a linear order.
theorem exists_linearOrder_orderTopology :
∃ o : LinearOrder OpenLongRay, letI := o; OrderTopology OpenLongRay
Proof
:=
⟨inferInstance, inferInstance⟩
On this site: The open long ray is linearly orderable
instance instFirstCountableTopology
TopologyByExample.OpenLongRay.instFirstCountableTopology
The open long ray is first countable, as a subspace of the long ray.
instance instFirstCountableTopology : FirstCountableTopology OpenLongRay
Proof
:= inferInstance
On this site: The open long ray is first countable
instance instPathPreconnectedSpace
TopologyByExample.OpenLongRay.instPathPreconnectedSpace
The open long ray is path connected, being an order-connected subset of the path connected long ray.
instance instPathPreconnectedSpace : PathPreconnectedSpace OpenLongRay
Proof
:=
have := isPathConnected_iff_pathConnectedSpace.1
(OrdConnected.isPathConnected_of_pathPreconnectedSpace (ordConnected_Ioi (a := (⊥ : LongRay)))
⟨_, (r 0).property⟩)
inferInstance
On this site: The open long ray is path connected
instance instWeaklyLocallyCompactSpace
TopologyByExample.OpenLongRay.instWeaklyLocallyCompactSpace
The open long ray is weakly locally compact: its closed intervals are compact.
instance instWeaklyLocallyCompactSpace : WeaklyLocallyCompactSpace OpenLongRay
On this site: The open long ray is weakly locally compact
theorem not_countablyCompactSpace
TopologyByExample.OpenLongRay.not_countablyCompactSpace
The open long ray is not countably compact: the open sets ((0, (1/2)^(n+1)), →) form a
countable cover with no finite subcover.
theorem not_countablyCompactSpace : ¬CountablyCompactSpace OpenLongRay
Proof
:= fun h ↦ by
obtain ⟨t, ht⟩ := isCountablyCompact_iff_countable_open_cover.1 h.isCountablyCompact_univ
(fun n ↦ Ioi (r n)) (fun _ ↦ isOpen_Ioi) fun p _ ↦ mem_iUnion.2 (exists_r_lt p)
obtain ⟨N, hN⟩ := t.bddAbove
obtain ⟨n, hn, hNn⟩ := mem_iUnion₂.1 (ht (mem_univ (r N)))
exact (r_strictAnti.antitone (hN hn)).not_gt hNn
On this site: The open long ray is not countably compact
instance instCountablyParacompactSpace
TopologyByExample.OpenLongRay.instCountablyParacompactSpace
The open long ray is countably paracompact. It is covered by the countably compact ray
[(0, 1/4), →) and the compact intervals [(0, (1/2)^(n+4)), (0, (1/2)^(n+2))], inside the open
sets ((0, 1/8), →) and ((0, (1/2)^(n+5)), (0, (1/2)^(n+1))), which form a locally finite
family.
instance instCountablyParacompactSpace : CountablyParacompactSpace OpenLongRay
Proof
:= by
let C : Option ℕ → Set OpenLongRay :=
fun i ↦ i.elim (Ici (r 1)) fun n ↦ Icc (r (n + 3)) (r (n + 1))
let W : Option ℕ → Set OpenLongRay := fun i ↦ i.elim (Ioi (r 2)) fun n ↦ Ioo (r (n + 4)) (r n)
refine countablyParacompactSpace_of_locallyFinite (C := C) (W := W) (fun i ↦ ?_) (fun i ↦ ?_)
(fun i ↦ ?_) (fun p ↦ ?_) fun p ↦ ?_
· cases i with
| none => exact isCountablyCompact_Ici _
| some n => exact isCompact_Icc.isCountablyCompact
· cases i with
| none => exact isOpen_Ioi
| some n => exact isOpen_Ioo
· cases i with
| none => exact Ici_subset_Ioi.2 (r_strictAnti (by norm_num))
| some n => exact Icc_subset_Ioo (r_strictAnti (by omega)) (r_strictAnti (by omega))
· by_cases hp : r 1 ≤ p
· exact ⟨none, hp⟩
· push Not at hp
classical
have hex := exists_r_lt p
set m := Nat.find hex
have hm : r m < p := Nat.find_spec hex
have hm2 : 2 ≤ m := by
by_contra! h
rcases (by omega : m = 0 ∨ m = 1) with h' | h' <;> rw [h'] at hm
· exact (hm.trans hp).not_ge (r_strictAnti.antitone (by norm_num))
· exact hm.not_gt hp
have hpm : p ≤ r (m - 1) := not_lt.1 (Nat.find_min hex (by omega))
refine ⟨some (m - 2), r_strictAnti.antitone (by omega) |>.trans hm.le, ?_⟩
exact hpm.trans (r_strictAnti.antitone (by omega))
· obtain ⟨k, hk⟩ := exists_r_lt p
refine ⟨Ioi (r k), isOpen_Ioi.mem_nhds hk,
((Set.finite_Iio k).image some |>.insert none).subset ?_⟩
rintro (_ | n) ⟨q, hqW, hqk⟩
· exact mem_insert _ _
· exact mem_insert_of_mem _ ⟨n, r_strictAnti.lt_iff_gt.1 (hqk.trans hqW.2), rfl⟩
On this site: The open long ray is countably paracompact
theorem not_paracompactSpace
TopologyByExample.OpenLongRay.not_paracompactSpace
The open long ray is not paracompact: its closed subset [(0, 1/2), →) is countably compact and
not compact, and a closed subset of a paracompact space is paracompact.
theorem not_paracompactSpace : ¬ParacompactSpace OpenLongRay
Proof
:= fun _ ↦ by
have : ParacompactSpace (Ici (r 0)) :=
isClosed_Ici.isClosedEmbedding_subtypeVal.paracompactSpace
have : CountablyCompactSpace (Ici (r 0)) :=
isCountablyCompact_iff_countablyCompactSpace.1 (isCountablyCompact_Ici _)
exact not_compactSpace_of_noMaxOrder (X := Ici (r 0))
compactSpace_of_paracompactSpace_of_countablyCompactSpace
On this site: The open long ray is not paracompact
theorem not_countableChainCondition
TopologyByExample.OpenLongRay.not_countableChainCondition
The open long ray does not satisfy the countable chain condition: the open intervals
((α, 1/4), (α, 1/2)), α < ω₁, are uncountably many pairwise disjoint nonempty open sets.
theorem not_countableChainCondition :
¬∀ S : Set (Set OpenLongRay), (∀ s ∈ S, IsOpen s ∧ s.Nonempty) → S.PairwiseDisjoint id →
S.Countable
Proof
:= by
let q : ℝ → Ico (0 : ℝ) 1 := fun t ↦ ⟨max 0 (min t (1 / 2)), le_max_left _ _,
max_lt (by norm_num) ((min_le_right _ _).trans_lt (by norm_num))⟩
let U : OmegaOne → Set OpenLongRay := fun α ↦
Subtype.val ⁻¹' Ioo (toLex (α, q (1 / 4))) (toLex (α, q (1 / 2)))
refine not_countableChainCondition_of_pairwise_disjoint (U := U)
(fun α ↦ isOpen_Ioo.preimage continuous_subtypeVal) (fun α ↦ ?_) fun α β hαβ ↦ ?_
· have h₁ : (toLex (α, q (1 / 4)) : LongRay) < toLex (α, q (3 / 8)) :=
toLex_lt_toLex.2 (Or.inr ⟨rfl, show (q (1 / 4) : ℝ) < q (3 / 8) by simp only [q]; norm_num⟩)
have h₂ : (toLex (α, q (3 / 8)) : LongRay) < toLex (α, q (1 / 2)) :=
toLex_lt_toLex.2 (Or.inr ⟨rfl, show (q (3 / 8) : ℝ) < q (1 / 2) by simp only [q]; norm_num⟩)
exact ⟨⟨_, mem_Ioi.2 (bot_le.trans_lt h₁)⟩, h₁, h₂⟩
· exact Set.disjoint_left.2 fun p hpα hpβ ↦ hαβ
((ProdLex.fst_eq_of_mem_Ioo hpα).symm.trans (ProdLex.fst_eq_of_mem_Ioo hpβ))
On this site: The open long ray does not satisfy the countable chain condition
definition ofIoi
TopologyByExample.OpenLongRay.ofIoi
The map α ↦ (α, 0) from the positive countable ordinals to the open long ray.
def ofIoi (α : Ioi (⊥ : OmegaOne)) : OpenLongRay
:=
⟨ofOmegaOne α, strictMono_ofOmegaOne α.property⟩
theorem isInducing_ofIoi
TopologyByExample.OpenLongRay.isInducing_ofIoi
The map α ↦ (α, 0) embeds the positive countable ordinals in the open long ray.
theorem isInducing_ofIoi : IsInducing ofIoi
Proof
:=
isInducing_of_strictMono_of_continuous (fun _ _ h ↦ strictMono_ofOmegaOne h)
((continuous_ofOmegaOne.comp continuous_subtypeVal).subtype_mk _)
On this site: Open long ray: The space contains a copy of the positive countable ordinals
theorem not_perfectlyNormalSpace_Ioi
TopologyByExample.OpenLongRay.not_perfectlyNormalSpace_Ioi
The positive countable ordinals are not perfectly normal, by the argument for ω₁.
theorem not_perfectlyNormalSpace_Ioi : ¬PerfectlyNormalSpace (Ioi (⊥ : OmegaOne))
Proof
:= by
have : Nonempty (Ioi (⊥ : OmegaOne)) := ⟨⟨Order.succ ⊥, mem_Ioi.2 (Order.bot_lt_succ ⊥)⟩⟩
refine not_perfectlyNormalSpace_of_bddAbove_of_countable fun s hs ↦ ?_
obtain ⟨c, hc⟩ := OmegaOne.bddAbove_of_countable (hs.image Subtype.val)
exact ⟨⟨Order.succ c, mem_Ioi.2 (Order.bot_lt_succ c)⟩, fun x hx ↦
Subtype.mk_le_mk.2 ((hc ⟨x, hx, rfl⟩).trans (Order.le_succ c))⟩
theorem not_perfectlyNormalSpace
TopologyByExample.OpenLongRay.not_perfectlyNormalSpace
The open long ray is not perfectly normal: it contains a copy of the positive countable ordinals, which are not perfectly normal.
theorem not_perfectlyNormalSpace : ¬PerfectlyNormalSpace OpenLongRay
Proof
:= fun _ ↦
not_perfectlyNormalSpace_Ioi isInducing_ofIoi.perfectlyNormalSpace
On this site: The open long ray is not perfectly normal
The closed long ray
definition homeomorphWithTop
TopologyByExample.ClosedLongRay.homeomorphWithTop
The closed long ray, the one-point compactification of the long ray, is the long ray with a greatest point added, with its order topology.
noncomputable def homeomorphWithTop : OnePoint LongRay ≃ₜ WithTop LongRay
:=
onePointHomeomorphWithTop LongRay
theorem exists_homeomorph_withTop
TopologyByExample.ClosedLongRay.exists_homeomorph_withTop
The closed long ray is the long ray with a greatest point added: there is a homeomorphism
from the closed long ray onto WithTop LongRay, with its order topology, that is the identity on
the long ray and sends the point at infinity to the new greatest point.
theorem exists_homeomorph_withTop :
∃ e : OnePoint LongRay ≃ₜ WithTop LongRay, (∀ x : LongRay, e x = x) ∧ e ∞ = ⊤
On this site: Closed long ray: The space is the long ray with a greatest point added
theorem linearlyOrderable
TopologyByExample.ClosedLongRay.linearlyOrderable
The closed long ray is linearly orderable.
theorem linearlyOrderable :
∃ o : LinearOrder (OnePoint LongRay), letI := o; OrderTopology (OnePoint LongRay)
Proof
:=
(Homeomorph.linearlyOrderable_iff homeomorphWithTop).2 ⟨inferInstance, inferInstance⟩
On this site: The closed long ray is linearly orderable
theorem isSeqClosed_range_coe
TopologyByExample.ClosedLongRay.isSeqClosed_range_coe
In the closed long ray, the long ray is sequentially closed: a sequence of points of the long
ray is bounded by some b, so it lies in the compact set [0, b], which is closed, and so does
its limit.
theorem isSeqClosed_range_coe : IsSeqClosed (range ((↑) : LongRay → OnePoint LongRay))
Proof
:= by
intro x p hx hp
choose y hy using hx
obtain ⟨b, hb⟩ := LongRay.bddAbove_of_countable (countable_range y)
have hK : IsClosed (((↑) : LongRay → OnePoint LongRay) '' Iic b) :=
((Icc_bot (a := b) ▸ isCompact_Icc : IsCompact (Iic b)).image continuous_coe).isClosed
exact image_subset_range _ _ <|
hK.mem_of_tendsto hp (Eventually.of_forall fun n ↦ ⟨y n, hb (mem_range_self n), hy n⟩)
theorem not_sequentialSpace
TopologyByExample.ClosedLongRay.not_sequentialSpace
The closed long ray is not sequential: the long ray is sequentially closed in it but not closed, since it is dense and misses the point at infinity.
theorem not_sequentialSpace : ¬SequentialSpace (OnePoint LongRay)
Proof
:= fun _ ↦ by
have h : (∞ : OnePoint LongRay) ∈ range ((↑) : LongRay → OnePoint LongRay) := by
rw [← isSeqClosed_range_coe.isClosed.closure_eq, OnePoint.denseRange_coe.closure_range]
trivial
obtain ⟨x, hx⟩ := h
exact OnePoint.coe_ne_infty x hx
On this site: The closed long ray is not sequential
theorem not_pathPreconnectedSpace
TopologyByExample.ClosedLongRay.not_pathPreconnectedSpace
The closed long ray is not path connected: the long ray is open and sequentially closed in it, so a path starting in the long ray never reaches the point at infinity.
theorem not_pathPreconnectedSpace : ¬PathPreconnectedSpace (OnePoint LongRay)
Proof
:= fun h ↦ by
obtain ⟨x, hx⟩ := Joined.mem_of_isOpen_of_isSeqClosed OnePoint.isOpen_range_coe
isSeqClosed_range_coe (h.joined ((⊥ : LongRay) : OnePoint LongRay) ∞) ⟨⊥, rfl⟩
exact OnePoint.coe_ne_infty x hx
On this site: The closed long ray is not path connected
On this site: Space: Closed long ray