Lean library · module TopologyByExample.Theorems.ScatteredMetricGDelta
Scattered subspaces of metric 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 isGδ_of_wellFounded_neighbourhoods
TopologyByExample.isGδ_of_wellFounded_neighbourhoods
A metric subspace with neighbourhoods strictly decreasing a well-founded relation is a countable intersection of open sets in its ambient space.
theorem isGδ_of_wellFounded_neighbourhoods {Y : Type*} [MetricSpace Y] {A : Set Y}
{r : A → A → Prop} (hwell : WellFounded r) (ε : A → ℝ) (hε : ∀ x, 0 < ε x)
(hlocal : ∀ x y : A, y ≠ x → dist (y : Y) x < ε x → r y x) : IsGδ A
Proof
:= by
let U : ℕ → Set Y := fun n ↦ ⋃ x : A, ball (x : Y) (min (ε x) (1 / (n + 1 : ℝ)))
have hEq : A = ⋂ n, U n := by
apply Subset.antisymm
· intro z hz
apply mem_iInter.mpr
intro n
apply mem_iUnion.mpr
refine ⟨⟨z, hz⟩, ?_⟩
exact mem_ball_self (lt_min (hε _) (by positivity))
· intro z hz
by_contra hzA
let B : Set A := {x | dist z (x : Y) < ε x}
have hB : B.Nonempty := by
obtain ⟨x, hx⟩ := mem_iUnion.mp (mem_iInter.mp hz 0)
refine ⟨x, ?_⟩
change dist z (x : Y) < ε x
exact lt_of_lt_of_le (show dist z (x : Y) < min (ε x) _ from hx)
(min_le_left _ _)
obtain ⟨x, hx, hmin⟩ := hwell.has_min B hB
have hxz : z ≠ (x : Y) := fun h ↦ hzA (h ▸ x.property)
have hd : 0 < dist z (x : Y) := dist_pos.mpr hxz
obtain ⟨n, hn⟩ := exists_nat_one_div_lt
(lt_min (sub_pos.mpr hx) hd)
obtain ⟨y, hy⟩ := mem_iUnion.mp (mem_iInter.mp hz n)
have hyB : y ∈ B := by
change dist z (y : Y) < ε y
exact lt_of_lt_of_le (show dist z (y : Y) < min (ε y) _ from hy)
(min_le_left _ _)
have hyz : dist z (y : Y) < 1 / (n + 1 : ℝ) :=
lt_of_lt_of_le hy (min_le_right _ _)
have hyx : y ≠ x := by
intro he
have hsmall := lt_of_lt_of_le hn (min_le_right _ _)
rw [he] at hyz
linarith
have hnear : dist (y : Y) x < ε x := by
have hsmall := lt_of_lt_of_le hn (min_le_left _ _)
have htri := dist_triangle (y : Y) z (x : Y)
rw [dist_comm (y : Y) z] at htri
linarith
exact hmin y hyB (hlocal x y hyx hnear)
rw [hEq]
exact IsGδ.iInter_of_isOpen (fun _ ↦ isOpen_iUnion (fun _ ↦ isOpen_ball))
theorem exists_derivative_exit
TopologyByExample.exists_derivative_exit
A point absent from a transfinite derivative disappears at a successor stage.
theorem exists_derivative_exit {X : Type*} [TopologicalSpace X] (x : X) :
∀ a : Ordinal, x ∉ iteratedDerivedSet (univ : Set X) a →
∃ b : Ordinal, x ∈ iteratedDerivedSet (univ : Set X) b ∧
x ∉ iteratedDerivedSet (univ : Set X) (b + 1)
Proof
:= by
intro a
induction a using Ordinal.limitRecOn with
| zero => simp only [iteratedDerivedSet_zero, mem_univ, not_true_eq_false, false_implies]
| add_one a ih =>
intro hx
by_cases ha : x ∈ iteratedDerivedSet (univ : Set X) a
· exact ⟨a, ha, hx⟩
· exact ih ha
| limit a ha ih =>
intro hx
rw [iteratedDerivedSet_limit ha] at hx
simp only [mem_iInter, not_forall] at hx
obtain ⟨b, hb, hxb⟩ := hx
exact ih b hb hxb
theorem exists_isolated_derivative_stage
TopologyByExample.exists_isolated_derivative_stage
Every point of a scattered space is isolated at some derivative stage.
theorem exists_isolated_derivative_stage {X : Type*} [TopologicalSpace X]
[ScatteredSpace X] (x : X) :
∃ a : Ordinal, x ∈ iteratedDerivedSet (univ : Set X) a ∧
¬AccPt x (Filter.principal (iteratedDerivedSet (univ : Set X) a))
Proof
:= by
obtain ⟨a, ha⟩ := iteratedDerivedSet_mem_fixedPoints (univ : Set X)
have hp : Preperfect (iteratedDerivedSet (univ : Set X) a) :=
preperfect_iff_eq_relDerivedSet.mpr (Function.mem_fixedPoints_iff.mp ha).symm
have hempty := ScatteredSpace.eq_empty_of_preperfect _ hp
obtain ⟨b, hb, hb'⟩ := exists_derivative_exit x a (by rw [hempty]; exact notMem_empty x)
refine ⟨b, hb, ?_⟩
intro hacc
apply hb'
rw [iteratedDerivedSet_succ]
exact ⟨hacc, hb⟩
theorem exists_wellFounded_metric_neighbourhoods
TopologyByExample.exists_wellFounded_metric_neighbourhoods
A scattered metric space has neighbourhoods decreasing a well-founded relation.
theorem exists_wellFounded_metric_neighbourhoods {X : Type*} [MetricSpace X]
[ScatteredSpace X] :
∃ r : X → X → Prop, WellFounded r ∧ ∃ ε : X → ℝ,
(∀ x, 0 < ε x) ∧ ∀ x y, y ≠ x → dist y x < ε x → r y x
Proof
:= by
classical
choose rank hmem hisol using (exists_isolated_derivative_stage (X := X))
have hn (x : X) : ∃ ε > 0, ∀ y, y ≠ x → dist y x < ε → rank y < rank x := by
have hi := hisol x
rw [accPt_iff_nhds] at hi
push Not at hi
obtain ⟨U, hU, hUx⟩ := hi
obtain ⟨ε, hε, hball⟩ := Metric.mem_nhds_iff.mp hU
refine ⟨ε, hε, fun y hy hd ↦ ?_⟩
by_contra hlt
have hym := iteratedDerivedSet_antitone (univ : Set X) (le_of_not_gt hlt) (hmem y)
exact hy (hUx y ⟨hball hd, hym⟩)
choose ε hε hlocal using hn
exact ⟨fun y x ↦ rank y < rank x, InvImage.wf rank wellFounded_lt, ε, hε, hlocal⟩
theorem isGδ_of_scatteredSpace
TopologyByExample.isGδ_of_scatteredSpace
Every scattered subspace of a metric space is a countable intersection of open sets.
theorem isGδ_of_scatteredSpace {Y : Type*} [MetricSpace Y] (A : Set Y)
[ScatteredSpace A] : IsGδ A
Proof
:= by
obtain ⟨r, hr, ε, hε, hlocal⟩ := exists_wellFounded_metric_neighbourhoods (X := A)
exact isGδ_of_wellFounded_neighbourhoods hr ε hε hlocal
On this site: Theorem: Scattered subspaces of metric spaces are G-delta sets
theorem isCompletelyMetrizableSpace_of_scatteredSpace
TopologyByExample.isCompletelyMetrizableSpace_of_scatteredSpace
A scattered metrizable space admits a compatible complete metric.
theorem isCompletelyMetrizableSpace_of_scatteredSpace {X : Type*} [TopologicalSpace X]
[MetrizableSpace X] [ScatteredSpace X] : IsCompletelyMetrizableSpace X
Proof
:= by
let := metrizableSpaceMetric X
have he : IsEmbedding ((↑) : X → UniformSpace.Completion X) :=
UniformSpace.Completion.isUniformEmbedding_coe X |>.isEmbedding
have : ScatteredSpace (range ((↑) : X → UniformSpace.Completion X)) :=
(Homeomorph.scatteredSpace_iff he.toHomeomorph).mp inferInstance
have := (isGδ_of_scatteredSpace
(range ((↑) : X → UniformSpace.Completion X))).isCompletelyMetrizableSpace
exact (Homeomorph.isCompletelyMetrizableSpace_iff he.toHomeomorph).mpr this
On this site: Theorem: Scattered metrizable spaces are completely metrizable