Lean library · module TopologyByExample.Spaces.CompleteErdosInfinity

Adjoining a point at infinity to complete dyadic Erdős space

Source file

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 CompleteErdosInfinity

TopologyByExample.CompleteErdosInfinity

The normalized image of dyadic Erdős space together with the origin.

def CompleteErdosInfinity
:=
  {z : ℓ²(ℕ, ℝ) × ℝ // z ∈ NormInfinity.extension {x | ∀ n, x n ∈ dyadicValues}}

On this site: Space: Complete Erdős dispersion space

instance

instance : MetricSpace CompleteErdosInfinity
Proof
:= inferInstanceAs (MetricSpace (Subtype _))

instance

instance : CompleteSpace CompleteErdosInfinity
Proof
:=
  (NormInfinity.isClosed_extension CompleteErdosSpace.isClosed_carrier).isComplete.completeSpace_coe

definition point

TopologyByExample.CompleteErdosInfinity.point

The added point at infinity.

def point : CompleteErdosInfinity
:= ⟨0, Or.inl rfl⟩

instance

instance : Nonempty CompleteErdosInfinity
Proof
:= ⟨point⟩

definition ofErdos

TopologyByExample.CompleteErdosInfinity.ofErdos

Include a dyadic Erdős point in the extension.

def ofErdos (x : CompleteErdosSpace) : CompleteErdosInfinity
:=
  ⟨NormInfinity.embed x.val, Or.inr ⟨x.val, x.property, rfl⟩⟩

theorem continuous_ofErdos

TopologyByExample.CompleteErdosInfinity.continuous_ofErdos

The inclusion is continuous.

theorem continuous_ofErdos : Continuous ofErdos
Proof
:=
  (NormInfinity.continuous_embed.comp continuous_subtypeVal).subtype_mk _

theorem ofErdos_injective

TopologyByExample.CompleteErdosInfinity.ofErdos_injective

The inclusion is injective.

theorem ofErdos_injective : Function.Injective ofErdos
Proof
:= by
  intro x y h
  apply Subtype.ext
  exact NormInfinity.embed_injective (congrArg Subtype.val h)

theorem ofErdos_ne_point

TopologyByExample.CompleteErdosInfinity.ofErdos_ne_point

No original point equals the added point.

theorem ofErdos_ne_point (x : CompleteErdosSpace) : ofErdos x ≠ point
Proof
:= by
  intro h
  exact NormInfinity.embed_ne_zero x.val (congrArg Subtype.val h)

theorem eq_point_or_mem_range

TopologyByExample.CompleteErdosInfinity.eq_point_or_mem_range

Every point is either the added point or an original Erdős point.

theorem eq_point_or_mem_range (z : CompleteErdosInfinity) : z = point ∨ z ∈ range ofErdos
Proof
:= by
  rcases z.property with hz | ⟨x, hx, he⟩
  · exact Or.inl (Subtype.ext hz)
  · exact Or.inr ⟨⟨x, hx⟩, Subtype.ext he⟩

instance

instance : SeparableSpace CompleteErdosInfinity
Proof
:= by
  let f : CompleteErdosSpace ⊕ Unit → CompleteErdosInfinity := Sum.elim ofErdos (fun _ ↦ point)
  have hf : Continuous f := continuous_sum_dom.mpr ⟨continuous_ofErdos, continuous_const⟩
  have hs : Function.Surjective f := by
    intro z
    obtain rfl | ⟨x, rfl⟩ := eq_point_or_mem_range z
    · exact ⟨Sum.inr (), rfl⟩
    · exact ⟨Sum.inl x, rfl⟩
  exact hs.denseRange.separableSpace hf

instance

instance : SecondCountableTopology CompleteErdosInfinity
Proof
:= inferInstance

theorem dist_ofErdos_point

TopologyByExample.CompleteErdosInfinity.dist_ofErdos_point

Distance to infinity decreases as the original norm increases.

theorem dist_ofErdos_point (x : CompleteErdosSpace) :
    dist (ofErdos x) point = (1 + ‖x.val‖)⁻¹
Proof
:= by
  change dist (NormInfinity.embed x.val) 0 = _
  rw [dist_zero_right, NormInfinity.norm_embed]
  rfl

theorem eq_empty_of_isClopen_of_notMem

TopologyByExample.CompleteErdosInfinity.eq_empty_of_isClopen_of_notMem

A clopen set omitting infinity must be empty.

theorem eq_empty_of_isClopen_of_notMem {U : Set CompleteErdosInfinity} (hU : IsClopen U)
    (hp : point ∉ U) : U = ∅
Proof
:= by
  apply eq_empty_of_forall_notMem
  intro z hz
  obtain ⟨r, hr, hball⟩ := Metric.isOpen_iff.mp hU.compl.isOpen point hp
  obtain hzp | ⟨a, rfl⟩ := eq_point_or_mem_range z
  · exact hp (hzp ▸ hz)
  · let V := ofErdos ⁻¹' U
    have hV : IsClopen V := hU.preimage continuous_ofErdos
    apply CompleteErdosSpace.not_clopen_bounded hV ⟨a, hz⟩ r⁻¹
    intro x hx
    have hd : r ≤ dist (ofErdos x) point := by
      by_contra h
      exact hball (lt_of_not_ge h) hx
    rw [dist_ofErdos_point] at hd
    have hi := (inv_le_inv₀ (NormInfinity.height_pos x.val) hr).mpr hd
    have hb : 1 + ‖x.val‖ ≤ r⁻¹ := by simpa [NormInfinity.height] using hi
    change ‖x.val‖ ≤ r⁻¹
    linarith

instance

instance : PreconnectedSpace CompleteErdosInfinity
Proof
:= by
  apply preconnectedSpace_iff_clopen.mpr
  intro U hU
  by_cases hp : point ∈ U
  · right
    have he := eq_empty_of_isClopen_of_notMem hU.compl (by simpa using hp)
    apply Set.eq_univ_of_forall
    intro x
    by_contra hx
    have hc : x ∈ Uᶜ := hx
    rw [he] at hc
    exact hc
  · exact Or.inl (eq_empty_of_isClopen_of_notMem hU hp)

theorem snd_ne_zero

TopologyByExample.CompleteErdosInfinity.snd_ne_zero

A point other than infinity has nonzero height.

theorem snd_ne_zero {z : CompleteErdosInfinity} (hz : z ≠ point) : z.val.2 ≠ 0
Proof
:= by
  obtain h | ⟨x, rfl⟩ := eq_point_or_mem_range z
  · exact (hz h).elim
  · exact ne_of_gt (NormInfinity.height_pos x.val)

definition punctureRecover

TopologyByExample.CompleteErdosInfinity.punctureRecover

Recover an Erdős point from the punctured extension.

def punctureRecover (z : {z : CompleteErdosInfinity // z ≠ point}) : CompleteErdosSpace
Definition
:=
  ⟨NormInfinity.recover z.val.val, by
    obtain h | ⟨x, hx⟩ := eq_point_or_mem_range z.val
    · exact (z.property h).elim
    · rw [← hx]
      change ∀ n, NormInfinity.recover (NormInfinity.embed x.val) n ∈ dyadicValues
      rw [NormInfinity.recover_embed]
      exact x.property⟩

theorem ofErdos_punctureRecover

TopologyByExample.CompleteErdosInfinity.ofErdos_punctureRecover

Recovery inverts inclusion on the punctured extension.

theorem ofErdos_punctureRecover (z : {z : CompleteErdosInfinity // z ≠ point}) :
    ofErdos (punctureRecover z) = z.val
Proof
:= by
  apply Subtype.ext
  exact NormInfinity.embed_recover (snd_ne_zero z.property)
    (NormInfinity.norm_eq_of_mem_extension z.val.property)

theorem continuous_punctureRecover

TopologyByExample.CompleteErdosInfinity.continuous_punctureRecover

Recovery is continuous on the punctured extension.

theorem continuous_punctureRecover : Continuous punctureRecover
Proof
:= by
  apply Continuous.subtype_mk
  apply continuous_iff_continuousAt.mpr
  intro z
  exact ((NormInfinity.continuousAt_recover (snd_ne_zero z.property)).comp
    continuous_subtypeVal.continuousAt).comp continuous_subtypeVal.continuousAt

theorem punctureRecover_injective

TopologyByExample.CompleteErdosInfinity.punctureRecover_injective

Recovery is injective on the punctured extension.

theorem punctureRecover_injective : Function.Injective punctureRecover
Proof
:= by
  intro x y h
  apply Subtype.ext
  exact (ofErdos_punctureRecover x).symm.trans
    ((congrArg ofErdos h).trans (ofErdos_punctureRecover y))

theorem isTotallyDisconnected_compl_point

TopologyByExample.CompleteErdosInfinity.isTotallyDisconnected_compl_point

Removing infinity leaves a totally disconnected space.

theorem isTotallyDisconnected_compl_point :
    IsTotallyDisconnected ({point}ᶜ : Set CompleteErdosInfinity)
Proof
:= by
  apply totallyDisconnectedSpace_subtype_iff.mp
  constructor
  exact isTotallyDisconnected_of_image continuous_punctureRecover.continuousOn
    punctureRecover_injective (isTotallyDisconnected_of_totallyDisconnectedSpace _)

instance

instance : HasDispersionPoint CompleteErdosInfinity
Proof
where
  exists_point := ⟨point, isTotallyDisconnected_compl_point⟩

theorem cardinalityContinuum

TopologyByExample.CompleteErdosInfinity.cardinalityContinuum

The extension has cardinality continuum.

theorem cardinalityContinuum : CardinalityContinuum CompleteErdosInfinity
Proof
:= by
  apply le_antisymm cardinal_mk_le_continuum_of_secondCountable_t0
  have h := Cardinal.mk_le_of_injective ofErdos_injective
  rw [show Cardinal.mk CompleteErdosSpace = Cardinal.continuum from
    CompleteErdosSpace.cardinalityContinuum] at h
  exact h

On this site: The complete Erdős dispersion space has cardinality equal to \(\mathfrak{c}\)