Homotopy Type Theory in Computation

Cubical type theory gives computational rules for paths, transport and univalence. These rules let a change of representation act on actual values.

Source
Anbloq
Language
English
Created
Updated
Chapters
3
Reading time
2 min
In this article3 chapters
  1. Paths have faces and composition
  2. Transport across a change of representation
  3. Higher generators give elimination rules

Paths have faces and composition

In a cubical presentation, a path in a type is described over an interval dimension, with its two endpoints constrained. Substituting a face value selects one endpoint. Filling and composition operations extend compatible partial cubes and transport values through families of types. The interval is part of the cubical structure. Treating it as an ordinary inductive two-element datatype would lose the intermediate dimension and the rules that support composition.

The simply typed lambda calculus gives a baseline for reduction and typing. The proof-term interpretation explains why an inhabitant of a type can itself carry structure worth computing with.

Transport across a change of representation

For an equivalence \(e:A\simeq B\), univalence supplies a path between the types. In suitable cubical systems, gluing constructs that path from the equivalence. Its transport implements the underlying map, with the precise computation equality governed by the system’s rules.

\[ \operatorname{transport}_{\operatorname{ua}(e)}(a)\simeq e(a). \]

Here the symbol between the values denotes agreement up to a path. For the Boolean equivalence that interchanges the two values, transport interchanges them. The example tests computational content directly. A reflexivity path would instead transport each Boolean to itself. Conversion and propositional computation rules specify exactly what an implementation may simplify during type checking.

Higher generators give elimination rules

A higher inductive circle has a point and a generating loop. Its eliminator requires data for the point and a compatible path for the loop. Higher-dimensional generators similarly impose boundary data. The mathematical treatment of homotopy type theory uses these rules to calculate the circle’s fundamental group. In an implementation the central concerns are which equalities normalize and how to verify compositions of faces. Those build on dependent type theory and the operational part of language semantics.[1][2]

References

  1. Cyril Cohen, Thierry Coquand, Simon Huber and Anders Mörtberg, Cubical Type Theory: A Constructive Interpretation of the Univalence Axiom ↩
  2. The Univalent Foundations Program, Homotopy Type Theory ↩