For Generalised Algebraic Theories, Two Sorts Are Enough

📅 2026-01-27
📈 Citations: 0
Influential: 0
📄 PDF

career value

202K/year
🤖 AI Summary
Generalized algebraic theories (GATs) are often structurally complex due to multiple mutually indexed sorts, making their implementation in type-theoretic systems such as Cubical Agda challenging. This work proposes a semantic reduction method that, for the first time, demonstrates any GAT can be losslessly compressed into an equivalent GAT with only two sorts, thereby eliminating sort equations and interleaved constructors. Building on Uemura’s characterization via bi-initial objects, we establish a strict coreflective correspondence between the original and reduced models within the 2-category of finitely complete categories equipped with chosen exponentiable morphisms. The transformation is identity-on-objects in both directions, yielding a normalized GAT structure that significantly enhances the realizability of quotient inductive-inductive types (QIITs) in existing type-theoretic frameworks.

Technology Category

Application Category

📝 Abstract
Generalised algebraic theories (GATs) allow multiple sorts indexed over each other. For example, the theories of categories or Martin-L{\"o}f type theories form GATs. Categories have two sorts, objects and morphisms, and the latter are double-indexed over the former. Martin-L{\"o}f type theory has four sorts: contexts, substitutions, types and terms. For example, types are indexed over contexts, and terms are indexed over both contexts and types. In this paper we show that any GAT can be reduced to a GAT with only two sorts, and there is a section-retraction correspondence (formally, a strict coreflection) between models of the original and the reduced GAT. In particular, any model of the original GAT can be turned into a model of the reduced (two-sorted) GAT and back, and this roundtrip is the identity. The reduced GAT is simpler than the original GAT in the following aspects: it does not have sort equalities; it does not have interleaved sorts and operations; if the original GAT did not have interleaved sorts and operations, then the reduced GAT won't have operations interleaved between different sorts. In a type-theoretic metatheory, the initial algebra of a GAT is called a quotient inductive-inductive type (QIIT). Our reduction provides a way to implement QIITs with sort equalities or interleaved constructors which are not allowed by Cubical Agda. An instance of our reduction is the well-known method of reducing mutual inductive types to a single indexed family. Our approach is semantic in that it does not rely on a syntactic description of GATs, but instead, on Uemura's bi-initial characterisation of the category of (finite) GATs in the 2-category of finitely complete categories with a chosen exponentiable morphism.
Problem

Research questions and friction points this paper is trying to address.

Generalised Algebraic Theories
sorts
quotient inductive-inductive types
model correspondence
type theory
Innovation

Methods, ideas, or system contributions that make the work stand out.

Generalised Algebraic Theories
two-sorted reduction
quotient inductive-inductive types
strict coreflection
semantic encoding