A Category Theoretic View of Contextual Types: From Simple Types to Dependent Types
From MaRDI portal
(Redirected from Publication:5056372)
Abstract: We describe the categorical semantics for a simply typed variant and a simplified dependently typed variant of Cocon, a contextual modal type theory where the box modality mediates between the weak function space that is used to represent higher-order abstract syntax (HOAS) trees and the strong function space that describes (recursive) computations about them. What makes Cocon different from standard type theories is the presence of first-class contexts and contextual objects to describe syntax trees that are closed with respect to a given context of assumptions. Following M. Hofmann's work, we use a presheaf model to characterise HOAS trees. Surprisingly, this model already provides the necessary structure to also model Cocon. In particular, we can capture the contextual objects of Cocon using a comonad that restricts presheaves to their closed elements. This gives a simple semantic characterisation of the invariants of contextual types (e.g. substitution invariance) and identifies Cocon as a type-theoretic syntax of presheaf models. We further extend this characterisation to dependent types using categories with families and show that we can model a fragment of Cocon without recursor in the Fitch-style dependent modal type theory presented by Birkedal et. al..
Recommendations
Cites work
- A framework for defining logics
- A modal analysis of staged computation
- A type-theoretic foundation for programming with higher-order abstract syntax and first-class substitutions
- Beluga: A Framework for Programming and Reasoning with Deductive Systems (System Description)
- Brouwer's fixed-point theorem in real-cohesive homotopy type theory
- Comprehension categories and the semantics of type dependency
- Contextual modal type theory
- Denotation of contextual modal type theory (CMTT): syntax and meta-programming
- Extending homotopy type theory with strict equality
- scientific article; zbMATH DE number 4049849 (Why is no real title available?)
- scientific article; zbMATH DE number 1241699 (Why is no real title available?)
- scientific article; zbMATH DE number 512773 (Why is no real title available?)
- scientific article; zbMATH DE number 7599980 (Why is no real title available?)
- Internal type theory
- Internal universes in models of homotopy type theory
- Modal dependent type theory and dependent right adjoints
- Semantical analysis of contextual types
- The biequivalence of locally Cartesian closed categories and Martin-Löf type theories
- Well-founded recursion over contextual objects
Cited in
(6)
This page was built for publication: A Category Theoretic View of Contextual Types: From Simple Types to Dependent Types
Report a bug (only for logged in users!)Click here to report a bug for this page (MaRDI item Q5056372)