Lean library · module TopologyByExample.Spaces.ErdosSquare

Coordinate splitting for complete 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 restrictLinear

TopologyByExample.CompleteErdos.restrictLinear

Restrict an ℓ² sequence along an injection of its coordinates.

def restrictLinear {α β : Type*} (f : α → β) (hf : Function.Injective f) :
    lp (fun _ : β ↦ ℝ) 2 →ₗ[ℝ] lp (fun _ : α ↦ ℝ) 2
Definition
where
  toFun x := ⟨fun i ↦ x (f i), memℓp_gen
    (((lp.memℓp x).summable (by norm_num)).comp_injective hf)⟩
  map_add' _ _ := rfl
  map_smul' _ _ := rfl

theorem norm_restrictLinear_le

TopologyByExample.CompleteErdos.norm_restrictLinear_le

Coordinate restriction cannot increase the norm.

theorem norm_restrictLinear_le {α β : Type*} (f : α → β) (hf : Function.Injective f)
    (x : lp (fun _ : β ↦ ℝ) 2) : ‖restrictLinear f hf x‖ ≤ ‖x‖
Proof
:= by
  apply lp.norm_le_of_tsum_le (by norm_num) (norm_nonneg _)
  rw [lp.norm_rpow_eq_tsum (by norm_num)]
  exact (((lp.memℓp x).summable (by norm_num)).comp_injective hf).tsum_le_tsum_of_inj
    f hf (fun _ _ ↦ by positivity) (fun _ ↦ le_rfl)
    ((lp.memℓp x).summable (by norm_num))

definition restrictCLM

TopologyByExample.CompleteErdos.restrictCLM

Coordinate restriction as a continuous linear map.

def restrictCLM {α β : Type*} (f : α → β) (hf : Function.Injective f) :
    lp (fun _ : β ↦ ℝ) 2 →L[ℝ] lp (fun _ : α ↦ ℝ) 2
:=
  (restrictLinear f hf).mkContinuous 1 (fun x ↦ by
    simpa using norm_restrictLinear_le f hf x)

definition joinLinear

TopologyByExample.CompleteErdos.joinLinear

Joining two square-summable sequences on a disjoint sum of indices.

def joinLinear : Ambient × Ambient →ₗ[ℝ] lp (fun _ : ℕ ⊕ ℕ ↦ ℝ) 2
Definition
where
  toFun x := ⟨Sum.elim x.1 x.2, memℓp_gen (Summable.sum _
    ((lp.memℓp x.1).summable (by norm_num))
    ((lp.memℓp x.2).summable (by norm_num)))⟩
  map_add' x y := by apply lp.ext; funext i; cases i <;> rfl
  map_smul' r x := by apply lp.ext; funext i; cases i <;> rfl

theorem norm_join_sq

TopologyByExample.CompleteErdos.norm_join_sq

The squared norm of a joined sequence is the sum of the squared norms.

theorem norm_join_sq (x : Ambient × Ambient) :
    ‖joinLinear x‖ ^ 2 = ‖x.1‖ ^ 2 + ‖x.2‖ ^ 2
Proof
:= by
  have h : (∑' i, ‖(joinLinear x) i‖ ^ (2 : ℝ≥0∞).toReal) =
      (∑' i, ‖x.1 i‖ ^ (2 : ℝ≥0∞).toReal) +
      (∑' i, ‖x.2 i‖ ^ (2 : ℝ≥0∞).toReal) :=
    Summable.tsum_sum ((lp.memℓp x.1).summable (by norm_num))
      ((lp.memℓp x.2).summable (by norm_num))
  rw [← lp.norm_rpow_eq_tsum (by norm_num),
    ← lp.norm_rpow_eq_tsum (by norm_num), ← lp.norm_rpow_eq_tsum (by norm_num)] at h
  simpa only [ENNReal.toReal_ofNat, Real.rpow_two] using h

theorem norm_join_le

TopologyByExample.CompleteErdos.norm_join_le

Joining is bounded for the usual maximum norm on the product.

theorem norm_join_le (x : Ambient × Ambient) : ‖joinLinear x‖ ≤ 2 * ‖x‖
Proof
:= by
  have h := norm_join_sq x
  have h₁ := norm_fst_le x
  have h₂ := norm_snd_le x
  have h₀ := norm_nonneg (joinLinear x)
  have h₃ := norm_nonneg x.1
  have h₄ := norm_nonneg x.2
  have h₅ := norm_nonneg x
  nlinarith [sq_nonneg (‖x‖ - ‖x.1‖), sq_nonneg (‖x‖ - ‖x.2‖)]

definition joinCLM

TopologyByExample.CompleteErdos.joinCLM

Joining as a continuous linear map.

def joinCLM : Ambient × Ambient →L[ℝ] lp (fun _ : ℕ ⊕ ℕ ↦ ℝ) 2
:=
  joinLinear.mkContinuous 2 norm_join_le

definition mergeCLM

TopologyByExample.CompleteErdos.mergeCLM

Merge two sequences using the standard even/odd bijection.

def mergeCLM : Ambient × Ambient →L[ℝ] Ambient
:=
  (restrictCLM natSumNatEquivNat.symm natSumNatEquivNat.symm.injective).comp joinCLM

definition leftCLM

TopologyByExample.CompleteErdos.leftCLM

The first coordinate subsequence.

def leftCLM : Ambient →L[ℝ] Ambient
:=
  restrictCLM (fun i ↦ natSumNatEquivNat (Sum.inl i))
    (natSumNatEquivNat.injective.comp Sum.inl_injective)

definition rightCLM

TopologyByExample.CompleteErdos.rightCLM

The second coordinate subsequence.

def rightCLM : Ambient →L[ℝ] Ambient
:=
  restrictCLM (fun i ↦ natSumNatEquivNat (Sum.inr i))
    (natSumNatEquivNat.injective.comp Sum.inr_injective)

definition squareHomeomorph

TopologyByExample.CompleteErdos.squareHomeomorph

Complete Erdős space is homeomorphic to its square.

def squareHomeomorph : CompleteErdos ≃ₜ CompleteErdos × CompleteErdos
Definition
where
  toFun x := (⟨leftCLM x.val, fun i ↦ x.property _⟩,
    ⟨rightCLM x.val, fun i ↦ x.property _⟩)
  invFun x := ⟨mergeCLM (x.1.val, x.2.val), by
    intro i
    change Sum.elim x.1.val x.2.val (natSumNatEquivNat.symm i) ∈ coordinates
    cases natSumNatEquivNat.symm i with
    | inl j => exact x.1.property j
    | inr j => exact x.2.property j⟩
  left_inv x := by
    apply Subtype.ext
    apply lp.ext
    funext i
    change Sum.elim (fun j ↦ x.val (natSumNatEquivNat (Sum.inl j)))
      (fun j ↦ x.val (natSumNatEquivNat (Sum.inr j))) (natSumNatEquivNat.symm i) = x.val i
    have h := natSumNatEquivNat.apply_symm_apply i
    cases he : natSumNatEquivNat.symm i <;> simpa [he] using congrArg x.val h
  right_inv x := by
    apply Prod.ext <;> apply Subtype.ext <;> apply lp.ext <;> funext i
    · change Sum.elim x.1.val x.2.val
        (natSumNatEquivNat.symm (natSumNatEquivNat (Sum.inl i))) = x.1.val i
      simp
    · change Sum.elim x.1.val x.2.val
        (natSumNatEquivNat.symm (natSumNatEquivNat (Sum.inr i))) = x.2.val i
      simp
  continuous_toFun := ((leftCLM.continuous.comp continuous_subtypeVal).subtype_mk _).prodMk
    ((rightCLM.continuous.comp continuous_subtypeVal).subtype_mk _)
  continuous_invFun := continuous_induced_rng.mpr (mergeCLM.continuous.comp
    ((continuous_subtypeVal.comp continuous_fst).prodMk
      (continuous_subtypeVal.comp continuous_snd)))

On this site: Complete Erdős space: A homeomorphism with the square