Reference. A mixed linear and non-linear logic: Proofs, terms and models: Extended abstract
Cite
Cited by (21)
Syntax and semantics of focalisation with relative monads and comonads mangel-2026-syntax
Impredicativity in Linear Dependent Type Theory speight-2026-impredicativity
S4 modal sequent calculus as intermediate logic and intermediate language caspar-2026-s4
Ordered Adjoint Logic roshal-2026-ordered
Canonical bidirectional typechecking mihejevs-2025-canonical
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.
The Formal Theory of Monads, Univalently vanderweide-2025-thex
Separated and Shared Effects in Higher-Order Languages amorim_hsu_independent
Displayed Monoidal Categories for the Semantics of Linear Logic ahrens-2024-displayed
Polynomial Time and Dependent Types atkey-2024-polynomial
UNDER LOCK AND KEY: A PROOF SYSTEM FOR A MULTIMODAL LOGIC kavvos-2023-under
LNL polycategories and doctrines of linear logic shulman-2023-lnl
Data Layout from a Type-Theoretic Perspective deyoung-2023-data
A two-level linear dependent type theory fu2023twolevellineardependenttype
Relating Message Passing and Shared Memory, Proof-Theoretically pfenning-2023-relating
A Framework for Substructural Type Systems wood-2022-a
Adjoint Reactive GUI Programming graulund-2021-adjoint
Fractional Types: Expressive and Safe Space Management for Ancilla Bits chen-2020-fractional
Syntax and Semantics of Quantitative Type Theory atkey-2018-syntax
A theory of effects and resources: adjunction models and polarised calculi curien-2016-a
Integrating Linear and Dependent Types krishnaswami_integrating_2015
Cites 15 works (2 here)
With notes (2)
Linear logic girard_linear_1987
External (13)
- Strong normalisation for the linear term calculus (1995)
- A mixed linear and non-linear logic: Proofs, terms and models (preliminary report), Cambridge TR 352 (1994)
- On intuitionistic linear logic (Bierman, Cambridge TR 346) (1994)
- Conventional and uniqueness typing in graph rewrite systems (1993)
- Linear λ-calculus and categorical models revisited (1993)
- A term calculus for Intuitionistic Linear Logic (1993)
- On the unity of logic (1993)
- A taste of linear logic (1993)
- Conventional and linear types in a logic of coalgebras (Jacobs, preprint) (1993)
- Type theory and recursion (abstract) (Plotkin, LICS) (1993)
- There's no substitute for linear logic (1992)
- Operational aspects of linear lambda calculus (1992)
- Notions of computation and monads (1991)