Lean library · module TopologyByExample.Spaces.StrongParallelLine
The strong parallel line topology
The strong parallel line topology lives on the set of the double arrow space,
(0, 1] × {0} ∪ [0, 1) × {1}: a lower line A = (0, 1] × {0} and an upper line
B = [0, 1) × {1}. A base consists of the half-open intervals [a, b) × {1} of the upper line
and the sets (a, b] × {0} ∪ (a, b) × {1}. Equivalently, the topology is generated by the order
topology of the double arrow together with the single set B: it is the double arrow with its
upper line made open.
We define it this way, as a type synonym TopologyByExample.StrongParallelLine of
TopologyByExample.DoubleArrow with the topology t ⊓ generateFrom {B}, where t is the order
topology of the double arrow, and check in isTopologicalBasis that the sets above form a base.
The neighbourhoods of a point of the lower line are its neighbourhoods in the double arrow; those of
a point of the upper line are its neighbourhoods in the double arrow intersected with B.
Main statements
TopologyByExample.StrongParallelLine.isTopologicalBasis: the base above.TopologyByExample.StrongParallelLine.continuous_toDoubleArrow,TopologyByExample.StrongParallelLine.isOpen_upperLine: the topology is finer than that of the double arrow, and the upper line is open.- The values:
t2Space,totallySeparatedSpace,firstCountableTopology,separableSpace,hereditarilyLindelofSpace,not_secondCountableTopology,not_sigmaCompactSpace,not_semiregularSpace,pseudocompactSpace,not_hasIsolatedPoint,baireSpace. TopologyByExample.StrongParallelLine.countable_of_isCompact_of_subset_lowerLine: every compact subset of the lower line is countable.
References
- L. A. Steen and J. A. Seebach, Counterexamples in Topology, Example 96.
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 upperArrow
TopologyByExample.DoubleArrow.upperArrow
The upper arrow [0, 1) × {1} of the double arrow.
def upperArrow : Set DoubleArrow
:= {p | (ofLex (p : unitInterval ×ₗ Bool)).2 = true}
variable {x : unitInterval}
theorem upper_mem_upperArrow
TopologyByExample.DoubleArrow.upper_mem_upperArrow
theorem upper_mem_upperArrow {hx : x < 1} : upper x hx ∈ upperArrow
Proof
:= rfl
theorem lower_notMem_upperArrow
TopologyByExample.DoubleArrow.lower_notMem_upperArrow
@[simp]
theorem lower_notMem_upperArrow {hx : 0 < x} : lower x hx ∉ upperArrow
Proof
:= by
simp [upperArrow, lower]
theorem upper_zero_le
TopologyByExample.DoubleArrow.upper_zero_le
The least point of the double arrow is (0, 1).
theorem upper_zero_le (p : DoubleArrow) : upper 0 zero_lt_one ≤ p
theorem le_lower_one
TopologyByExample.DoubleArrow.le_lower_one
The greatest point of the double arrow is (1, 0).
theorem le_lower_one (p : DoubleArrow) : p ≤ lower 1 zero_lt_one
Proof
:= by
induction p using induction with
| lower y hy => exact lower_le_lower.2 unitInterval.le_one'
| upper y hy => simpa using hy
theorem isOpen_Ici_of_mem_upperArrow
TopologyByExample.DoubleArrow.isOpen_Ici_of_mem_upperArrow
For a point p of the upper arrow, [p, →) is open: it is everything if p = (0, 1), and
otherwise (x, 0) ⋖ (x, 1) = p gives [p, →) = ((x, 0), →).
theorem isOpen_Ici_of_mem_upperArrow {p : DoubleArrow} (hp : p ∈ upperArrow) : IsOpen (Ici p)
Proof
:= by
induction p using induction with
| lower y hy => exact absurd hp lower_notMem_upperArrow
| upper y hy =>
rcases (unitInterval.nonneg' (t := y)).lt_or_eq with h0 | rfl
· rw [← (lower_covBy_upper (hx := h0) (hx' := hy)).Ioi_eq]
exact isOpen_Ioi
· convert isOpen_univ
exact eq_univ_of_forall upper_zero_le
theorem isClosed_Ioi_of_notMem_upperArrow
TopologyByExample.DoubleArrow.isClosed_Ioi_of_notMem_upperArrow
For a point p of the lower arrow, (p, →) is closed: it is empty if p = (1, 0), and
otherwise p = (x, 0) ⋖ (x, 1) gives (p, →) = [(x, 1), →).
theorem isClosed_Ioi_of_notMem_upperArrow {p : DoubleArrow} (hp : p ∉ upperArrow) :
IsClosed (Ioi p)
Proof
:= by
induction p using induction with
| upper y hy => exact absurd upper_mem_upperArrow hp
| lower y hy =>
rcases (unitInterval.le_one' (t := y)).lt_or_eq with h1 | rfl
· rw [(lower_covBy_upper (hx := hy) (hx' := h1)).Ioi_eq]
exact isClosed_Ici
· convert isClosed_empty
exact eq_empty_of_forall_notMem fun q hq ↦ (le_lower_one q).not_gt hq
theorem isOpen_Iic_of_notMem_upperArrow
TopologyByExample.DoubleArrow.isOpen_Iic_of_notMem_upperArrow
For a point p of the lower arrow, (←, p] is open: it is everything if p = (1, 0), and
otherwise p = (x, 0) ⋖ (x, 1) gives (←, p] = (←, (x, 1)).
theorem isOpen_Iic_of_notMem_upperArrow {p : DoubleArrow} (hp : p ∉ upperArrow) :
IsOpen (Iic p)
Proof
:= by
induction p using induction with
| upper y hy => exact absurd upper_mem_upperArrow hp
| lower y hy =>
rcases (unitInterval.le_one' (t := y)).lt_or_eq with h1 | rfl
· rw [← (lower_covBy_upper (hx := hy) (hx' := h1)).Iio_eq]
exact isOpen_Iio
· convert isOpen_univ
exact eq_univ_of_forall le_lower_one
theorem lower_proj_le
TopologyByExample.DoubleArrow.lower_proj_le
The point (proj u, 0) lies below u.
theorem lower_proj_le (u : DoubleArrow) (h : 0 < proj u) : DoubleArrow.lower (proj u) h ≤ u
theorem le_upper_proj
TopologyByExample.DoubleArrow.le_upper_proj
The point (proj l, 1) lies above l.
theorem le_upper_proj (l : DoubleArrow) (h : proj l < 1) : l ≤ DoubleArrow.upper (proj l) h
theorem lt_proj_of_upper_lt
TopologyByExample.DoubleArrow.lt_proj_of_upper_lt
If (x, 1) < u then x < proj u.
theorem lt_proj_of_upper_lt {x : unitInterval} {hx : x < 1} {u : DoubleArrow}
(h : DoubleArrow.upper x hx < u) : x < proj u
theorem proj_lt_of_lt_lower
TopologyByExample.DoubleArrow.proj_lt_of_lt_lower
If l < (x, 0) then proj l < x.
theorem proj_lt_of_lt_lower {x : unitInterval} {hx : 0 < x} {l : DoubleArrow}
(h : l < DoubleArrow.lower x hx) : proj l < x
theorem countable_of_isCompact_of_subset
TopologyByExample.DoubleArrow.countable_of_isCompact_of_subset
Every compact subset of the double arrow lying in the lower arrow is countable.
For p = (x, 0) in such a set K, the set K ∩ (p, →) is compact, since (p, →) is closed, so
it is empty or has a least element (y, 0) with x < y. In either case there is a rational q > x
below the first coordinate of every point of K above p, and p ↦ q is strictly monotone.
theorem countable_of_isCompact_of_subset {K : Set DoubleArrow} (hK : IsCompact K)
(hKA : K ⊆ upperArrowᶜ) : K.Countable
Proof
:= by
have key : ∀ p ∈ K, ∃ q : ℚ, (proj p : ℝ) < q ∧ ∀ r ∈ K, p < r → (q : ℝ) < proj r := by
intro p hp
rcases (K ∩ Ioi p).eq_empty_or_nonempty with h | h
· obtain ⟨q, hq⟩ := exists_rat_gt (proj p : ℝ)
exact ⟨q, hq, fun r hr hpr ↦ (eq_empty_iff_forall_notMem.1 h r ⟨hr, hpr⟩).elim⟩
· obtain ⟨m, ⟨hmK, hpm⟩, hm⟩ :=
(hK.inter_right (isClosed_Ioi_of_notMem_upperArrow (hKA hp))).exists_isLeast h
have hlt : (proj p : ℝ) < proj m := by
have hpA := hKA hp
have hmA := hKA hmK
induction p using induction with
| upper x hx => exact absurd upper_mem_upperArrow hpA
| lower x hx =>
induction m using induction with
| upper y hy => exact absurd upper_mem_upperArrow hmA
| lower y hy => simpa using lower_lt_lower.1 hpm
obtain ⟨q, hpq, hqm⟩ := exists_rat_btwn hlt
refine ⟨q, hpq, fun r hr hpr ↦ hqm.trans_le ?_⟩
exact_mod_cast monotone_proj (hm ⟨hr, hpr⟩)
choose! q hpq hq using key
refine (mapsTo_univ q K).countable_of_injOn (StrictMonoOn.injOn fun a ha b hb hab ↦ ?_)
countable_univ
exact_mod_cast (hq a ha b hb hab).trans (hpq b hb)
definition StrongParallelLine
TopologyByExample.StrongParallelLine
The strong parallel line topology: the set of the double arrow space with the topology
generated by the open sets of the double arrow together with its upper arrow
[0, 1) × {1}.
def StrongParallelLine : Type
:= DoubleArrow
On this site: Space: Strong parallel line topology
definition toDoubleArrow
TopologyByExample.StrongParallelLine.toDoubleArrow
The identity map from the strong parallel line topology to the double arrow.
def toDoubleArrow : StrongParallelLine ≃ DoubleArrow
:= Equiv.refl _
instance instTopologicalSpace
TopologyByExample.StrongParallelLine.instTopologicalSpace
The strong parallel line topology: the order topology of the double arrow with the upper arrow added as an open set.
instance instTopologicalSpace : TopologicalSpace StrongParallelLine
Proof
:=
(DoubleArrow.instTopologicalSpace ⊓ generateFrom {upperArrow} : TopologicalSpace DoubleArrow)
definition upperLine
TopologyByExample.StrongParallelLine.upperLine
The upper line [0, 1) × {1}.
def upperLine : Set StrongParallelLine
:= toDoubleArrow ⁻¹' upperArrow
definition lower
TopologyByExample.StrongParallelLine.lower
The point (x, 0) of the lower line, for 0 < x.
def lower (x : unitInterval) (hx : 0 < x) : StrongParallelLine
:=
toDoubleArrow.symm (DoubleArrow.lower x hx)
definition upper
TopologyByExample.StrongParallelLine.upper
The point (x, 1) of the upper line, for x < 1.
def upper (x : unitInterval) (hx : x < 1) : StrongParallelLine
:=
toDoubleArrow.symm (DoubleArrow.upper x hx)
instance
The strong parallel line is nonempty.
instance : Nonempty StrongParallelLine
Proof
:= ⟨upper 0 zero_lt_one⟩
theorem induction
TopologyByExample.StrongParallelLine.induction
Every point is a point (x, 0) of the lower line or a point (x, 1) of the upper line.
@[elab_as_elim]
theorem induction {motive : StrongParallelLine → Prop} (lower : ∀ x hx, motive (lower x hx))
(upper : ∀ x hx, motive (upper x hx)) (p : StrongParallelLine) : motive p
Proof
:=
DoubleArrow.induction (motive := fun q ↦ motive (toDoubleArrow.symm q)) lower upper
(toDoubleArrow p)
variable {x : unitInterval}
theorem toDoubleArrow_lower
TopologyByExample.StrongParallelLine.toDoubleArrow_lower
@[simp]
theorem toDoubleArrow_lower {hx : 0 < x} : toDoubleArrow (lower x hx) = .lower x hx
Proof
:= rfl
theorem toDoubleArrow_upper
TopologyByExample.StrongParallelLine.toDoubleArrow_upper
@[simp]
theorem toDoubleArrow_upper {hx : x < 1} : toDoubleArrow (upper x hx) = .upper x hx
Proof
:= rfl
theorem upper_mem_upperLine
TopologyByExample.StrongParallelLine.upper_mem_upperLine
theorem upper_mem_upperLine {hx : x < 1} : upper x hx ∈ upperLine
Proof
:= rfl
theorem lower_notMem_upperLine
TopologyByExample.StrongParallelLine.lower_notMem_upperLine
@[simp]
theorem lower_notMem_upperLine {hx : 0 < x} : lower x hx ∉ upperLine
Proof
:=
DoubleArrow.lower_notMem_upperArrow (hx := hx)
theorem continuous_toDoubleArrow
TopologyByExample.StrongParallelLine.continuous_toDoubleArrow
The topology is finer than that of the double arrow.
theorem continuous_toDoubleArrow : Continuous toDoubleArrow
Proof
:=
continuous_id_of_le (t := (instTopologicalSpace : TopologicalSpace DoubleArrow)) inf_le_left
theorem isOpen_upperLine
TopologyByExample.StrongParallelLine.isOpen_upperLine
The upper line is open.
theorem isOpen_upperLine : IsOpen upperLine
Proof
:=
(inf_le_right : (instTopologicalSpace : TopologicalSpace DoubleArrow) ≤ _) _
(isOpen_generateFrom_of_mem rfl)
theorem isClosed_upperLine_compl
TopologyByExample.StrongParallelLine.isClosed_upperLine_compl
The lower line is closed.
theorem isClosed_upperLine_compl : IsClosed upperLineᶜ
Proof
:=
isOpen_upperLine.isClosed_compl
theorem isOpen_preimage
TopologyByExample.StrongParallelLine.isOpen_preimage
The preimage of an open set of the double arrow is open.
theorem isOpen_preimage {s : Set DoubleArrow} (hs : IsOpen s) : IsOpen (toDoubleArrow ⁻¹' s)
Proof
:=
hs.preimage continuous_toDoubleArrow
theorem nhds_of_mem
TopologyByExample.StrongParallelLine.nhds_of_mem
The neighbourhoods of a point of the upper line: its neighbourhoods in the double arrow, intersected with the upper line.
theorem nhds_of_mem {p : StrongParallelLine} (hp : p ∈ upperLine) :
𝓝 p = comap toDoubleArrow (𝓝 (toDoubleArrow p)) ⊓ 𝓟 upperLine
Proof
:= by
have h := @nhds_inf DoubleArrow DoubleArrow.instTopologicalSpace (generateFrom {upperArrow})
(toDoubleArrow p)
rw [nhds_generateFrom (g := {upperArrow})] at h
have h2 : (⨅ s ∈ {s | toDoubleArrow p ∈ s ∧ s ∈ ({upperArrow} : Set (Set DoubleArrow))},
𝓟 s) = 𝓟 upperArrow := by
refine le_antisymm (biInf_le _ ⟨hp, rfl⟩) (le_iInf₂ fun s hs ↦ ?_)
obtain ⟨-, rfl⟩ := hs
exact le_rfl
rw [h2] at h
exact h.trans (congrArg (· ⊓ 𝓟 upperArrow) comap_id.symm)
theorem nhds_of_notMem
TopologyByExample.StrongParallelLine.nhds_of_notMem
The neighbourhoods of a point of the lower line are its neighbourhoods in the double arrow.
theorem nhds_of_notMem {p : StrongParallelLine} (hp : p ∉ upperLine) :
𝓝 p = comap toDoubleArrow (𝓝 (toDoubleArrow p))
Proof
:= by
have h := @nhds_inf DoubleArrow DoubleArrow.instTopologicalSpace (generateFrom {upperArrow})
(toDoubleArrow p)
rw [nhds_generateFrom (g := {upperArrow})] at h
have h2 : (⨅ s ∈ {s | toDoubleArrow p ∈ s ∧ s ∈ ({upperArrow} : Set (Set DoubleArrow))},
𝓟 s) = ⊤ := by
refine iInf₂_eq_top.2 fun s hs ↦ ?_
obtain ⟨hps, rfl⟩ := hs
exact absurd hps hp
rw [h2, inf_top_eq] at h
exact h.trans comap_id.symm
theorem mem_nhds_iff_of_mem
TopologyByExample.StrongParallelLine.mem_nhds_iff_of_mem
A set is a neighbourhood of a point p of the upper line iff it contains V ∩ B for an
open set V of the double arrow containing p.
theorem mem_nhds_iff_of_mem {p : StrongParallelLine} (hp : p ∈ upperLine)
{s : Set StrongParallelLine} :
s ∈ 𝓝 p ↔ ∃ V, IsOpen V ∧ toDoubleArrow p ∈ V ∧ toDoubleArrow ⁻¹' V ∩ upperLine ⊆ s
Proof
:= by
rw [nhds_of_mem hp]
constructor
· intro hs
obtain ⟨t, ht, v, hv, rfl⟩ := mem_inf_iff.1 hs
obtain ⟨W, hW, hWt⟩ := mem_comap.1 ht
obtain ⟨V, hVW, hV, hpV⟩ := mem_nhds_iff.1 hW
exact ⟨V, hV, hpV, fun q ⟨hqV, hqB⟩ ↦ ⟨hWt (hVW hqV), mem_principal.1 hv hqB⟩⟩
· rintro ⟨V, hV, hpV, hVs⟩
exact mem_of_superset
(inter_mem_inf (preimage_mem_comap (hV.mem_nhds hpV)) (mem_principal_self _)) hVs
theorem mem_nhds_iff_of_notMem
TopologyByExample.StrongParallelLine.mem_nhds_iff_of_notMem
A set is a neighbourhood of a point p of the lower line iff it contains an open set of the
double arrow containing p.
theorem mem_nhds_iff_of_notMem {p : StrongParallelLine} (hp : p ∉ upperLine)
{s : Set StrongParallelLine} :
s ∈ 𝓝 p ↔ ∃ V, IsOpen V ∧ toDoubleArrow p ∈ V ∧ toDoubleArrow ⁻¹' V ⊆ s
Proof
:= by
rw [nhds_of_notMem hp]
constructor
· intro hs
obtain ⟨W, hW, hWs⟩ := mem_comap.1 hs
obtain ⟨V, hVW, hV, hpV⟩ := mem_nhds_iff.1 hW
exact ⟨V, hV, hpV, fun q hq ↦ hWs (hVW hq)⟩
· rintro ⟨V, hV, hpV, hVs⟩
exact mem_of_superset (preimage_mem_comap (hV.mem_nhds hpV)) hVs
theorem exists_Ico_of_mem_nhds
TopologyByExample.StrongParallelLine.exists_Ico_of_mem_nhds
A neighbourhood of (x, 1) contains [(x, 1), u) ∩ B for some u > (x, 1) of the double
arrow.
theorem exists_Ico_of_mem_nhds {hx : x < 1} {s : Set StrongParallelLine}
(hs : s ∈ 𝓝 (upper x hx)) :
∃ u, DoubleArrow.upper x hx < u ∧ toDoubleArrow ⁻¹' Ico (.upper x hx) u ∩ upperLine ⊆ s
Proof
:= by
rw [nhds_of_mem upper_mem_upperLine] at hs
obtain ⟨t, ht, v, hv, hts⟩ := mem_inf_iff.1 hs
obtain ⟨w, hw, hwt⟩ := mem_comap.1 ht
obtain ⟨u, hu, huw⟩ := exists_Ico_subset_of_mem_nhds hw
⟨.lower 1 zero_lt_one, by simpa using hx⟩
refine ⟨u, hu, fun q ⟨hq, hqB⟩ ↦ hts ▸ ⟨hwt (huw hq), mem_principal.1 hv hqB⟩⟩
theorem exists_Ioc_of_mem_nhds
TopologyByExample.StrongParallelLine.exists_Ioc_of_mem_nhds
A neighbourhood of (x, 0) contains (l, (x, 0)] for some l < (x, 0) of the double
arrow.
theorem exists_Ioc_of_mem_nhds {hx : 0 < x} {s : Set StrongParallelLine}
(hs : s ∈ 𝓝 (lower x hx)) :
∃ l, l < DoubleArrow.lower x hx ∧ toDoubleArrow ⁻¹' Ioc l (.lower x hx) ⊆ s
Proof
:= by
rw [nhds_of_notMem lower_notMem_upperLine] at hs
obtain ⟨w, hw, hws⟩ := mem_comap.1 hs
obtain ⟨l, hl, hlw⟩ := exists_Ioc_subset_of_mem_nhds hw
⟨.upper 0 zero_lt_one, by simpa using hx⟩
exact ⟨l, hl, fun q hq ↦ hws (hlw hq)⟩
theorem exists_upper_mem_Ioc
TopologyByExample.StrongParallelLine.exists_upper_mem_Ioc
Below a point (x, 0) of the lower line, every interval (l, (x, 0)] of the double arrow
contains points of the upper line with first coordinate arbitrarily close to x from below.
theorem exists_upper_mem_Ioc {hx : 0 < x} {l : DoubleArrow} (hl : l < .lower x hx) :
∃ w hw, proj l < w ∧ w < x ∧ DoubleArrow.upper w hw ∈ Ioc l (.lower x hx)
Proof
:= by
have hlx : proj l < x := proj_lt_of_lt_lower hl
obtain ⟨w, hlw, hwx⟩ := exists_between hlx
have hw : w < 1 := hwx.trans_le unitInterval.le_one'
exact ⟨w, hw, hlw, hwx, lt_of_proj_lt (by simpa using hlw), (lt_of_proj_lt (by simpa)).le⟩
The base of the book
theorem isTopologicalBasis
TopologyByExample.StrongParallelLine.isTopologicalBasis
The sets [a, b) × {1} and (a, b] × {0} ∪ (a, b) × {1}, for 0 ≤ a < b ≤ 1, form a base of
the strong parallel line topology. In the order of the double arrow they are [p, q) ∩ B and
(p, q] for p = (a, 1) and q = (b, 0).
theorem isTopologicalBasis :
IsTopologicalBasis
({s | ∃ p q, p ∈ upperArrow ∧ q ∉ upperArrow ∧ p < q ∧
s = toDoubleArrow ⁻¹' Ico p q ∩ upperLine} ∪
{s | ∃ p q, p ∈ upperArrow ∧ q ∉ upperArrow ∧ p < q ∧ s = toDoubleArrow ⁻¹' Ioc p q})
Proof
:= by
refine isTopologicalBasis_of_isOpen_of_nhds ?_ fun r U hrU hU ↦ ?_
· rintro s (⟨p, q, hp, -, -, rfl⟩ | ⟨p, q, -, hq, -, rfl⟩)
· rw [← Ici_inter_Iio, preimage_inter]
exact ((isOpen_preimage (isOpen_Ici_of_mem_upperArrow hp)).inter
(isOpen_preimage isOpen_Iio)).inter isOpen_upperLine
· rw [← Ioi_inter_Iic, preimage_inter]
exact (isOpen_preimage isOpen_Ioi).inter
(isOpen_preimage (isOpen_Iic_of_notMem_upperArrow hq))
· induction r using induction with
| upper x hx =>
obtain ⟨u, hu, huU⟩ := exists_Ico_of_mem_nhds (hU.mem_nhds hrU)
have hxu : x < proj u := lt_proj_of_upper_lt hu
have h0 : 0 < proj u := unitInterval.nonneg'.trans_lt hxu
refine ⟨_, .inl ⟨_, _, upper_mem_upperArrow, lower_notMem_upperArrow (hx := h0),
by simpa using hxu, rfl⟩, ⟨⟨le_rfl, by simpa using hxu⟩, upper_mem_upperLine⟩,
fun q ⟨hq, hqB⟩ ↦ huU ⟨⟨hq.1, hq.2.trans_le (lower_proj_le u h0)⟩, hqB⟩⟩
| lower x hx =>
obtain ⟨l, hl, hlU⟩ := exists_Ioc_of_mem_nhds (hU.mem_nhds hrU)
have hlx : proj l < x := proj_lt_of_lt_lower hl
have h1 : proj l < 1 := hlx.trans_le unitInterval.le_one'
refine ⟨_, .inr ⟨_, _, upper_mem_upperArrow (hx := h1), lower_notMem_upperArrow (hx := hx),
by simpa using hlx, rfl⟩, ⟨by simpa using hlx, le_rfl⟩,
fun q hq ↦ hlU ⟨(le_upper_proj l h1).trans_lt hq.1, hq.2⟩⟩
On this site: Strong parallel line topology: A base
Values
theorem dense_upperLine
TopologyByExample.StrongParallelLine.dense_upperLine
The upper line is dense: every neighbourhood (l, (x, 0)] of a point of the lower line
contains points of the upper line.
theorem dense_upperLine : Dense upperLine
Proof
:= by
refine dense_iff_inter_open.2 fun U hU ⟨p, hp⟩ ↦ ?_
induction p using induction with
| upper x hx => exact ⟨_, hp, upper_mem_upperLine⟩
| lower x hx =>
obtain ⟨l, hl, hlU⟩ := exists_Ioc_of_mem_nhds (hU.mem_nhds hp)
obtain ⟨w, hw, -, -, hwI⟩ := exists_upper_mem_Ioc hl
exact ⟨upper w hw, hlU hwI, upper_mem_upperLine⟩
theorem continuous_toDoubleArrow_and_isOpen_and_dense
TopologyByExample.StrongParallelLine.continuous_toDoubleArrow_and_isOpen_and_dense
The topology is finer than that of the double arrow, and the upper line is open and dense.
theorem continuous_toDoubleArrow_and_isOpen_and_dense :
Continuous toDoubleArrow ∧ IsOpen upperLine ∧ Dense upperLine
Proof
:=
⟨continuous_toDoubleArrow, isOpen_upperLine, dense_upperLine⟩
On this site: Strong parallel line topology: Comparison with the double arrow
theorem mem_nhds_iff
TopologyByExample.StrongParallelLine.mem_nhds_iff
The neighbourhoods of the points: a set is a neighbourhood of a point p of the upper line iff
it contains V ∩ B for an open set V of the double arrow containing p, and a neighbourhood of
a point p of the lower line iff it contains an open set of the double arrow containing p.
theorem mem_nhds_iff (p : StrongParallelLine) (s : Set StrongParallelLine) :
(p ∈ upperLine →
(s ∈ 𝓝 p ↔ ∃ V, IsOpen V ∧ toDoubleArrow p ∈ V ∧ toDoubleArrow ⁻¹' V ∩ upperLine ⊆ s)) ∧
(p ∉ upperLine → (s ∈ 𝓝 p ↔ ∃ V, IsOpen V ∧ toDoubleArrow p ∈ V ∧ toDoubleArrow ⁻¹' V ⊆ s))
Proof
:=
⟨fun hp ↦ mem_nhds_iff_of_mem hp, fun hp ↦ mem_nhds_iff_of_notMem hp⟩
On this site: Strong parallel line topology: Neighbourhoods
instance t2Space
TopologyByExample.StrongParallelLine.t2Space
The strong parallel line topology is Hausdorff, being finer than the topology of the double arrow.
instance t2Space : T2Space StrongParallelLine
Proof
:=
T2Space.of_injective_continuous toDoubleArrow.injective continuous_toDoubleArrow
instance totallySeparatedSpace
TopologyByExample.StrongParallelLine.totallySeparatedSpace
The strong parallel line topology is totally separated: the preimage of a clopen set of the double arrow is clopen.
instance totallySeparatedSpace : TotallySeparatedSpace StrongParallelLine
Proof
:= by
rw [totallySeparatedSpace_iff_exists_isClopen]
intro p q hpq
obtain ⟨U, hU, hp, hq⟩ := totallySeparatedSpace_iff_exists_isClopen.1
(inferInstance : TotallySeparatedSpace DoubleArrow) (toDoubleArrow.injective.ne hpq)
exact ⟨toDoubleArrow ⁻¹' U, hU.preimage continuous_toDoubleArrow, hp, hq⟩
On this site: Strong parallel line topology is totally separated
instance firstCountableTopology
TopologyByExample.StrongParallelLine.firstCountableTopology
The strong parallel line topology is first countable: the neighbourhood filters are those of the double arrow, intersected with the upper line at its points.
instance firstCountableTopology : FirstCountableTopology StrongParallelLine
Proof
:= ⟨fun p ↦ by
by_cases hp : p ∈ upperLine
· rw [nhds_of_mem hp]
infer_instance
· rw [nhds_of_notMem hp]
infer_instance⟩
On this site: Strong parallel line topology is first countable
instance separableSpace
TopologyByExample.StrongParallelLine.separableSpace
The strong parallel line topology is separable: the points (d, 1), for d in a countable
dense subset of [0, 1], are dense.
instance separableSpace : SeparableSpace StrongParallelLine
Proof
:= by
obtain ⟨D, hDc, hD⟩ := exists_countable_dense unitInterval
refine ⟨⟨{p | p ∈ upperLine ∧ proj (toDoubleArrow p) ∈ D},
((countable_proj_preimage hDc).preimage toDoubleArrow.injective).mono fun p hp ↦ hp.2,
dense_iff_inter_open.2 fun U hU ⟨p, hp⟩ ↦ ?_⟩⟩
induction p using induction with
| upper x hx =>
obtain ⟨u, hu, huU⟩ := exists_Ico_of_mem_nhds (hU.mem_nhds hp)
obtain ⟨z, hzD, hxz, hzu⟩ := hD.exists_between (lt_proj_of_upper_lt hu)
have hz : z < 1 := hzu.trans_le unitInterval.le_one'
exact ⟨upper z hz, huU ⟨⟨(lt_of_proj_lt (by simpa using hxz)).le,
lt_of_proj_lt (by simpa using hzu)⟩, upper_mem_upperLine⟩, upper_mem_upperLine,
by simpa using hzD⟩
| lower x hx =>
obtain ⟨l, hl, hlU⟩ := exists_Ioc_of_mem_nhds (hU.mem_nhds hp)
obtain ⟨z, hzD, hlz, hzx⟩ := hD.exists_between (proj_lt_of_lt_lower hl)
have hz : z < 1 := hzx.trans_le unitInterval.le_one'
exact ⟨upper z hz, hlU ⟨lt_of_proj_lt (by simpa using hlz),
(lt_of_proj_lt (by simpa using hzx)).le⟩, upper_mem_upperLine, by simpa using hzD⟩
On this site: Strong parallel line topology is separable
theorem exists_countable_biUnion_eq
TopologyByExample.StrongParallelLine.exists_countable_biUnion_eq
Every family of open sets of the strong parallel line topology has a countable subfamily with the same union.
Each member U is the union of the preimage of an open set O of the double arrow (the points of
U with a neighbourhood of the double arrow inside U) and of P ∩ B for an open set P of the
double arrow (the points with such a neighbourhood whose intersection with B lies in U). The
double arrow is hereditarily Lindelöf, so countably many of the sets O and countably many of the
sets P have the same unions as all of them.
theorem exists_countable_biUnion_eq {ι : Type*} (U : ι → Set StrongParallelLine)
(hU : ∀ i, IsOpen (U i)) : ∃ r : Set ι, r.Countable ∧ ⋃ i ∈ r, U i = ⋃ i, U i
Proof
:= by
set O : ι → Set DoubleArrow := fun i ↦ {q | ∃ V, IsOpen V ∧ q ∈ V ∧ toDoubleArrow ⁻¹' V ⊆ U i}
set P : ι → Set DoubleArrow :=
fun i ↦ {q | ∃ V, IsOpen V ∧ q ∈ V ∧ toDoubleArrow ⁻¹' V ∩ upperLine ⊆ U i}
have hO (i : ι) : IsOpen (O i) := isOpen_iff_forall_mem_open.2 fun q ⟨V, hV, hqV, hVU⟩ ↦
⟨V, fun r hr ↦ ⟨V, hV, hr, hVU⟩, hV, hqV⟩
have hP (i : ι) : IsOpen (P i) := isOpen_iff_forall_mem_open.2 fun q ⟨V, hV, hqV, hVU⟩ ↦
⟨V, fun r hr ↦ ⟨V, hV, hr, hVU⟩, hV, hqV⟩
obtain ⟨r₁, hr₁, h₁⟩ := DoubleArrow.exists_countable_biUnion_eq O hO
obtain ⟨r₂, hr₂, h₂⟩ := DoubleArrow.exists_countable_biUnion_eq P hP
refine ⟨r₁ ∪ r₂, hr₁.union hr₂,
(iUnion₂_subset fun i _ ↦ subset_iUnion U i).antisymm fun p hp ↦ ?_⟩
obtain ⟨i, hpi⟩ := mem_iUnion.1 hp
by_cases hpB : p ∈ upperLine
· have : toDoubleArrow p ∈ ⋃ i, P i :=
mem_iUnion.2 ⟨i, (mem_nhds_iff_of_mem hpB).1 ((hU i).mem_nhds hpi)⟩
rw [← h₂, mem_iUnion₂] at this
obtain ⟨j, hj, V, -, hpV, hVU⟩ := this
exact mem_biUnion (.inr hj) (hVU ⟨hpV, hpB⟩)
· have : toDoubleArrow p ∈ ⋃ i, O i :=
mem_iUnion.2 ⟨i, (mem_nhds_iff_of_notMem hpB).1 ((hU i).mem_nhds hpi)⟩
rw [← h₁, mem_iUnion₂] at this
obtain ⟨j, hj, V, -, hpV, hVU⟩ := this
exact mem_biUnion (.inl hj) (hVU hpV)
instance hereditarilyLindelofSpace
TopologyByExample.StrongParallelLine.hereditarilyLindelofSpace
The strong parallel line topology is hereditarily Lindelöf.
instance hereditarilyLindelofSpace : HereditarilyLindelofSpace StrongParallelLine
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: Strong parallel line topology is hereditarily Lindelöf
theorem not_countable_upperLine
TopologyByExample.StrongParallelLine.not_countable_upperLine
If the upper line were countable, so would be [0, 1], and so the double arrow.
theorem not_countable_upperLine : ¬upperLine.Countable
Proof
:= by
intro hB
have hI : (univ : Set unitInterval).Countable := by
refine ((hB.image (proj ∘ toDoubleArrow)).insert 1).mono fun x _ ↦ ?_
rcases (unitInterval.le_one' (t := x)).lt_or_eq with h1 | rfl
· exact .inr ⟨upper x h1, upper_mem_upperLine, rfl⟩
· exact .inl rfl
exact DoubleArrow.not_countable (countable_univ_iff.1 (by simpa using countable_proj_preimage hI))
theorem not_countable_lowerLine
TopologyByExample.StrongParallelLine.not_countable_lowerLine
If the lower line were countable, so would be [0, 1], and so the double arrow.
theorem not_countable_lowerLine : ¬(upperLineᶜ).Countable
Proof
:= by
intro hA
have hI : (univ : Set unitInterval).Countable := by
refine ((hA.image (proj ∘ toDoubleArrow)).insert 0).mono fun x _ ↦ ?_
rcases (unitInterval.nonneg' (t := x)).lt_or_eq with h0 | rfl
· exact .inr ⟨lower x h0, lower_notMem_upperLine, rfl⟩
· exact .inl rfl
exact DoubleArrow.not_countable (countable_univ_iff.1 (by simpa using countable_proj_preimage hI))
theorem not_secondCountableTopology
TopologyByExample.StrongParallelLine.not_secondCountableTopology
The strong parallel line topology is not second countable: for each point p of the upper
line, [p, →) ∩ B is an open set with least element p, so a base would need a member with least
element p for each of the uncountably many points p of the upper line.
theorem not_secondCountableTopology : ¬SecondCountableTopology StrongParallelLine
Proof
:= by
intro
obtain ⟨b, hbc, -, hb⟩ := exists_countable_basis StrongParallelLine
have : ∀ p ∈ upperLine, ∃ v ∈ b, p ∈ v ∧
v ⊆ toDoubleArrow ⁻¹' Ici (toDoubleArrow p) ∩ upperLine := fun p hp ↦
hb.exists_subset_of_mem_open ⟨show toDoubleArrow p ≤ toDoubleArrow p from le_rfl, hp⟩
((isOpen_preimage (isOpen_Ici_of_mem_upperArrow hp)).inter isOpen_upperLine)
choose! c hcb hpc hcW using this
refine not_countable_upperLine (MapsTo.countable_of_injOn hcb (fun p hp q hq hpq ↦ ?_) hbc)
have h1 := (hcW q hq (hpq ▸ hpc p hp)).1
have h2 := (hcW p hp (hpq.symm ▸ hpc q hq)).1
exact toDoubleArrow.injective (le_antisymm h2 h1)
On this site: Strong parallel line topology is not second countable
theorem countable_of_isCompact_of_subset_lowerLine
TopologyByExample.StrongParallelLine.countable_of_isCompact_of_subset_lowerLine
Every compact subset of the lower line is countable.
theorem countable_of_isCompact_of_subset_lowerLine {K : Set StrongParallelLine} (hK : IsCompact K)
(hKA : K ⊆ upperLineᶜ) : K.Countable
Proof
:= by
have := DoubleArrow.countable_of_isCompact_of_subset (hK.image continuous_toDoubleArrow)
(by rintro _ ⟨p, hp, rfl⟩; exact hKA hp)
exact (this.preimage toDoubleArrow.injective).mono (subset_preimage_image _ _)
On this site: Strong parallel line topology: Compact subsets of the lower line are countable
theorem not_sigmaCompactSpace
TopologyByExample.StrongParallelLine.not_sigmaCompactSpace
The strong parallel line topology is not σ-compact: the lower line is closed and uncountable, and its compact subsets are countable.
theorem not_sigmaCompactSpace : ¬SigmaCompactSpace StrongParallelLine
Proof
:= by
intro
refine not_countable_lowerLine ?_
rw [← inter_univ upperLineᶜ, ← iUnion_compactCovering, inter_iUnion]
exact countable_iUnion fun n ↦ countable_of_isCompact_of_subset_lowerLine
((isCompact_compactCovering _ n).inter_left isClosed_upperLine_compl) inter_subset_left
On this site: Strong parallel line topology is not σ-compact
theorem not_semiregularSpace
TopologyByExample.StrongParallelLine.not_semiregularSpace
The strong parallel line topology is not semiregular: every regular open set containing (0, 1)
contains points of the lower line, so none lies inside the upper line.
If R ⊆ B is open and contains (0, 1), it contains [(0, 1), u) ∩ B for some u, and every
point of the open interval ((0, 1), u) of the double arrow lies in the closure of R, so this
interval lies in the interior of the closure of R; it contains points of the lower line.
theorem not_semiregularSpace : ¬SemiregularSpace StrongParallelLine
Proof
:= by
intro h
obtain ⟨R, hR, h0R, hRB⟩ := h.isTopologicalBasis.exists_subset_of_mem_open
(upper_mem_upperLine (x := 0) (hx := zero_lt_one)) isOpen_upperLine
obtain ⟨u, hu, huR⟩ := exists_Ico_of_mem_nhds ((h.isTopologicalBasis.isOpen hR).mem_nhds h0R)
obtain ⟨z, h0z, hzu⟩ := exists_between (lt_proj_of_upper_lt hu)
have hN : toDoubleArrow ⁻¹' Ioo (DoubleArrow.upper 0 zero_lt_one) u ⊆ closure R := by
intro q hq
induction q using induction with
| upper w hw => exact subset_closure (huR ⟨⟨hq.1.le, hq.2⟩, upper_mem_upperLine⟩)
| lower y hy =>
refine mem_closure_iff_nhds.2 fun t ht ↦ ?_
obtain ⟨l, hl, hlt⟩ := exists_Ioc_of_mem_nhds ht
obtain ⟨w, hw, -, -, hwI⟩ := exists_upper_mem_Ioc hl
exact ⟨upper w hw, hlt hwI,
huR ⟨⟨upper_zero_le _, hwI.2.trans_lt hq.2⟩, upper_mem_upperLine⟩⟩
have hz : lower z h0z ∈ R := by
have hR' : interior (closure R) = R := hR
rw [← hR']
exact interior_maximal hN (isOpen_preimage isOpen_Ioo)
⟨by simpa using h0z, lt_of_proj_lt (by simpa using hzu)⟩
exact lower_notMem_upperLine (hRB hz)
On this site: Strong parallel line topology is not semiregular
instance pseudocompactSpace
TopologyByExample.StrongParallelLine.pseudocompactSpace
The strong parallel line topology is pseudocompact.
Let f be a continuous real function, and suppose |f| unbounded. As the upper line is dense
there are points q n of the upper line with n < |f (q n)|. The double arrow is compact and first
countable, so a subsequence converges there to some point c; since the points lie in the upper
line, it also converges to c in the strong parallel line topology, and then f is bounded along
it, a contradiction.
instance pseudocompactSpace : PseudocompactSpace StrongParallelLine
Proof
:= by
refine ⟨fun f ↦ ?_⟩
suffices ∃ M, ∀ p, |f p| ≤ M by
obtain ⟨M, hM⟩ := this
exact ⟨⟨M, by rintro _ ⟨p, rfl⟩; exact (le_abs_self _).trans (hM p)⟩,
⟨-M, by rintro _ ⟨p, rfl⟩; exact neg_le.1 ((neg_le_abs _).trans (hM p))⟩⟩
by_contra! h
have : ∀ n : ℕ, ∃ p ∈ upperLine, (n : ℝ) < |f p| := fun n ↦ by
obtain ⟨p, hp⟩ := h n
obtain ⟨q, hq, hqB⟩ := dense_upperLine.inter_open_nonempty {p | (n : ℝ) < |f p|}
(isOpen_lt continuous_const (continuous_abs.comp f.continuous)) ⟨p, hp⟩
exact ⟨q, hqB, hq⟩
choose q hqB hq using this
obtain ⟨c, φ, hφ, hc⟩ := CompactSpace.tendsto_subseq (toDoubleArrow ∘ q)
have hc' : Tendsto (q ∘ φ) atTop (𝓝 (toDoubleArrow.symm c)) := by
by_cases hcB : toDoubleArrow.symm c ∈ upperLine
· rw [nhds_of_mem hcB]
exact tendsto_inf.2 ⟨tendsto_comap_iff.2 hc,
tendsto_principal.2 (Eventually.of_forall fun n ↦ hqB _)⟩
· rw [nhds_of_notMem hcB]
exact tendsto_comap_iff.2 hc
have hb := (continuous_abs.tendsto _).comp ((f.continuous.tendsto _).comp hc')
obtain ⟨N, hN⟩ := (hb.eventually (gt_mem_nhds (lt_add_one _))).exists_forall_of_atTop
obtain ⟨n, hn⟩ := exists_nat_ge (|f (toDoubleArrow.symm c)| + 1)
have h1 := hN (max n N) (le_max_right _ _)
have h2 := hq (φ (max n N))
have h3 : (n : ℝ) ≤ φ (max n N) := by exact_mod_cast (le_max_left n N).trans (hφ.id_le _)
simp only [Function.comp_apply] at h1
linarith
On this site: Strong parallel line topology is pseudocompact
theorem not_hasIsolatedPoint
TopologyByExample.StrongParallelLine.not_hasIsolatedPoint
The strong parallel line topology has no isolated point: every neighbourhood of a point contains points of the upper line other than it.
theorem not_hasIsolatedPoint : ¬HasIsolatedPoint StrongParallelLine
Proof
:= by
rintro ⟨p, hp⟩
have hs := hp.mem_nhds (mem_singleton p)
induction p using induction with
| upper x hx =>
obtain ⟨u, hu, hus⟩ := exists_Ico_of_mem_nhds hs
obtain ⟨w, hxw, hwu⟩ := exists_between (lt_proj_of_upper_lt hu)
have hw : w < 1 := hwu.trans_le unitInterval.le_one'
have := congrArg toDoubleArrow (mem_singleton_iff.1 (hus ⟨⟨(lt_of_proj_lt (by simpa using
hxw)).le, lt_of_proj_lt (by simpa using hwu)⟩, upper_mem_upperLine (hx := hw)⟩))
simp only [toDoubleArrow_upper, DoubleArrow.upper_inj] at this
exact hxw.ne' this
| lower x hx =>
obtain ⟨l, hl, hls⟩ := exists_Ioc_of_mem_nhds hs
obtain ⟨w, hw, -, -, hwI⟩ := exists_upper_mem_Ioc hl
have h := mem_singleton_iff.1 (hls (a := upper w hw) hwI)
exact DoubleArrow.upper_ne_lower (hx := hw) (hy := hx) (congrArg toDoubleArrow h)
On this site: Strong parallel line topology has no isolated point
theorem proj_lt_one_of_mem
TopologyByExample.StrongParallelLine.proj_lt_one_of_mem
On the upper line, the first coordinate lies in [0, 1).
theorem proj_lt_one_of_mem {p : StrongParallelLine} (hp : p ∈ upperLine) :
proj (toDoubleArrow p) < 1
Proof
:= by
induction p using induction with
| lower x hx => exact absurd hp lower_notMem_upperLine
| upper x hx => simpa using hx
theorem baireSpace_upperLine
TopologyByExample.StrongParallelLine.baireSpace_upperLine
The upper line, as a subspace, is a Baire space: the first coordinate maps it continuously onto
[0, 1), which is a Baire space, and every nonempty open subset [(x, 1), u) ∩ B contains the
preimage of an open interval.
theorem baireSpace_upperLine : BaireSpace upperLine
Proof
:= by
have : IsGδ (Ico (0 : ℝ) 1) := by
rw [← Ici_inter_Iio]
exact isClosed_Ici.isGδ.inter isOpen_Iio.isGδ
have := this.isCompletelyMetrizableSpace
let f : upperLine → Ico (0 : ℝ) 1 := fun p ↦
⟨proj (toDoubleArrow p), (proj (toDoubleArrow p)).property.1, by
exact_mod_cast proj_lt_one_of_mem p.property⟩
have hf : Continuous f := ((continuous_subtypeVal.comp
(continuous_proj.comp continuous_toDoubleArrow)).comp continuous_subtypeVal).subtype_mk _
refine baireSpace_of_continuous_of_surjective hf (fun y ↦ ?_) fun U hU ⟨q, hq⟩ ↦ ?_
· have hy1 : (⟨y, y.property.1, y.property.2.le⟩ : unitInterval) < 1 := by
change (y : ℝ) < 1
exact y.property.2
exact ⟨⟨upper _ hy1, upper_mem_upperLine⟩, rfl⟩
· obtain ⟨U', hU', rfl⟩ := isOpen_induced_iff.1 hU
obtain ⟨q, hqB⟩ := q
change q ∈ U' at hq
induction q using induction with
| lower x hx => exact absurd hqB lower_notMem_upperLine
| upper x hx =>
obtain ⟨u, hu, huU⟩ := exists_Ico_of_mem_nhds (hU'.mem_nhds hq)
obtain ⟨w, hxw, hwu⟩ := exists_between (lt_proj_of_upper_lt hu)
refine ⟨{y | (x : ℝ) < y ∧ (y : ℝ) < proj u},
(isOpen_Ioo (a := (x : ℝ)) (b := proj u)).preimage continuous_subtypeVal,
⟨⟨w, w.property.1, by exact_mod_cast hwu.trans_le unitInterval.le_one'⟩, hxw, hwu⟩,
fun r ⟨hr1, hr2⟩ ↦ huU ⟨⟨(lt_of_proj_lt (by exact_mod_cast hr1)).le,
lt_of_proj_lt (by exact_mod_cast hr2)⟩, r.property⟩⟩
theorem baireSpace
TopologyByExample.StrongParallelLine.baireSpace
The strong parallel line topology is a Baire space: the upper line is a dense open subset which is a Baire space.
theorem baireSpace : BaireSpace StrongParallelLine
Proof
:=
haveI := baireSpace_upperLine
baireSpace_of_isOpen_of_dense isOpen_upperLine dense_upperLine
On this site: Strong parallel line topology is a Baire space