Lean library · module TopologyByExample.Spaces.RationalsPower

The countable power of the rationals

Source file

The space ℕ → ℚ of all rational sequences with the product topology. Its row of properties follows from the transfer theorems of the countable power; this file proves the result about it shown on its page:

The homeomorphism splits a sequence into its terms of even and of odd index; it works for the countable power of any space (TopologyByExample.RationalsPower.piNatHomeomorphProd). The general statement, that the countable power of any space is homeomorphic to its square and to its own countable power, is TopologyByExample.RationalsPower.nonempty_homeomorph_prod_and_pi.

This file was written by Claude (Anthropic's AI model) working under the direction of David R. MacIver, who reviews it and is responsible for it.

Imports

definition piNatHomeomorphProd

TopologyByExample.RationalsPower.piNatHomeomorphProd

The countable power of any space is homeomorphic to its square: a sequence corresponds to the pair of its terms of even index and of odd index.

def piNatHomeomorphProd (X : Type*) [TopologicalSpace X] : (ℕ → X) ≃ₜ (ℕ → X) × (ℕ → X)
:=
  (Homeomorph.piCongrLeft (Y := fun _ ↦ X) Equiv.natSumNatEquivNat.symm).trans
    Homeomorph.sumArrowHomeomorphProdArrow

definition piNatHomeomorphPiNat

TopologyByExample.RationalsPower.piNatHomeomorphPiNat

The countable power of any space is homeomorphic to its own countable power, through the pairing bijection ℕ × ℕ ≃ ℕ.

def piNatHomeomorphPiNat (X : Type*) [TopologicalSpace X] : (ℕ → X) ≃ₜ (ℕ → ℕ → X)
:=
  (Homeomorph.piCongrLeft (Y := fun _ ↦ X) Nat.pairEquiv.symm).trans Homeomorph.piCurry

theorem nonempty_homeomorph_prod_and_pi

TopologyByExample.RationalsPower.nonempty_homeomorph_prod_and_pi

The countable power of any space is homeomorphic to its square and to its own countable power.

theorem nonempty_homeomorph_prod_and_pi (X : Type*) [TopologicalSpace X] :
    Nonempty ((ℕ → X) ≃ₜ (ℕ → X) × (ℕ → X)) ∧ Nonempty ((ℕ → X) ≃ₜ (ℕ → ℕ → X))
Proof
:=
  ⟨⟨piNatHomeomorphProd X⟩, ⟨piNatHomeomorphPiNat X⟩⟩

On this site: Theorem: A countable power is homeomorphic to its square and to its own countable power

theorem nonempty_homeomorph_prod

TopologyByExample.RationalsPower.nonempty_homeomorph_prod

The countable power ℕ → ℚ of the rationals is homeomorphic to its square.

theorem nonempty_homeomorph_prod : Nonempty ((ℕ → ℚ) ≃ₜ (ℕ → ℚ) × (ℕ → ℚ))
Proof
:=
  ⟨piNatHomeomorphProd ℚ⟩

On this site: Countable power of the rationals: Homeomorphic to its square

On this site: Space: Countable power of the rationals