module Homotopy.Space.Torus where

The torusšŸ”—

In classical topology, the two-dimensional torus may be defined as the product of circles, i.e., may be defined as Alternatively, the space may be presented as a CW complex, built by beginning with a point, attaching two 1-cells to form the wedge of two circles, and finishing by attaching a 2-cell.

Such a CW complex can be regarded as a higher inductive type, regarding the 0-cell as a constructor base, the two 1-cells as distinct paths base ā‰” base, and the 2-cell as a square with its top and bottom edges attached to one of the 1-cells, and its left and right edge attached to the other.

data TĀ² : Type where
  base : TĀ²
  loopA : base ā‰” base
  loopB : base ā‰” base
  square : Square loopA loopB loopB loopA

The resulting HIT is equivalent to the product of two circles.

open is-iso

TĀ²ā‰ƒSĀ¹Ć—SĀ¹ : TĀ² ā‰” ( SĀ¹ Ɨ SĀ¹ )
TĀ²ā‰ƒSĀ¹Ć—SĀ¹ = ua (TĀ²ā†’SĀ¹Ć—SĀ¹ , is-isoā†’is-equiv iso-pf) where
  TĀ²ā†’SĀ¹Ć—SĀ¹ : TĀ² ā†’ SĀ¹ Ɨ SĀ¹
  TĀ²ā†’SĀ¹Ć—SĀ¹ base = base , base
  TĀ²ā†’SĀ¹Ć—SĀ¹ (loopA i) = loop i , base
  TĀ²ā†’SĀ¹Ć—SĀ¹ (loopB j) = base , loop j
  TĀ²ā†’SĀ¹Ć—SĀ¹ (square i j) = loop i , loop j

  SĀ¹Ć—SĀ¹ā†’TĀ² : SĀ¹ Ɨ SĀ¹ ā†’ TĀ²
  SĀ¹Ć—SĀ¹ā†’TĀ² (base , base) =  base
  SĀ¹Ć—SĀ¹ā†’TĀ² (base , loop j) = loopB j
  SĀ¹Ć—SĀ¹ā†’TĀ² (loop i , base) = loopA i
  SĀ¹Ć—SĀ¹ā†’TĀ² (loop i , loop j) = square i j

  iso-pf : is-iso TĀ²ā†’SĀ¹Ć—SĀ¹
  iso-pf .inv = SĀ¹Ć—SĀ¹ā†’TĀ²
  iso-pf .rinv (base , base) = refl
  iso-pf .rinv (base , loop j) = refl
  iso-pf .rinv (loop i , base) = refl
  iso-pf .rinv (loop i , loop j) = refl

  iso-pf .linv base = refl
  iso-pf .linv (loopA i) = refl
  iso-pf .linv (loopB j) = refl
  iso-pf .linv (square i j) = refl

Showing that the torus described as a HIT is equivalent to the product of two circles is Exercise 6.3 of the HoTT Book, but this exercise includes a warning that ā€œthe path algebra for this is rather difficult.ā€ The brevity of the above proof ā€“ straightforward invocations of refl ā€“ is a testament to the strength of cubical methods.