Lean library · module TopologyByExample.Spaces.LongLine
The long line
The long line is two copies of the long ray glued at their least points, one of them reversed: the open long ray with its order reversed, followed by the long ray, with the order topology. In the long line every point has a neighbourhood that is an open interval homeomorphic to an open interval of the reals, and every countable set is bounded on both sides.
Choice of type
We take LongLine := OpenLongRayᵒᵈ ⊕ₗ LongRay, the lexicographic sum, with Preorder.topology.
The reversed open long ray has no greatest element and the long ray has a least element 0, which
is therefore the supremum of the reversed part: there is no gap and no jump at the junction.
(Reversing the whole long ray instead would give two adjacent points 0 and 0', and a
disconnected space.) The long line is a conditionally complete linear order
(TopologyByExample.SumLex.exists_isLUB), and every closed interval has a countable order-dense
subset (TopologyByExample.SumLex.exists_countable_dense), so, as for the long ray, every
nontrivial closed interval is homeomorphic to [0, 1]; it is path connected and first countable.
Main statements
TopologyByExample.LongLine.exists_linearOrder_orderTopology,instFirstCountableTopology,instPathPreconnectedSpace,instWeaklyLocallyCompactSpace,instSeqCompactSpace,not_compactSpace,not_countableChainCondition,not_perfectlyNormalSpace;TopologyByExample.LongLine.nonempty_homeomorph_Icc: every[x, y]withx < yis an arc;TopologyByExample.LongLine.isOpenEmbedding_ofOpenLongRay: the open long ray is the open subspace of points above0.
Tags
long line, long ray, lexicographic sum, 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.
definition LongLine
TopologyByExample.LongLine
The long line: the open long ray with its order reversed, followed by the long ray, with (via
TopologyByExample.LongLine.instTopologicalSpace) the order topology.
abbrev LongLine : Type
:= OpenLongRayᵒᵈ ⊕ₗ LongRay
On this site: Space: Long line
theorem exists_countable_dense_Iic
TopologyByExample.OpenLongRay.exists_countable_dense_Iic
Every closed initial segment (←, b] of the open long ray has a countable order-dense
subset.
theorem exists_countable_dense_Iic (b : OpenLongRay) : ∃ D : Set OpenLongRay, D.Countable ∧
∀ x y, x < y → y ≤ b → ∃ d ∈ D, x < d ∧ d < y
Proof
:= by
obtain ⟨D, hD, hd⟩ := LongRay.exists_countable_dense_Iic (b : LongRay)
refine ⟨Subtype.val ⁻¹' D, hD.preimage Subtype.val_injective, fun x y hxy hy ↦ ?_⟩
obtain ⟨d, hdD, hxd, hdy⟩ := hd x y hxy hy
exact ⟨⟨d, mem_Ioi.2 (x.property.trans hxd)⟩, hdD, hxd, hdy⟩
instance instTopologicalSpace
TopologyByExample.LongLine.instTopologicalSpace
The long line carries the order topology.
noncomputable instance instTopologicalSpace : TopologicalSpace LongLine
Proof
:= Preorder.topology _
instance instOrderTopology
TopologyByExample.LongLine.instOrderTopology
The topology of the long line is its order topology.
instance instOrderTopology : OrderTopology LongLine
Proof
:= ⟨rfl⟩
instance instInhabited
TopologyByExample.LongLine.instInhabited
The long line is nonempty.
noncomputable instance instInhabited : Inhabited LongLine
Proof
:= ⟨toLex (Sum.inr ⊥)⟩
instance instNontrivial
TopologyByExample.LongLine.instNontrivial
The long line has at least two points.
instance instNontrivial : Nontrivial LongLine
Proof
:=
⟨⟨toLex (Sum.inr ⊥), toLex (Sum.inl (toDual (OpenLongRay.r 0))), (inl_lt_inr _ _).ne'⟩⟩
instance instNoMaxOrder
TopologyByExample.LongLine.instNoMaxOrder
The long line has no greatest element.
instance instNoMaxOrder : NoMaxOrder LongLine
Proof
:= inferInstance
instance instNoMinOrder
TopologyByExample.LongLine.instNoMinOrder
The long line has no least element.
instance instNoMinOrder : NoMinOrder LongLine
Proof
:= inferInstance
instance instDenselyOrdered
TopologyByExample.LongLine.instDenselyOrdered
The long line is densely ordered.
instance instDenselyOrdered : DenselyOrdered LongLine
Proof
:= inferInstance
theorem exists_isLUB
TopologyByExample.LongLine.exists_isLUB
Every nonempty subset of the long line with an upper bound has a least upper bound.
theorem exists_isLUB (s : Set LongLine) (hs : s.Nonempty) (hb : BddAbove s) : ∃ x, IsLUB s x
Proof
:=
SumLex.exists_isLUB s hs hb
On this site: Long line: Bounded sets have least upper bounds
instance instConditionallyCompleteLinearOrder
TopologyByExample.LongLine.instConditionallyCompleteLinearOrder
The long line is a conditionally complete linear order.
noncomputable instance instConditionallyCompleteLinearOrder :
ConditionallyCompleteLinearOrder LongLine
theorem exists_countable_dense
TopologyByExample.LongLine.exists_countable_dense
Every closed interval of the long line has a countable order-dense subset.
theorem exists_countable_dense (a b : LongLine) : ∃ D : Set LongLine, D.Countable ∧
∀ x y, a ≤ x → x < y → y ≤ b → ∃ d ∈ D, x < d ∧ d < y
Proof
:= by
refine SumLex.exists_countable_dense (fun a ↦ ?_) LongRay.exists_countable_dense_Iic a b
obtain ⟨D, hD, hd⟩ := OpenLongRay.exists_countable_dense_Iic (ofDual a)
refine ⟨ofDual ⁻¹' D, hD.preimage ofDual.injective, fun x y hx hxy ↦ ?_⟩
obtain ⟨d, hdD, h₁, h₂⟩ := hd (ofDual y) (ofDual x) hxy hx
exact ⟨toDual d, hdD, h₂, h₁⟩
On this site: Long line: Closed intervals have countable dense subsets
theorem nonempty_homeomorph_Icc
TopologyByExample.LongLine.nonempty_homeomorph_Icc
Every closed interval [x, y], x < y, of the long line is homeomorphic to [0, 1].
theorem nonempty_homeomorph_Icc {x y : LongLine} (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 line: Closed intervals are copies of \([0, 1]\)
theorem bddAbove_bddBelow_of_countable
TopologyByExample.LongLine.bddAbove_bddBelow_of_countable
Every countable subset of the long line is bounded above and below.
theorem bddAbove_bddBelow_of_countable {s : Set LongLine} (hs : s.Countable) :
BddAbove s ∧ BddBelow s
Proof
:= by
obtain ⟨u, hu⟩ := LongRay.bddAbove_of_countable
(hs.preimage (toLex.injective.comp Sum.inr_injective) :
((fun y : LongRay ↦ toLex (Sum.inr y : OpenLongRayᵒᵈ ⊕ LongRay)) ⁻¹' s).Countable)
obtain ⟨w, hw⟩ := OpenLongRay.bddAbove_of_countable
(hs.preimage (toLex.injective.comp (Sum.inl_injective.comp toDual.injective)) :
((fun x : OpenLongRay ↦ toLex (Sum.inl (toDual x) : OpenLongRayᵒᵈ ⊕ LongRay)) ⁻¹'
s).Countable)
refine ⟨⟨toLex (Sum.inr u), fun z hz ↦ ?_⟩, ⟨toLex (Sum.inl (toDual w)), fun z hz ↦ ?_⟩⟩
· obtain ⟨z | z, rfl⟩ := toLex.surjective z
· exact inl_le_inr _ _
· exact inr_le_inr_iff.2 (hu hz)
· obtain ⟨z | z, rfl⟩ := toLex.surjective z
· exact inl_le_inl_iff.2 (toDual_le.2 (hw (show toLex (Sum.inl (toDual (ofDual z))) ∈ s
from hz)))
· exact inl_le_inr _ _
On this site: Long line: Countable sets are bounded on both sides
The values
theorem exists_linearOrder_orderTopology
TopologyByExample.LongLine.exists_linearOrder_orderTopology
The long line is linearly orderable: its topology is the order topology of a linear order.
theorem exists_linearOrder_orderTopology :
∃ o : LinearOrder LongLine, letI := o; OrderTopology LongLine
Proof
:=
⟨inferInstance, inferInstance⟩
On this site: The long line is linearly orderable
instance instFirstCountableTopology
TopologyByExample.LongLine.instFirstCountableTopology
The long line is first countable.
instance instFirstCountableTopology : FirstCountableTopology LongLine
On this site: The long line is first countable
instance instPathPreconnectedSpace
TopologyByExample.LongLine.instPathPreconnectedSpace
The long line is path connected: every closed interval is an arc.
instance instPathPreconnectedSpace : PathPreconnectedSpace LongLine
On this site: The long line is path connected
instance instWeaklyLocallyCompactSpace
TopologyByExample.LongLine.instWeaklyLocallyCompactSpace
The long line is weakly locally compact: its closed intervals are compact.
instance instWeaklyLocallyCompactSpace : WeaklyLocallyCompactSpace LongLine
On this site: The long line is weakly locally compact
instance instSeqCompactSpace
TopologyByExample.LongLine.instSeqCompactSpace
The long line is sequentially compact: a sequence is bounded on both sides, so it lies in a compact interval, and the long line is first countable.
instance instSeqCompactSpace : SeqCompactSpace LongLine
Proof
:=
seqCompactSpace_of_countable_bddAbove_bddBelow fun _ hs ↦ bddAbove_bddBelow_of_countable hs
On this site: The long line is sequentially compact
theorem not_compactSpace
TopologyByExample.LongLine.not_compactSpace
The long line is not compact: it has no greatest element.
theorem not_compactSpace : ¬CompactSpace LongLine
Proof
:= not_compactSpace_of_noMaxOrder
On this site: The long line is not compact
The open long ray inside the long line
definition ofOpenLongRay
TopologyByExample.LongLine.ofOpenLongRay
The inclusion of the open long ray in the long line as the points above 0.
def ofOpenLongRay (p : OpenLongRay) : LongLine
:= toLex (Sum.inr (p : LongRay))
theorem range_ofOpenLongRay
TopologyByExample.LongLine.range_ofOpenLongRay
The open long ray is the set of points of the long line above 0.
theorem range_ofOpenLongRay : range ofOpenLongRay = Ioi (toLex (Sum.inr ⊥))
Proof
:= by
ext z
obtain ⟨z | z, rfl⟩ := toLex.surjective z
· refine ⟨?_, fun h ↦ absurd h not_inr_lt_inl⟩
rintro ⟨p, hp⟩
exact absurd (toLex.injective hp) Sum.inr_ne_inl
· refine ⟨?_, fun h ↦ ⟨⟨z, inr_lt_inr_iff.1 h⟩, rfl⟩⟩
rintro ⟨p, hp⟩
rw [← hp]
exact inr_lt_inr_iff.2 p.property
theorem isOpenEmbedding_ofOpenLongRay
TopologyByExample.LongLine.isOpenEmbedding_ofOpenLongRay
The open long ray is an open subspace of the long line.
theorem isOpenEmbedding_ofOpenLongRay : IsOpenEmbedding ofOpenLongRay
Proof
:= by
have hmono : StrictMono ofOpenLongRay := fun _ _ h ↦ inr_lt_inr_iff.2 h
refine ⟨hmono.isEmbedding_of_ordConnected ?_, ?_⟩
· rw [range_ofOpenLongRay]
exact ordConnected_Ioi
· rw [range_ofOpenLongRay]
exact isOpen_Ioi
On this site: Long line: The points above \(0\) form an open copy of the open long ray
theorem not_countableChainCondition
TopologyByExample.LongLine.not_countableChainCondition
The long line does not satisfy the countable chain condition, since its open subspace, the open long ray, does not.
theorem not_countableChainCondition :
¬∀ S : Set (Set LongLine), (∀ s ∈ S, IsOpen s ∧ s.Nonempty) → S.PairwiseDisjoint id →
S.Countable
Proof
:=
not_countableChainCondition_of_isOpenEmbedding isOpenEmbedding_ofOpenLongRay
OpenLongRay.not_countableChainCondition
On this site: The long line does not satisfy the countable chain condition
theorem not_perfectlyNormalSpace
TopologyByExample.LongLine.not_perfectlyNormalSpace
The long line is not perfectly normal, since its subspace, the open long ray, is not.
theorem not_perfectlyNormalSpace : ¬PerfectlyNormalSpace LongLine
Proof
:= fun _ ↦
OpenLongRay.not_perfectlyNormalSpace
isOpenEmbedding_ofOpenLongRay.isInducing.perfectlyNormalSpace
On this site: The long line is not perfectly normal