Lean library · module TopologyByExample.Spaces.BoxRealSplit

Splitting the first coordinate of the countable box product

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 tail

TopologyByExample.BoxRealPower.tail

Remove the first coordinate of a box-product point.

def tail (x : Space) : Space
:= ⟨fun n ↦ x.coord (n + 1)⟩

definition prepend

TopologyByExample.BoxRealPower.prepend

Prepend one real coordinate to a box-product point.

def prepend (r : ℝ) (x : Space) : Space
:= ⟨fun n ↦ Nat.casesOn n r x.coord⟩

theorem continuous_tail

TopologyByExample.BoxRealPower.continuous_tail

The tail projection is continuous in the box topology.

theorem continuous_tail : Continuous tail
Proof
:= by
  apply basis.continuous_iff.mpr
  rintro _ ⟨U, hU, rfl⟩
  have he : tail ⁻¹' box U = box (fun n ↦ Nat.casesOn n univ U) := by
    ext x
    constructor
    · intro hx n
      cases n with
      | zero => trivial
      | succ n => exact hx n
    · intro hx n
      exact hx (n + 1)
  rw [he]
  apply isOpen_box
  intro n
  cases n with
  | zero => exact isOpen_univ
  | succ n => exact hU n

theorem continuous_prepend

TopologyByExample.BoxRealPower.continuous_prepend

Prepending is continuous for the ordinary product of one real line and the box product.

theorem continuous_prepend : Continuous (fun p : ℝ × Space ↦ prepend p.1 p.2)
Proof
:= by
  apply basis.continuous_iff.mpr
  rintro _ ⟨U, hU, rfl⟩
  have he : (fun p : ℝ × Space ↦ prepend p.1 p.2) ⁻¹' box U =
      U 0 ×ˢ box (fun n ↦ U (n + 1)) := by
    ext p
    constructor
    · intro hp
      exact ⟨hp 0, fun n ↦ hp (n + 1)⟩
    · rintro ⟨hr, hx⟩ n
      cases n with
      | zero => exact hr
      | succ n => exact hx n
  rw [he]
  exact (hU 0).prod (isOpen_box (fun n ↦ hU (n + 1)))

definition headTailHomeomorph

TopologyByExample.BoxRealPower.headTailHomeomorph

A countable box product splits as its first real factor times its box-product tail.

def headTailHomeomorph : Space ≃ₜ ℝ × Space
Definition
where
  toFun x := (x.coord 0, tail x)
  invFun p := prepend p.1 p.2
  left_inv x := by
    apply Space.ext
    funext n
    cases n <;> rfl
  right_inv p := by
    cases p
    rfl
  continuous_toFun := (continuous_coord 0).prodMk continuous_tail
  continuous_invFun := continuous_prepend

On this site: Countable box product of the reals: Splitting off the first coordinate