Reference. Quantitative Polynomial Functors
Cite
Cited by (2)
Impredicativity in Linear Dependent Type Theory speight-2026-impredicativity
Intrinsic Verification of Parsers and Formal Grammar Theory in Dependent Lambek Calculus intrinsic-verification-of-parsers
We present Dependent Lambek Calculus (Lambek), a domain-specific dependent type theory for verified parsing and formal grammar theory. In Lambek, linear types are used as a syntax for formal grammars, and parsers can be written as linear terms. The linear typing restriction provides a form of intrinsic verification that a parser yields only valid parse trees for the input string. We demonstrate the expressivity of this system by showing that the combination of inductive linear types and dependency on non-linear data can be used to encode commonly used grammar formalisms such as regular and context-free grammars as well as traces of various types of automata. Using these encodings, we define parsers for regular expressions using deterministic automata, as well as examples of verified parsers of context-free grammars.
We present a denotational semantics of our type theory that interprets the linear types as functions from strings to sets of abstract parse trees and terms as parse transformers. Based on this denotational semantics, we have made a prototype implementation of Lambek using a shallow embedding in the Agda proof assistant. All of our examples parsers have been implemented in this prototype implementation.
Cites 37 works (8 here)
With notes (8)
Semantics of higher inductive types lumsdaine-2019-semantics
Syntax and Semantics of Quantitative Type Theory atkey-2018-syntax
Quotient Inductive-Inductive Types altenkirch_etal_2018
I Got Plenty o’ Nuttin’ mcbride-2016-i
Integrating Linear and Dependent Types krishnaswami_integrating_2015
Wellfounded Trees and Dependent Polynomial Functors gambino_wellfounded_2004
Linear logic girard_linear_1987
External (29)
- Idris 2: Quantitative Type Theory in Practice (2021)
- A graded dependent type system with a usage-aware semantics (2021)
- Additive pairs in quantitative type theory (Master thesis, Svoboda) (2021)
- A unified view of modalities in type systems (2020)
- Linear Dependent Type Theory for Quantum Programming Languages: Extended Abstract (2020)
- Why not W? (2020)
- Signatures and induction principles for higher inductive-inductive types (2020)
- Large and infinitary quotient inductive-inductive types (2020)
- Constructing quotient inductive-inductive types (2019)
- Quantitative program reasoning with graded modal types (2019)
- Cubical type theory: A constructive interpretation of the univalence axiom (2018)
- On higher inductive types in cubical type theory (2018)
- Homotopy-initial algebras in type theory (2017)
- Polynomial functors and polynomial monads (2013)
- Linear Realizability (2007)
- Programming interfaces and basic topology (2006)
- Containers: Constructing strictly positive types (2005)
- Categories of Containers (2003)
- Induction-recursion and initial algebras (2003)
- Geometry of interaction and linear combinatory algebras (2002)
- A Linear Logical Framework (2002)
- Interactive Programs in Dependent Type Theory (2000)
- Structural Induction and Coinduction in a Fibrational Setting (1998)
- Representing inductively defined sets by wellorderings in Martin-Löf's type theory (1997)
- Internal type theory (1996)
- A linear logic model of state (manuscript, Reddy) (1993)
- Inductively defined types (1990)
- Linear types can change the world! (1990)
- The independence of Peano's fourth axiom from Martin-Löf's type theory without universes (1988)