Homotopy Type Theory

Homotopy type theory treats equality as a type of paths. Univalence identifies paths of types with equivalences, and higher inductive types describe spaces by their generators.

Source
Anbloq
Language
English
Created
Updated
Chapters
3
Reading time
2 min
In this article3 chapters
  1. Paths and equivalences
  2. Presenting the circle as a type
  3. Synthetic homotopy and computation

Paths and equivalences

For \(a,b:A\), the identity type \(a=_A b\) has terms that behave like paths. Identities between terms of this type behave like homotopies between paths. An identity \(P:A=B\) between two types induces an equivalence by transport. The univalence axiom says that for types in the same univalent universe the resulting map \[ \operatorname{idtoequiv}_{A,B}:(A=B)\longrightarrow(A\simeq B) \] is itself an equivalence. This lets constructions defined uniformly on types respect equivalences through the ordinary rules of identity. Judgmental equality still has a separate role. It is the equality of terms built into the type checker’s conversion rules.

Presenting the circle as a type

The higher inductive circle has a point \(b:S^1\) and a path \(\ell:b=b\). Its recursion rule says that to map \(S^1\) into another type \(X\), one supplies a point \(x:X\) and a loop \(x=x\). For a concrete calculation, construct a family over \(S^1\) whose fibre at \(b\) is \(\mathbb Z\) and whose transport along \(\ell\) is the successor equivalence. Univalence gives the path of types needed to specify this transport. Encoding a loop means transporting \(0\) along it. Decoding \(n\in\mathbb Z\) sends it to the signed iterate \(\ell^n\). The induction principle for \(S^1\) proves the encode–decode equivalence, recovering \[ \pi_1(S^1,b)\cong\mathbb Z . \]

Synthetic homotopy and computation

The calculation uses dependent types, transport, and induction, and recovers the winding-number result also seen in covering-space theory. Identity types model the hierarchy of homotopies discussed in higher category theory. Computational treatments such as cubical type theories explain how univalence can act through concrete rules for paths. A formal proof assistant checks whatever rules its kernel implements. Ordinary dependent type theory alone does not confer every principle of homotopy type theory.[1]

References

  1. The Univalent Foundations Program, Homotopy Type Theory ↩