Lean library · module TopologyByExample.Theorems.MetricSigmaBasis

Sigma-locally finite bases from small open covers

Source file

This file was written by Codex (OpenAI's AI model) working under the direction of David R. MacIver, who reviews it and is responsible for it.

Imports

theorem sigmaLocallyFiniteBase_of_small_covers

TopologyByExample.sigmaLocallyFiniteBase_of_small_covers

Locally finite open covers of arbitrarily small diameter form a sigma-locally finite basis.

theorem sigmaLocallyFiniteBase_of_small_covers {X : Type*} [PseudoMetricSpace X]
    (B : ℕ → Set (Set X)) (ho : ∀ n v, v ∈ B n → IsOpen v)
    (hc : ∀ n, ⋃₀ B n = univ)
    (hf : ∀ n, LocallyFinite (fun v : B n ↦ (v : Set X)))
    (hs : ∀ ε > (0 : ℝ), ∃ n, ∀ v ∈ B n, ∀ x ∈ v, ∀ y ∈ v, dist x y < ε) :
    SigmaLocallyFiniteBase X
Proof
:= by
  refine ⟨⟨B, isTopologicalBasis_of_isOpen_of_nhds ?_ ?_, hf⟩⟩
  · intro v hv
    obtain ⟨n, hn⟩ := mem_iUnion.1 hv
    exact ho n v hn
  · intro x u hxu hu
    obtain ⟨ε, hε, hball⟩ := Metric.isOpen_iff.1 hu x hxu
    obtain ⟨n, hn⟩ := hs ε hε
    have hx : x ∈ ⋃₀ B n := by rw [hc]; trivial
    obtain ⟨v, hv, hxv⟩ := mem_sUnion.1 hx
    refine ⟨v, mem_iUnion.2 ⟨n, hv⟩, hxv, fun y hyv ↦ hball ?_⟩
    exact hn v hv y hyv x hxv

theorem sigmaLocallyFiniteBase_of_pseudoMetricSpace

TopologyByExample.sigmaLocallyFiniteBase_of_pseudoMetricSpace

Every pseudometric space has a sigma-locally finite basis.

theorem sigmaLocallyFiniteBase_of_pseudoMetricSpace {X : Type*} [PseudoMetricSpace X] :
    SigmaLocallyFiniteBase X
Proof
:= by
  have hc (n : ℕ) : ∃ B : Set (Set X), (∀ v ∈ B, IsOpen v) ∧ ⋃₀ B = univ ∧
      LocallyFinite (fun v : B ↦ (v : Set X)) ∧
      ∀ v ∈ B, ∃ x : X, v ⊆ ball x (1 / ((n : ℝ) + 1)) := by
    obtain ⟨B, hBo, hB, hBf, hBU⟩ := paracompactSpace_iff_sets.1
      (inferInstance : ParacompactSpace X) (range fun x : X ↦ ball x (1 / ((n : ℝ) + 1)))
      (by rintro _ ⟨x, rfl⟩; exact isOpen_ball) (by
        apply eq_univ_of_forall
        intro x
        exact mem_sUnion.mpr ⟨_, mem_range_self x, mem_ball_self (by positivity)⟩)
    refine ⟨B, hBo, hB, hBf, ?_⟩
    intro v hv
    obtain ⟨_, ⟨x, rfl⟩, hx⟩ := hBU v hv
    exact ⟨x, hx⟩
  choose B hBo hB hBf hBU using hc
  apply sigmaLocallyFiniteBase_of_small_covers B hBo hB hBf
  intro ε hε
  obtain ⟨n, hn⟩ := exists_nat_one_div_lt (half_pos hε)
  refine ⟨n, ?_⟩
  intro v hv x hx y hy
  obtain ⟨z, hz⟩ := hBU n v hv
  have hxz := mem_ball.mp (hz hx)
  have hyz := mem_ball.mp (hz hy)
  have ht := dist_triangle x z y
  rw [dist_comm z y] at ht
  linarith

theorem sigmaLocallyFiniteBase_of_metrizableSpace

TopologyByExample.sigmaLocallyFiniteBase_of_metrizableSpace

Every metrizable space has a sigma-locally finite basis.

theorem sigmaLocallyFiniteBase_of_metrizableSpace {X : Type*} [TopologicalSpace X]
    [MetrizableSpace X] : SigmaLocallyFiniteBase X
Proof
:= by
  let := TopologicalSpace.metrizableSpaceMetric X
  exact sigmaLocallyFiniteBase_of_pseudoMetricSpace

On this site: Theorem: Metrizable spaces have sigma-locally finite bases