Lean library · module TopologyByExample.Theorems.DiscreteExtentExamples
Uncountable closed discrete subsets in two product spaces
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 not_countableExtent_rationals_discrete_reals
TopologyByExample.not_countableExtent_rationals_discrete_reals
A fixed rational coordinate gives an uncountable closed discrete subspace.
theorem not_countableExtent_rationals_discrete_reals :
¬ ∀ s : Set (ℚ × WithDiscreteTopology ℝ), ¬ s.Countable → ∃ x, AccPt x (𝓟 s)
Proof
:= by
let : Uncountable (WithDiscreteTopology ℝ) := ⟨DiscreteReals.not_countable⟩
apply not_countableExtent_of_uncountable_closed_discrete
(f := fun x : WithDiscreteTopology ℝ ↦ ((0 : ℚ), x))
refine ⟨isEmbedding_prodMkRight 0, ?_⟩
have he : range (fun x : WithDiscreteTopology ℝ ↦ ((0 : ℚ), x)) =
{z : ℚ × WithDiscreteTopology ℝ | z.1 = 0} := by
ext z
simp only [mem_range, mem_ofPred_eq]
aesop
rw [he]
exact isClosed_eq continuous_fst continuous_const
On this site: The product of the rationals and the discrete reals does not have countable extent
theorem not_countableExtent
TopologyByExample.BaireMetricC.not_countableExtent
The constant sequences form an uncountable closed discrete subspace.
theorem BaireMetricC.not_countableExtent :
¬ ∀ s : Set BaireMetricC.Space, ¬ s.Countable → ∃ x, AccPt x (𝓟 s)
Proof
:= by
let : Uncountable (WithDiscreteTopology ℝ) := ⟨DiscreteReals.not_countable⟩
let f : WithDiscreteTopology ℝ → BaireMetricC.Space := fun x _ ↦ x
apply not_countableExtent_of_uncountable_closed_discrete (f := f)
have hleft : Function.LeftInverse (fun x : BaireMetricC.Space ↦ x 0) f := fun _ ↦ rfl
refine ⟨hleft.isEmbedding (continuous_apply 0) (continuous_pi fun _ ↦ continuous_id), ?_⟩
have he : range f = ⋂ n : ℕ, {x : BaireMetricC.Space | x n = x 0} := by
ext x
simp only [mem_range, mem_iInter, mem_ofPred_eq]
constructor
· rintro ⟨a, rfl⟩ n
rfl
· intro h
exact ⟨x 0, funext fun n ↦ (h n).symm⟩
rw [he]
exact isClosed_iInter fun n ↦ isClosed_eq (continuous_apply n) (continuous_apply 0)
On this site: The countable power of an uncountable discrete space does not have countable extent