Lean library · module TopologyByExample.Spaces.EverywhereDoubledLine
The everywhere doubled line
The everywhere doubled line is ℝ × {0, 1}, a lower line A = ℝ × {0} and an upper line
B = ℝ × {1}, in which a basic neighbourhood of a point (x, i) is (x, i) together with the
points (t, 0) of the lower line with 0 < |t - x| < ε. Every point is a twin of the point above
or below it.
We take the topology to be the final topology of the charts: for each point q with first
coordinate x, the map chart q : ℝ → EverywhereDoubledLine sending x to q and t ≠ x to
(t, 0). Each chart is an open embedding.
It is T₁, separable, first countable, path connected, locally path connected, locally compact and
a Baire space; the upper line is a closed discrete set of cardinality 𝔠; it is not pseudocompact,
not locally relatively compact and not semiregular.
Main statements
TopologyByExample.EverywhereDoubledLine.isOpenEmbedding_chart: each chart is an open embedding.TopologyByExample.EverywhereDoubledLine.t1Space,.separableSpace,.firstCountableTopology,.pathPreconnectedSpace,.locallyPathConnectedSpace,.locallyCompactSpace,.baireSpace,.exists_closed_discrete_continuum_le,.not_pseudocompactSpace,.not_locallyRelativelyCompactSpace,.not_semiregularSpace: its values and facts.
Tags
everywhere doubled line, non-Hausdorff 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
- Mathlib.Analysis.Real.Cardinality
- Mathlib.Topology.Algebra.Order.Archimedean
- Mathlib.Topology.Connected.LocallyPathConnected
- Mathlib.Topology.DiscreteSubset
- Mathlib.Topology.Instances.Real.Lemmas
- TopologyByExample.Theorems.Category
- TopologyByExample.Theorems.Connectedness
- TopologyByExample.Theorems.HomeomorphInvariance
- TopologyByExample.Theorems.TwinPoints
theorem isOpen_of_subset_of_finite_diff
TopologyByExample.isOpen_of_subset_of_finite_diff
A set lying between an open set V and V minus finitely many points is open, in a T₁
space.
theorem isOpen_of_subset_of_finite_diff {X : Type*} [TopologicalSpace X] [T1Space X]
{V W : Set X} (hV : IsOpen V) (hWV : W ⊆ V) (hfin : (V \ W).Finite) : IsOpen W
Proof
:= by
have : W = V \ (V \ W) := by
rw [sdiff_sdiff_right_self]
exact (inter_eq_right.2 hWV).symm
rw [this]
exact hV.sdiff hfin.isClosed
definition EverywhereDoubledLine
TopologyByExample.EverywhereDoubledLine
The everywhere doubled line: ℝ × {0, 1}, in which every point (x, i) has as basic
neighbourhoods itself together with the points (t, 0) with 0 < |t - x| < ε.
def EverywhereDoubledLine : Type
:=
ℝ × Bool
On this site: Space: Everywhere doubled line
definition toProd
TopologyByExample.EverywhereDoubledLine.toProd
The identification of the everywhere doubled line with ℝ × Bool.
def toProd : EverywhereDoubledLine ≃ ℝ × Bool
:=
Equiv.refl _
definition pt
TopologyByExample.EverywhereDoubledLine.pt
The point (x, i); i = false is the lower line, i = true the upper one.
def pt (x : ℝ) (i : Bool) : EverywhereDoubledLine
:=
toProd.symm (x, i)
instance
The everywhere doubled line is nonempty.
instance : Nonempty EverywhereDoubledLine
Proof
:=
⟨pt 0 false⟩
definition coord
TopologyByExample.EverywhereDoubledLine.coord
The coordinate of a point.
def coord (q : EverywhereDoubledLine) : ℝ
:=
(toProd q).1
theorem coord_pt
TopologyByExample.EverywhereDoubledLine.coord_pt
@[simp] theorem coord_pt (x : ℝ) (i : Bool) : coord (pt x i) = x
Proof
:= rfl
theorem pt_coord
TopologyByExample.EverywhereDoubledLine.pt_coord
theorem pt_coord (q : EverywhereDoubledLine) : pt (coord q) (toProd q).2 = q
Proof
:= rfl
theorem pt_injective
TopologyByExample.EverywhereDoubledLine.pt_injective
theorem pt_injective {x y : ℝ} {i j : Bool} : pt x i = pt y j ↔ x = y ∧ i = j
Proof
:= by
simp [pt, Prod.ext_iff]
definition chart
TopologyByExample.EverywhereDoubledLine.chart
The chart through q: it sends the coordinate of q to q and every other t to the point
(t, 0) of the lower line.
noncomputable def chart (q : EverywhereDoubledLine) (t : ℝ) : EverywhereDoubledLine
:=
open Classical in if t = coord q then q else pt t false
theorem chart_coord
TopologyByExample.EverywhereDoubledLine.chart_coord
@[simp] theorem chart_coord (q : EverywhereDoubledLine) : chart q (coord q) = q
Proof
:= by
simp [chart]
theorem chart_of_ne
TopologyByExample.EverywhereDoubledLine.chart_of_ne
theorem chart_of_ne {q : EverywhereDoubledLine} {t : ℝ} (h : t ≠ coord q) :
chart q t = pt t false
Proof
:= by
simp [chart, h]
theorem coord_chart
TopologyByExample.EverywhereDoubledLine.coord_chart
@[simp] theorem coord_chart (q : EverywhereDoubledLine) (t : ℝ) : coord (chart q t) = t
Proof
:= by
by_cases h : t = coord q
· rw [h, chart_coord]
· rw [chart_of_ne h, coord_pt]
theorem chart_injective
TopologyByExample.EverywhereDoubledLine.chart_injective
theorem chart_injective (q : EverywhereDoubledLine) : Function.Injective (chart q)
Proof
:=
fun s t h ↦ by simpa using congrArg coord h
theorem chart_pt_false
TopologyByExample.EverywhereDoubledLine.chart_pt_false
The lower line, the chart through any of its points.
theorem chart_pt_false (x t : ℝ) : chart (pt x false) t = pt t false
Proof
:= by
by_cases h : t = x
· subst h
exact chart_coord _
· exact chart_of_ne h
instance
The topology of the everywhere doubled line: the finest making every chart continuous.
noncomputable instance : TopologicalSpace EverywhereDoubledLine
Proof
:=
⨆ q : EverywhereDoubledLine, coinduced (chart q) inferInstance
theorem isOpen_iff
TopologyByExample.EverywhereDoubledLine.isOpen_iff
theorem isOpen_iff {s : Set EverywhereDoubledLine} :
IsOpen s ↔ ∀ q, IsOpen (chart q ⁻¹' s)
Proof
:= by
simp only [isOpen_iSup_iff, isOpen_coinduced]
theorem isClosed_iff
TopologyByExample.EverywhereDoubledLine.isClosed_iff
theorem isClosed_iff {s : Set EverywhereDoubledLine} :
IsClosed s ↔ ∀ q, IsClosed (chart q ⁻¹' s)
Proof
:= by
simp only [← isOpen_compl_iff, isOpen_iff, preimage_compl]
theorem continuous_chart
TopologyByExample.EverywhereDoubledLine.continuous_chart
theorem continuous_chart (q : EverywhereDoubledLine) : Continuous (chart q)
Proof
:=
continuous_def.2 fun _ hs ↦ isOpen_iff.1 hs q
theorem continuous_iff
TopologyByExample.EverywhereDoubledLine.continuous_iff
A map out of the everywhere doubled line is continuous if and only if its composite with every chart is.
theorem continuous_iff {Y : Type*} [TopologicalSpace Y] {f : EverywhereDoubledLine → Y} :
Continuous f ↔ ∀ q, Continuous (f ∘ chart q)
Proof
:=
continuous_iSup_dom.trans (forall_congr' fun _ ↦ continuous_coinduced_dom)
theorem continuous_coord
TopologyByExample.EverywhereDoubledLine.continuous_coord
theorem continuous_coord : Continuous coord
Proof
:=
continuous_iff.2 fun q ↦ by
have : coord ∘ chart q = id := funext fun t ↦ coord_chart _ t
rw [this]
exact continuous_id
theorem isOpenMap_chart
TopologyByExample.EverywhereDoubledLine.isOpenMap_chart
Each chart is an open map.
theorem isOpenMap_chart (q : EverywhereDoubledLine) : IsOpenMap (chart q)
Proof
:= by
intro V hV
refine isOpen_iff.2 fun q' ↦ isOpen_of_subset_of_finite_diff hV ?_
((finite_singleton (coord q)).insert (coord q') |>.subset ?_)
· rintro t ⟨s, hs, hst⟩
have : s = t := by simpa using congrArg coord hst
exact this ▸ hs
· rintro t ⟨htV, ht⟩
by_contra h
simp only [mem_insert_iff, mem_singleton_iff, not_or] at h
refine ht ⟨t, htV, ?_⟩
rw [chart_of_ne h.2, chart_of_ne h.1]
theorem isOpenEmbedding_chart
TopologyByExample.EverywhereDoubledLine.isOpenEmbedding_chart
Each chart is an open embedding.
theorem isOpenEmbedding_chart (q : EverywhereDoubledLine) : IsOpenEmbedding (chart q)
Proof
:=
.of_continuous_injective_isOpenMap (continuous_chart q) (chart_injective q) (isOpenMap_chart q)
On this site: Everywhere doubled line: Every point has a neighbourhood homeomorphic to the line
theorem nhds_eq
TopologyByExample.EverywhereDoubledLine.nhds_eq
The neighbourhoods of q are the images of those of its coordinate under its chart.
theorem nhds_eq (q : EverywhereDoubledLine) : 𝓝 q = map (chart q) (𝓝 (coord q))
Proof
:= by
rw [(isOpenEmbedding_chart q).map_nhds_eq, chart_coord]
theorem nhdsNE_eq
TopologyByExample.EverywhereDoubledLine.nhdsNE_eq
The punctured neighbourhoods of q are the images of those of its coordinate.
theorem nhdsNE_eq (q : EverywhereDoubledLine) : 𝓝[≠] q = map (chart q) (𝓝[≠] (coord q))
Proof
:= by
rw [nhdsWithin, nhds_eq, ← map_inf_principal_preimage, nhdsWithin]
congr 3
ext t
simp only [mem_preimage, mem_compl_iff, mem_singleton_iff]
constructor
· intro h ht
exact h (by rw [ht, chart_coord])
· intro h hq
exact h (by simpa using congrArg coord hq)
Values
theorem t1Space
TopologyByExample.EverywhereDoubledLine.t1Space
The everywhere doubled line is T₁.
theorem t1Space : T1Space EverywhereDoubledLine
Proof
:= by
refine ⟨fun q ↦ isClosed_iff.2 fun q' ↦ Set.Subsingleton.isClosed ?_⟩
intro s hs t ht
simpa using (congrArg coord hs).trans (congrArg coord ht).symm
On this site: The everywhere doubled line is T₁
theorem firstCountableTopology
TopologyByExample.EverywhereDoubledLine.firstCountableTopology
The everywhere doubled line is first countable.
theorem firstCountableTopology : FirstCountableTopology EverywhereDoubledLine
Proof
:=
⟨fun q ↦ by rw [nhds_eq]; infer_instance⟩
On this site: The everywhere doubled line is first countable
theorem locallyCompactSpace
TopologyByExample.EverywhereDoubledLine.locallyCompactSpace
The everywhere doubled line is locally compact.
theorem locallyCompactSpace : LocallyCompactSpace EverywhereDoubledLine
Proof
:= by
refine ⟨fun q n hn ↦ ?_⟩
rw [nhds_eq] at hn ⊢
obtain ⟨s, hs, hsn, hsc⟩ := local_compact_nhds (X := ℝ) hn
exact ⟨chart q '' s, image_mem_map hs, image_subset_iff.2 hsn,
hsc.image (continuous_chart q)⟩
On this site: The everywhere doubled line is locally compact
theorem locallyPathConnectedSpace
TopologyByExample.EverywhereDoubledLine.locallyPathConnectedSpace
The everywhere doubled line is locally path connected.
theorem locallyPathConnectedSpace : LocallyPathConnectedSpace EverywhereDoubledLine
Proof
:= by
refine LocallyPathConnectedSpace.of_bases
(p := fun q (s : Set ℝ) ↦ s ∈ 𝓝 (coord q) ∧ IsPathConnected s)
(s := fun q s ↦ chart q '' s) (fun q ↦ ?_) fun q s hs ↦ hs.2.image (continuous_chart q)
rw [nhds_eq]
exact (LocallyPathConnectedSpace.path_connected_basis (coord q)).map (chart q)
definition lower
TopologyByExample.EverywhereDoubledLine.lower
The lower line, t ↦ (t, 0).
def lower (t : ℝ) : EverywhereDoubledLine
:=
pt t false
theorem lower_eq_chart
TopologyByExample.EverywhereDoubledLine.lower_eq_chart
theorem lower_eq_chart : lower = chart (pt 0 false)
Proof
:=
funext fun t ↦ (chart_pt_false 0 t).symm
theorem continuous_lower
TopologyByExample.EverywhereDoubledLine.continuous_lower
theorem continuous_lower : Continuous lower
Proof
:=
lower_eq_chart ▸ continuous_chart _
theorem exists_Ioo_subset_of_mem_nhds
TopologyByExample.EverywhereDoubledLine.exists_Ioo_subset_of_mem_nhds
Every neighbourhood of a point q contains the points (t, 0) for t in some interval
(coord q, u).
theorem exists_Ioo_subset_of_mem_nhds {q : EverywhereDoubledLine} {U : Set EverywhereDoubledLine}
(hU : U ∈ 𝓝 q) : ∃ u, coord q < u ∧ ∀ t ∈ Ioo (coord q) u, lower t ∈ U
Proof
:= by
rw [nhds_eq, mem_map] at hU
obtain ⟨u, hu, hsub⟩ := exists_Ico_subset_of_mem_nhds hU ⟨coord q + 1, lt_add_one _⟩
refine ⟨u, hu, fun t ht ↦ ?_⟩
have := hsub ⟨ht.1.le, ht.2⟩
rwa [mem_preimage, chart_of_ne ht.1.ne'] at this
theorem separableSpace
TopologyByExample.EverywhereDoubledLine.separableSpace
The everywhere doubled line is separable: the points (r, 0), r rational, are dense.
theorem separableSpace : SeparableSpace EverywhereDoubledLine
Proof
:= by
refine ⟨⟨range fun r : ℚ ↦ lower r, countable_range _, fun q ↦ mem_closure_iff_nhds.2
fun U hU ↦ ?_⟩⟩
obtain ⟨u, hu, hsub⟩ := exists_Ioo_subset_of_mem_nhds hU
obtain ⟨r, hr1, hr2⟩ := exists_rat_btwn hu
exact ⟨_, hsub r ⟨hr1, hr2⟩, r, rfl⟩
On this site: The everywhere doubled line is separable
theorem dense_range_lower
TopologyByExample.EverywhereDoubledLine.dense_range_lower
The lower line is dense.
theorem dense_range_lower : Dense (range lower)
Proof
:= fun q ↦ mem_closure_iff_nhds.2 fun U hU ↦ by
obtain ⟨u, hu, hsub⟩ := exists_Ioo_subset_of_mem_nhds hU
obtain ⟨t, ht⟩ := nonempty_Ioo.2 hu
exact ⟨_, hsub t ht, t, rfl⟩
theorem pathPreconnectedSpace
TopologyByExample.EverywhereDoubledLine.pathPreconnectedSpace
The everywhere doubled line is path connected: each point is joined to the lower line by its chart, and the lower line is a path connected set.
theorem pathPreconnectedSpace : PathPreconnectedSpace EverywhereDoubledLine
Proof
:= by
have hlow : ∀ s t : ℝ, Joined (lower s) (lower t) := fun s t ↦
(PathConnectedSpace.joined s t).map continuous_lower
have hq : ∀ q, Joined q (lower (coord q + 1)) := fun q ↦ by
have := (PathConnectedSpace.joined (coord q) (coord q + 1)).map (continuous_chart q)
rwa [chart_coord, chart_of_ne (by simp)] at this
exact ⟨fun q r ↦ ((hq q).trans (hlow _ _)).trans (hq r).symm⟩
On this site: The everywhere doubled line is path connected
theorem baireSpace
TopologyByExample.EverywhereDoubledLine.baireSpace
The everywhere doubled line is a Baire space: the lower line is a dense open copy of the real line.
theorem baireSpace : BaireSpace EverywhereDoubledLine
Proof
:= by
have : BaireSpace (range (chart (pt 0 false))) :=
(isOpenEmbedding_chart _).isEmbedding.toHomeomorph.baireSpace
have hd := dense_range_lower
rw [lower_eq_chart] at hd
exact baireSpace_of_isOpen_of_dense (isOpenEmbedding_chart _).isOpen_range hd
On this site: The everywhere doubled line is a Baire space
definition upper
TopologyByExample.EverywhereDoubledLine.upper
The upper line ℝ × {1}.
def upper : Set EverywhereDoubledLine
:=
range fun x ↦ pt x true
theorem isClosed_upper
TopologyByExample.EverywhereDoubledLine.isClosed_upper
theorem isClosed_upper : IsClosed upper
Proof
:= by
refine isClosed_iff.2 fun q ↦ Set.Subsingleton.isClosed ?_
rintro s ⟨x, hx⟩ t ⟨y, hy⟩
by_contra hst
rcases ne_or_eq s (coord q) with hs | hs
· rw [chart_of_ne hs, pt_injective] at hx
exact Bool.false_ne_true hx.2.symm
· rcases ne_or_eq t (coord q) with ht | ht
· rw [chart_of_ne ht, pt_injective] at hy
exact Bool.false_ne_true hy.2.symm
· exact hst (hs.trans ht.symm)
theorem isDiscrete_upper
TopologyByExample.EverywhereDoubledLine.isDiscrete_upper
theorem isDiscrete_upper : IsDiscrete upper
Proof
:= by
refine isDiscrete_iff_forall_mem_exists_isOpen.2 ?_
rintro _ ⟨x, rfl⟩
refine ⟨range (chart (pt x true)), (isOpenEmbedding_chart _).isOpen_range, ?_⟩
ext q
simp only [mem_inter_iff, mem_range, mem_singleton_iff, upper]
constructor
· rintro ⟨⟨t, rfl⟩, y, hy⟩
rcases eq_or_ne t x with rfl | ht
· exact chart_coord _
· rw [chart_of_ne (by simpa using ht), pt_injective] at hy
exact absurd hy.2 (by decide)
· rintro rfl
exact ⟨⟨x, chart_coord _⟩, x, rfl⟩
theorem exists_closed_discrete_continuum_le
TopologyByExample.EverywhereDoubledLine.exists_closed_discrete_continuum_le
The everywhere doubled line has a closed discrete subset of cardinality 𝔠: the upper
line.
theorem exists_closed_discrete_continuum_le :
∃ s : Set EverywhereDoubledLine, IsClosed s ∧ IsDiscrete s ∧
Cardinal.continuum ≤ Cardinal.mk s
Proof
:= by
refine ⟨upper, isClosed_upper, isDiscrete_upper, ?_⟩
rw [← Cardinal.mk_real]
refine Cardinal.mk_le_of_injective (f := fun x : ℝ ↦ (⟨pt x true, x, rfl⟩ : upper)) ?_
intro x y h
have := congrArg (fun q : upper ↦ coord q) h
simpa using this
On this site: The everywhere doubled line has a closed discrete subset of cardinality \(\mathfrak{c}\)
theorem not_pseudocompactSpace
TopologyByExample.EverywhereDoubledLine.not_pseudocompactSpace
The everywhere doubled line is not pseudocompact: the coordinate is unbounded.
theorem not_pseudocompactSpace : ¬PseudocompactSpace EverywhereDoubledLine
Proof
:= by
intro ⟨h⟩
obtain ⟨⟨b, hb⟩, -⟩ := h ⟨coord, continuous_coord⟩
have : b + 1 ≤ b := hb ⟨pt (b + 1) false, rfl⟩
linarith
On this site: The everywhere doubled line is not pseudocompact
theorem not_locallyRelativelyCompactSpace
TopologyByExample.EverywhereDoubledLine.not_locallyRelativelyCompactSpace
The everywhere doubled line is not locally relatively compact: the closure of a neighbourhood of a point contains infinitely many points of the closed discrete upper line.
theorem not_locallyRelativelyCompactSpace :
¬LocallyRelativelyCompactSpace EverywhereDoubledLine
Proof
:= by
intro ⟨h⟩
obtain ⟨U, hU, hqU, hc⟩ := h (lower 0)
obtain ⟨u, hu, hsub⟩ := exists_Ioo_subset_of_mem_nhds (hU.mem_nhds hqU)
simp only [lower, coord_pt] at hu hsub
have hfin : (closure U ∩ upper).Finite :=
(hc.inter_right isClosed_upper).finite (isDiscrete_upper.mono inter_subset_right)
refine (Ioo_infinite hu).image (f := fun x ↦ pt x true) (fun x _ y _ h ↦ ?_) |>.mono ?_ hfin
· simpa using (pt_injective.1 h).1
· rintro _ ⟨t, ht, rfl⟩
refine ⟨mem_closure_iff_nhds.2 fun V hV ↦ ?_, t, rfl⟩
obtain ⟨v, hv, hvsub⟩ := exists_Ioo_subset_of_mem_nhds hV
simp only [coord_pt] at hv hvsub
obtain ⟨s, hs⟩ := nonempty_Ioo.2 (lt_min hv ht.2)
exact ⟨lower s, hvsub s ⟨hs.1, hs.2.trans_le (min_le_left _ _)⟩,
hsub s ⟨ht.1.trans hs.1, hs.2.trans_le (min_le_right _ _)⟩⟩
On this site: The everywhere doubled line is not locally relatively compact
theorem nhdsNE_pt
TopologyByExample.EverywhereDoubledLine.nhdsNE_pt
The two points over x have the same punctured neighbourhoods.
theorem nhdsNE_pt (x : ℝ) (i j : Bool) : 𝓝[≠] (pt x i) = 𝓝[≠] (pt x j)
Proof
:= by
rw [nhdsNE_eq, nhdsNE_eq, coord_pt, coord_pt]
refine map_congr (eventually_nhdsWithin_of_forall fun t ht ↦ ?_)
rw [chart_of_ne (by simpa using ht), chart_of_ne (by simpa using ht)]
instance
No point of the everywhere doubled line is isolated.
instance (q : EverywhereDoubledLine) : (𝓝[≠] q).NeBot
Proof
:= by
rw [nhdsNE_eq]
infer_instance
theorem closure_mem_nhds_pt
TopologyByExample.EverywhereDoubledLine.closure_mem_nhds_pt
The closure of every neighbourhood of (x, 0) is a neighbourhood of (x, 1).
theorem closure_mem_nhds_pt (x : ℝ) :
∀ U ∈ 𝓝 (pt x false), closure U ∈ 𝓝 (pt x true)
Proof
:=
closure_mem_nhds_of_nhdsNE_eq (nhdsNE_pt x false true)
theorem not_semiregularSpace
TopologyByExample.EverywhereDoubledLine.not_semiregularSpace
The everywhere doubled line is not semiregular.
theorem not_semiregularSpace : ¬SemiregularSpace EverywhereDoubledLine
Proof
:=
have := t1Space
not_semiregularSpace_of_closure_mem_nhds_of_ne (closure_mem_nhds_pt 0)
(by simp [pt_injective])
On this site: The everywhere doubled line is not semiregular