245 System \(\mathcal {H}\): Homotopy Type Theory Repaired

Homotopy type theory as presented in the standard reference leaves four things open. Each has been addressed separately in the literature or in the systems above; \(\mathcal {H}\) settles all four at once, and the settlements do not interfere.

Open in book HoTT Repaired by
(a) canonicity: \(\mathrm {ua}\) is an axiom, so \(\mathrm {transport}^{\mathrm {ua}(e)}\) does not reduce an interval and \(\mathrm {Glue}\)
(b) the universe hierarchy is postulated to block Girard the level function \(\ell \) of \(\mathcal {S}_\ell \)
(c) no general semantics for higher inductive types the colimit construction of \(\mathcal {X}\)
(d) decidability of conversion under univalence strong normalisation, as in \(\mathcal {C}\)

245.1 (a) Canonicity: Univalence Becomes a Theorem

Definition 245.1 (Interval). Adjoin a formal interval \(\mathbb {I}\) with endpoints \(0,1\) and the lattice operations \(\wedge ,\vee ,{-}\). A path is a function out of it:

\begin{equation} p : x =_A y \quad \rightsquigarrow \quad p : \mathbb {I} \to A, \quad p(0) \equiv x,\ p(1) \equiv y . \tag{16037}\end{equation}

Transport is then composition, and composition has computation rules given per type former:

\begin{align} \mathrm {comp}^{\,i.\,\mathbb {N}} &\equiv \mathrm {id}, \tag{16038}\\ \mathrm {comp}^{\,i.\,A\to B}(f) &\equiv \lambda a.\ \mathrm {comp}^{\,i.B}\bigl (f(\mathrm {comp}^{\,i.A}_{1\to 0}(a))\bigr ), \tag{16039}\end{align}

and similarly for \(\Sigma \), \(\Pi \) and the inductive types.

Definition 245.2 (Glue). For a partial equivalence \(e : T \simeq A\) on an extent \(\varphi \),

\begin{equation} \mathrm {Glue}\,[\,\varphi \mapsto (T,e)\,]\,A \tag{16040}\end{equation}
is a type agreeing with \(T\) on \(\varphi \) and with \(A\) elsewhere.

Theorem 245.3 (Univalence). \(\mathrm {ua}(e) := \lambda i.\ \mathrm {Glue}\,[\,(i=0)\mapsto (A,e),\ (i=1)\mapsto (B,\mathrm {id})\,]\,B\) is a path \(A =_{\mathcal {U}} B\), and

\begin{equation} \boxed {\mathrm {transport}^{\mathrm {ua}(e)}(a) \;\equiv \; e(a)} \tag{16041}\end{equation}
holds definitionally.

Corollary 245.4 (Canonicity). Every closed term of type \(\mathbb {N}\) reduces to a numeral.

Sketch. Induction on type structure. The only new redexes are \(\mathrm {comp}\) and \(\mathrm {Glue}\), and each has a computation rule reducing it to constructors of the type it targets. At \(\mathbb {N}\) the composition rule is the identity, so no residual \(\mathrm {comp}\) can block a numeral. □

Univalence is now derived rather than assumed, which is what canonicity required.

245.2 (b) The Hierarchy Becomes a Consequence

Book HoTT posits \(\mathcal {U}_0 : \mathcal {U}_1 : \cdots \) in order to avoid Girard’s paradox. \(\mathcal {H}\) derives the same stratification from the level function of \(\mathcal {S}_\ell \).

Definition 245.5.

\begin{align} \ell (\mathbb {I}) &= 0, \tag{16042}\\ \ell (A \to B) = \ell (\Pi _{x:A}B) &= \max \bigl (\ell A, \ell B\bigr ), \tag{16043}\\ \ell \bigl (\mathrm {Path}_A(x,y)\bigr ) &= \ell (A), \tag{16044}\\ \ell \bigl (\mathrm {Glue}[\varphi \mapsto (T,e)]A\bigr ) &= \max \bigl (\ell T, \ell A\bigr ), \tag{16045}\\ \ell (\mathcal {U}^{(n)}) &= n+1 . \tag{16046}\end{align}

Every former preserves the level; only forming a universe raises it.

Theorem 245.6 (Girard is unwritable). \(\mathcal {U} : \mathcal {U}\) is inadmissible.

Proof. A universe classifying types of level \(\ell (\mathcal {U})\) has level \(\ell (\mathcal {U})+1\). The judgement asks for \(\ell (\mathcal {U}) = \ell (\mathcal {U})+1\), hence \(0 = 1\). □

Remark 245.7. The path former preserves level, which is what allows (a) and (b) to coexist: introducing \(\mathbb {I}\) adds no universe and therefore costs nothing in the hierarchy. Cumulativity \(\mathcal {U}^{(n)} : \mathcal {U}^{(n+1)}\) remains available, and only self-classification is excluded. The hierarchy is thus a theorem about \(\ell \), not a stipulation.

245.3 (c) Higher Inductive Types as Colimits

A higher inductive type is specified by point constructors, then path constructors, then paths between paths, and book HoTT gives no general account of what such a specification denotes. Build it as a colimit.

Definition 245.8. Given a HIT specification, set

\begin{align} H_0 &:= \text {the type freely generated by the point constructors}, \tag{16047}\\ H_{n+1} &:= H_n \text { with the level-}(n{+}1)\text { path constructors adjoined}, \tag{16048}\end{align}

with the evident inclusions \(j_n : H_n \hookrightarrow H_{n+1}\), and

\begin{equation} H := \varinjlim _n H_n . \tag{16049}\end{equation}

Proposition 245.9. Each \(H_n\) is finitely presented, and \(H\) satisfies the induction principle of the specification.

Example 245.10. For the circle: \(H_0 = \{\mathrm {base}\}\) and \(H_1 = H_0 \cup \{\mathrm {loop} : \mathrm {base} = \mathrm {base}\}\), with \(H_n = H_1\) for \(n \geq 1\). Then \(S^1 = H\) and \(\pi _1(S^1) \cong \mathbb {Z}\) by the usual argument.

Remark 245.11. This is the construction of \(\mathcal {X}\) read in the other direction. There \(M = \varprojlim M_n\) produced a self-model from an inverse system; here \(H = \varinjlim H_n\) produces a higher inductive type from a direct one. In both cases the object of interest is a limit, no finite stage is that limit, and the induction principle is the statement that maps out of the limit are determined stagewise.

245.4 (d) Conversion is Decidable

Theorem 245.12 (Strong normalisation). Every well-typed term of \(\mathcal {H}\) is strongly normalising.

Sketch. Order terms by the lexicographic measure

\begin{equation} \mu (t) = \bigl (\ell (t),\ \dim (t),\ |t|\bigr ), \tag{16050}\end{equation}
where \(\dim \) counts interval variables and \(|t|\) counts symbols. Each rule strictly decreases \(\mu \):

Rule Decreases Others
\(\beta \) \(|t|\) \(\ell ,\dim \) unchanged
\(\mathrm {comp}\) \(\dim \) \(\ell \) unchanged
\(\mathrm {Glue}\) elimination \(\dim \) \(\ell \) unchanged
universe formation — raises \(\ell \), not a reduction

The order is well-founded on each term, so descent halts. □

Theorem 245.13 (Confluence). The rule set is finite and its critical pairs converge, so by Newman’s lemma reduction is confluent.

Corollary 245.14 (Decidability).

\begin{equation} A \equiv B \iff \mathrm {nf}(A) = \mathrm {nf}(B), \tag{16051}\end{equation}
and conversion, hence type checking, is decidable.

The obstruction in book HoTT was \(\mathrm {ua}\): an axiom with no reduction rule leaves normal forms containing it, and comparison undecided. With (a) in place there is no such axiom.

245.5 The Four Repairs Are Independent

Repair Mechanism Interference
(a) canonicity \(\mathbb {I}\), \(\mathrm {comp}\), \(\mathrm {Glue}\) none: \(\ell (\mathbb {I}) = 0\)
(b) hierarchy \(\ell (\mathcal {U}^{(n)}) = n+1\) none: path formers preserve \(\ell \)
(c) HITs \(\varinjlim _n H_n\) none: each \(H_n\) finitely presented
(d) decidability SN via \((\ell ,\dim ,|t|)\) requires (a); \(\ell \) from (b)

Only (d) depends on the others, and it depends on both in the direction that helps: it needs \(\mathrm {ua}\) to compute, which (a) supplies, and it needs \(\ell \) for the first component of the measure, which (b) supplies.

Book HoTT Cubical \(\mathcal {H}\)
Canonicity no yes yes
Hierarchy derived no no yes
HIT semantics partial partial colimit
Conversion decidable open yes yes
\(\mathcal {U}:\mathcal {U}\) excluded by stipulation stipulation \(\ell \)

Remark 245.15. Cubical type theory already achieves (a) and (d); what \(\mathcal {H}\) adds is (b) and (c), and these are the two that were stipulated rather than proved. The universe hierarchy in every existing system is a prohibition inserted to block a known collapse, exactly as Russell’s types were. Here it follows from a level function that no rule increases except universe formation, and the collapse becomes unwritable rather than forbidden. The residue is the one carried throughout: there is no \(\mathcal {U}^{(\infty )}\), because a universe classifying all types would classify itself.

\begin{equation} \boxed { \mathcal {H} = \text {HoTT} + \mathbb {I} + \ell + \varinjlim \;\Longrightarrow \; \text {canonicity},\ \text {derived hierarchy},\ \text {HIT semantics},\ \text {decidability}.} \tag{16052}\end{equation}