Simple type theory, Martin-Löf’s intuitionistic type theory (ITT), the calculus of constructions,
homotopy type theory and cubical type theory are not alternatives but initial segments of a
single chain issuing from \(A=A\). The identity type is the fibre of the diagonal, the dependent
products and sums are the adjoints of composition, the universe hierarchy is the rank
stratification, path inversion is the involution, and univalence occupies the position held
throughout by the one inequality.
195.1 The identity type is the diagonal
The diagonal \(\Delta :A\to A\times A\) is what \(A=A\) furnishes. Its fibres over a pair give the identity type, and its
image gives the canonical inhabitant:
Nothing further is needed to obtain \(\mathrm {Id}\) and \(\mathrm {refl}\): the
type of identifications and its reflexivity witness are the fibre and the section of one
map.
195.2 Dependent sums and products are the adjoints of composition
Composition was defined by an existential quantifier, and the type-theoretic counterparts are
This is the same adjoint pattern as the free–forgetful
adjunction \(F\dashv U\) of Subsection 584: \(\Sigma \) is the existential of composition and \(\Pi \) its universal
companion.
195.3 The universe hierarchy is the rank stratification
Consistency requires \(U_\alpha :U_{\alpha +1}\) and \(U_\alpha \not :U_\alpha \), which is the irreflexivity \(\neg (\alpha <\alpha )\) used in Subsection 194 to exclude a fixed
point of the successor. The same condition that forbids \(\omega =s(\omega )\) forbids \(U\in U\), and it is the cone condition \(P\cap (-P)=\{0\}\)
read in the relational form \(R\cap \vartheta R\subseteq \Delta \).
195.4 Path algebra is the triple \((\Delta ,\circ ,\vartheta )\)
Reading \(\mathrm {Id}_A(a,b)\) as a type of paths, the operations are
with \((p^{-1})^{-1}=p\). These are precisely the three ingredients
of the order axioms:
Path operation
Relational form
Axiom
\(\mathrm {refl}\)
\(\Delta \subseteq R\)
reflexivity
\(p\cdot q\)
\(R\circ R\subseteq R\)
transitivity
\(p^{-1}\)
\(\vartheta =(-)^{\mathrm {op}}\)
symmetry
The difference from an order is that here symmetry is asserted rather than excluded: a
groupoid is what one obtains by keeping \(\vartheta \) instead of imposing \(R\cap \vartheta R\subseteq \Delta \). Orders and groupoids are thus
the two ways of treating the same involution.
195.5 Higher structure is the stratification iterated
Identifications between identifications give cells of every dimension,
and the resulting
\(\infty \)-groupoid is the rank stratification applied to the path types themselves, with \(L_n\) the
\(n\)-cells. The construction does not terminate, and no truncation is imposed — the
situation of Subsection 235.14, where levelwise statements suffice and no limit is
taken.
that is, that an equivalence may be promoted to an identification. In the
present notation an equivalence is an instance of \(\vartheta \) and an identification is an instance of \(\Delta \), so
univalence is the assertion \(\vartheta \subseteq \Delta \) at the level of universes. It is therefore an axiom of the same kind as
\(\Pi \ge \tfrac 12\): the preceding structure is available for free, and what is added is the passage from
“exchangeable” to “identified”.
Higher inductive types add generators in the path types, the simplest being
so that \(\mathrm {loop}\) is a
self-identification — a fixed point of the involution, presented as data rather than excluded.
The computation \(\pi _1(S^1)=\mathbb {Z}\) then recovers the integers of Subsection 584, with path concatenation as
addition and \(p^{-1}\) as negation.
195.7 The interval is the partition
Cubical type theory replaces the identity type by maps out of an interval,
\begin{equation} \mathbb {I}=\{0,1\},\quad 0\neq 1, \qquad p:\mathbb {I}\to A, \tag{10982}\end{equation}
and \(\mathbb {I}\) is the
two-element structure \(\{O,U\}\) met throughout. A path is then a field on the partition, the dual of the
presentation in Section 278 where a field was a map from the partition boundary to its
parts.
195.8 Where each theory stops
Theory
Segment of the chain
simple type theory
\(\Delta \), \(\circ \), exponentials
Martin-Löf
\(+\ \Pi ,\ \Sigma ,\ \mathrm {Id},\ U_\alpha \)
calculus of constructions
\(+\) an impredicative universe
homotopy type theory
\(+\ \infty \)-groupoid, univalence
cubical type theory
\(+\ \mathbb {I}\), making univalence computational
Three observations summarise the section. First, the identity type and the order relation are
built from the same three operations, and differ only in whether \(\vartheta \) is kept (groupoid) or
quotiented (\(R\cap \vartheta R\subseteq \Delta \), order). Second, the universe hierarchy and the exclusion of a fixed point
for the successor are one condition, irreflexivity, so Russell’s paradox and \(\neg (\omega =s(\omega ))\) are the
same obstruction. Third, univalence sits where \(\Pi \ge \tfrac 12\) sits: everything before it follows from
the identity, and it is the single further assertion that converts a symmetry into an
identification.