Lean library · module TopologyByExample.Spaces.DoubleArrow
Alexandroff's double arrow space
Alexandroff's double arrow space is the set (0, 1] × {0} ∪ [0, 1) × {1} with the lexicographic
order, (x, a) < (y, b) iff x < y, or x = y and a < b, and the order topology. Each
x ∈ (0, 1) appears twice, as a point (x, 0) of the lower arrow and a point (x, 1) of the upper
arrow, with (x, 0) immediately below (x, 1). It is the order topology of a complete linear
order (so compact and Hausdorff), first countable, separable and hereditarily Lindelöf, but not
second countable (uncountably many points have an immediate predecessor) and so not metrizable.
It is zero-dimensional: the jumps (x, 0) ⋖ (x, 1) cut it into clopen pieces.
We represent it as the closed interval from (0, 1) to (1, 0) in unitInterval ×ₗ Bool,
Mathlib's lexicographic product of [0, 1] and Bool (with false < true playing 0 < 1), that
is, [0, 1] × {0, 1} with its two endpoints (0, 0) and (1, 1) removed (they would be isolated
points). The type carries Preorder.topology and an OrderTopology instance, as in
TopologyByExample.Spaces.LexicographicSquare; instTopologicalSpace_eq_induced checks that this
is also the subspace topology from the order topology of [0, 1] ×ₗ {0, 1}. Being a closed
interval of a complete linear order, it inherits Mathlib's complete linear order on Set.Icc.
Main definitions
TopologyByExample.DoubleArrow: the double arrow space.TopologyByExample.DoubleArrow.lower,TopologyByExample.DoubleArrow.upper: the points(x, 0),0 < x, and(x, 1),x < 1;TopologyByExample.DoubleArrow.inductionsays every point is one of these.TopologyByExample.DoubleArrow.proj: the projection(x, b) ↦ xonto[0, 1].
Main statements
TopologyByExample.DoubleArrow.exists_completeLinearOrder_orderTopologyTopologyByExample.DoubleArrow.instFirstCountableTopologyTopologyByExample.DoubleArrow.instSeparableSpaceTopologyByExample.DoubleArrow.not_secondCountableTopologyTopologyByExample.DoubleArrow.instCompactSpace,TopologyByExample.DoubleArrow.instT2SpaceTopologyByExample.DoubleArrow.not_metrizableSpaceTopologyByExample.DoubleArrow.instHereditarilyLindelofSpaceTopologyByExample.DoubleArrow.instTotallySeparatedSpace,TopologyByExample.DoubleArrow.instZeroDimensionalSpaceTopologyByExample.DoubleArrow.continuous_proj,TopologyByExample.DoubleArrow.surjective_proj,TopologyByExample.DoubleArrow.encard_proj_preimage_singleton,TopologyByExample.DoubleArrow.proj_preimage_zero,TopologyByExample.DoubleArrow.proj_preimage_one,TopologyByExample.DoubleArrow.continuous_surjective_proj_and_fibres: the projection onto[0, 1]is a continuous surjection, two-to-one over(0, 1)and one-to-one over0and1.
Provenance
The proofs of instSeparableSpace and not_secondCountableTopology follow those of
RealProdLexBool.instSeparableSpace and RealProdLexBool.not_secondCountableTopology in Mathlib's
Counterexamples/SeparableNotSecondCountable.lean by Yury G. Kudryashov (Apache 2.0), for the
closely related space ℝ ×ₗ Bool, at the Mathlib commit this project pins. The changes: the space
is a closed interval of [0, 1] ×ₗ Bool instead of ℝ ×ₗ Bool; the dense set is built from an
arbitrary countable dense subset of [0, 1] instead of the rationals; the case analysis goes
through TopologyByExample.DoubleArrow.induction; and the countable set of points with an immediate
predecessor is compared with [0, 1] by cardinality.
Separation axioms
TopologyByExample.DoubleArrow.instPerfectlyNormalSpace: the double arrow is perfectly normal.
References
- L. A. Steen and J. A. Seebach, Counterexamples in Topology, Example 95.
- P. Alexandroff and P. Urysohn, Mémoire sur les espaces topologiques compacts, Verh. Nederl. Akad. Wetensch. Afd. Naturk. Sect. I 14 (1929), 1–96 (the attribution of the space is that of R. Hodel, Handbook of Set-Theoretic Topology, ch. 1, Example 14.4).
Tags
double arrow, lexicographic order, order topology, separable, first countable, compact, hereditarily Lindelöf, zero-dimensional
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
- Mathlib.Analysis.Real.Cardinality
- Mathlib.Data.Fintype.Order
- Mathlib.Order.CompleteLatticeIntervals
- Mathlib.Topology.Compactness.Lindelof
- Mathlib.Topology.Metrizable.Basic
- Mathlib.Topology.Order.MonotoneContinuity
- Mathlib.Topology.Separation.Regular
- Mathlib.Topology.UnitInterval
- TopologyByExample.Spaces.LexicographicSquare
- TopologyByExample.Theorems.OrdConnectedCofinal
- TopologyByExample.Theorems.OrderEndpoints
- TopologyByExample.Theorems.OrderJumps
- TopologyByExample.Theorems.ProdLex
- TopologyByExample.Theorems.Separation
definition leftEnd
TopologyByExample.DoubleArrow.leftEnd
The least point (0, 1) of the double arrow, as a point of [0, 1] ×ₗ {0, 1}.
abbrev DoubleArrow.leftEnd : unitInterval ×ₗ Bool
:= toLex (0, true)
definition rightEnd
TopologyByExample.DoubleArrow.rightEnd
The greatest point (1, 0) of the double arrow, as a point of [0, 1] ×ₗ {0, 1}.
abbrev DoubleArrow.rightEnd : unitInterval ×ₗ Bool
:= toLex (1, false)
definition DoubleArrow
TopologyByExample.DoubleArrow
Alexandroff's double arrow space: the closed interval from (0, 1) to (1, 0) in the
lexicographic product [0, 1] ×ₗ {0, 1}, that is (0, 1] × {0} ∪ [0, 1) × {1}, with (via
TopologyByExample.DoubleArrow.instTopologicalSpace) its order topology.
abbrev DoubleArrow : Type
:= Icc DoubleArrow.leftEnd DoubleArrow.rightEnd
On this site: Space: Double arrow space
instance instFactLeftEndLeRightEnd
TopologyByExample.DoubleArrow.instFactLeftEndLeRightEnd
The left end of the double arrow lies below its right end.
instance instFactLeftEndLeRightEnd : Fact (leftEnd ≤ rightEnd)
Proof
:=
⟨toLex_le_toLex.2 (Or.inl zero_lt_one)⟩
instance instTopologicalSpace
TopologyByExample.DoubleArrow.instTopologicalSpace
The double arrow carries the order topology.
instance instTopologicalSpace : TopologicalSpace DoubleArrow
Proof
:= Preorder.topology _
instance instOrderTopology
TopologyByExample.DoubleArrow.instOrderTopology
The topology of the double arrow is its order topology.
instance instOrderTopology : OrderTopology DoubleArrow
Proof
:= ⟨rfl⟩
theorem instTopologicalSpace_eq_induced
TopologyByExample.DoubleArrow.instTopologicalSpace_eq_induced
The topology of the double arrow is also the subspace topology it inherits from the order
topology of [0, 1] ×ₗ {0, 1}, since it is an order-connected subset.
theorem instTopologicalSpace_eq_induced :
instTopologicalSpace = (Preorder.topology (unitInterval ×ₗ Bool)).induced (↑)
Proof
:= by
let := Preorder.topology (unitInterval ×ₗ Bool)
have : OrderTopology (unitInterval ×ₗ Bool) := ⟨rfl⟩
exact (orderTopology_of_ordConnected (t := Icc leftEnd rightEnd)).topology_eq_generate_intervals
|>.symm
theorem mem_iff
TopologyByExample.DoubleArrow.mem_iff
A point (x, b) of [0, 1] ×ₗ {0, 1} lies in the double arrow iff it is neither (0, 0)
nor (1, 1).
theorem mem_iff {x : unitInterval} {b : Bool} :
toLex (x, b) ∈ Icc leftEnd rightEnd ↔ (0 < x ∨ b = true) ∧ (x < 1 ∨ b = false)
Proof
:= by
have h0 : 0 < x ∨ 0 = x := unitInterval.nonneg'.lt_or_eq
have h1 : x < 1 ∨ x = 1 := unitInterval.le_one'.lt_or_eq
simp only [mem_Icc, toLex_le_toLex]
cases b <;> simp (config := { decide := true }) <;> tauto
definition lower
TopologyByExample.DoubleArrow.lower
The point (x, 0) of the double arrow, for 0 < x: a point of the lower arrow.
def lower (x : unitInterval) (hx : 0 < x) : DoubleArrow
:=
⟨toLex (x, false), mem_iff.2 (by simp [hx])⟩
definition upper
TopologyByExample.DoubleArrow.upper
The point (x, 1) of the double arrow, for x < 1: a point of the upper arrow.
def upper (x : unitInterval) (hx : x < 1) : DoubleArrow
:=
⟨toLex (x, true), mem_iff.2 (by simp [hx])⟩
theorem induction
TopologyByExample.DoubleArrow.induction
Every point of the double arrow is a point (x, 0) of the lower arrow, with 0 < x, or a
point (x, 1) of the upper arrow, with x < 1.
@[elab_as_elim]
theorem induction {motive : DoubleArrow → Prop} (lower : ∀ x hx, motive (lower x hx))
(upper : ∀ x hx, motive (upper x hx)) (p : DoubleArrow) : motive p
variable {x y : unitInterval}
theorem lower_lt_lower
TopologyByExample.DoubleArrow.lower_lt_lower
(x, 0) < (y, 0) iff x < y.
@[simp]
theorem lower_lt_lower {hx : 0 < x} {hy : 0 < y} : lower x hx < lower y hy ↔ x < y
Proof
:= by
change toLex (x, false) < toLex (y, false) ↔ x < y
simp [toLex_lt_toLex]
theorem lower_le_lower
TopologyByExample.DoubleArrow.lower_le_lower
(x, 0) ≤ (y, 0) iff x ≤ y.
@[simp]
theorem lower_le_lower {hx : 0 < x} {hy : 0 < y} : lower x hx ≤ lower y hy ↔ x ≤ y
Proof
:= by
change toLex (x, false) ≤ toLex (y, false) ↔ x ≤ y
rw [toLex_le_toLex]
simp [le_iff_lt_or_eq]
theorem upper_lt_upper
TopologyByExample.DoubleArrow.upper_lt_upper
(x, 1) < (y, 1) iff x < y.
@[simp]
theorem upper_lt_upper {hx : x < 1} {hy : y < 1} : upper x hx < upper y hy ↔ x < y
Proof
:= by
change toLex (x, true) < toLex (y, true) ↔ x < y
simp [toLex_lt_toLex]
theorem upper_le_upper
TopologyByExample.DoubleArrow.upper_le_upper
(x, 1) ≤ (y, 1) iff x ≤ y.
@[simp]
theorem upper_le_upper {hx : x < 1} {hy : y < 1} : upper x hx ≤ upper y hy ↔ x ≤ y
Proof
:= by
change toLex (x, true) ≤ toLex (y, true) ↔ x ≤ y
rw [toLex_le_toLex]
simp [le_iff_lt_or_eq]
theorem lower_lt_upper
TopologyByExample.DoubleArrow.lower_lt_upper
(x, 0) < (y, 1) iff x ≤ y.
@[simp]
theorem lower_lt_upper {hx : 0 < x} {hy : y < 1} : lower x hx < upper y hy ↔ x ≤ y
Proof
:= by
change toLex (x, false) < toLex (y, true) ↔ x ≤ y
rw [toLex_lt_toLex]
simp [le_iff_lt_or_eq]
theorem lower_le_upper
TopologyByExample.DoubleArrow.lower_le_upper
(x, 0) ≤ (y, 1) iff x ≤ y.
@[simp]
theorem lower_le_upper {hx : 0 < x} {hy : y < 1} : lower x hx ≤ upper y hy ↔ x ≤ y
Proof
:= by
change toLex (x, false) ≤ toLex (y, true) ↔ x ≤ y
rw [toLex_le_toLex]
simp [le_iff_lt_or_eq]
theorem upper_lt_lower
TopologyByExample.DoubleArrow.upper_lt_lower
(x, 1) < (y, 0) iff x < y.
@[simp]
theorem upper_lt_lower {hx : x < 1} {hy : 0 < y} : upper x hx < lower y hy ↔ x < y
Proof
:= by
change toLex (x, true) < toLex (y, false) ↔ x < y
simp [toLex_lt_toLex]
theorem upper_le_lower
TopologyByExample.DoubleArrow.upper_le_lower
(x, 1) ≤ (y, 0) iff x < y.
@[simp]
theorem upper_le_lower {hx : x < 1} {hy : 0 < y} : upper x hx ≤ lower y hy ↔ x < y
Proof
:= by
change toLex (x, true) ≤ toLex (y, false) ↔ x < y
simp [toLex_le_toLex]
theorem lower_inj
TopologyByExample.DoubleArrow.lower_inj
(x, 0) = (y, 0) iff x = y.
@[simp]
theorem lower_inj {hx : 0 < x} {hy : 0 < y} : lower x hx = lower y hy ↔ x = y
Proof
:= by
simp [lower]
theorem upper_inj
TopologyByExample.DoubleArrow.upper_inj
(x, 1) = (y, 1) iff x = y.
@[simp]
theorem upper_inj {hx : x < 1} {hy : y < 1} : upper x hx = upper y hy ↔ x = y
Proof
:= by
simp [upper]
theorem lower_ne_upper
TopologyByExample.DoubleArrow.lower_ne_upper
A point of the lower arrow is not a point of the upper arrow.
@[simp]
theorem lower_ne_upper {hx : 0 < x} {hy : y < 1} : lower x hx ≠ upper y hy
theorem upper_ne_lower
TopologyByExample.DoubleArrow.upper_ne_lower
A point of the upper arrow is not a point of the lower arrow.
@[simp]
theorem upper_ne_lower {hx : x < 1} {hy : 0 < y} : upper x hx ≠ lower y hy
Proof
:=
lower_ne_upper.symm
theorem lower_covBy_upper
TopologyByExample.DoubleArrow.lower_covBy_upper
The point (x, 0) is covered by (x, 1): nothing lies strictly between them.
theorem lower_covBy_upper {hx : 0 < x} {hx' : x < 1} : lower x hx ⋖ upper x hx'
Proof
:= by
have h : toLex (x, false) ⋖ toLex (x, true) := toLex_covBy_toLex_iff.2 (Or.inl ⟨rfl, by simp⟩)
exact ⟨h.1, fun c h₁ h₂ ↦ h.2 h₁ h₂⟩
The projection onto [0, 1]
definition proj
TopologyByExample.DoubleArrow.proj
The projection of the double arrow onto [0, 1], (x, b) ↦ x.
def proj (p : DoubleArrow) : unitInterval
:= (ofLex (p : unitInterval ×ₗ Bool)).1
theorem proj_lower
TopologyByExample.DoubleArrow.proj_lower
The projection of (x, 0) is x.
@[simp]
theorem proj_lower {x : unitInterval} {hx : 0 < x} : proj (lower x hx) = x
Proof
:= rfl
theorem proj_upper
TopologyByExample.DoubleArrow.proj_upper
The projection of (x, 1) is x.
@[simp]
theorem proj_upper {x : unitInterval} {hx : x < 1} : proj (upper x hx) = x
Proof
:= rfl
theorem snd_lower
TopologyByExample.DoubleArrow.snd_lower
The second coordinate of a point of the lower arrow is 0.
@[simp]
theorem snd_lower {x : unitInterval} {hx : 0 < x} :
(ofLex (lower x hx : unitInterval ×ₗ Bool)).2 = false
Proof
:= rfl
theorem snd_upper
TopologyByExample.DoubleArrow.snd_upper
The second coordinate of a point of the upper arrow is 1.
@[simp]
theorem snd_upper {x : unitInterval} {hx : x < 1} :
(ofLex (upper x hx : unitInterval ×ₗ Bool)).2 = true
Proof
:= rfl
theorem monotone_proj
TopologyByExample.DoubleArrow.monotone_proj
The projection onto [0, 1] is monotone.
theorem monotone_proj : Monotone proj
Proof
:= fun _ _ h ↦ monotone_fst_ofLex h
theorem surjective_proj
TopologyByExample.DoubleArrow.surjective_proj
The projection onto [0, 1] is surjective.
theorem surjective_proj : Function.Surjective proj
Proof
:= fun x ↦ by
rcases (unitInterval.nonneg' (t := x)).lt_or_eq with hx | hx
· exact ⟨lower x hx, rfl⟩
· exact ⟨upper 0 zero_lt_one, hx⟩
theorem continuous_proj
TopologyByExample.DoubleArrow.continuous_proj
The projection onto [0, 1] is continuous, being monotone and surjective.
theorem continuous_proj : Continuous proj
Proof
:=
monotone_proj.continuous_of_surjective surjective_proj
theorem proj_preimage_singleton
TopologyByExample.DoubleArrow.proj_preimage_singleton
Over a point x with 0 < x < 1, the projection has exactly two points, (x, 0) and
(x, 1).
theorem proj_preimage_singleton {x : unitInterval} (hx : 0 < x) (hx' : x < 1) :
proj ⁻¹' {x} = {lower x hx, upper x hx'}
theorem proj_preimage_zero
TopologyByExample.DoubleArrow.proj_preimage_zero
Over 0 the projection has only the point (0, 1).
theorem proj_preimage_zero : proj ⁻¹' {0} = {upper 0 zero_lt_one}
theorem proj_preimage_one
TopologyByExample.DoubleArrow.proj_preimage_one
Over 1 the projection has only the point (1, 0).
theorem proj_preimage_one : proj ⁻¹' {1} = {lower 1 zero_lt_one}
theorem finite_proj_preimage_singleton
TopologyByExample.DoubleArrow.finite_proj_preimage_singleton
Every fibre of the projection onto [0, 1] is finite.
theorem finite_proj_preimage_singleton (x : unitInterval) : (proj ⁻¹' {x}).Finite
theorem countable_proj_preimage
TopologyByExample.DoubleArrow.countable_proj_preimage
The preimage of a countable set under the projection onto [0, 1] is countable.
theorem countable_proj_preimage {C : Set unitInterval} (hC : C.Countable) :
(proj ⁻¹' C).Countable
Proof
:= by
rw [← biUnion_of_singleton C, preimage_iUnion₂]
exact hC.biUnion fun x _ ↦ (finite_proj_preimage_singleton x).countable
theorem lt_of_proj_lt
TopologyByExample.DoubleArrow.lt_of_proj_lt
A point whose projection is smaller is smaller.
theorem lt_of_proj_lt {p q : DoubleArrow} (h : proj p < proj q) : p < q
Proof
:=
lt_of_not_ge fun h' ↦ (monotone_proj h').not_gt h
theorem encard_proj_preimage_singleton
TopologyByExample.DoubleArrow.encard_proj_preimage_singleton
The projection is two-to-one over the open interval (0, 1).
theorem encard_proj_preimage_singleton {x : unitInterval} (hx : 0 < x) (hx' : x < 1) :
(proj ⁻¹' {x}).encard = 2
Proof
:= by
rw [proj_preimage_singleton hx hx', encard_pair lower_covBy_upper.lt.ne]
theorem continuous_surjective_proj_and_fibres
TopologyByExample.DoubleArrow.continuous_surjective_proj_and_fibres
The projection onto [0, 1] is a continuous surjection; its fibre over each x with
0 < x < 1 is {(x, 0), (x, 1)}, its fibre over 0 is {(0, 1)} and its fibre over 1 is
{(1, 0)}.
theorem continuous_surjective_proj_and_fibres :
Continuous proj ∧ Function.Surjective proj ∧
(∀ x (hx : 0 < x) (hx' : x < 1), proj ⁻¹' {x} = {lower x hx, upper x hx'}) ∧
proj ⁻¹' {0} = {upper 0 zero_lt_one} ∧ proj ⁻¹' {1} = {lower 1 zero_lt_one}
Proof
:=
⟨continuous_proj, surjective_proj, fun _ hx hx' ↦ proj_preimage_singleton hx hx',
proj_preimage_zero, proj_preimage_one⟩
On this site: Double arrow space: The projection onto the unit interval
The space values
theorem exists_completeLinearOrder_orderTopology
TopologyByExample.DoubleArrow.exists_completeLinearOrder_orderTopology
The double arrow is the order topology of a complete linear order.
theorem exists_completeLinearOrder_orderTopology :
∃ o : CompleteLinearOrder DoubleArrow, letI := o; OrderTopology DoubleArrow
Proof
:=
⟨inferInstance, instOrderTopology⟩
On this site: The double arrow space is the order topology of a complete linear order
instance instFirstCountableTopology
TopologyByExample.DoubleArrow.instFirstCountableTopology
The double arrow is first countable.
instance instFirstCountableTopology : FirstCountableTopology DoubleArrow
Proof
:=
OrdConnected.firstCountableTopology
(ProdLex.exists_countable_cofinal_Iio exists_countable_cofinal_Iio
exists_countable_cofinal_Iio_of_countable)
(ProdLex.exists_countable_coinitial_Ioi exists_countable_coinitial_Ioi
exists_countable_coinitial_Ioi_of_countable)
On this site: The double arrow space is first countable
instance instSeparableSpace
TopologyByExample.DoubleArrow.instSeparableSpace
The double arrow is separable: the points (d, 0), for d in a countable dense subset of
(0, 1], are dense.
instance instSeparableSpace : SeparableSpace DoubleArrow
Proof
:= by
obtain ⟨D, hDc, hD⟩ := exists_countable_dense unitInterval
set S : Set DoubleArrow := {p | proj p ∈ D ∧ (ofLex (p : unitInterval ×ₗ Bool)).2 = false}
have hSc : S.Countable := by
refine MapsTo.countable_of_injOn (fun p hp ↦ hp.1) (fun p hp q hq hpq ↦ ?_) hDc
induction p using induction <;> induction q using induction <;> simp_all [S]
refine ⟨⟨S, hSc, dense_iff_inter_open.2 fun U hU ⟨p, hp⟩ ↦ ?_⟩⟩
induction p using induction with
| lower x hx =>
obtain ⟨l, hl, hlU⟩ := exists_Ioc_subset_of_mem_nhds (hU.mem_nhds hp)
⟨upper 0 zero_lt_one, by simpa using hx⟩
induction l using induction with
| lower y hy =>
obtain ⟨z, hzD, hyz, hzx⟩ := hD.exists_between (lower_lt_lower.1 hl)
exact ⟨lower z (hy.trans hyz), hlU ⟨by simpa using hyz, by simpa using hzx.le⟩,
by simpa [S] using hzD, rfl⟩
| upper y hy =>
obtain ⟨z, hzD, hyz, hzx⟩ := hD.exists_between (upper_lt_lower.1 hl)
exact ⟨lower z (unitInterval.nonneg'.trans_lt hyz),
hlU ⟨by simpa using hyz, by simpa using hzx.le⟩, by simpa [S] using hzD, rfl⟩
| upper x hx =>
obtain ⟨u, hu, huU⟩ := exists_Ico_subset_of_mem_nhds (hU.mem_nhds hp)
⟨lower 1 zero_lt_one, by simpa using hx⟩
induction u using induction with
| lower y hy =>
obtain ⟨z, hzD, hxz, hzy⟩ := hD.exists_between (upper_lt_lower.1 hu)
exact ⟨lower z (unitInterval.nonneg'.trans_lt hxz),
huU ⟨by simpa using hxz, by simpa using hzy⟩, by simpa [S] using hzD, rfl⟩
| upper y hy =>
obtain ⟨z, hzD, hxz, hzy⟩ := hD.exists_between (upper_lt_upper.1 hu)
exact ⟨lower z (unitInterval.nonneg'.trans_lt hxz),
huU ⟨by simpa using hxz, by simpa using hzy.le⟩, by simpa [S] using hzD, rfl⟩
On this site: The double arrow space is separable
theorem not_secondCountableTopology
TopologyByExample.DoubleArrow.not_secondCountableTopology
The double arrow is not second countable: each of the uncountably many points (x, 1),
0 < x < 1, is covered by (x, 0), whereas a second countable linear order has only countably
many points with an immediate predecessor.
theorem not_secondCountableTopology : ¬SecondCountableTopology DoubleArrow
Proof
:= by
intro _
have hc := countable_setOfPred_covBy_left (α := DoubleArrow)
have huniv : (univ : Set unitInterval).Countable := by
refine ((hc.image proj).union ((countable_singleton (1 : unitInterval)).insert 0)).mono
fun x _ ↦ ?_
rcases (unitInterval.nonneg' (t := x)).lt_or_eq with h0 | rfl
· rcases (unitInterval.le_one' (t := x)).lt_or_eq with h1 | rfl
· exact .inl ⟨upper x h1, ⟨lower x h0, lower_covBy_upper⟩, rfl⟩
· exact .inr (.inr rfl)
· exact .inr (.inl rfl)
have := Cardinal.mk_le_aleph0_iff.2 (countable_univ_iff.1 huniv)
rw [Cardinal.mk_Icc_real zero_lt_one] at this
exact Cardinal.aleph0_lt_continuum.not_ge this
On this site: The double arrow space is not second countable
instance instCompactSpace
TopologyByExample.DoubleArrow.instCompactSpace
The double arrow is compact, being a complete linear order with the order topology.
instance instCompactSpace : CompactSpace DoubleArrow
Proof
:= inferInstance
instance instT2Space
TopologyByExample.DoubleArrow.instT2Space
The double arrow is Hausdorff, as is every order topology.
instance instT2Space : T2Space DoubleArrow
Proof
:= inferInstance
theorem not_metrizableSpace
TopologyByExample.DoubleArrow.not_metrizableSpace
The double arrow is not metrizable: a separable metrizable space is second countable.
theorem not_metrizableSpace : ¬MetrizableSpace DoubleArrow
Proof
:= fun _ ↦
letI := metrizableSpaceMetric DoubleArrow
not_secondCountableTopology inferInstance
Hereditary Lindelöf property
theorem exists_countable_biUnion_eq
TopologyByExample.DoubleArrow.exists_countable_biUnion_eq
Every family of open sets in the double arrow has a countable subfamily with the same union.
Let Ω ⊆ [0, 1] be the set of points x near which both points of every fibre lie in a single
member of the family. By second countability of [0, 1], countably many members cover the
preimage of Ω. Any other point of the union is a point (x, 0) (resp. (x, 1)) with x ∉ Ω
and an interval (a, x) (resp. (x, b)) inside Ω; there are only countably many such x, and
each fibre is finite, so countably many further members cover these points.
theorem exists_countable_biUnion_eq {ι : Type*} (U : ι → Set DoubleArrow)
(hU : ∀ i, IsOpen (U i)) : ∃ r : Set ι, r.Countable ∧ ⋃ i ∈ r, U i = ⋃ i, U i
Proof
:= by
set O : ι → Set unitInterval := fun i ↦ {x | ∀ᶠ y in 𝓝 x, proj ⁻¹' {y} ⊆ U i}
have hO (i : ι) : IsOpen (O i) := isOpen_setOfPred_eventually_nhds
have hOU (i : ι) : proj ⁻¹' O i ⊆ U i := fun p hp ↦ hp.self_of_nhds rfl
obtain ⟨r₀, hr₀c, hr₀⟩ := isOpen_iUnion_countable O hO
set Ω := ⋃ i, O i
set R := (⋃ i, U i) \ proj ⁻¹' Ω
-- If the fibres over an open interval `(a, b)` lie in `U i`, then `(a, b) ⊆ Ω`.
have hIoo {i : ι} {a b : unitInterval} (h : ∀ q, proj q ∈ Ioo a b → q ∈ U i) : Ioo a b ⊆ Ω :=
fun y hy ↦ mem_iUnion.2 ⟨i, Filter.mem_of_superset (isOpen_Ioo.mem_nhds hy)
fun z hz q hq ↦ h q ((mem_singleton_iff.1 hq).symm ▸ hz)⟩
have hR : (proj '' R).Countable := by
refine ((countable_setOf_notMem_Ioo_subset_left Ω).union
(countable_setOf_notMem_Ioo_subset_right Ω)).mono ?_
rintro _ ⟨p, ⟨hpU, hpΩ⟩, rfl⟩
obtain ⟨i, hpi⟩ := mem_iUnion.1 hpU
induction p using induction with
| lower x hx =>
obtain ⟨l, hl, hlU⟩ := exists_Ioc_subset_of_mem_nhds ((hU i).mem_nhds hpi)
⟨upper 0 zero_lt_one, by simpa using hx⟩
have hlx : proj l < x := by induction l using induction <;> simpa using hl
exact .inl ⟨hpΩ, proj l, hlx, hIoo fun q hq ↦
hlU ⟨lt_of_proj_lt hq.1, (lt_of_proj_lt (by simpa using hq.2)).le⟩⟩
| upper x hx =>
obtain ⟨u, hu, huU⟩ := exists_Ico_subset_of_mem_nhds ((hU i).mem_nhds hpi)
⟨lower 1 zero_lt_one, by simpa using hx⟩
have hxu : x < proj u := by induction u using induction <;> simpa using hu
exact .inr ⟨hpΩ, proj u, hxu, hIoo fun q hq ↦
huU ⟨(lt_of_proj_lt (by simpa using hq.1)).le, lt_of_proj_lt hq.2⟩⟩
have hRc : R.Countable := (countable_proj_preimage hR).mono (subset_preimage_image _ _)
have : ∀ p : R, ∃ i, (p : DoubleArrow) ∈ U i := fun p ↦ mem_iUnion.1 p.property.1
choose j hj using this
have := hRc.to_subtype
refine ⟨r₀ ∪ range j, hr₀c.union (countable_range j),
(iUnion₂_subset fun i _ ↦ subset_iUnion U i).antisymm fun p hp ↦ ?_⟩
by_cases hpΩ : proj p ∈ Ω
· rw [← hr₀, mem_iUnion₂] at hpΩ
obtain ⟨i, hi, hpi⟩ := hpΩ
exact mem_biUnion (.inl hi) (hOU i hpi)
· exact mem_biUnion (.inr ⟨⟨p, hp, hpΩ⟩, rfl⟩) (hj ⟨p, hp, hpΩ⟩)
instance instHereditarilyLindelofSpace
TopologyByExample.DoubleArrow.instHereditarilyLindelofSpace
The double arrow is hereditarily Lindelöf: every subspace is Lindelöf.
instance instHereditarilyLindelofSpace : HereditarilyLindelofSpace DoubleArrow
Proof
where
isHereditarilyLindelof_univ t _ := isLindelof_of_countable_subcover fun U hU htU ↦ by
obtain ⟨r, hr, h⟩ := exists_countable_biUnion_eq U hU
exact ⟨r, hr, h ▸ htU⟩
On this site: The double arrow space is hereditarily Lindelöf
Zero-dimensionality
theorem exists_covBy_between
TopologyByExample.DoubleArrow.exists_covBy_between
Between any two points p < q of the double arrow there is a jump (z, 0) ⋖ (z, 1) with
p ≤ (z, 0) and (z, 1) ≤ q.
theorem exists_covBy_between {p q : DoubleArrow} (h : p < q) :
∃ c d, p ≤ c ∧ c ⋖ d ∧ d ≤ q
Proof
:= by
rcases (monotone_proj h.le).lt_or_eq with hpq | hpq
· obtain ⟨z, hpz, hzq⟩ := exists_between hpq
have h0 : 0 < z := unitInterval.nonneg'.trans_lt hpz
have h1 : z < 1 := hzq.trans_le unitInterval.le_one'
refine ⟨lower z h0, upper z h1, ?_, lower_covBy_upper, ?_⟩
· induction p using induction <;> simp only [proj_lower, proj_upper] at hpz <;>
simp [hpz, hpz.le]
· induction q using induction <;> simp only [proj_lower, proj_upper] at hzq <;>
simp [hzq, hzq.le]
· induction p using induction with
| lower x hx =>
induction q using induction with
| lower y hy => exact absurd hpq (lower_lt_lower.1 h).ne
| upper y hy =>
obtain rfl : x = y := hpq
exact ⟨_, _, le_rfl, lower_covBy_upper, le_rfl⟩
| upper x hx =>
induction q using induction with
| lower y hy => exact absurd hpq (upper_lt_lower.1 h).ne
| upper y hy => exact absurd hpq (upper_lt_upper.1 h).ne
instance instTotallySeparatedSpace
TopologyByExample.DoubleArrow.instTotallySeparatedSpace
The double arrow is totally separated: the jumps (z, 0) ⋖ (z, 1) cut it into clopen
pieces.
instance instTotallySeparatedSpace : TotallySeparatedSpace DoubleArrow
Proof
:=
totallySeparatedSpace_of_exists_covBy fun _ _ ↦ exists_covBy_between
On this site: The double arrow space is totally separated
instance instZeroDimensionalSpace
TopologyByExample.DoubleArrow.instZeroDimensionalSpace
The double arrow is zero-dimensional: its clopen sets form a basis of its topology.
instance instZeroDimensionalSpace : ZeroDimensionalSpace DoubleArrow
Proof
:= inferInstance
Perfect normality
instance instPerfectlyNormalSpace
TopologyByExample.DoubleArrow.instPerfectlyNormalSpace
The double arrow is perfectly normal: it is regular (a compact Hausdorff space) and hereditarily Lindelöf.
instance instPerfectlyNormalSpace : PerfectlyNormalSpace DoubleArrow
Further properties
theorem not_countable
TopologyByExample.DoubleArrow.not_countable
The double arrow space is uncountable: it maps onto the unit interval.
theorem not_countable : ¬Countable DoubleArrow
Proof
:= fun _ ↦
not_countable_univ (α := unitInterval) (by
rw [← surjective_proj.range_eq]
exact countable_range proj)
On this site: The double arrow space is not countable