Reference. Linear logic, *-autonomous categories and cofree coalgebras
Cite
Cited by (8)
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.
Displayed Monoidal Categories for the Semantics of Linear Logic ahrens-2024-displayed
Fixpoint constructions in focused orthogonality models of linear logic fiore-2023-fixpoint
Free Commutative Monoids in Homotopy Type Theory choudhury-2023-free
A theory of effects and resources: adjunction models and polarised calculi curien-2016-a
The logic of bunched implications ohearn_pym_bi_1999
Nonsymmetric *-autonomous categories barr1995-nonsymmetric-star-autonomous
A mixed linear and non-linear logic: Proofs, terms and models: Extended abstract bentonMixedLinearNonlinear1995
Cites 9 works (2 here)
With notes (2)
Introduction to Higher-Order Categorical Logic lambek_scott_1986
Categories for the Working Mathematician maclane_1971
External (7)
- Linear logic and lazy computation (1987)
- The Dialectica interpretation category (1987)
- Categorical semantics for higher order polymorphic lambda calculus (1987)
- The system F of variable types, fifteen years later (1986)
- Braided monoidal categories (1986)
- Hyperdoctrines, natural deduction, and the Beck condition (1983)
- Deductive systems and categories II (1969)