Lean library · module TopologyByExample.Theorems.CardinalityBounds
Cardinal bounds from countability and separation
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]
theorem cardinal_mk_le_continuum_of_secondCountable_t0
TopologyByExample.cardinal_mk_le_continuum_of_secondCountable_t0
A second countable T0 space has cardinality at most continuum.
theorem cardinal_mk_le_continuum_of_secondCountable_t0
[SecondCountableTopology X] [T0Space X] : #X ≤ 𝔠
Proof
:= by
obtain ⟨b, hbc, _, hb⟩ := TopologicalSpace.exists_countable_basis X
let : Countable b := hbc.to_subtype
let f : X → Set b := fun x => {s | x ∈ (s : Set X)}
have hf : Function.Injective f := by
intro x y hxy
apply hb.eq_iff.mpr
intro s hs
exact Set.ext_iff.mp hxy ⟨s, hs⟩
calc
#X ≤ #(Set b) := mk_le_of_injective hf
_ = 2 ^ #b := mk_set
_ ≤ 2 ^ ℵ₀ := power_le_power_left two_ne_zero mk_le_aleph0
_ = 𝔠 := two_power_aleph0
On this site: Theorem: A cardinal upper bound from a countable base
theorem cardinalityAtMostTwoToContinuum_of_separable_t2
TopologyByExample.cardinalityAtMostTwoToContinuum_of_separable_t2
A separable Hausdorff space has cardinality at most two to continuum.
theorem cardinalityAtMostTwoToContinuum_of_separable_t2
[TopologicalSpace.SeparableSpace X] [T2Space X] : CardinalityAtMostTwoToContinuum X
Proof
:= by
obtain ⟨D, hDc, hDd⟩ := TopologicalSpace.exists_countable_dense X
let : Countable D := hDc.to_subtype
let f : X → Set (Set D) := fun x => {s | x ∈ closure (Subtype.val '' s)}
have hf : Function.Injective f := by
intro x y hxy
by_contra hne
obtain ⟨U, V, hU, hV, hxU, hyV, hUV⟩ := t2_separation hne
let s : Set D := Subtype.val ⁻¹' U
have hs : Subtype.val '' s = U ∩ D := by ext z; simp [s, and_comm]
have hx : s ∈ f x := by
change x ∈ closure (Subtype.val '' s)
rw [hs]
exact hDd.open_subset_closure_inter hU hxU
have hy : y ∈ closure (Subtype.val '' s) := (Set.ext_iff.mp hxy s).mp hx
obtain ⟨z, hzV, hz⟩ := mem_closure_iff.mp hy V hV hyV
rw [hs] at hz
exact Set.disjoint_left.mp hUV hz.1 hzV
change #X ≤ 2 ^ 𝔠
calc
#X ≤ #(Set (Set D)) := mk_le_of_injective hf
_ = (2 : Cardinal) ^ ((2 : Cardinal) ^ #D) := by rw [mk_set, mk_set]
_ ≤ (2 : Cardinal) ^ ((2 : Cardinal) ^ ℵ₀) := power_le_power_left two_ne_zero
(power_le_power_left two_ne_zero mk_le_aleph0)
_ = 2 ^ 𝔠 := by rw [two_power_aleph0]
On this site: Theorem: Every separable Hausdorff space has cardinality at most \(2^{\mathfrak{c}}\)
theorem cardinalityAtMostTwoToContinuum_of_secondCountable_t0
TopologyByExample.cardinalityAtMostTwoToContinuum_of_secondCountable_t0
The second countable T0 bound implies the larger chart bound.
theorem cardinalityAtMostTwoToContinuum_of_secondCountable_t0
[SecondCountableTopology X] [T0Space X] : CardinalityAtMostTwoToContinuum X
Proof
:=
cardinal_mk_le_continuum_of_secondCountable_t0.trans (cantor 𝔠).le
On this site: Theorem: Every second countable T₀ space has cardinality at most \(2^{\mathfrak{c}}\)
theorem cardinalityContinuum_of_secondCountable_t0_not_less
TopologyByExample.cardinalityContinuum_of_secondCountable_t0_not_less
A second countable T0 space not smaller than continuum has exactly that cardinality.
theorem cardinalityContinuum_of_secondCountable_t0_not_less
[SecondCountableTopology X] [T0Space X] (h : ¬ CardinalityLessThanContinuum X) :
CardinalityContinuum X
Proof
:=
le_antisymm cardinal_mk_le_continuum_of_secondCountable_t0 (not_lt.mp h)