Lean library · module TopologyByExample.Theorems.CccSigmaLocallyFiniteBase

Countability of sigma-locally finite bases

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
variable {X : Type*} [TopologicalSpace X] [SigmaLocallyFiniteBase X]

theorem secondCountableTopology_of_countable_layers

TopologyByExample.secondCountableTopology_of_countable_layers

private theorem secondCountableTopology_of_countable_layers
    (h : ∀ S : Set (Set X), LocallyFinite (fun s : S ↦ (s : Set X)) →
      (∀ s : S, IsOpen (s : Set X)) → {s : S | (s : Set X).Nonempty}.Countable) :
    SecondCountableTopology X
Proof
:= by
  obtain ⟨B, hB, hlf⟩ := SigmaLocallyFiniteBase.exists_basis (X := X)
  have hc (n : ℕ) : (Subtype.val '' {b : B n | (b : Set X).Nonempty}).Countable :=
    (h (B n) (hlf n) (fun b ↦ hB.isOpen (mem_iUnion.2 ⟨n, b.property⟩))).image _
  apply hB.sdiff_empty.secondCountableTopology
  apply (countable_iUnion hc).mono
  rintro s ⟨hs, hne⟩
  obtain ⟨n, hn⟩ := mem_iUnion.1 hs
  exact mem_iUnion.2 ⟨n, ⟨⟨s, hn⟩, ne_empty_iff_nonempty.1 hne, rfl⟩⟩

theorem secondCountableTopology_of_sigmaLocallyFiniteBase_of_ccc

TopologyByExample.secondCountableTopology_of_sigmaLocallyFiniteBase_of_ccc

The countable chain condition makes a sigma-locally finite base countable.

theorem secondCountableTopology_of_sigmaLocallyFiniteBase_of_ccc
    (hccc : ∀ S : Set (Set X), (∀ s ∈ S, IsOpen s ∧ s.Nonempty) → S.PairwiseDisjoint id →
      S.Countable) : SecondCountableTopology X
Proof
:=
  secondCountableTopology_of_countable_layers fun _ hlf hopen ↦
    hlf.countable_nonempty_of_ccc hccc hopen

On this site: Theorem: A σ-locally finite base in a space with the countable chain condition is countable

theorem secondCountableTopology_of_sigmaLocallyFiniteBase_of_countablyCompactSpace

TopologyByExample.secondCountableTopology_of_sigmaLocallyFiniteBase_of_countablyCompactSpace

A countably compact space with a sigma-locally finite base is second countable.

theorem secondCountableTopology_of_sigmaLocallyFiniteBase_of_countablyCompactSpace
    [CountablyCompactSpace X] : SecondCountableTopology X
Proof
:=
  secondCountableTopology_of_countable_layers fun _ hlf _ ↦
    hlf.finite_nonempty_of_countablyCompactSpace.countable

On this site: Theorem: Countably compact spaces with a σ-locally finite base are second countable

theorem secondCountableTopology_of_sigmaLocallyFiniteBase_of_separableSpace

TopologyByExample.secondCountableTopology_of_sigmaLocallyFiniteBase_of_separableSpace

A separable space with a sigma-locally finite base is second countable.

theorem secondCountableTopology_of_sigmaLocallyFiniteBase_of_separableSpace
    [SeparableSpace X] : SecondCountableTopology X
Proof
:=
  secondCountableTopology_of_sigmaLocallyFiniteBase_of_ccc countableChainCondition_of_separableSpace