arXiv:2610.41941cs.LOOct 2026

Manuscript Offprint

arXiv:2610.41941

Type classifiers

Martin E. Bidlingmaier

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

We extend dependent type theory by type classifiers and construct an interpretation in the category of contextual categories with families. Type classifiers extend contexts by type variables, complementing the usual context extensions by term variables of specified types. This allows statements with arbitrary type parameters to be formulated without assuming a universe.

We show that substituting isomorphic types induces isomorphisms between the resulting types even in extensional type theory, giving an analogue of the invariance supplied by the univalence axiom in homotopy type theory. Omitting function types from the theory, so that all type formers are covariant, extends this naturality to arbitrary, possibly noninvertible maps.

1 Introduction

Many mathematical assertions involve a free type parameter. A theorem about all groups, for example, must quantify over all possible carrier types. In dependent type theory, such quantification is usually expressed using universe types, whose elements encode types. This approach works well in practice, but it has limitations.

Girard's paradox rules out a universe that contains itself. We can thus either restrict the theorem to small types, those classified by a chosen universe, or introduce an infinite hierarchy U0∈U1∈⋯∈Uℓ∈⋯U_0 \in U_1 \in \cdots \in U_\ell \in \cdots and use universe polymorphism to quantify over its levels ℓ\ell. But universe polymorphism only shifts the quantification problem, since types quantifying over the whole indexed hierarchy need not belong to any of its universes. Such types can be interpreted in a larger universe U∞U_\infty, but this universe then lies outside the hierarchy over which we quantified. The quantification still fails to cover all types of the enlarged theory.

A further drawback is that universe closure axioms increase the proof-theoretic strength of the theory [5, Section 4], often unnecessarily. For example, when elementary results about groups are formulated using universes, the existence of those universes must be assumed even though they are not needed for the proofs. The resulting formalization cannot be interpreted directly in small models without those universes, even when the arguments could be carried out there.

We introduce type classifiers for extending contexts by free type parameters, alongside the usual extensions by term parameters. Their universal property permits substitution by any closed type. We thus obtain a context classifying all types, rather than a type classifying all types. A theorem about all groups, for example, is represented by a type in a context containing a free type variable for the carrier type and parameters for the group structure. It can be specialized by substitution to any particular group. The theorem is formulated in this extended context, rather than as a dependent product over a universe in the empty context.

The notion of a type classifier is analogous to that of a relative object classifier in topos theory. Such a classifier exists over every Grothendieck topos, with the universal property that geometric morphisms into it over the base correspond to objects of the domain topos. In particular, sections correspond to objects of the base topos. This similarly permits reasoning about arbitrary objects without requiring an internal universe object classifying them.

The main contribution of this article is a model of dependent type theory interpreting type classifiers. Standard models are typically democratic, meaning that every context is represented by a closed type. A context classifying all types would then yield a universe classifying all types, including itself, which is ruled out by Girard's paradox. We use a simplified version of the big model construction for locally cartesian closed (lcc) categories introduced in [2]. Contexts in big models are themselves small models of type theory, in our case contextual categories with families (cwfs). A type or term at a context C\mathcal{C} is a closed type or term of the cwf C\mathcal{C}, and covariant substitutions are functors that preserve the cwf structure and type and term formers.

In the big model construction based on lcc categories, considerable effort is needed to obtain well-behaved context extensions by term variables. Working with contextual cwfs simplifies this step: By a result of Bocquet, Kaposi, and Sattler [3, Lemma 25], freely adjoining a term of a given closed type yields the contextual coslice, with a universal property for strict morphisms of cwfs. Type classifiers are then obtained as coproducts with the free contextual cwf on one closed type.

As a category of categories, the big model also has 2-categorical structure: its substitutions are functors, and we can therefore consider natural transformations between substitutions. We show that substituting isomorphic types into a type classifier gives naturally isomorphic substitutions, inducing isomorphisms between the resulting types.

This naturality can itself be expressed in the type theory by additional operators and equations. The resulting extension gives an analogue of the invariance supplied by the univalence axiom in homotopy type theory, even for extensional type theory. Omitting function types from the theory, so that all type formers are covariant, extends the naturality to arbitrary, possibly noninvertible maps.