Lean library · module TopologyByExample.Spaces.BingCardinality

Cardinalities and local bases in Bing's examples

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 cardinality

TopologyByExample.BingExampleG.cardinality

The full space has the cardinality of the double power set of the reals.

theorem cardinality : #Space = 2 ^ ((2 : Cardinal) ^ 𝔠)
Proof
:= by
  let e : Space ≃ Set (Set ℝ) := ⟨Space.support, Space.mk, fun _ ↦ rfl, fun _ ↦ rfl⟩
  simpa [mk_real] using Cardinal.mk_congr e

theorem not_cardinality_atMost

TopologyByExample.BingExampleG.not_cardinality_atMost

Bing's full space exceeds the book's largest cardinality bound.

theorem not_cardinality_atMost : ¬ #Space ≤ 2 ^ 𝔠
Proof
:= by
  rw [cardinality]
  exact (cantor _).not_ge

On this site: Bing's Example G does not have cardinality at most \(2^{\mathfrak{c}}\)

definition finitePoint

TopologyByExample.BingExampleG.finitePoint

A finite support, considered as a point of Michael's subspace.

def finitePoint (f : Finset Coord) : Michael
:= ⟨⟨↑f⟩, Or.inr f.finite_toSet⟩

theorem sum_surjective

TopologyByExample.BingExampleG.sum_surjective

Every point in Michael's space is principal or has a finite support.

theorem sum_surjective : Function.Surjective (Sum.elim mPoint finitePoint)
Proof
:= by
  classical
  intro x
  rcases x.property with ⟨r, hr⟩ | hf
  · exact ⟨Sum.inl r, Subtype.ext hr⟩
  · exact ⟨Sum.inr hf.toFinset, Subtype.ext (Space.ext hf.coe_toFinset)⟩

theorem singleton_support_injective

TopologyByExample.BingExampleG.singleton_support_injective

A singleton support determines its unique coordinate.

theorem singleton_support_injective : Function.Injective
    (fun q : Coord ↦ finitePoint {q})
Proof
:= by
  intro q r h
  have h' := congrArg (fun x : Michael ↦ x.val.support) h
  simpa [finitePoint] using h'

theorem michael_cardinality

TopologyByExample.BingExampleG.michael_cardinality

Michael's space has cardinality two to the continuum.

theorem michael_cardinality : #Michael = 2 ^ 𝔠
Proof
:= by
  apply le_antisymm
  · have h := mk_le_of_surjective sum_surjective
    have hc : #Coord = 2 ^ 𝔠 := by simp [Coord, mk_real]
    simp only [mk_sum, mk_real, mk_finset_of_infinite, hc, lift_id] at h
    rw [
      add_eq_right (aleph0_le_continuum.trans (cantor 𝔠).le) (cantor 𝔠).le] at h
    exact h
  · simpa [Coord, mk_real] using mk_le_of_injective singleton_support_injective

theorem michael_not_cardinality_continuum

TopologyByExample.BingExampleG.michael_not_cardinality_continuum

Michael's space does not have cardinality continuum.

theorem michael_not_cardinality_continuum : #Michael ≠ 𝔠
Proof
:= by
  rw [michael_cardinality]
  exact (cantor 𝔠).ne'

On this site: Michael's subspace of Bing's Example G does not have cardinality equal to \(\mathfrak{c}\)

theorem michael_cardinality_atMost

TopologyByExample.BingExampleG.michael_cardinality_atMost

Michael's space satisfies the upper cardinality bound in the charts.

theorem michael_cardinality_atMost : #Michael ≤ 2 ^ 𝔠
Proof
:= michael_cardinality.le

On this site: Michael's subspace of Bing's Example G has cardinality at most \(2^{\mathfrak{c}}\)

theorem michael_not_firstCountableTopology

TopologyByExample.BingExampleG.michael_not_firstCountableTopology

Countably many finite coordinate restrictions cannot form a local basis at a principal point.

theorem michael_not_firstCountableTopology : ¬ FirstCountableTopology Michael
Proof
:= by
  classical
  intro h
  let := h
  obtain ⟨U, hU⟩ := (𝓝 (mPoint 0)).exists_antitone_basis
  have hb (n : ℕ) := (nhds_mPoint 0).mem_iff.1 (hU.mem n)
  choose f _ hf using hb
  have hc : (⋃ n, (f n : Set Coord)).Countable :=
    countable_iUnion fun n ↦ (f n).finite_toSet.countable
  obtain ⟨q, hq, hqf⟩ : ∃ q ∈ (point 0).support, q ∉ ⋃ n, (f n : Set Coord) := by
    by_contra hn
    push Not at hn
    exact not_countable_support_point 0 (hc.mono hn)
  have hn : (Subtype.val ⁻¹' yes q : Set Michael) ∈ 𝓝 (mPoint 0) :=
    ((isClopen_yes q).isOpen.preimage continuous_subtypeVal).mem_nhds hq
  obtain ⟨n, -, hn⟩ := hU.toHasBasis.mem_iff.1 hn
  have hy := hn (hf n (truncate_mem_cyl (point 0) (f := f n) (Finset.Subset.refl _)))
  exact hqf (mem_iUnion.2 ⟨n, hy.2⟩)

On this site: Michael's subspace of Bing's Example G is not first countable

theorem not_firstCountableTopology

TopologyByExample.BingExampleG.not_firstCountableTopology

The full space is not first countable, since Michael's subspace is not.

theorem not_firstCountableTopology : ¬ FirstCountableTopology Space
Proof
:= by
  intro h
  let := h
  exact michael_not_firstCountableTopology
    (firstCountableTopology_induced Michael Space Subtype.val)

On this site: Bing's Example G is not first countable