Lean library · module TopologyByExample.Theorems.LuzinCH
The CH avoidance construction for Luzin subsets
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
definition ClosedNowhereDense
TopologyByExample.ClosedNowhereDense
Closed nowhere-dense subsets, used in the CH recursion.
def ClosedNowhereDense (X : Type*) [TopologicalSpace X]
:=
{F : Set X // IsClosed F ∧ IsNowhereDense F}
variable {X : Type} [TopologicalSpace X]
theorem cardinal_closedNowhereDense
TopologyByExample.LuzinCH.cardinal_closedNowhereDense
A second-countable topology has at most continuum many closed nowhere-dense sets.
theorem cardinal_closedNowhereDense [SecondCountableTopology X] :
#(ClosedNowhereDense X) ≤ 𝔠
Proof
:= by
obtain ⟨B, hBc, _, hB⟩ := exists_countable_basis X
let : Countable B := hBc.to_subtype
let code : ClosedNowhereDense X → Set B := fun F ↦ {b | (b : Set X) ⊆ F.valᶜ}
have hi : Function.Injective code := by
intro F G he
apply Subtype.ext
apply compl_injective
apply hB.eq_of_forall_subset_iff F.property.1.isOpen_compl G.property.1.isOpen_compl
intro U hU
exact Set.ext_iff.mp he ⟨U, hU⟩
calc
#(ClosedNowhereDense X) ≤ #(Set B) := Cardinal.mk_le_of_injective hi
_ = 2 ^ #B := Cardinal.mk_set
_ ≤ 2 ^ ℵ₀ := Cardinal.power_le_power_left two_ne_zero Cardinal.mk_le_aleph0
_ = 𝔠 := Cardinal.two_power_aleph0
theorem exists_enumeration
TopologyByExample.LuzinCH.exists_enumeration
CH supplies an omega-one-indexed enumeration of the closed nowhere-dense sets.
theorem exists_enumeration [SecondCountableTopology X] (hCH : continuum.{0} = aleph 1) :
∃ F : OmegaOne → ClosedNowhereDense X, Function.Surjective F
Proof
:= by
have hn : Nonempty (ClosedNowhereDense X) := ⟨⟨∅, isClosed_empty, by simp [IsNowhereDense]⟩⟩
let := hn
have hc : #(ClosedNowhereDense X) ≤ #OmegaOne := by
rw [OrdinalCardinalities.omegaOne, ← hCH]
exact cardinal_closedNowhereDense
obtain ⟨e⟩ := hc
exact ⟨Function.invFun e, (Function.leftInverse_invFun e.injective).surjective⟩
theorem isMeagre_of_countable
TopologyByExample.LuzinCH.isMeagre_of_countable
Countable subsets of a perfect T1 space are meagre.
theorem isMeagre_of_countable [T1Space X] [PerfectSpace X] {S : Set X}
(hS : S.Countable) : IsMeagre S
Proof
:= by
have he : S = ⋃ x ∈ S, ({x} : Set X) := by simp
rw [he]
apply isMeagre_biUnion hS
intro x _
apply IsNowhereDense.isMeagre
change interior (closure {x}) = ∅
rw [closure_singleton, interior_singleton]
theorem exists_avoiding
TopologyByExample.LuzinCH.exists_avoiding
Each countable stage can avoid all forbidden closed sets and all earlier points.
theorem exists_avoiding [T1Space X] [PerfectSpace X] [BaireSpace X] [Nonempty X]
(F : OmegaOne → ClosedNowhereDense X) (a : OmegaOne)
(old : ∀ b, b < a → X) :
∃ x : X, (∀ b ≤ a, x ∉ (F b).val) ∧ ∀ b (hb : b < a), x ≠ old b hb
Proof
:= by
let : Countable (Iic a) := (OmegaOne.countable_Iic a).to_subtype
let : Countable (Iio a) := (OmegaOne.countable_Iio a).to_subtype
let M : Set X := (⋃ b : Iic a, (F b).val) ∪ range (fun b : Iio a ↦ old b b.property)
have hM : IsMeagre M :=
(isMeagre_iUnion fun b : Iic a ↦ (F b).property.2.isMeagre).union
(isMeagre_of_countable (countable_range _))
have hne : Mᶜ.Nonempty := by
by_contra h
have he : M = Set.univ := eq_univ_iff_forall.mpr fun x ↦ by
by_contra hx
exact h ⟨x, hx⟩
exact not_isMeagre_of_isOpen isOpen_univ univ_nonempty (he ▸ hM)
obtain ⟨x, hx⟩ := hne
refine ⟨x, ?_, ?_⟩
· intro b hb hf
exact hx (Or.inl (mem_iUnion.mpr ⟨⟨b, hb⟩, hf⟩))
· intro b hb he
exact hx (Or.inr ⟨⟨b, hb⟩, he.symm⟩)
definition sequence
TopologyByExample.LuzinCH.sequence
The transfinite choice sequence for a fixed enumeration.
def sequence [T1Space X] [PerfectSpace X] [BaireSpace X] [Nonempty X]
(F : OmegaOne → ClosedNowhereDense X) : OmegaOne → X
:=
wellFounded_lt.fix fun a old ↦ (exists_avoiding F a old).choose
theorem sequence_spec
TopologyByExample.LuzinCH.sequence_spec
At each stage the recursion avoids the preceding closed sets and points.
theorem sequence_spec [T1Space X] [PerfectSpace X] [BaireSpace X] [Nonempty X]
(F : OmegaOne → ClosedNowhereDense X) (a : OmegaOne) :
(∀ b ≤ a, sequence F a ∉ (F b).val) ∧ ∀ b < a, sequence F a ≠ sequence F b
Proof
:= by
rw [sequence, WellFounded.fix_eq]
exact (exists_avoiding F a (fun b _ ↦ sequence F b)).choose_spec
theorem sequence_injective
TopologyByExample.LuzinCH.sequence_injective
The avoidance sequence has distinct values.
theorem sequence_injective [T1Space X] [PerfectSpace X] [BaireSpace X] [Nonempty X]
(F : OmegaOne → ClosedNowhereDense X) : Function.Injective (sequence F)
Proof
:= by
intro a b he
rcases lt_trichotomy a b with h | h | h
· exact False.elim ((sequence_spec F b).2 a h he.symm)
· exact h
· exact False.elim ((sequence_spec F a).2 b h he)
theorem isLuzinSet_range_of_avoidance
TopologyByExample.LuzinCH.isLuzinSet_range_of_avoidance
An injective sequence eventually avoiding every closed nowhere-dense set has Luzin range.
theorem isLuzinSet_range_of_avoidance
(F : OmegaOne → ClosedNowhereDense X) (hF : Function.Surjective F)
(x : OmegaOne → X) (hx : Function.Injective x)
(ha : ∀ a b, b ≤ a → x a ∉ (F b).val) :
IsLuzinSet (range x)
Proof
:= by
have hc : ∀ N : ClosedNowhereDense X, (range x ∩ N.val).Countable := by
intro N
obtain ⟨b, rfl⟩ := hF N
apply ((OmegaOne.countable_Iio b).image x).mono
rintro y ⟨⟨a, rfl⟩, hmem⟩
refine ⟨a, ?_, rfl⟩
exact lt_of_not_ge fun hba ↦ ha a b hba hmem
constructor
· intro h
apply not_countable_univ (α := OmegaOne)
apply countable_of_injective_of_countable_image hx.injOn
simpa only [image_univ] using h
· intro M hM
obtain ⟨S, hS, hSc, hcover⟩ := isMeagre_iff_countable_union_isNowhereDense.mp hM
have hcount : (⋃ N ∈ S, range x ∩ closure N).Countable := by
apply hSc.biUnion
intro N hN
exact hc ⟨closure N, isClosed_closure, (hS N hN).closure⟩
apply hcount.mono
rintro x ⟨hx, hxM⟩
obtain ⟨N, hNS, hxN⟩ := hcover hxM
exact mem_iUnion.mpr ⟨N, mem_iUnion.mpr ⟨hNS, hx, subset_closure hxN⟩⟩
theorem isLuzinSet_range
TopologyByExample.LuzinCH.isLuzinSet_range
A surjective enumeration produces a Luzin subset.
theorem isLuzinSet_range [T1Space X] [PerfectSpace X] [BaireSpace X] [Nonempty X]
(F : OmegaOne → ClosedNowhereDense X) (hF : Function.Surjective F) :
IsLuzinSet (range (sequence F))
Proof
:=
isLuzinSet_range_of_avoidance F hF (sequence F) (sequence_injective F)
(fun a b hba ↦ (sequence_spec F a).1 b hba)
theorem exists_isLuzinSet
TopologyByExample.LuzinCH.exists_isLuzinSet
CH implies existence of a Luzin subset in every nonempty perfect second-countable T1 Baire space.
theorem exists_isLuzinSet [T1Space X] [PerfectSpace X] [BaireSpace X] [Nonempty X]
[SecondCountableTopology X] (hCH : continuum.{0} = aleph 1) :
∃ L : Set X, IsLuzinSet L
Proof
:= by
obtain ⟨F, hF⟩ := exists_enumeration (X := X) hCH
exact ⟨range (sequence F), isLuzinSet_range F hF⟩