Lean library · module TopologyByExample.Spaces.DoubleOriginPlane

The double origin plane

Source file

The double origin plane is the plane ℝ² with a second origin 0*. Points other than the two origins have their usual neighbourhoods; the origin 0 has as basic neighbourhoods 0 together with an open upper half-disc {(x, y) : x² + y² < r², y > 0}, and 0* has 0* together with an open lower half-disc.

We take the carrier Option (ℝ × ℝ), some z the point z of the plane and none the second origin 0*, and the topology generated by the topology induced by the projection to the plane (which sends 0* to 0) and the two sets upper = {0} ∪ {y > 0} and lower = {0*} ∪ {y < 0}.

It is Hausdorff, second countable, path connected, locally path connected, σ-compact, semiregular and a Baire space; the closures of any neighbourhoods of the two origins meet, so it is not Urysohn; and it is not pseudocompact.

Main statements

Tags

double origin topology, Hausdorff not Urysohn

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 DoubleOriginPlane

TopologyByExample.DoubleOriginPlane

The double origin plane: the plane with a second origin 0*, the two origins having the upper and the lower half-discs as punctured neighbourhoods.

def DoubleOriginPlane : Type
:=
  Option (ℝ × ℝ)

On this site: Space: Double origin plane

definition toOption

TopologyByExample.DoubleOriginPlane.toOption

The identification with Option (ℝ × ℝ).

def toOption : DoubleOriginPlane ≃ Option (ℝ × ℝ)
:=
  Equiv.refl _

definition pt

TopologyByExample.DoubleOriginPlane.pt

The point z of the plane; pt 0 is the origin 0.

def pt (z : ℝ × ℝ) : DoubleOriginPlane
:=
  toOption.symm (some z)

instance

The double origin plane is nonempty.

instance : Nonempty DoubleOriginPlane
Proof
:=
  ⟨pt 0⟩

definition origin'

TopologyByExample.DoubleOriginPlane.origin'

The second origin 0*.

def origin' : DoubleOriginPlane
:=
  toOption.symm none

definition proj

TopologyByExample.DoubleOriginPlane.proj

The projection to the plane, sending both origins to 0.

def proj (q : DoubleOriginPlane) : ℝ × ℝ
:=
  (toOption q).getD 0

theorem proj_pt

TopologyByExample.DoubleOriginPlane.proj_pt

@[simp] theorem proj_pt (z : ℝ × ℝ) : proj (pt z) = z
Proof
:= rfl

theorem proj_origin'

TopologyByExample.DoubleOriginPlane.proj_origin'

@[simp] theorem proj_origin' : proj origin' = 0
Proof
:= rfl

theorem pt_injective

TopologyByExample.DoubleOriginPlane.pt_injective

theorem pt_injective : Function.Injective pt
Proof
:=
  fun _ _ h ↦ by simpa using congrArg proj h

theorem pt_ne_origin'

TopologyByExample.DoubleOriginPlane.pt_ne_origin'

@[simp] theorem pt_ne_origin' (z : ℝ × ℝ) : pt z ≠ origin'
Proof
:=
  fun h ↦ Option.some_ne_none z (toOption.symm.injective h)

theorem eq_origin'_or_eq_pt

TopologyByExample.DoubleOriginPlane.eq_origin'_or_eq_pt

Every point is the second origin or a point of the plane.

theorem eq_origin'_or_eq_pt (q : DoubleOriginPlane) : q = origin' ∨ ∃ z, q = pt z
Proof
:= by
  rcases h : toOption q with _ | z
  · exact Or.inl (toOption.injective h)
  · exact Or.inr ⟨z, toOption.injective h⟩

definition upper

TopologyByExample.DoubleOriginPlane.upper

The open upper half-plane together with the origin 0.

def upper : Set DoubleOriginPlane
:=
  {q | ∃ z, q = pt z ∧ (z = 0 ∨ 0 < z.2)}

definition lower

TopologyByExample.DoubleOriginPlane.lower

The open lower half-plane together with the second origin 0*.

def lower : Set DoubleOriginPlane
:=
  {q | q = origin' ∨ ∃ z, q = pt z ∧ z.2 < 0}

theorem pt_mem_upper

TopologyByExample.DoubleOriginPlane.pt_mem_upper

@[simp] theorem pt_mem_upper {z : ℝ × ℝ} : pt z ∈ upper ↔ z = 0 ∨ 0 < z.2
Proof
:= by
  constructor
  · rintro ⟨w, hw, h⟩
    rwa [pt_injective.eq_iff.1 hw]
  · exact fun h ↦ ⟨z, rfl, h⟩

theorem pt_mem_lower

TopologyByExample.DoubleOriginPlane.pt_mem_lower

@[simp] theorem pt_mem_lower {z : ℝ × ℝ} : pt z ∈ lower ↔ z.2 < 0
Proof
:= by
  constructor
  · rintro (h | ⟨w, hw, h⟩)
    · exact absurd h (pt_ne_origin' z)
    · rwa [pt_injective.eq_iff.1 hw]
  · exact fun h ↦ Or.inr ⟨z, rfl, h⟩

theorem origin'_mem_lower

TopologyByExample.DoubleOriginPlane.origin'_mem_lower

@[simp] theorem origin'_mem_lower : origin' ∈ lower
Proof
:= Or.inl rfl

theorem origin'_not_mem_upper

TopologyByExample.DoubleOriginPlane.origin'_not_mem_upper

@[simp] theorem origin'_not_mem_upper : origin' ∉ upper
Proof
:= by
  rintro ⟨z, h, -⟩
  exact pt_ne_origin' z h.symm

theorem disjoint_upper_lower

TopologyByExample.DoubleOriginPlane.disjoint_upper_lower

theorem disjoint_upper_lower : Disjoint upper lower
Proof
:= by
  rw [disjoint_left]
  rintro q ⟨z, rfl, hz⟩ hq
  rw [pt_mem_lower] at hq
  rcases hz with rfl | hz
  · simp at hq
  · linarith

instance

The topology of the double origin plane: the coarsest finer than the one induced by the projection to the plane in which upper and lower are open.

instance : TopologicalSpace DoubleOriginPlane
Proof
:=
  induced proj inferInstance ⊓ generateFrom {upper, lower}

theorem continuous_proj

TopologyByExample.DoubleOriginPlane.continuous_proj

theorem continuous_proj : Continuous proj
Proof
:=
  continuous_iff_le_induced.2 inf_le_left

theorem isOpen_upper

TopologyByExample.DoubleOriginPlane.isOpen_upper

theorem isOpen_upper : IsOpen upper
Proof
:=
  (inf_le_right : (inferInstance : TopologicalSpace DoubleOriginPlane) ≤ _) _
    (isOpen_generateFrom_of_mem (by simp))

theorem isOpen_lower

TopologyByExample.DoubleOriginPlane.isOpen_lower

theorem isOpen_lower : IsOpen lower
Proof
:=
  (inf_le_right : (inferInstance : TopologicalSpace DoubleOriginPlane) ≤ _) _
    (isOpen_generateFrom_of_mem (by simp))

theorem continuous_of_proj

TopologyByExample.DoubleOriginPlane.continuous_of_proj

A map into the double origin plane is continuous if its projection to the plane is and the preimages of upper and lower are open.

theorem continuous_of_proj {Y : Type*} [TopologicalSpace Y] {f : Y → DoubleOriginPlane}
    (hf : Continuous (proj ∘ f)) (hu : IsOpen (f ⁻¹' upper)) (hl : IsOpen (f ⁻¹' lower)) :
    Continuous f
Proof
:=
  continuous_inf_rng.2 ⟨continuous_induced_rng.2 hf,
    continuous_generateFrom_iff.2 fun s hs ↦ by rcases hs with rfl | rfl <;> assumption⟩

theorem nhds_gen

TopologyByExample.DoubleOriginPlane.nhds_gen

theorem nhds_gen (q : DoubleOriginPlane) :
    @nhds DoubleOriginPlane (generateFrom {upper, lower}) q =
      ⨅ s ∈ {s | q ∈ s ∧ s ∈ ({upper, lower} : Set (Set DoubleOriginPlane))}, 𝓟 s
Proof
:=
  nhds_generateFrom

theorem nhds_eq_inf

TopologyByExample.DoubleOriginPlane.nhds_eq_inf

theorem nhds_eq_inf (q : DoubleOriginPlane) :
    𝓝 q = comap proj (𝓝 (proj q)) ⊓
      @nhds DoubleOriginPlane (generateFrom {upper, lower}) q
Proof
:=
  (nhds_inf (t₁ := induced proj inferInstance) (t₂ := generateFrom _)).trans
    (by rw [nhds_induced])

theorem nhds_pt

TopologyByExample.DoubleOriginPlane.nhds_pt

Away from the origin, the neighbourhoods are the usual ones.

theorem nhds_pt {z : ℝ × ℝ} (hz : z ≠ 0) : 𝓝 (pt z) = comap proj (𝓝 z)
Proof
:= by
  refine le_antisymm (continuous_proj.tendsto (pt z)).le_comap ?_
  rw [nhds_eq_inf, proj_pt]
  refine le_inf le_rfl ?_
  rw [nhds_gen]
  refine le_iInf₂ fun s hs ↦ le_principal_iff.2 ?_
  obtain ⟨hs, hs'⟩ := hs
  rcases hs' with rfl | rfl
  · have hz2 : 0 < z.2 := (pt_mem_upper.1 hs).resolve_left hz
    refine mem_comap.2 ⟨{w | 0 < w.2}, (isOpen_lt continuous_const continuous_snd).mem_nhds hz2,
      fun q hq ↦ ?_⟩
    rcases eq_origin'_or_eq_pt q with rfl | ⟨w, rfl⟩
    · simp at hq
    · exact pt_mem_upper.2 (Or.inr hq)
  · have hz2 : z.2 < 0 := pt_mem_lower.1 hs
    refine mem_comap.2 ⟨{w | w.2 < 0}, (isOpen_lt continuous_snd continuous_const).mem_nhds hz2,
      fun q hq ↦ ?_⟩
    rcases eq_origin'_or_eq_pt q with rfl | ⟨w, rfl⟩
    · exact origin'_mem_lower
    · exact pt_mem_lower.2 hq

theorem nhds_origin

TopologyByExample.DoubleOriginPlane.nhds_origin

theorem nhds_origin : 𝓝 (pt 0) = comap proj (𝓝 0) ⊓ 𝓟 upper
Proof
:= by
  rw [nhds_eq_inf, proj_pt, nhds_gen]
  congr 1
  refine le_antisymm (iInf₂_le upper ⟨by simp, by simp⟩) (le_iInf₂ fun s hs ↦ ?_)
  obtain ⟨hs, hs'⟩ := hs
  rcases hs' with rfl | rfl
  · exact le_rfl
  · simp at hs

theorem nhds_origin'

TopologyByExample.DoubleOriginPlane.nhds_origin'

theorem nhds_origin' : 𝓝 origin' = comap proj (𝓝 0) ⊓ 𝓟 lower
Proof
:= by
  rw [nhds_eq_inf, proj_origin', nhds_gen]
  congr 1
  refine le_antisymm (iInf₂_le lower ⟨by simp, by simp⟩) (le_iInf₂ fun s hs ↦ ?_)
  obtain ⟨hs, hs'⟩ := hs
  rcases hs' with rfl | rfl
  · exact absurd hs origin'_not_mem_upper
  · exact le_rfl

theorem nhds_basis_pt

TopologyByExample.DoubleOriginPlane.nhds_basis_pt

Neighbourhood bases: balls about the point, away from the origins; at the origins, half-balls together with the origin.

theorem nhds_basis_pt {z : ℝ × ℝ} (hz : z ≠ 0) :
    (𝓝 (pt z)).HasBasis (fun r : ℝ ↦ 0 < r) fun r ↦ proj ⁻¹' ball z r
Proof
:= by
  rw [nhds_pt hz]
  exact nhds_basis_ball.comap proj

theorem nhds_basis_origin

TopologyByExample.DoubleOriginPlane.nhds_basis_origin

theorem nhds_basis_origin :
    (𝓝 (pt 0)).HasBasis (fun r : ℝ ↦ 0 < r) fun r ↦ proj ⁻¹' ball 0 r ∩ upper
Proof
:= by
  rw [nhds_origin]
  exact (nhds_basis_ball.comap proj).inf_principal upper

theorem nhds_basis_origin'

TopologyByExample.DoubleOriginPlane.nhds_basis_origin'

theorem nhds_basis_origin' :
    (𝓝 origin').HasBasis (fun r : ℝ ↦ 0 < r) fun r ↦ proj ⁻¹' ball 0 r ∩ lower
Proof
:= by
  rw [nhds_origin']
  exact (nhds_basis_ball.comap proj).inf_principal lower

Maps from parts of the plane

definition punctured

TopologyByExample.DoubleOriginPlane.punctured

The plane without the origin.

def punctured : Set (ℝ × ℝ)
:= {z | z ≠ 0}

definition upperPlane

TopologyByExample.DoubleOriginPlane.upperPlane

The open upper half-plane with the origin.

def upperPlane : Set (ℝ × ℝ)
:= {z | z = 0 ∨ 0 < z.2}

definition lowerPlane

TopologyByExample.DoubleOriginPlane.lowerPlane

The open lower half-plane with the origin.

def lowerPlane : Set (ℝ × ℝ)
:= {z | z = 0 ∨ z.2 < 0}

definition ptLower

TopologyByExample.DoubleOriginPlane.ptLower

The map from the plane sending 0 to the second origin 0*.

noncomputable def ptLower (z : ℝ × ℝ) : DoubleOriginPlane
:=
  open Classical in if z = 0 then origin' else pt z

theorem proj_ptLower

TopologyByExample.DoubleOriginPlane.proj_ptLower

@[simp] theorem proj_ptLower (z : ℝ × ℝ) : proj (ptLower z) = z
Proof
:= by
  unfold ptLower
  split_ifs with h
  · simp [h]
  · rfl

theorem continuousOn_pt_punctured

TopologyByExample.DoubleOriginPlane.continuousOn_pt_punctured

theorem continuousOn_pt_punctured : ContinuousOn pt punctured
Proof
:= by
  rw [continuousOn_iff_continuous_domRestrict]
  refine continuous_of_proj (continuous_subtypeVal) ?_ ?_
  · have : punctured.domRestrict pt ⁻¹' upper = Subtype.val ⁻¹' {w : ℝ × ℝ | 0 < w.2} := by
      ext ⟨z, hz⟩
      simp only [mem_preimage, domRestrict_apply, pt_mem_upper, mem_ofPred_eq]
      exact or_iff_right hz
    rw [this]
    exact (isOpen_lt continuous_const continuous_snd).preimage continuous_subtypeVal
  · have : punctured.domRestrict pt ⁻¹' lower = Subtype.val ⁻¹' {w : ℝ × ℝ | w.2 < 0} := by
      ext ⟨z, hz⟩
      simp
    rw [this]
    exact (isOpen_lt continuous_snd continuous_const).preimage continuous_subtypeVal

theorem continuousOn_pt_upperPlane

TopologyByExample.DoubleOriginPlane.continuousOn_pt_upperPlane

theorem continuousOn_pt_upperPlane : ContinuousOn pt upperPlane
Proof
:= by
  rw [continuousOn_iff_continuous_domRestrict]
  refine continuous_of_proj (continuous_subtypeVal) ?_ ?_
  · convert isOpen_univ using 1
    ext ⟨z, hz⟩
    simp only [mem_preimage, domRestrict_apply, pt_mem_upper, mem_univ, iff_true]
    exact hz
  · convert isOpen_empty using 1
    ext ⟨z, hz⟩
    simp only [mem_preimage, domRestrict_apply, pt_mem_lower, mem_empty_iff_false, iff_false,
      not_lt]
    rcases hz with rfl | hz
    · simp
    · exact hz.le

theorem continuousOn_ptLower_lowerPlane

TopologyByExample.DoubleOriginPlane.continuousOn_ptLower_lowerPlane

theorem continuousOn_ptLower_lowerPlane : ContinuousOn ptLower lowerPlane
Proof
:= by
  rw [continuousOn_iff_continuous_domRestrict]
  refine continuous_of_proj ?_ ?_ ?_
  · convert continuous_subtypeVal using 1
    ext1 z
    simp
  · convert isOpen_empty using 1
    ext ⟨z, hz⟩
    simp only [mem_preimage, domRestrict_apply, mem_empty_iff_false, iff_false]
    unfold ptLower
    split_ifs with h
    · exact origin'_not_mem_upper
    · rw [pt_mem_upper]
      rintro (h' | h')
      · exact h h'
      · exact (lt_asymm h' (hz.resolve_left h))
  · convert isOpen_univ using 1
    ext ⟨z, hz⟩
    simp only [mem_preimage, domRestrict_apply, mem_univ, iff_true]
    unfold ptLower
    split_ifs with h
    · exact origin'_mem_lower
    · exact pt_mem_lower.2 (hz.resolve_left h)

theorem convex_upperPlane

TopologyByExample.DoubleOriginPlane.convex_upperPlane

theorem convex_upperPlane : Convex ℝ upperPlane
Proof
:= by
  intro a ha b hb s t hs ht hst
  rcases ha with rfl | ha <;> rcases hb with rfl | hb
  · left; simp
  · rcases ht.eq_or_lt with rfl | ht
    · left; simp
    · right; simp only [smul_zero, zero_add, Prod.smul_snd, smul_eq_mul]; positivity
  · rcases hs.eq_or_lt with rfl | hs
    · left; simp
    · right; simp only [smul_zero, add_zero, Prod.smul_snd, smul_eq_mul]; positivity
  · right
    simp only [Prod.snd_add, Prod.smul_snd, smul_eq_mul]
    rcases hs.eq_or_lt with rfl | hs
    · simp only [zero_add] at hst; subst hst; simpa using hb
    · positivity

theorem convex_lowerPlane

TopologyByExample.DoubleOriginPlane.convex_lowerPlane

theorem convex_lowerPlane : Convex ℝ lowerPlane
Proof
:= by
  intro a ha b hb s t hs ht hst
  rcases ha with rfl | ha <;> rcases hb with rfl | hb
  · left; simp
  · rcases ht.eq_or_lt with rfl | ht
    · left; simp
    · right; simp only [smul_zero, zero_add, Prod.smul_snd, smul_eq_mul]
      exact mul_neg_of_pos_of_neg ht hb
  · rcases hs.eq_or_lt with rfl | hs
    · left; simp
    · right; simp only [smul_zero, add_zero, Prod.smul_snd, smul_eq_mul]
      exact mul_neg_of_pos_of_neg hs ha
  · right
    simp only [Prod.snd_add, Prod.smul_snd, smul_eq_mul]
    rcases hs.eq_or_lt with rfl | hs
    · simp only [zero_add] at hst; subst hst; simpa using hb
    · nlinarith [mul_neg_of_pos_of_neg hs ha]

theorem preimage_ball_eq_image

TopologyByExample.DoubleOriginPlane.preimage_ball_eq_image

theorem preimage_ball_eq_image {z : ℝ × ℝ} {r : ℝ} (h : (0 : ℝ × ℝ) ∉ ball z r) :
    proj ⁻¹' ball z r = pt '' ball z r
Proof
:= by
  ext q
  rcases eq_origin'_or_eq_pt q with rfl | ⟨w, rfl⟩
  · simp only [mem_preimage, proj_origin', mem_image, pt_ne_origin', and_false, exists_false,
      iff_false]
    exact h
  · simp [pt_injective.eq_iff]

theorem preimage_ball_inter_upper

TopologyByExample.DoubleOriginPlane.preimage_ball_inter_upper

theorem preimage_ball_inter_upper (r : ℝ) :
    proj ⁻¹' ball 0 r ∩ upper = pt '' (ball 0 r ∩ upperPlane)
Proof
:= by
  ext q
  rcases eq_origin'_or_eq_pt q with rfl | ⟨w, rfl⟩
  · simp
  · simp [pt_injective.eq_iff, upperPlane]

theorem preimage_ball_inter_lower

TopologyByExample.DoubleOriginPlane.preimage_ball_inter_lower

theorem preimage_ball_inter_lower (r : ℝ) :
    proj ⁻¹' ball 0 r ∩ lower = ptLower '' (ball 0 r ∩ lowerPlane)
Proof
:= by
  ext q
  constructor
  · rintro ⟨hq, hql⟩
    rcases eq_origin'_or_eq_pt q with rfl | ⟨w, rfl⟩
    · exact ⟨0, ⟨by simpa using hq, Or.inl rfl⟩, by simp [ptLower]⟩
    · refine ⟨w, ⟨hq, Or.inr (pt_mem_lower.1 hql)⟩, ?_⟩
      have : w ≠ 0 := by rintro rfl; simp at hql
      simp [ptLower, this]
  · rintro ⟨w, ⟨hw, hwl⟩, rfl⟩
    refine ⟨by simpa using hw, ?_⟩
    unfold ptLower
    split_ifs with h
    · exact origin'_mem_lower
    · exact pt_mem_lower.2 (hwl.resolve_left h)

Values

theorem t2Space

TopologyByExample.DoubleOriginPlane.t2Space

The double origin plane is Hausdorff.

theorem t2Space : T2Space DoubleOriginPlane
Proof
:= by
  refine ⟨fun q r hqr ↦ ?_⟩
  by_cases hp : proj q = proj r
  · have key : ∀ z, pt z = q → r = origin' → ∃ u v, IsOpen u ∧ IsOpen v ∧ q ∈ u ∧ r ∈ v ∧
        Disjoint u v := by
      rintro z rfl rfl
      have hz : z = 0 := by simpa using hp
      subst hz
      exact ⟨upper, lower, isOpen_upper, isOpen_lower, by simp, origin'_mem_lower,
        disjoint_upper_lower⟩
    rcases eq_origin'_or_eq_pt q with rfl | ⟨z, rfl⟩ <;>
      rcases eq_origin'_or_eq_pt r with rfl | ⟨w, rfl⟩
    · exact absurd rfl hqr
    · have hw : w = 0 := by simpa using hp.symm
      subst hw
      exact ⟨lower, upper, isOpen_lower, isOpen_upper, origin'_mem_lower, by simp,
        disjoint_upper_lower.symm⟩
    · exact key z rfl rfl
    · exact absurd (congrArg pt (by simpa using hp)) hqr
  · obtain ⟨u, v, hu, hv, hqu, hrv, huv⟩ := t2_separation hp
    exact ⟨proj ⁻¹' u, proj ⁻¹' v, hu.preimage continuous_proj, hv.preimage continuous_proj,
      hqu, hrv, huv.preimage proj⟩

On this site: The double origin plane is Hausdorff

theorem secondCountableTopology

TopologyByExample.DoubleOriginPlane.secondCountableTopology

The double origin plane is second countable.

theorem secondCountableTopology : SecondCountableTopology DoubleOriginPlane
Proof
:=
  secondCountableTopology_inf (secondCountableTopology_induced _ _ proj)
    (@SecondCountableTopology.mk _ (generateFrom _) ⟨_, toFinite _ |>.countable, rfl⟩)

On this site: The double origin plane is second countable

theorem not_pseudocompactSpace

TopologyByExample.DoubleOriginPlane.not_pseudocompactSpace

The double origin plane is not pseudocompact: the first coordinate is unbounded.

theorem not_pseudocompactSpace : ¬PseudocompactSpace DoubleOriginPlane
Proof
:= by
  intro ⟨h⟩
  obtain ⟨⟨b, hb⟩, -⟩ := h ⟨fun q ↦ (proj q).1, continuous_fst.comp continuous_proj⟩
  have : b + 1 ≤ b := hb ⟨pt (b + 1, 0), rfl⟩
  linarith

On this site: The double origin plane is not pseudocompact

theorem punctured_eq

TopologyByExample.DoubleOriginPlane.punctured_eq

theorem punctured_eq : punctured = {0}ᶜ
Proof
:= by
  ext z
  simp [punctured]

theorem isOpen_punctured

TopologyByExample.DoubleOriginPlane.isOpen_punctured

theorem isOpen_punctured : IsOpen punctured
Proof
:=
  punctured_eq ▸ isOpen_compl_singleton

theorem ball_subset_punctured

TopologyByExample.DoubleOriginPlane.ball_subset_punctured

theorem ball_subset_punctured {z : ℝ × ℝ} {r : ℝ} (h : (0 : ℝ × ℝ) ∉ ball z r) :
    ball z r ⊆ punctured
Proof
:= fun _ hw hw0 ↦ h (hw0 ▸ hw)

theorem zero_not_mem_ball

TopologyByExample.DoubleOriginPlane.zero_not_mem_ball

theorem zero_not_mem_ball {z : ℝ × ℝ} {r : ℝ} (hr : r ≤ ‖z‖) : (0 : ℝ × ℝ) ∉ ball z r
Proof
:= by
  rw [mem_ball, dist_comm, dist_zero_right, not_lt]
  exact hr

theorem pathPreconnectedSpace

TopologyByExample.DoubleOriginPlane.pathPreconnectedSpace

The double origin plane is path connected: the points away from the origins form a path connected set, and each origin is joined to it through its half-plane.

theorem pathPreconnectedSpace : PathPreconnectedSpace DoubleOriginPlane
Proof
:= by
  have hrank : 1 < Module.rank ℝ (ℝ × ℝ) := by
    rw [rank_prod', Module.rank_self]
    norm_num
  have hP : IsPathConnected punctured :=
    punctured_eq ▸ isPathConnected_compl_singleton_of_one_lt_rank hrank 0
  have hpunct : ∀ z ∈ punctured, ∀ w ∈ punctured, Joined (pt z) (pt w) := fun z hz w hw ↦
    ((hP.joinedIn z hz w hw).map continuousOn_pt_punctured).joined
  have h1 : ((0 : ℝ), (1 : ℝ)) ∈ punctured := by simp [punctured]
  have h2 : ((0 : ℝ), (-1 : ℝ)) ∈ punctured := by simp [punctured]
  have hup : Joined (pt 0) (pt (0, 1)) :=
    ((convex_upperPlane.isPathConnected ⟨0, Or.inl rfl⟩).joinedIn 0 (Or.inl rfl) (0, 1)
      (Or.inr one_pos) |>.map continuousOn_pt_upperPlane).joined
  have hlow : Joined origin' (pt (0, -1)) := by
    have := ((convex_lowerPlane.isPathConnected ⟨0, Or.inl rfl⟩).joinedIn 0 (Or.inl rfl) (0, -1)
      (Or.inr (by norm_num)) |>.map continuousOn_ptLower_lowerPlane).joined
    simpa [ptLower] using this
  have hall : ∀ q, Joined q (pt (0, 1)) := fun q ↦ by
    rcases eq_origin'_or_eq_pt q with rfl | ⟨z, rfl⟩
    · exact hlow.trans (hpunct _ h2 _ h1)
    · by_cases hz : z = 0
      · subst hz
        exact hup
      · exact hpunct z hz _ h1
  exact ⟨fun q r ↦ (hall q).trans (hall r).symm⟩

On this site: The double origin plane is path connected

theorem locallyPathConnectedSpace

TopologyByExample.DoubleOriginPlane.locallyPathConnectedSpace

The double origin plane is locally path connected: balls away from the origins and half-balls at the origins are path connected.

theorem locallyPathConnectedSpace : LocallyPathConnectedSpace DoubleOriginPlane
Proof
:= by
  refine ⟨fun q ↦ ⟨fun t ↦ ⟨fun ht ↦ ?_, fun ⟨s, hs, hst⟩ ↦ mem_of_superset hs.1 hst⟩⟩⟩
  rcases eq_origin'_or_eq_pt q with rfl | ⟨z, rfl⟩
  · obtain ⟨r, hr, hrt⟩ := nhds_basis_origin'.mem_iff.1 ht
    refine ⟨_, ⟨nhds_basis_origin'.mem_of_mem hr, ?_⟩, hrt⟩
    rw [preimage_ball_inter_lower]
    exact ((convex_ball 0 r).inter convex_lowerPlane).isPathConnected
      ⟨0, mem_ball_self hr, Or.inl rfl⟩ |>.image'
      (continuousOn_ptLower_lowerPlane.mono inter_subset_right)
  · by_cases hz : z = 0
    · subst hz
      obtain ⟨r, hr, hrt⟩ := nhds_basis_origin.mem_iff.1 ht
      refine ⟨_, ⟨nhds_basis_origin.mem_of_mem hr, ?_⟩, hrt⟩
      rw [preimage_ball_inter_upper]
      exact ((convex_ball 0 r).inter convex_upperPlane).isPathConnected
        ⟨0, mem_ball_self hr, Or.inl rfl⟩ |>.image'
        (continuousOn_pt_upperPlane.mono inter_subset_right)
    · obtain ⟨r, hr, hrt⟩ := (nhds_basis_pt hz).mem_iff.1 ht
      have hρ : 0 < min r ‖z‖ := lt_min hr (norm_pos_iff.2 hz)
      have h0 := zero_not_mem_ball (z := z) (min_le_right r ‖z‖)
      refine ⟨proj ⁻¹' ball z (min r ‖z‖), ⟨(nhds_basis_pt hz).mem_of_mem hρ, ?_⟩,
        (preimage_mono (ball_subset_ball (min_le_left _ _))).trans hrt⟩
      rw [preimage_ball_eq_image h0]
      exact (convex_ball z _).isPathConnected (nonempty_ball.2 hρ) |>.image'
        (continuousOn_pt_punctured.mono (ball_subset_punctured h0))

theorem sigmaCompactSpace

TopologyByExample.DoubleOriginPlane.sigmaCompactSpace

The double origin plane is σ-compact: it is covered by the images of the closed cones |x| ≤ y and |x| ≤ -y and of the closed annuli about the origin.

theorem sigmaCompactSpace : SigmaCompactSpace DoubleOriginPlane
Proof
:= by
  set Cu : Set (ℝ × ℝ) := {z | |z.1| ≤ z.2}
  set Cl : Set (ℝ × ℝ) := {z | |z.1| ≤ -z.2}
  have hCu : IsClosed Cu := isClosed_le (continuous_abs.comp continuous_fst) continuous_snd
  have hCl : IsClosed Cl := isClosed_le (continuous_abs.comp continuous_fst) continuous_snd.neg
  have hCuP : Cu ⊆ upperPlane := fun z hz ↦ by
    rcases (abs_nonneg z.1).trans hz |>.eq_or_lt with h | h
    · left
      have : z.1 = 0 := abs_eq_zero.1 (le_antisymm (h ▸ hz) (abs_nonneg _))
      exact Prod.ext this h.symm
    · exact Or.inr h
  have hClP : Cl ⊆ lowerPlane := fun z hz ↦ by
    rcases (abs_nonneg z.1).trans hz |>.eq_or_lt with h | h
    · left
      have : z.1 = 0 := abs_eq_zero.1 (le_antisymm (h ▸ hz) (abs_nonneg _))
      exact Prod.ext this (neg_eq_zero.1 h.symm)
    · exact Or.inr (neg_pos.1 h)
  set A : ℕ → Set (ℝ × ℝ) := fun n ↦ closedBall 0 n ∩ {z | ((n : ℝ) + 1)⁻¹ ≤ ‖z‖}
  have hA : ∀ n, IsCompact (A n) := fun n ↦
    (isCompact_closedBall 0 _).inter_right (isClosed_le continuous_const continuous_norm)
  have hAP : ∀ n, A n ⊆ punctured := fun n z hz hz0 ↦ by
    have := hz.2
    rw [mem_ofPred_eq, hz0, norm_zero] at this
    exact (not_le.2 (by positivity)) this
  refine ⟨⟨fun n ↦ ptLower '' (Cl ∩ closedBall 0 n) ∪ pt '' (Cu ∩ closedBall 0 n) ∪
    pt '' A n, fun n ↦ ?_, ?_⟩⟩
  · refine (IsCompact.union ?_ ?_).union ?_
    · exact ((isCompact_closedBall 0 _).inter_left hCl).image_of_continuousOn
        (continuousOn_ptLower_lowerPlane.mono (inter_subset_left.trans hClP))
    · exact ((isCompact_closedBall 0 _).inter_left hCu).image_of_continuousOn
        (continuousOn_pt_upperPlane.mono (inter_subset_left.trans hCuP))
    · exact (hA n).image_of_continuousOn (continuousOn_pt_punctured.mono (hAP n))
  · refine eq_univ_of_forall fun q ↦ mem_iUnion.2 ?_
    rcases eq_origin'_or_eq_pt q with rfl | ⟨z, rfl⟩
    · exact ⟨0, Or.inl (Or.inl ⟨0, ⟨by simp [Cl], by simp⟩, by simp [ptLower]⟩)⟩
    · by_cases hz : z = 0
      · subst hz
        exact ⟨0, Or.inl (Or.inr ⟨0, ⟨by simp [Cu], by simp⟩, rfl⟩)⟩
      · have hpos : 0 < ‖z‖ := norm_pos_iff.2 hz
        refine ⟨⌈max ‖z‖ ‖z‖⁻¹⌉₊, Or.inr ⟨z, ⟨?_, ?_⟩, rfl⟩⟩
        · rw [mem_closedBall, dist_zero_right]
          exact (le_max_left _ _).trans (Nat.le_ceil _)
        · rw [mem_ofPred_eq, inv_le_comm₀ (by positivity) hpos]
          exact (le_max_right _ _).trans
            ((Nat.le_ceil _).trans (le_add_of_nonneg_right zero_le_one))

On this site: The double origin plane is σ-compact

definition away

TopologyByExample.DoubleOriginPlane.away

The points away from the origins, as a map from the punctured plane.

def away : punctured → DoubleOriginPlane
:=
  punctured.domRestrict pt

theorem isOpenEmbedding_away

TopologyByExample.DoubleOriginPlane.isOpenEmbedding_away

theorem isOpenEmbedding_away : IsOpenEmbedding away
Proof
:= by
  refine .of_continuous_injective_isOpenMap
    (continuousOn_iff_continuous_domRestrict.1 continuousOn_pt_punctured)
    (fun z w h ↦ Subtype.ext (pt_injective h)) fun V hV ↦ ?_
  have hV' : IsOpen (((↑) : punctured → ℝ × ℝ) '' V) := isOpen_punctured.isOpenMap_subtypeVal V hV
  have : away '' V = proj ⁻¹' (((↑) : punctured → ℝ × ℝ) '' V) := by
    ext q
    constructor
    · rintro ⟨z, hz, rfl⟩
      exact ⟨z, hz, rfl⟩
    · rintro ⟨w, hw, hq⟩
      rcases eq_origin'_or_eq_pt q with rfl | ⟨z, rfl⟩
      · exact absurd (hq.trans proj_origin') w.property
      · exact ⟨w, hw, by simp only [proj_pt] at hq; simp [away, hq]⟩
  rw [this]
  exact hV'.preimage continuous_proj

theorem dense_range_away

TopologyByExample.DoubleOriginPlane.dense_range_away

theorem dense_range_away : Dense (range away)
Proof
:= by
  refine dense_iff_closure_eq.2 (eq_univ_of_forall fun q ↦ ?_)
  rcases eq_origin'_or_eq_pt q with rfl | ⟨z, rfl⟩
  · refine mem_closure_iff_nhds.2 fun U hU ↦ ?_
    obtain ⟨r, hr, hrU⟩ := nhds_basis_origin'.mem_iff.1 hU
    have hw : ((0 : ℝ), -(r / 2)) ∈ punctured := by simp [punctured, hr.ne']
    refine ⟨pt (0, -(r / 2)), hrU ⟨?_, pt_mem_lower.2 (by simp; linarith)⟩, ⟨_, hw⟩, rfl⟩
    simp [Prod.norm_def, abs_of_pos hr]
    linarith
  · by_cases hz : z = 0
    · subst hz
      refine mem_closure_iff_nhds.2 fun U hU ↦ ?_
      obtain ⟨r, hr, hrU⟩ := nhds_basis_origin.mem_iff.1 hU
      have hw : ((0 : ℝ), r / 2) ∈ punctured := by simp [punctured, hr.ne']
      refine ⟨pt (0, r / 2), hrU ⟨?_, pt_mem_upper.2 (Or.inr (by simp; linarith))⟩, ⟨_, hw⟩, rfl⟩
      simp [Prod.norm_def, abs_of_pos hr]
      linarith
    · exact subset_closure ⟨⟨z, hz⟩, rfl⟩

theorem baireSpace

TopologyByExample.DoubleOriginPlane.baireSpace

The double origin plane is a Baire space: the points away from the origins form a dense open copy of the punctured plane.

theorem baireSpace : BaireSpace DoubleOriginPlane
Proof
:= by
  have := isOpen_punctured.locallyCompactSpace
  have : BaireSpace (range away) := isOpenEmbedding_away.isEmbedding.toHomeomorph.baireSpace
  exact baireSpace_of_isOpen_of_dense isOpenEmbedding_away.isOpen_range dense_range_away

On this site: The double origin plane is a Baire space

theorem interior_closure_eq_of_subset_isClosed

TopologyByExample.DoubleOriginPlane.interior_closure_eq_of_subset_isClosed

An open set V is regular open if it lies in a closed set F every interior point of which lies in V.

theorem interior_closure_eq_of_subset_isClosed {X : Type*} [TopologicalSpace X] {V F : Set X}
    (hV : IsOpen V) (hF : IsClosed F) (hVF : V ⊆ F) (h : ∀ q, F ∈ 𝓝 q → q ∈ V) :
    interior (closure V) = V
Proof
:=
  subset_antisymm (fun q hq ↦ h q (mem_of_superset (mem_interior_iff_mem_nhds.1 hq)
    (closure_minimal hVF hF))) (interior_maximal subset_closure hV)

theorem mem_nhds_of_preimage

TopologyByExample.DoubleOriginPlane.mem_nhds_of_preimage

Away from the origins, a set that is a neighbourhood of pt w contains a neighbourhood of w in the plane, through the projection.

theorem mem_nhds_of_preimage {w : ℝ × ℝ} (hw : w ≠ 0) {D : Set (ℝ × ℝ)} {F : Set DoubleOriginPlane}
    (hF : F ∈ 𝓝 (pt w)) (hFD : ∀ y, pt y ∈ F → y ∈ D) : D ∈ 𝓝 w
Proof
:= by
  rw [nhds_pt hw] at hF
  obtain ⟨t, ht, htF⟩ := mem_comap.1 hF
  exact mem_of_superset ht fun y hy ↦ hFD y (htF hy)

theorem snd_pos_of_mem_nhds

TopologyByExample.DoubleOriginPlane.snd_pos_of_mem_nhds

A point of the plane with a neighbourhood in {y ≥ 0} lies in the open upper half-plane.

theorem snd_pos_of_mem_nhds {w : ℝ × ℝ} (h : {z : ℝ × ℝ | 0 ≤ z.2} ∈ 𝓝 w) : 0 < w.2
Proof
:= by
  have : Ici (0 : ℝ) ∈ 𝓝 w.2 :=
    mem_of_superset (isOpenMap_snd.image_mem_nhds h) (by rintro _ ⟨z, hz, rfl⟩; exact hz)
  rw [← mem_interior_iff_mem_nhds, interior_Ici] at this
  exact this

theorem snd_neg_of_mem_nhds

TopologyByExample.DoubleOriginPlane.snd_neg_of_mem_nhds

A point of the plane with a neighbourhood in {y ≤ 0} lies in the open lower half-plane.

theorem snd_neg_of_mem_nhds {w : ℝ × ℝ} (h : {z : ℝ × ℝ | z.2 ≤ 0} ∈ 𝓝 w) : w.2 < 0
Proof
:= by
  have : Iic (0 : ℝ) ∈ 𝓝 w.2 :=
    mem_of_superset (isOpenMap_snd.image_mem_nhds h) (by rintro _ ⟨z, hz, rfl⟩; exact hz)
  rw [← mem_interior_iff_mem_nhds, interior_Iic] at this
  exact this

theorem mem_ball_of_mem_nhds

TopologyByExample.DoubleOriginPlane.mem_ball_of_mem_nhds

theorem mem_ball_of_mem_nhds {w z : ℝ × ℝ} {r : ℝ} (hr : r ≠ 0) (h : closedBall z r ∈ 𝓝 w) :
    w ∈ ball z r
Proof
:= by
  rw [← interior_closedBall z hr]
  exact mem_interior_iff_mem_nhds.2 h

theorem semiregularSpace

TopologyByExample.DoubleOriginPlane.semiregularSpace

The double origin plane is semiregular: balls away from the origins and half-balls at the origins are regular open.

theorem semiregularSpace : SemiregularSpace DoubleOriginPlane
Proof
:= by
  refine ⟨isTopologicalBasis_of_isOpen_of_nhds (fun u hu ↦ hu ▸ isOpen_interior)
    fun q u hqu hu ↦ ?_⟩
  rcases eq_origin'_or_eq_pt q with rfl | ⟨z, rfl⟩
  · obtain ⟨r, hr, hru⟩ := nhds_basis_origin'.mem_iff.1 (hu.mem_nhds hqu)
    refine ⟨_, ?_, nhds_basis_origin'.mem_of_mem hr |> mem_of_mem_nhds, hru⟩
    refine interior_closure_eq_of_subset_isClosed
      (F := proj ⁻¹' (closedBall 0 r ∩ {z | z.2 ≤ 0}) ∩ upperᶜ)
      ((isOpen_ball.preimage continuous_proj).inter isOpen_lower)
      (((isClosed_closedBall.inter (isClosed_le continuous_snd continuous_const)).preimage
        continuous_proj).inter isOpen_upper.isClosed_compl) ?_ fun q' hq' ↦ ?_
    · rintro q' ⟨hb, hl⟩
      refine ⟨⟨ball_subset_closedBall hb, ?_⟩, fun hu' ↦ disjoint_upper_lower.le_bot ⟨hu', hl⟩⟩
      rcases hl with rfl | ⟨w, rfl, hw⟩
      · simp
      · exact hw.le
    · have hq'F := mem_of_mem_nhds hq'
      rcases eq_origin'_or_eq_pt q' with rfl | ⟨w, rfl⟩
      · exact ⟨by simpa using hr, origin'_mem_lower⟩
      · have hw : w ≠ 0 := by rintro rfl; exact hq'F.2 (by simp)
        have hD := mem_nhds_of_preimage (D := closedBall 0 r ∩ {z | z.2 ≤ 0}) hw hq'
          fun y hy ↦ hy.1
        exact ⟨mem_ball_of_mem_nhds hr.ne' (mem_of_superset hD inter_subset_left),
          pt_mem_lower.2 (snd_neg_of_mem_nhds (mem_of_superset hD inter_subset_right))⟩
  · by_cases hz : z = 0
    · subst hz
      obtain ⟨r, hr, hru⟩ := nhds_basis_origin.mem_iff.1 (hu.mem_nhds hqu)
      refine ⟨_, ?_, nhds_basis_origin.mem_of_mem hr |> mem_of_mem_nhds, hru⟩
      refine interior_closure_eq_of_subset_isClosed
        (F := proj ⁻¹' (closedBall 0 r ∩ {z | 0 ≤ z.2}) ∩ lowerᶜ)
        ((isOpen_ball.preimage continuous_proj).inter isOpen_upper)
        (((isClosed_closedBall.inter (isClosed_le continuous_const continuous_snd)).preimage
          continuous_proj).inter isOpen_lower.isClosed_compl) ?_ fun q' hq' ↦ ?_
      · rintro q' ⟨hb, hl⟩
        refine ⟨⟨ball_subset_closedBall hb, ?_⟩, fun hl' ↦ disjoint_upper_lower.le_bot ⟨hl, hl'⟩⟩
        obtain ⟨w, rfl, hw⟩ := hl
        rcases hw with rfl | hw
        · simp
        · exact hw.le
      · have hq'F := mem_of_mem_nhds hq'
        rcases eq_origin'_or_eq_pt q' with rfl | ⟨w, rfl⟩
        · exact absurd origin'_mem_lower hq'F.2
        · by_cases hw : w = 0
          · subst hw
            exact ⟨by simpa using hr, by simp⟩
          · have hD := mem_nhds_of_preimage (D := closedBall 0 r ∩ {z | 0 ≤ z.2}) hw hq'
              fun y hy ↦ hy.1
            exact ⟨mem_ball_of_mem_nhds hr.ne' (mem_of_superset hD inter_subset_left),
              pt_mem_upper.2 (Or.inr (snd_pos_of_mem_nhds (mem_of_superset hD inter_subset_right)))⟩
    · obtain ⟨r, hr, hru⟩ := (nhds_basis_pt hz).mem_iff.1 (hu.mem_nhds hqu)
      set ρ := min r ‖z‖ / 2
      have hρ : 0 < ρ := by have := norm_pos_iff.2 hz; positivity
      have hρz : ρ < ‖z‖ := by
        have := norm_pos_iff.2 hz
        have := min_le_right r ‖z‖
        simp only [ρ]
        linarith
      have hρr : ρ < r := by
        have := min_le_left r ‖z‖
        simp only [ρ]
        linarith
      refine ⟨proj ⁻¹' ball z ρ, ?_, by simpa using hρ,
        (preimage_mono (ball_subset_ball hρr.le)).trans hru⟩
      refine interior_closure_eq_of_subset_isClosed (isOpen_ball.preimage continuous_proj)
        (isClosed_closedBall.preimage continuous_proj)
        (preimage_mono ball_subset_closedBall) fun q' hq' ↦ ?_
      have hq'F : proj q' ∈ closedBall z ρ :=
        (mem_of_mem_nhds hq' : q' ∈ proj ⁻¹' closedBall z ρ)
      have h0 : proj q' ≠ 0 := by
        rintro h
        rw [h, mem_closedBall, dist_comm, dist_zero_right] at hq'F
        linarith
      rcases eq_origin'_or_eq_pt q' with rfl | ⟨w, rfl⟩
      · simp at h0
      · rw [proj_pt] at h0
        exact mem_ball_of_mem_nhds hρ.ne' (mem_nhds_of_preimage h0 hq' fun y hy ↦ hy)

On this site: The double origin plane is semiregular

theorem closure_inter_closure_nonempty

TopologyByExample.DoubleOriginPlane.closure_inter_closure_nonempty

The closures of any neighbourhood of 0 and any neighbourhood of 0* meet: both contain points (ρ, 0) of the x-axis close to the origin.

theorem closure_inter_closure_nonempty {U W : Set DoubleOriginPlane} (hU : U ∈ 𝓝 (pt 0))
    (hW : W ∈ 𝓝 origin') : (closure U ∩ closure W).Nonempty
Proof
:= by
  obtain ⟨r, hr, hrU⟩ := nhds_basis_origin.mem_iff.1 hU
  obtain ⟨s, hs, hsW⟩ := nhds_basis_origin'.mem_iff.1 hW
  set ρ := min r s / 2
  have hρ : 0 < ρ := by positivity
  have hρr : ρ < r := by have := min_le_left r s; simp only [ρ]; linarith
  have hρs : ρ < s := by have := min_le_right r s; simp only [ρ]; linarith
  have ha : ((ρ, 0) : ℝ × ℝ) ≠ 0 := by simp [Prod.ext_iff, hρ.ne']
  -- points `(ρ, ±ε)` with `ε` small lie in `U` and in `W` and near `(ρ, 0)`
  have key : ∀ (δ : ℝ), 0 < δ → ∀ t : ℝ, |t| = min δ ρ / 2 →
      ((ρ, t) : ℝ × ℝ) ∈ ball (ρ, 0) δ ∧ ‖((ρ, t) : ℝ × ℝ)‖ < min r s := by
    intro δ hδ t ht
    have hm : 0 < min δ ρ := lt_min hδ hρ
    have h1 : |t| < δ := by rw [ht]; linarith [min_le_left δ ρ]
    have h2 : |t| < ρ := by rw [ht]; linarith [min_le_right δ ρ]
    refine ⟨?_, ?_⟩
    · rw [mem_ball, Prod.dist_eq]
      simpa [Real.dist_eq] using h1
    · rw [Prod.norm_def]
      simp only [Real.norm_eq_abs, abs_of_pos hρ]
      refine max_lt ?_ ?_
      · simp only [ρ]; linarith [lt_min hr hs]
      · simp only [ρ] at h2 ⊢; linarith [lt_min hr hs]
  refine ⟨pt (ρ, 0), mem_closure_iff_nhds.2 fun N hN ↦ ?_, mem_closure_iff_nhds.2 fun N hN ↦ ?_⟩
  · obtain ⟨δ, hδ, hδN⟩ := (nhds_basis_pt ha).mem_iff.1 hN
    have hε : 0 < min δ ρ / 2 := by have := lt_min hδ hρ; positivity
    obtain ⟨h1, h2⟩ := key δ hδ (min δ ρ / 2) (abs_of_pos hε)
    refine ⟨pt (ρ, min δ ρ / 2), hδN h1, hrU ⟨?_, pt_mem_upper.2 (Or.inr hε)⟩⟩
    rw [mem_preimage, proj_pt, mem_ball, dist_zero_right]
    exact h2.trans_le (min_le_left _ _)
  · obtain ⟨δ, hδ, hδN⟩ := (nhds_basis_pt ha).mem_iff.1 hN
    have hε : 0 < min δ ρ / 2 := by have := lt_min hδ hρ; positivity
    obtain ⟨h1, h2⟩ := key δ hδ (-(min δ ρ / 2)) (by rw [abs_neg, abs_of_pos hε])
    refine ⟨pt (ρ, -(min δ ρ / 2)), hδN h1, hsW ⟨?_, pt_mem_lower.2 (by simpa using hε)⟩⟩
    rw [mem_preimage, proj_pt, mem_ball, dist_zero_right]
    exact h2.trans_le (min_le_right _ _)

On this site: Double origin plane: The closures of neighbourhoods of the two origins meet

theorem not_t25Space

TopologyByExample.DoubleOriginPlane.not_t25Space

The double origin plane is not Urysohn: the two origins have no neighbourhoods with disjoint closures.

theorem not_t25Space : ¬T25Space DoubleOriginPlane
Proof
:= by
  intro _
  have hd := disjoint_lift'_closure_nhds.2 (pt_ne_origin' 0)
  obtain ⟨U, hU, W, hW, hUW⟩ :=
    ((𝓝 (pt 0)).basis_sets.lift'_closure.disjoint_iff (𝓝 origin').basis_sets.lift'_closure).1 hd
  obtain ⟨x, hx⟩ := closure_inter_closure_nonempty hU hW
  exact hUW.le_bot hx

On this site: The double origin plane is not Urysohn