Lean library · module TopologyByExample.Spaces.DeletedRadius

The deleted radius topology

Source file

In this file we define TopologyByExample.DeletedRadius, the deleted radius topology on the plane: a point p has the neighbourhood base of the open discs centred at p from which the horizontal radius to the right of p, without p itself, is removed. It is DeletedDiscPlane S for S = {a | 0 < a}, and many of its properties come from TopologyByExample.Spaces.DeletedDiscs.

A basic neighbourhood with its centre removed is open in the Euclidean plane. Hence, given an open cover of a set, the points not in the Euclidean interior of a member of the cover are separated from each other in the following sense: of two such points close together, each lies on the deleted radius of the other, which is impossible. So there are countably many of them, and the space is hereditarily Lindelöf. The points of the x-axis have pairwise different basic neighbourhoods, so the space is not second countable. A compact set has empty interior (it cannot contain a horizontal segment [a, b] × {c}, which is closed and on which the topology is that of the half-open intervals (x - ε, x]), so by the Baire property the space is not σ-compact.

Main definitions

Main statements

References

  • L. A. Steen and J. A. Seebach, Counterexamples in Topology, 2nd ed., Example 77.

Tags

deleted radius topology, hereditarily Lindelöf, counterexample

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 DeletedRadius

TopologyByExample.DeletedRadius

The deleted radius topology on the plane: a point p has the neighbourhood base of the open discs centred at p with the horizontal radius to the right of p, except p, removed.

def DeletedRadius : Type
:= DeletedDiscPlane (Ioi (0 : ℝ))

On this site: Space: Deleted radius topology

instance

The deleted radius topology.

instance : TopologicalSpace DeletedRadius
Proof
:=
  inferInstanceAs (TopologicalSpace (DeletedDiscPlane (Ioi (0 : ℝ))))

instance

The plane with the deleted radius topology is nonempty.

instance : Nonempty DeletedRadius
Proof
:= inferInstanceAs (Nonempty (DeletedDiscPlane _))

theorem zero_notMem

TopologyByExample.DeletedRadius.zero_notMem

0 is not a deleted offset.

theorem zero_notMem : (0 : ℝ) ∉ Ioi (0 : ℝ)
Proof
:= lt_irrefl 0

theorem add_notMem

TopologyByExample.DeletedRadius.add_notMem

The non-deleted offsets (the nonpositive numbers) are closed under addition.

theorem add_notMem : ∀ a b : ℝ, a ∉ Ioi (0 : ℝ) → b ∉ Ioi (0 : ℝ) → a + b ∉ Ioi (0 : ℝ)
Proof
:= by
  intro a b ha hb
  simp only [mem_Ioi, not_lt] at ha hb ⊢
  linarith

definition toPlane

TopologyByExample.DeletedRadius.toPlane

The point of the plane under a point of DeletedRadius.

def toPlane (p : DeletedRadius) : ℝ × ℝ
:= DeletedDiscPlane.toPlane p

definition ofPlane

TopologyByExample.DeletedRadius.ofPlane

The point of DeletedRadius over a point of the plane.

def ofPlane (q : ℝ × ℝ) : DeletedRadius
:= DeletedDiscPlane.ofPlane q

theorem continuous_toPlane

TopologyByExample.DeletedRadius.continuous_toPlane

The topology is finer than the Euclidean one: the map to the Euclidean plane is continuous.

theorem continuous_toPlane : Continuous toPlane
Proof
:= DeletedDiscPlane.continuous_toPlane

On this site: Deleted radius topology: The topology is finer than the Euclidean topology

theorem continuous_line

TopologyByExample.DeletedRadius.continuous_line

Lines that are not horizontal carry their Euclidean topology: for v.2 ≠ 0 the map t ↦ p + t • v into DeletedRadius is continuous.

theorem continuous_line (p : ℝ × ℝ) {v : ℝ × ℝ} (hv : v.2 ≠ 0) :
    Continuous fun t : ℝ ↦ ofPlane (p + t • v)
Proof
:=
  DeletedDiscPlane.continuous_line zero_notMem add_notMem p hv

On this site: Deleted radius topology: Lines that are not horizontal are continuous

instance

The deleted radius topology is Hausdorff.

instance : T2Space DeletedRadius
Proof
:= inferInstanceAs (T2Space (DeletedDiscPlane _))

theorem submetrizableSpace

TopologyByExample.DeletedRadius.submetrizableSpace

The deleted radius topology is submetrizable: it is finer than the Euclidean one.

theorem submetrizableSpace : SubmetrizableSpace DeletedRadius
Proof
:=
  DeletedDiscPlane.submetrizableSpace

On this site: Deleted radius topology is submetrizable

theorem separableSpace

TopologyByExample.DeletedRadius.separableSpace

The deleted radius topology is separable: the points with rational coordinates are dense.

theorem separableSpace : SeparableSpace DeletedRadius
Proof
:=
  DeletedDiscPlane.separableSpace

On this site: Deleted radius topology is separable

theorem firstCountableTopology

TopologyByExample.DeletedRadius.firstCountableTopology

The deleted radius topology is first countable.

theorem firstCountableTopology : FirstCountableTopology DeletedRadius
Proof
:=
  DeletedDiscPlane.firstCountableTopology zero_notMem add_notMem

On this site: Deleted radius topology is first countable

theorem baireSpace

TopologyByExample.DeletedRadius.baireSpace

The deleted radius topology is a Baire space: every nonempty open set contains a nonempty Euclidean open set.

theorem baireSpace : BaireSpace DeletedRadius
Proof
:=
  DeletedDiscPlane.baireSpace

On this site: Deleted radius topology is a Baire space

theorem pathPreconnectedSpace

TopologyByExample.DeletedRadius.pathPreconnectedSpace

The deleted radius topology is path connected.

theorem pathPreconnectedSpace : PathPreconnectedSpace DeletedRadius
Proof
:=
  DeletedDiscPlane.pathPreconnectedSpace zero_notMem add_notMem

On this site: Deleted radius topology is path connected

theorem locallyPathConnectedSpace

TopologyByExample.DeletedRadius.locallyPathConnectedSpace

The deleted radius topology is locally path connected: its basic neighbourhoods are path connected.

theorem locallyPathConnectedSpace : LocallyPathConnectedSpace DeletedRadius
Proof
:=
  DeletedDiscPlane.locallyPathConnectedSpace zero_notMem add_notMem

theorem not_semiregularSpace

TopologyByExample.DeletedRadius.not_semiregularSpace

The deleted radius topology is not semiregular.

theorem not_semiregularSpace : ¬SemiregularSpace DeletedRadius
Proof
:=
  DeletedDiscPlane.not_semiregularSpace zero_notMem add_notMem fun ε hε ↦
    ⟨ε / 2, half_pos hε, by rw [abs_of_pos (half_pos hε)]; linarith⟩

On this site: Deleted radius topology is not semiregular

theorem not_pseudocompactSpace

TopologyByExample.DeletedRadius.not_pseudocompactSpace

The deleted radius topology is not pseudocompact: the first coordinate is an unbounded continuous function.

theorem not_pseudocompactSpace : ¬PseudocompactSpace DeletedRadius
Proof
:=
  DeletedDiscPlane.not_pseudocompactSpace

On this site: Deleted radius topology is not pseudocompact

Hereditary Lindelöfness

theorem isOpen_nbhd_diff

TopologyByExample.DeletedRadius.isOpen_nbhd_diff

A basic neighbourhood with its centre removed is open in the Euclidean plane: it is the disc without the closed horizontal ray to the right of the centre.

theorem isOpen_nbhd_diff (p : ℝ × ℝ) (r : ℝ) : IsOpen (nbhd (Ioi (0 : ℝ)) p r \ {p})
Proof
:= by
  have : nbhd (Ioi (0 : ℝ)) p r \ {p} = disc p r ∩ ({z | z.2 ≠ p.2} ∪ {z | z.1 < p.1}) := by
    ext z
    constructor
    · rintro ⟨⟨hd, hz⟩, hne⟩
      refine ⟨hd, ?_⟩
      by_cases h2 : z.2 = p.2
      · right
        rcases lt_trichotomy z.1 p.1 with h | h | h
        · exact h
        · exact absurd (Prod.ext h h2) hne
        · exact absurd ⟨h2, show z.1 - p.1 ∈ Ioi (0 : ℝ) from sub_pos.2 h⟩ hz
      · exact Or.inl h2
    · rintro ⟨hd, h | h⟩
      · exact ⟨⟨hd, fun hz ↦ h hz.1⟩, fun hzp ↦ h (by rw [mem_singleton_iff.1 hzp])⟩
      · refine ⟨⟨hd, fun hz ↦ ?_⟩, fun hzp ↦ ?_⟩
        · have := hz.2
          simp only [mem_Ioi, sub_pos] at this
          exact lt_asymm this h
        · rw [mem_singleton_iff.1 hzp] at h
          exact lt_irrefl p.1 h
  rw [this]
  exact (isOpen_disc p r).inter ((isOpen_ne_fun continuous_snd continuous_const).union
    (isOpen_lt continuous_fst continuous_const))

theorem mem_disc_of_dist_lt

TopologyByExample.DeletedRadius.mem_disc_of_dist_lt

Two points within maximum distance ρ / 2 lie in each other's discs of radius ρ.

theorem mem_disc_of_dist_lt {z w : ℝ × ℝ} {ρ r : ℝ} (hρr : ρ ≤ r) (h : dist z w < ρ / 2) :
    w ∈ disc z r
Proof
:= by
  rw [Prod.dist_eq, Real.dist_eq, Real.dist_eq] at h
  have h1 := abs_lt.1 ((le_max_left _ _).trans_lt h)
  have h2 := abs_lt.1 ((le_max_right _ _).trans_lt h)
  simp only [disc, mem_ofPred_eq]
  nlinarith

theorem hereditarilyLindelofSpace

TopologyByExample.DeletedRadius.hereditarilyLindelofSpace

The deleted radius topology is hereditarily Lindelöf. Given a cover of a set by open sets U i, countably many of the Euclidean interiors of the U i cover their union, since the Euclidean plane is second countable. The remaining points z, each with a basic neighbourhood of radius r z inside some U i, are countable: if two of them were within min (r z) (r z') / 2 of each other, each would lie in the other's disc, and not in its Euclidean interior part, so on its deleted radius; then each would lie to the right of the other.

theorem hereditarilyLindelofSpace : HereditarilyLindelofSpace DeletedRadius
Proof
:= by
  let S := Ioi (0 : ℝ)
  refine ⟨fun s _ ↦ isLindelof_of_countable_subcover fun {ι} U hU hsU ↦ ?_⟩
  set E : ι → Set (ℝ × ℝ) := fun i ↦ interior (DeletedDiscPlane.ofPlane ⁻¹' U i)
  obtain ⟨T₀, hT₀, hT₀E⟩ := isOpen_iUnion_countable E fun i ↦ isOpen_interior
  have hcov : ∀ z ∈ s, ∃ i, ∃ r > 0,
      (DeletedDiscPlane.ofPlane '' nbhd S (DeletedDiscPlane.toPlane z) r : Set DeletedRadius) ⊆
        U i := by
    intro z hz
    obtain ⟨i, hi⟩ := mem_iUnion.1 (hsU hz)
    obtain ⟨r, hr, hrU⟩ := hU i z hi
    exact ⟨i, r, hr, hrU⟩
  rcases s.eq_empty_or_nonempty with rfl | ⟨z₀, hz₀⟩
  · exact ⟨∅, countable_empty, empty_subset _⟩
  have : Nonempty ι := ⟨(hcov z₀ hz₀).choose⟩
  choose! f r hr hsub using hcov
  set R := {z ∈ s | DeletedDiscPlane.toPlane z ∉ ⋃ i, E i}
  -- the points of `R` lie in no deleted punctured neighbourhood of another one
  have key : ∀ z ∈ R, ∀ w ∈ R, w ≠ z →
      DeletedDiscPlane.toPlane w ∉ nbhd S (DeletedDiscPlane.toPlane z) (r z) := by
    intro z hz w hw hne hwz
    refine hw.2 (mem_iUnion.2 ⟨f z, interior_maximal ?_ (isOpen_nbhd_diff _ _) ⟨hwz, ?_⟩⟩)
    · intro q hq
      exact hsub z hz.1 ⟨q, hq.1, rfl⟩
    · exact fun h ↦ hne (DeletedDiscPlane.toPlane_injective h)
  have hR : R.Countable := by
    have hRU : R = ⋃ n : ℕ, {z ∈ R | 1 / ((n : ℝ) + 1) < r z} := by
      ext z
      simp only [mem_iUnion, mem_sep_iff]
      refine ⟨fun hz ↦ ?_, fun ⟨_, hz, _⟩ ↦ hz⟩
      obtain ⟨n, hn⟩ := exists_nat_one_div_lt (hr z hz.1)
      exact ⟨n, hz, hn⟩
    rw [hRU]
    refine countable_iUnion fun n ↦ ?_
    set ρ : ℝ := 1 / ((n : ℝ) + 1)
    refine Set.PairwiseDisjoint.countable_of_isOpen
      (s := fun z : DeletedRadius ↦ Metric.ball (DeletedDiscPlane.toPlane z) (ρ / 4)) ?_
      (fun _ _ ↦ Metric.isOpen_ball)
      (fun _ _ ↦ ⟨_, Metric.mem_ball_self (by positivity)⟩)
    intro z hz w hw hne
    refine Set.disjoint_left.2 fun q hqz hqw ↦ ?_
    have hd : dist (DeletedDiscPlane.toPlane z) (DeletedDiscPlane.toPlane w) < ρ / 2 := by
      rw [Metric.mem_ball] at hqz hqw
      linarith [dist_triangle_left (DeletedDiscPlane.toPlane z) (DeletedDiscPlane.toPlane w) q]
    have hwz := key z hz.1 w hw.1 (Ne.symm hne)
    have hzw := key w hw.1 z hz.1 hne
    have h1 : DeletedDiscPlane.toPlane w ∈ deleted S (DeletedDiscPlane.toPlane z) := by
      by_contra h
      exact hwz ⟨mem_disc_of_dist_lt hz.2.le hd, h⟩
    have h2 : DeletedDiscPlane.toPlane z ∈ deleted S (DeletedDiscPlane.toPlane w) := by
      by_contra h
      exact hzw ⟨mem_disc_of_dist_lt hw.2.le (by rwa [dist_comm]), h⟩
    have a := h1.2
    have b := h2.2
    simp only [S, mem_Ioi, sub_pos] at a b
    exact lt_asymm a b
  refine ⟨T₀ ∪ f '' R, hT₀.union (hR.image f), fun z hz ↦ ?_⟩
  by_cases hzE : DeletedDiscPlane.toPlane z ∈ ⋃ i, E i
  · rw [← hT₀E] at hzE
    obtain ⟨i, hi, hzi⟩ := mem_iUnion₂.1 hzE
    have hzU : DeletedDiscPlane.toPlane z ∈ DeletedDiscPlane.ofPlane ⁻¹' U i := interior_subset hzi
    exact mem_iUnion₂.2 ⟨i, Or.inl hi, hzU⟩
  · refine mem_iUnion₂.2 ⟨f z, Or.inr ⟨z, ⟨hz, hzE⟩, rfl⟩, hsub z hz ⟨_, ?_, rfl⟩⟩
    exact mem_nbhd_self zero_notMem _ (hr z hz)

On this site: Deleted radius topology is hereditarily Lindelöf

Second countability and σ-compactness

theorem not_secondCountableTopology

TopologyByExample.DeletedRadius.not_secondCountableTopology

The deleted radius topology is not second countable: distinct points (x, 0) and (y, 0) of the x-axis cannot share a basic open set inside their basic neighbourhoods of radius 1, for then each would lie to the left of the other (or on its deleted radius).

theorem not_secondCountableTopology : ¬SecondCountableTopology DeletedRadius
Proof
:= by
  intro h
  obtain ⟨b, hbc, -, hb⟩ := exists_countable_basis DeletedRadius
  have : ∀ x : ℝ, ∃ B ∈ b, ofPlane (x, 0) ∈ B ∧
      B ⊆ (DeletedDiscPlane.ofPlane '' nbhd (Ioi (0 : ℝ)) (x, 0) 1 : Set DeletedRadius) :=
    fun x ↦ hb.exists_subset_of_mem_open ⟨(x, 0), mem_nbhd_self zero_notMem _ one_pos, rfl⟩
      (isOpen_nbhd add_notMem (x, 0) 1)
  choose B hBb hxB hBsub using this
  have hle : ∀ x y : ℝ, B x = B y → y ≤ x := by
    intro x y hxy
    obtain ⟨w, hw, hw'⟩ := hBsub x (hxy ▸ hxB y)
    have hw'' : w = (y, 0) := hw'
    subst hw''
    by_contra hlt
    exact hw.2 ⟨rfl, by simpa using hlt⟩
  have hinj : InjOn B univ := fun x _ y _ hxy ↦ le_antisymm (hle y x hxy.symm) (hle x y hxy)
  exact Cardinal.not_countable_real
    (Set.MapsTo.countable_of_injOn (f := B) (s := univ) (t := b) (fun x _ ↦ hBb x) hinj hbc)

On this site: Deleted radius topology is not second countable

theorem interior_eq_empty_of_isCompact

TopologyByExample.DeletedRadius.interior_eq_empty_of_isCompact

Compact sets have empty interior. A compact set with nonempty interior would contain a basic neighbourhood of radius r at some p, hence the closed horizontal segment from (p.1 - r / 2, p.2) to p, which would then be compact. But the open sets {z | a + 1 / (k + 1) < z.1} and the basic neighbourhood of radius 1 at the left end (a, p.2) cover the segment, and no finitely many of them do: points of the segment just to the right of (a, p.2) lie on its deleted radius.

theorem interior_eq_empty_of_isCompact {K : Set DeletedRadius} (hK : IsCompact K) :
    interior K = ∅
Proof
:= by
  let S := Ioi (0 : ℝ)
  refine eq_empty_of_forall_notMem fun p hp ↦ ?_
  obtain ⟨r, hr, hrK⟩ :=
    (hasBasis_nhds (S := S) zero_notMem add_notMem p).mem_iff.1 (mem_interior_iff_mem_nhds.1 hp)
  set c := (DeletedDiscPlane.toPlane p).2
  set a := (DeletedDiscPlane.toPlane p).1 - r / 2
  set L : Set DeletedRadius :=
    DeletedDiscPlane.toPlane ⁻¹' {z | z.2 = c ∧ a ≤ z.1 ∧ z.1 ≤ (DeletedDiscPlane.toPlane p).1}
  have hLK : L ⊆ K := by
    intro z hz
    refine hrK ⟨DeletedDiscPlane.toPlane z, ⟨?_, ?_⟩, rfl⟩
    · obtain ⟨h2, ha, hp1⟩ := hz
      simp only [disc, mem_ofPred_eq, h2, c, sub_self]
      simp only [a] at ha
      nlinarith
    · rintro ⟨-, h⟩
      have := hz.2.2
      simp only [S, mem_Ioi, sub_pos] at h
      linarith
  have hLc : IsClosed L := by
    refine IsClosed.preimage continuous_toPlane ?_
    exact (isClosed_eq continuous_snd continuous_const).inter
      ((isClosed_le continuous_const continuous_fst).inter
        (isClosed_le continuous_fst continuous_const))
  have hL := hK.of_isClosed_subset hLc hLK
  set U : ℕ → Set DeletedRadius := fun k ↦
    (DeletedDiscPlane.ofPlane '' nbhd S (a, c) 1 : Set DeletedRadius) ∪
      DeletedDiscPlane.toPlane ⁻¹' {z | a + 1 / ((k : ℝ) + 1) < z.1}
  have hUo : ∀ k, IsOpen (U k) := fun k ↦ (isOpen_nbhd add_notMem _ 1).union
    (DeletedDiscPlane.isOpen_preimage_toPlane (isOpen_lt continuous_const continuous_fst))
  have hLU : L ⊆ ⋃ k, U k := by
    intro z hz
    rcases eq_or_lt_of_le hz.2.1 with h | h
    · refine mem_iUnion.2 ⟨0, Or.inl ⟨(a, c), mem_nbhd_self zero_notMem _ one_pos, ?_⟩⟩
      exact DeletedDiscPlane.toPlane_injective (Prod.ext h hz.1.symm)
    · obtain ⟨k, hk⟩ := exists_nat_one_div_lt (sub_pos.2 h)
      exact mem_iUnion.2 ⟨k, Or.inr (show a + 1 / ((k : ℝ) + 1) < _ by linarith)⟩
  obtain ⟨t, ht⟩ := hL.elim_finite_subcover U hUo hLU
  set N := t.sup id
  set δ := min (1 / ((N : ℝ) + 1)) (r / 2)
  have hδ : 0 < δ := lt_min Nat.one_div_pos_of_nat (half_pos hr)
  have hzL : (DeletedDiscPlane.ofPlane (a + δ, c) : DeletedRadius) ∈ L :=
    ⟨rfl, by simp only [DeletedDiscPlane.toPlane_ofPlane]; linarith, by
      simp only [DeletedDiscPlane.toPlane_ofPlane, a]
      linarith [min_le_right (1 / ((N : ℝ) + 1)) (r / 2)]⟩
  obtain ⟨k, hk, hzk⟩ := mem_iUnion₂.1 (ht hzL)
  rcases hzk with ⟨w, hw, hw'⟩ | hzk
  · have hw'' : w = (a + δ, c) := hw'
    subst hw''
    exact hw.2 ⟨rfl, by simpa [S] using hδ⟩
  · have hkN : (k : ℝ) ≤ N := by exact_mod_cast Finset.le_sup (f := id) hk
    have h1 : 1 / ((N : ℝ) + 1) ≤ 1 / ((k : ℝ) + 1) :=
      one_div_le_one_div_of_le (by positivity) (by linarith)
    have h2 : δ ≤ 1 / ((N : ℝ) + 1) := min_le_left _ _
    have : a + 1 / ((k : ℝ) + 1) < a + δ := hzk
    linarith

On this site: Deleted radius topology: Compact sets have empty interior

theorem not_sigmaCompactSpace

TopologyByExample.DeletedRadius.not_sigmaCompactSpace

The deleted radius topology is not σ-compact: it is a nonempty Baire space, so if it were a countable union of compact sets, which are closed since it is Hausdorff, one of them would have nonempty interior.

theorem not_sigmaCompactSpace : ¬SigmaCompactSpace DeletedRadius
Proof
:= by
  intro h
  have := baireSpace
  obtain ⟨n, hn⟩ := nonempty_interior_of_iUnion_of_closed
    (fun n ↦ (isCompact_compactCovering DeletedRadius n).isClosed)
    (iUnion_compactCovering DeletedRadius)
  rw [interior_eq_empty_of_isCompact (isCompact_compactCovering DeletedRadius n)] at hn
  exact not_nonempty_empty hn

On this site: Deleted radius topology is not σ-compact