Skip to main content
QUICK REVIEW

[Paper Review] A General Framework for the Semantics of Type Theory

Taichi Uemura|arXiv (Cornell University)|Apr 8, 2019
Logic, programming, and type systemsComputer Science21 references14 citations
TL;DR

This paper proposes a general categorical framework for the semantics of type theories using representable categories with families (cwfs), unifying Martin-Löf type theory, two-level type theory, and cubical type theory. It establishes a bi-equivalence between the category of theories over a type theory and the full sub-2-category of democratic models, providing a uniform correspondence between syntax and semantics via a left bi-adjoint syntactic model functor.

ABSTRACT

We propose an abstract notion of a type theory to unify the semantics of various type theories including Martin-Löf type theory, two-level type theory and cubical type theory. We establish basic results in the semantics of type theory: every type theory has a bi-initial model; every model of a type theory has its internal language; the category of theories over a type theory is bi-equivalent to a full sub-2-category of the 2-category of models of the type theory.

Motivation & Objective

  • To unify the semantics of diverse type theories—such as Martin-Löf, two-level, and cubical type theories—under a single categorical framework.
  • To define a general notion of a type theory as a category with representable arrows, enabling a uniform treatment of syntax and models.
  • To establish a correspondence between theories and models in a purely categorical way, generalizing classical results like Lambek–Scott and Seely’s equivalences.
  • To introduce the concept of democratic models as the essential image of the syntactic model functor, characterizing which models arise from syntactic constructions.
  • To lay the foundation for higher-dimensional generalizations, including ∞-type theories, and to explore reconstruction of type theories from their model 2-categories.

Proposed method

  • Define a type theory as a category T equipped with a specified class of representable arrows, generalizing cwfs as models.
  • Define a model of a type theory as a functor F: T → PSh(C) that preserves representability, mapping representable arrows to representable maps of presheaves.
  • Define a T-theory as a functor from T to Set, assigning to each object the set of closed derivations of that judgment form.
  • Construct a 2-functor LT: ModT → ThT assigning to each model its internal language, and prove it has a left bi-adjoint MT assigning to each theory its syntactic model.
  • Characterize the image of MT as the full sub-2-category of democratic models, where democratic means the model satisfies a universal property with respect to representable arrows.
  • Use the 2-category Rep of type theories to compare different type theories via interpretations, and explore reconstruction of T from ModT via a 2-functor Mod(−) to 2-categories over Cat1.

Experimental results

Research questions

  • RQ1Can a general notion of type theory be defined that unifies Martin-Löf, two-level, and cubical type theories in a single categorical framework?
  • RQ2Is there a uniform correspondence between theories and models for such generalized type theories, extending classical results like those of Lambek–Scott and Seely?
  • RQ3What characterizes the models that arise as syntactic models of some theory, and can this class be axiomatized?
  • RQ4Can the syntactic model construction be shown to be a left bi-adjoint to the internal language functor, and what does this imply for the structure of the model 2-category?
  • RQ5Can the original type theory be reconstructed from its 2-category of models, and what conditions ensure this reconstruction?

Key findings

  • Every type theory T has a bi-initial model, meaning there exists a universal syntactic model construction that is initial up to equivalence.
  • The internal language functor LT: ModT → ThT (regarded as a locally discrete 2-category) has a left bi-adjoint MT, which assigns to each T-theory its syntactic model.
  • The syntactic model functor MT is locally an equivalence, inducing a bi-equivalence between the category of T-theories and the bi-essential image of MT.
  • The bi-essential image of MT is precisely the class of democratic models of T, which are models satisfying a universal property with respect to representable arrows.
  • The 2-category of models ModT is locally presentable in a bicategorical sense, suggesting that T can be reconstructed from ModT via finitely bi-presentable objects.
  • The framework generalizes naturally to ∞-type theories, allowing categorical models of type theories to be seen as models of an ∞-type theory, thus unifying higher and ordinary semantics.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.