Hostname: page-component-6766d58669-l4t7p Total loading time: 0 Render date: 2026-05-14T12:20:06.395Z Has data issue: false hasContentIssue false

Bicategorical type theory: semantics and syntax

Published online by Cambridge University Press:  17 October 2023

Benedikt Ahrens
Affiliation:
Delft University of Technology, Delft, Netherlands University of Birmingham, Birmingham, UK
Paige Randall North
Affiliation:
Utrecht University, Utrecht, Netherlands
Niels van der Weide*
Affiliation:
Radboud University, Nijmegen, Netherlands
*
Corresponding author: Niels van der Weide; Email: nweide@cs.ru.nl
Rights & Permissions [Opens in a new window]

Abstract

We develop semantics and syntax for bicategorical type theory. Bicategorical type theory features contexts, types, terms, and directed reductions between terms. This type theory is naturally interpreted in a class of structured bicategories. We start by developing the semantics, in the form of comprehension bicategories. Examples of comprehension bicategories are plentiful; we study both specific examples as well as classes of examples constructed from other data. From the notion of comprehension bicategory, we extract the syntax of bicategorical type theory, that is, judgment forms and structural inference rules. We prove soundness of the rules by giving an interpretation in any comprehension bicategory. The semantic aspects of our work are fully checked in the Coq proof assistant, based on the UniMath library.

Information

Type
Paper
Creative Commons
Creative Common License - CCCreative Common License - BY
This is an Open Access article, distributed under the terms of the Creative Commons Attribution licence (http://creativecommons.org/licenses/by/4.0/), which permits unrestricted re-use, distribution and reproduction, provided the original article is properly cited.
Copyright
© The Author(s), 2023. Published by Cambridge University Press
Figure 0

Figure 1. Rules for the bicategory of contexts.

Figure 1

Figure 2. Rules for the the bicategory of types.

Figure 2

Figure 3. Rules for comprehension.

Figure 3

Figure 4. Rules for global substitution.

Figure 4

Figure 5. Rules for global substitution (preservation of identity).

Figure 5

Figure 6. Rules for global substitution (preservation of composition).

Figure 6

Figure 7. Rules for local substitution.

Figure 7

Figure 8. Some rules for local substitution (preservation).

Figure 8

Figure 9. Some of the rules for coherence of substitution.