A Type Theory for Comprehension Categories with Applications to Subtyping
Preprint
Abstract
In this paper we develop a type theory that we show is an internal language for comprehension categories. This type theory is closely related to Martin-L\"of type theory (MLTT). Indeed, semantics of MLTT are often given in comprehension categories, albeit usually only in discrete or full ones. As we explain, requiring a comprehension category to be full or discrete can be understood as removing one `dimension' of morphisms. Thus, in our syntax, we recover this extra dimension. We show that this extra dimension can be used to encode subtyping in a natural way. Important instances of non-full comprehension categories include ones used for constructive or univalent intensional models of MLTT and directed type theory, and so our syntax is a more faithful internal language for these than is MLTT.Keywords
All Related Versions
This publication has 21 references indexed in Scilit:
- Comparing Semantic Frameworks for Dependently-Sorted Algebraic Theories2024
- A characterisation of elementary fibrationsAnnals of Pure and Applied Logic, 2022
- Effective Kan Fibrations in Simplicial Sets2022
- Towards a Directed Homotopy Type TheoryElectronic Notes in Theoretical Computer Science, 2019
- A cubical model of homotopy type theoryAnnals of Pure and Applied Logic, 2018
- Coercive subtyping: Theory and implementationInformation and Computation, 2013
- 2-Dimensional Directed Type TheoryElectronic Notes in Theoretical Computer Science, 2011
- Internal type theory1996
- Comprehension categories and the semantics of type dependencyTheoretical Computer Science, 1993
- Generalised algebraic theories and contextual categoriesAnnals of Pure and Applied Logic, 1986