Lean library · module TopologyByExample.Theorems.LuzinSpecial
The paired construction of a special Luzin set
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.
variable {X : Type} [AddCommGroup X] [TopologicalSpace X] [IsTopologicalAddGroup X]
[T1Space X] [PerfectSpace X] [BaireSpace X]
omit [T1Space X] [PerfectSpace X] in
theorem exists_pair_outside
TopologyByExample.LuzinSpecial.exists_pair_outside
Every point is a sum of two points outside a prescribed meagre set.
theorem exists_pair_outside (M : Set X) (hM : IsMeagre M) (r : X) :
∃ x y : X, x + y = r ∧ x ∉ M ∧ y ∉ M
Proof
:= by
let e : X ≃ₜ X := Homeomorph.subLeft r
have he : IsMeagre (e '' M) := e.isEmbedding.isInducing.isMeagre_image hM
have hne : (M ∪ e '' M)ᶜ.Nonempty := by
by_contra h
have hu : M ∪ e '' 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 (hu ▸ hM.union he)
obtain ⟨x, hx⟩ := hne
refine ⟨x, r - x, by abel, fun hm ↦ hx (Or.inl hm), ?_⟩
intro hy
apply hx
right
exact ⟨r - x, hy, by dsimp [e]; abel⟩
theorem exists_pair_avoiding
TopologyByExample.LuzinSpecial.exists_pair_avoiding
The paired recursion can avoid all earlier forbidden sets and points.
theorem exists_pair_avoiding (F : OmegaOne → ClosedNowhereDense X)
(r : OmegaOne → X) (a : OmegaOne) (old : ∀ b, b < a → X × X) :
∃ p : X × X, p.1 + p.2 = r a ∧
(∀ b ≤ a, p.1 ∉ (F b).val ∧ p.2 ∉ (F b).val) ∧
∀ b (hb : b < a), p.1 ≠ (old b hb).1 ∧ p.1 ≠ (old b hb).2 ∧
p.2 ≠ (old b hb).1 ∧ p.2 ≠ (old b hb).2
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).1) ∪
range (fun b : Iio a ↦ (old b b.property).2))
have hM : IsMeagre M :=
(isMeagre_iUnion fun b : Iic a ↦ (F b).property.2.isMeagre).union
((LuzinCH.isMeagre_of_countable (countable_range _)).union
(LuzinCH.isMeagre_of_countable (countable_range _)))
obtain ⟨x, y, hxy, hx, hy⟩ := exists_pair_outside M hM (r a)
refine ⟨(x, y), hxy, ?_, ?_⟩
· intro b hb
exact ⟨fun hf ↦ hx (Or.inl (mem_iUnion.mpr ⟨⟨b, hb⟩, hf⟩)),
fun hf ↦ hy (Or.inl (mem_iUnion.mpr ⟨⟨b, hb⟩, hf⟩))⟩
· intro b hb
exact ⟨fun he ↦ hx (Or.inr (Or.inl ⟨⟨b, hb⟩, he.symm⟩)),
fun he ↦ hx (Or.inr (Or.inr ⟨⟨b, hb⟩, he.symm⟩)),
fun he ↦ hy (Or.inr (Or.inl ⟨⟨b, hb⟩, he.symm⟩)),
fun he ↦ hy (Or.inr (Or.inr ⟨⟨b, hb⟩, he.symm⟩))⟩
definition pairs
TopologyByExample.LuzinSpecial.pairs
The transfinite sequence of pairs with prescribed sums.
def pairs (F : OmegaOne → ClosedNowhereDense X) (r : OmegaOne → X) : OmegaOne → X × X
:=
wellFounded_lt.fix fun a old ↦ (exists_pair_avoiding F r a old).choose
theorem pairs_spec
TopologyByExample.LuzinSpecial.pairs_spec
Each pair has the prescribed sum and avoids the preceding forbidden sets and points.
theorem pairs_spec (F : OmegaOne → ClosedNowhereDense X) (r : OmegaOne → X)
(a : OmegaOne) :
(pairs F r a).1 + (pairs F r a).2 = r a ∧
(∀ b ≤ a, (pairs F r a).1 ∉ (F b).val ∧ (pairs F r a).2 ∉ (F b).val) ∧
∀ b < a, (pairs F r a).1 ≠ (pairs F r b).1 ∧
(pairs F r a).1 ≠ (pairs F r b).2 ∧
(pairs F r a).2 ≠ (pairs F r b).1 ∧
(pairs F r a).2 ≠ (pairs F r b).2
Proof
:= by
rw [pairs, WellFounded.fix_eq]
exact (exists_pair_avoiding F r a (fun b _ ↦ pairs F r b)).choose_spec
theorem first_injective
TopologyByExample.LuzinSpecial.first_injective
The first entries in the paired recursion are distinct.
theorem first_injective (F : OmegaOne → ClosedNowhereDense X) (r : OmegaOne → X) :
Function.Injective (fun a ↦ (pairs F r a).1)
Proof
:= by
intro a b he
rcases lt_trichotomy a b with h | h | h
· exact False.elim (((pairs_spec F r b).2.2 a h).1 he.symm)
· exact h
· exact False.elim (((pairs_spec F r a).2.2 b h).1 he)
theorem second_injective
TopologyByExample.LuzinSpecial.second_injective
The second entries in the paired recursion are distinct.
theorem second_injective (F : OmegaOne → ClosedNowhereDense X) (r : OmegaOne → X) :
Function.Injective (fun a ↦ (pairs F r a).2)
Proof
:= by
intro a b he
rcases lt_trichotomy a b with h | h | h
· exact False.elim (((pairs_spec F r b).2.2 a h).2.2.2 he.symm)
· exact h
· exact False.elim (((pairs_spec F r a).2.2 b h).2.2.2 he)
theorem isLuzinSet_union
TopologyByExample.LuzinSpecial.isLuzinSet_union
Both coordinate ranges together form a Luzin set.
theorem isLuzinSet_union (F : OmegaOne → ClosedNowhereDense X)
(hF : Function.Surjective F) (r : OmegaOne → X) :
IsLuzinSet (range (fun a ↦ (pairs F r a).1) ∪ range (fun a ↦ (pairs F r a).2))
Proof
:=
(LuzinCH.isLuzinSet_range_of_avoidance F hF _ (first_injective F r)
(fun a b hba ↦ ((pairs_spec F r a).2.1 b hba).1)).union
(LuzinCH.isLuzinSet_range_of_avoidance F hF _ (second_injective F r)
(fun a b hba ↦ ((pairs_spec F r a).2.1 b hba).2))
omit [PerfectSpace X] [BaireSpace X] in
theorem exists_pointEnumeration
TopologyByExample.LuzinSpecial.exists_pointEnumeration
Under CH the ambient points admit an omega-one enumeration.
theorem exists_pointEnumeration [SecondCountableTopology X]
(hCH : continuum.{0} = aleph 1) :
∃ r : OmegaOne → X, Function.Surjective r
Proof
:= by
have hc : #X ≤ #OmegaOne := by
rw [OrdinalCardinalities.omegaOne, ← hCH]
exact cardinal_mk_le_continuum_of_secondCountable_t0
obtain ⟨e⟩ := hc
exact ⟨Function.invFun e, (Function.leftInverse_invFun e.injective).surjective⟩
definition constructedSet
TopologyByExample.LuzinSpecial.constructedSet
The union of the two ranges in the paired recursion with chosen enumerations.
def constructedSet [SecondCountableTopology X] (hCH : continuum.{0} = aleph 1) : Set X
Definition
:=
let F := (LuzinCH.exists_enumeration (X := X) hCH).choose
let r := (exists_pointEnumeration (X := X) hCH).choose
range (fun a ↦ (pairs F r a).1) ∪ range (fun a ↦ (pairs F r a).2)
theorem constructedSet_spec
TopologyByExample.LuzinSpecial.constructedSet_spec
The directly constructed subset is Luzin and its sumset is the whole group.
theorem constructedSet_spec [SecondCountableTopology X] (hCH : continuum.{0} = aleph 1) :
IsLuzinSet (constructedSet (X := X) hCH) ∧
∀ z : X, ∃ x ∈ constructedSet hCH, ∃ y ∈ constructedSet hCH, x + y = z
Proof
:= by
let F := (LuzinCH.exists_enumeration (X := X) hCH).choose
let r := (exists_pointEnumeration (X := X) hCH).choose
have hF : Function.Surjective F := (LuzinCH.exists_enumeration hCH).choose_spec
have hr : Function.Surjective r := (exists_pointEnumeration hCH).choose_spec
refine ⟨isLuzinSet_union F hF r, ?_⟩
intro z
obtain ⟨a, rfl⟩ := hr z
exact ⟨(pairs F r a).1, Or.inl (mem_range_self a),
(pairs F r a).2, Or.inr (mem_range_self a), (pairs_spec F r a).1⟩
theorem exists_sum_surjective
TopologyByExample.LuzinSpecial.exists_sum_surjective
CH gives a Luzin subset whose sum with itself is the entire ambient group.
theorem exists_sum_surjective [SecondCountableTopology X]
(hCH : continuum.{0} = aleph 1) :
∃ L : Set X, IsLuzinSet L ∧ ∀ z : X, ∃ x ∈ L, ∃ y ∈ L, x + y = z
Proof
:=
⟨constructedSet hCH, constructedSet_spec hCH⟩