246 The Space of Type Theories

The preceding sections built systems one at a time, each answering a particular difficulty. Set beside the established theories — simply typed, System F, Martin-Löf, the Calculus of Constructions, linear, cubical, guarded — they form a collection with no evident order. This section supplies one. Six independent choices generate all of them, and three conditions on those choices separate the sound combinations from the unsound.

246.1 Six Axes

Definition 246.1. A type theory in this classification is a point

\begin{equation} \mathcal {T} = (\,\delta ,\ \pi ,\ \iota ,\ \lambda ,\ \rhd ,\ \ell \,) \tag{16053}\end{equation}
with coordinates as follows.

Axis Name Values What it decides
\(\delta \) dependency \(0\), \(1\) may a type mention a term
\(\pi \) predicativity pred, impred may \(\Pi \) quantify over its own universe
\(\iota \) interval \(0\), \(1\) are paths functions out of \(\mathbb {I}\)
\(\lambda \) linearity free, restricted is \(!\) available on every type
\(\rhd \) guardedness \(0\), \(1\) is there a delay modality
\(\ell \) stratification none, stip, derived how is \(\mathcal {U}:\mathcal {U}\) excluded

The last axis has three values rather than two. None leaves the judgement \(\mathcal {U}:\mathcal {U}\) available; stipulated forbids it by an added rule; derived makes it unwritable through a level function that no other former increases.

246.2 Known Theories as Points

Theory \(\delta \) \(\pi \) \(\iota \) \(\lambda \) \(\rhd \) \(\ell \)
Simply typed \(\lambda \) \(0\) — \(0\) free \(0\) none
System F \(0\) impred \(0\) free \(0\) none
System \(F_\omega \) \(0\) impred \(0\) free \(0\) stip
Martin-Löf \(1\) pred \(0\) free \(0\) stip
Calculus of Constructions \(1\) impred \(0\) free \(0\) stip
Linear logic \(0\) — \(0\) restricted \(0\) none
Book HoTT \(1\) pred \(0\) free \(0\) stip
Cubical \(1\) pred \(1\) free \(0\) stip
Guarded MLTT \(1\) pred \(0\) free \(1\) stip
\(\mathcal {C}\) \(1\) pred \(0\) free \(0\) derived
\(\mathsf {K}\) \(1\) pred \(0\) restricted \(0\) derived
\(\mathcal {P}\) \(1\) pred \(0\) free \(1\) derived
\(\mathcal {S}_\ell \) \(1\) impred \(0\) free \(0\) derived
\(\mathcal {H}\) \(1\) pred \(1\) free \(0\) derived
\(\Omega \) \(1\) pred \(1\) restricted \(1\) derived

Every theory in the upper block is a published system; every theory in the lower block was constructed above. The two blocks differ chiefly in the last column.

246.3 Three Forbidden Combinations

Not every point is sound. Three products of coordinates fail, and each failure is one of the difficulties treated earlier.

Proposition 246.2 (Girard).

\begin{equation} \pi = \mathrm {impred} \ \wedge \ \ell = \mathrm {none} \;\Longrightarrow \; \text {inconsistent.} \tag{16054}\end{equation}

Impredicative quantification over a self-classifying universe permits the Burali-Forti encoding and a looping term. System F escapes because \(\delta = 0\) leaves no universe to classify itself; the Calculus of Constructions escapes by stipulating a hierarchy.

Proposition 246.3 (Leakage).

\begin{equation} \rhd = 1 \ \wedge \ \text {no seal} \;\Longrightarrow \; \text {non-termination in the total fragment.} \tag{16055}\end{equation}

A delay modality supplies \(\mathrm {fix}\), and \(\mathrm {fix}\) without a type-level marker allows divergence to appear in terms whose type promises a value. The seal is the requirement that \(\mathrm {fix} : (\rhd A \to A) \to A\) and that \(\rhd \)-free terms cannot mention it (Section on \(\mathcal {P}\)).

Proposition 246.4 (Stuck univalence).

\begin{equation} \iota = 1 \ \wedge \ \mathrm {ua} \text { an axiom} \;\Longrightarrow \; \text {canonicity fails.} \tag{16056}\end{equation}

An interval without computation rules for \(\mathrm {Glue}\) leaves \(\mathrm {transport}^{\mathrm {ua}(e)}\) irreducible, and closed terms of type \(\mathbb {N}\) need not be numerals.

The safety condition
\begin{equation} \boxed { \ell = \mathrm {derived} \ \wedge \ \bigl (\rhd = 1 \Rightarrow \text {sealed}\bigr ) \ \wedge \ \bigl (\iota = 1 \Rightarrow \mathrm {ua} \text { computed}\bigr ).} \tag{16057}\end{equation}

Theorem 246.5. Under the safety condition, the remaining coordinates \(\delta , \pi , \lambda \) may be set freely, and every resulting theory is consistent, with decidable conversion on its \(\rhd \)-free fragment.

Sketch. \(\ell = \mathrm {derived}\) gives the level function; the measure \((\ell ,\dim ,|t|)\) decreases under every rule, giving strong normalisation on the \(\rhd \)-free fragment, and confluence follows from a finite critical-pair check. Sealing confines divergence to \(\rhd \)-typed terms. Computed univalence removes the only axiom without a reduction rule. Impredicativity is then harmless, since \(\ell \) forbids self-classification independently of \(\pi \); linearity restricts duplication without affecting termination; dependency affects neither. □

246.4 What the Condition Does

Each conjunct replaces a stipulation by a structural fact.

Conjunct Replaces Mechanism
\(\ell \) derived the posited hierarchy \(\ell (\mathcal {U}^{(n)}) = n{+}1\), all else preserving
\(\rhd \) sealed informal totality checking \(\rhd \) in the type marks possible divergence
\(\mathrm {ua}\) computed the univalence axiom \(\mathrm {Glue}\) with computation rules

In each case the classical treatment adds a prohibition to block a known collapse. Under the condition the collapse is not prohibited; it becomes unwritable, and the prohibition is a theorem.

246.5 The Safe Region

Six binary axes give \(2^6 = 64\) points, and the three conditions cut this considerably. Fixing \(\ell = \mathrm {derived}\) and taking the seal and computed univalence as required whenever their axes are on, the free coordinates are \(\delta ,\pi ,\iota ,\lambda ,\rhd \), of which \(\delta = 1\) throughout for any theory of interest.

\(\pi \) \(\iota \) \(\lambda \) \(\rhd \)
\(\mathcal {C}\) pred \(0\) free \(0\) the total core
\(\mathsf {K}\) pred \(0\) restr \(0\) no duplication of forms
\(\mathcal {P}\) pred \(0\) free \(1\) Turing-complete, sealed
\(\mathcal {S}_\ell \) impred \(0\) free \(0\) full classical signature
\(\mathcal {H}\) pred \(1\) free \(0\) homotopy, canonical
— impred \(1\) free \(0\) impredicative cubical
— pred \(1\) restr \(0\) linear homotopy
\(\Omega \) pred \(1\) restr \(1\) all four features

Eight points, of which six were constructed above and two are combinations the classification exhibits without our having built them.

246.6 The Common Residue

Every point in the safe region shares one feature, and it is the feature that made the region safe.

System How the absence appears
\(\mathcal {C}\) no \(\mathrm {eval}\), hence no \(\ulcorner \cdot \urcorner \)
\(\mathsf {K}\) no \(!\mathsf {Form}\), hence no duplication
\(\mathcal {S}_\ell \) \(\ell (\ulcorner \varphi \urcorner ) = \ell (\varphi )+1\)
\(\mathcal {H}\) no \(\mathcal {U}^{(\infty )}\)
\(\mathcal {X}\) no stage is the limit
\(\mathcal {M}\) no finite approximation is the fixed point
\(\mathcal {X}_N\) no vertex interprets the network
\(\mathcal {X}_D\) no position addresses itself
\(\mathcal {X}_A\) no act is its own trace
\begin{equation} \boxed { \text {safe} \;\Longleftrightarrow \; \text {no self-model} \;\Longleftrightarrow \; O \subsetneq T .} \tag{16058}\end{equation}

Remark 246.6. The classification is not a completeness claim. Six axes were chosen because they separate the systems discussed here; others — modality, effects, resource bounds, sized types — would add coordinates, and some existing theories sit awkwardly on this grid.

What the grid does show is that the systems built above are not alternatives to the established ones but relocations along a single coordinate. Every published theory in the upper table has \(\ell = \mathrm {stip}\): the hierarchy is added to block a collapse whose possibility is already known. Setting \(\ell = \mathrm {derived}\) changes nothing else and makes the same collapse unwritable. The other five axes were free all along.