Lean library · module TopologyByExample.Spaces.ErdosNormExtension
Adjoining a point to the norm graph of dyadic Erdős space
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 extra
TopologyByExample.ErdosNormExtension.extra
The additional point has zero coordinates and height one.
def extra : (ℕ → ℝ) × ℝ
:= (0, 1)
definition embed
TopologyByExample.ErdosNormExtension.embed
The norm graph of the dyadic Erdős space.
def embed (x : CompleteErdosSpace) : (ℕ → ℝ) × ℝ
:= HilbertNormGraph.graph x.val
theorem isEmbedding_embed
TopologyByExample.ErdosNormExtension.isEmbedding_embed
The graph retains the topology of dyadic Erdős space.
theorem isEmbedding_embed : Topology.IsEmbedding embed
Proof
:=
HilbertNormGraph.isEmbedding_graph.comp Topology.IsEmbedding.subtypeVal
On this site: Erdős norm-graph extension: The norm graph preserves the topology
definition carrier
TopologyByExample.ErdosNormExtension.carrier
The graph together with its extra point.
def carrier : Set ((ℕ → ℝ) × ℝ)
:= Set.range embed ∪ {extra}
theorem isGδ_carrier
TopologyByExample.ErdosNormExtension.isGδ_carrier
The enlarged graph is a G-delta subset of its ambient space.
theorem isGδ_carrier : IsGδ carrier
Proof
:=
(isGδ_range_of_isEmbedding isEmbedding_embed).union isClosed_singleton.isGδ
definition ErdosNormExtension
TopologyByExample.ErdosNormExtension
The dyadic Erdős norm graph with an additional point above the zero vector.
def ErdosNormExtension
:= ErdosNormExtension.carrier
On this site: Space: Erdős norm-graph extension
instance
instance : TopologicalSpace ErdosNormExtension
Proof
:= inferInstanceAs (TopologicalSpace (Subtype _))
instance
instance : T2Space ErdosNormExtension
Proof
:= inferInstanceAs (T2Space (Subtype _))
instance
instance : SecondCountableTopology ErdosNormExtension
Proof
:=
inferInstanceAs (SecondCountableTopology (Subtype _))
instance
instance : IsCompletelyMetrizableSpace ErdosNormExtension
Proof
:=
isGδ_carrier.isCompletelyMetrizableSpace
definition point
TopologyByExample.ErdosNormExtension.point
The adjoined point of the extension.
def point : ErdosNormExtension
:= ⟨extra, Or.inr rfl⟩
definition ofErdos
TopologyByExample.ErdosNormExtension.ofErdos
The original dyadic Erdős space inside the extension.
def ofErdos (x : CompleteErdosSpace) : ErdosNormExtension
:= ⟨embed x, Or.inl ⟨x, rfl⟩⟩
instance
instance : Nonempty ErdosNormExtension
Proof
:= ⟨point⟩
theorem continuous_ofErdos
TopologyByExample.ErdosNormExtension.continuous_ofErdos
The original embedding remains continuous after restricting its codomain.
theorem continuous_ofErdos : Continuous ofErdos
Proof
:= isEmbedding_embed.continuous.subtype_mk _
theorem ofErdos_ne_point
TopologyByExample.ErdosNormExtension.ofErdos_ne_point
No original point is the adjoined point.
theorem ofErdos_ne_point (x : CompleteErdosSpace) : ofErdos x ≠ point
Proof
:= by
intro he
have h := congrArg Subtype.val he
have hx : x.val = 0 := lp.ext (congrArg Prod.fst h)
have hh := congrArg Prod.snd h
change ‖x.val‖ = 1 at hh
simp [hx] at hh
theorem eq_point_or_mem_range
TopologyByExample.ErdosNormExtension.eq_point_or_mem_range
Every point is either the added point or an original graph point.
theorem eq_point_or_mem_range (z : ErdosNormExtension) : z = point ∨ z ∈ range ofErdos
Proof
:= by
rcases z.property with ⟨x, hx⟩ | hz
· exact Or.inr ⟨x, Subtype.ext hx⟩
· exact Or.inl (Subtype.ext hz)
theorem coordinate_mem
TopologyByExample.ErdosNormExtension.coordinate_mem
Every coordinate of an extension point is dyadic or zero.
theorem coordinate_mem (z : ErdosNormExtension) (n : ℕ) : z.val.1 n ∈ dyadicValues
Proof
:= by
rcases eq_point_or_mem_range z with rfl | ⟨x, rfl⟩
· exact Or.inl rfl
· exact x.property n
definition coordinates
TopologyByExample.ErdosNormExtension.coordinates
Coordinate projection into the product of convergent dyadic sequences.
def coordinates (z : ErdosNormExtension) : ℕ → dyadicValues
:=
fun n => ⟨z.val.1 n, coordinate_mem z n⟩
theorem continuous_coordinates
TopologyByExample.ErdosNormExtension.continuous_coordinates
The coordinate projection is continuous.
theorem continuous_coordinates : Continuous coordinates
Proof
:= by
apply continuous_pi
intro n
exact ((continuous_apply n).comp (continuous_fst.comp continuous_subtypeVal)).subtype_mk _
theorem original_eq_of_coordinates_eq
TopologyByExample.ErdosNormExtension.original_eq_of_coordinates_eq
Coordinate projection is injective on the original points.
theorem original_eq_of_coordinates_eq {x y : CompleteErdosSpace}
(h : coordinates (ofErdos x) = coordinates (ofErdos y)) : x = y
Proof
:= by
apply Subtype.ext
apply lp.ext
funext n
exact congrArg Subtype.val (congrFun h n)
theorem finite_fibre
TopologyByExample.ErdosNormExtension.finite_fibre
Every fibre of coordinate projection is finite.
theorem finite_fibre (y : ℕ → dyadicValues) : (coordinates ⁻¹' {y}).Finite
Proof
:= by
have hs : {z : ErdosNormExtension | coordinates z = y ∧ z ≠ point}.Subsingleton := by
intro z hz w hw
rcases eq_point_or_mem_range z with he | ⟨x, rfl⟩
· exact (hz.2 he).elim
rcases eq_point_or_mem_range w with he | ⟨v, rfl⟩
· exact (hw.2 he).elim
exact congrArg ofErdos (original_eq_of_coordinates_eq (hz.1.trans hw.1.symm))
apply (hs.finite.insert point).subset
intro z hz
by_cases he : z = point
· exact Or.inl he
· exact Or.inr ⟨hz, he⟩
instance
instance : TotallyDisconnectedSpace ErdosNormExtension
Proof
:= by
have hd : dyadicValues.Countable := (Set.countable_range _).insert 0
let : ZeroDimensionalSpace dyadicValues := hd.zeroDimensionalSpace
exact totallyDisconnectedSpace_of_finite_fibres continuous_coordinates finite_fibre
theorem zero_mem_of_isClopen
TopologyByExample.ErdosNormExtension.zero_mem_of_isClopen
A clopen neighbourhood of the added point must also contain the original zero vector.
theorem zero_mem_of_isClopen {U : Set ErdosNormExtension} (hU : IsClopen U)
(hp : point ∈ U) : ofErdos 0 ∈ U
Proof
:= by
by_contra hz
have hd : dyadicValues.Countable := (Set.countable_range _).insert 0
let : ZeroDimensionalSpace dyadicValues := hd.zeroDimensionalSpace
obtain ⟨O, hO, hOU⟩ := Topology.IsInducing.subtypeVal.isOpen_iff.mp hU.isOpen
let level : (ℕ → dyadicValues) → (ℕ → ℝ) × ℝ := fun a => (fun n => (a n).val, 1)
have hl : Continuous level :=
(continuous_pi fun n => continuous_subtypeVal.comp (continuous_apply n)).prodMk
continuous_const
have hpO : level (coordinates point) ∈ O := by
change point ∈ Subtype.val ⁻¹' O
rwa [hOU]
obtain ⟨V, hV, hpV, hVO⟩ := exists_isClopen_mem_of_isOpen
(hO.preimage hl) hpO
have hbound (x : CompleteErdosSpace) (hx : coordinates (ofErdos x) ∈ V)
(hn : ‖x.val‖ = 1) : ofErdos x ∈ U := by
rw [← hOU]
change embed x ∈ O
have hh := hVO hx
change ((fun n => x.val n), 1) ∈ O at hh
change ((fun n => x.val n), ‖x.val‖) ∈ O
rwa [hn]
let c : CompleteErdosSpace → (ℕ → dyadicValues) := coordinates ∘ ofErdos
have hc : Continuous c := continuous_coordinates.comp continuous_ofErdos
let W : Set CompleteErdosSpace :=
(c ⁻¹' V ∩ {x | ‖x.val‖ < 1}) ∩ ofErdos ⁻¹' Uᶜ
have hWo : IsOpen W :=
((hV.isOpen.preimage hc).inter (isOpen_lt (continuous_norm.comp continuous_subtypeVal)
continuous_const)).inter (hU.isClosed.isOpen_compl.preimage continuous_ofErdos)
have he : W = (c ⁻¹' V ∩ {x | ‖x.val‖ ≤ 1}) ∩ ofErdos ⁻¹' Uᶜ := by
ext x
constructor
· rintro ⟨⟨hx, hn⟩, hu⟩
change ‖x.val‖ < 1 at hn
exact ⟨⟨hx, show ‖x.val‖ ≤ 1 from hn.le⟩, hu⟩
· rintro ⟨⟨hx, hn⟩, hu⟩
change ‖x.val‖ ≤ 1 at hn
refine ⟨⟨hx, show ‖x.val‖ < 1 from lt_of_le_of_ne hn ?_⟩, hu⟩
intro hh
exact hu (hbound x hx hh)
have hWc : IsClosed W := by
rw [he]
exact ((hV.isClosed.preimage hc).inter (isClosed_le
(continuous_norm.comp continuous_subtypeVal) continuous_const)).inter
(hU.isOpen.isClosed_compl.preimage continuous_ofErdos)
apply CompleteErdosSpace.not_clopen_bounded_zero ⟨hWc, hWo⟩ ?_ 1
· intro x hx
exact hx.1.2.le
· refine ⟨⟨?_, ?_⟩, hz⟩
· exact hpV
· change ‖(0 : ℓ²(ℕ, ℝ))‖ < 1
norm_num
theorem not_totallySeparatedSpace
TopologyByExample.ErdosNormExtension.not_totallySeparatedSpace
The two points above the zero coordinate sequence cannot be separated by clopen sets.
theorem not_totallySeparatedSpace : ¬ TotallySeparatedSpace ErdosNormExtension
Proof
:= by
intro h
let := h
obtain ⟨U, hU, hp, hz⟩ := exists_isClopen_of_totally_separated
(ofErdos_ne_point 0).symm
exact hz (zero_mem_of_isClopen hU hp)
On this site: The Erdős norm-graph extension is not totally separated
theorem cardinalityContinuum
TopologyByExample.ErdosNormExtension.cardinalityContinuum
The extension has cardinality continuum.
theorem cardinalityContinuum : CardinalityContinuum ErdosNormExtension
Proof
:= by
apply le_antisymm cardinal_mk_le_continuum_of_secondCountable_t0
have hinj : Function.Injective ofErdos := fun x y h =>
isEmbedding_embed.injective (congrArg Subtype.val h)
have hc := Cardinal.mk_le_of_injective hinj
rwa [show Cardinal.mk CompleteErdosSpace = Cardinal.continuum from
CompleteErdosSpace.cardinalityContinuum] at hc
On this site: The Erdős norm-graph extension has cardinality equal to \(\mathfrak{c}\)