Skip to main content
QUICK REVIEW

[Paper Review] Algebraic Type Theory and Universe Hierarchies

Jonathan Sterling|arXiv (Cornell University)|Feb 23, 2019
Logic, programming, and type systemsComputer Science25 references13 citations
TL;DR

This paper presents a purely algebraic formulation of Martin-Löf Type Theory with universes `a la Russell`, demonstrating that such universes can be modeled algebraically without requiring elaboration. It establishes canonicity for a type theory with dependent functions, universes, and a two-element base type using a computability model and initial algebra semantics.

ABSTRACT

It is commonly believed that algebraic notions of type theory support only universes à la Tarski, and that universes à la Russell must be removed by elaboration. We clarify the state of affairs, recalling the details of Cartmell's discipline of _generalized algebraic theory_, showing how to formulate an algebraic version of Coquand's cumulative cwfs with universes à la Russell. To demonstrate the power of algebraic techniques, we sketch a purely algebraic proof of canonicity for Martin-Löf Type Theory with universes, dependent function types, and a base type with two constants.

Motivation & Objective

  • To clarify the misconception that algebraic type theories can only model universes `a la Tarski`, showing that `a la Russell` universes are also algebraically definable.
  • To develop a streamlined, modern presentation of generalized algebraic theories (GATs) with proper staging of well-formedness and equality judgments.
  • To demonstrate that canonicity for a core type theory with dependent functions, universes, and a base type can be proven purely algebraically.
  • To show that the computability model construction, based on initial algebras, supports the interpretation of `a la Russell` universes and enables canonicity proofs.
  • To establish that the projection from the computability model to the underlying type theory preserves equality and term structure, enabling the extraction of canonical values.

Proposed method

  • Formalizing a modernized, staged presentation of generalized algebraic theories (GATs) with presuppositions to streamline well-formedness checks.
  • Defining a computability model as a gluing construction over a category of contexts, where each term is interpreted with a realizer (proof term) in a hierarchy of universes.
  • Interpreting contexts, substitutions, and type formers (including dependent function types and universes) in a category-theoretic setting using initial algebras.
  • Defining the interpretation of `a la Russell` universes as families of logical families indexed by size, with realizers in the cumulative hierarchy Vα.
  • Using the initiality of the model C to ensure that any closed term of a base type must be equal to one of its canonical constructors.
  • Applying a projection functor π from the computability model to the underlying type theory, which forgets realizers but preserves equality and term structure.

Experimental results

Research questions

  • RQ1Can universes `a la Russell` be modeled algebraically within generalized algebraic type theory without requiring type-encoding or elaboration?
  • RQ2Is it possible to prove canonicity for a type theory with dependent function types, universes `a la Russell`, and a base type with two constants using purely algebraic and categorical methods?
  • RQ3How can the computability model be adapted to interpret `a la Russell` universes in a way that preserves proof irrelevance and cumulativity?
  • RQ4What role does initiality play in ensuring that closed terms of a base type reduce to canonical values?
  • RQ5Can the projection from the computability model to the standard type theory be shown to preserve equality and term structure?

Key findings

  • Universes `a la Russell` can be algebraically interpreted in generalized algebraic type theory by modeling them as families of logical families indexed by size, with realizers in the cumulative hierarchy Vα.
  • The computability model construction provides a fully algebraic proof of canonicity for Martin-Löf Type Theory with dependent functions, universes, and a two-element base type.
  • The initial model C of the type theory TΠ_cwf ensures that any closed term M of type El(· ⊢ color) must be equal to either red or green, as shown via the projection π and the universal property of initiality.
  • The projection functor π from the computability model to the standard type theory is a homomorphism of TΠ_cwf-algebras, preserving equality and term structure.
  • The interpretation of type lifing is well-defined and respects the cumulative hierarchy, ensuring that ⇑βαA has the same elements as A.
  • The interpretation of dependent function types is given by a family of functions indexed over closed contexts and their realizers, with explicit handling of application and abstraction.

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.