Reference. Indexed containers
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.
Coverage Semantics for Dependent Pattern Matching eremondi-2025-coverage
Stabilized profunctors and stable species of structures fiore-2024-stabilized
Quotients, inductive types, and quotient inductive types fiore-2022-quotients
Formal metatheory of second-order abstract syntax fiore-2022-formal
A Combinatorial Approach to Higher-Order Structure for Polynomial Functors fiore-2022-a
Lenses for Composable Servers videla-2022-lenses
A type- and scope-safe universe of syntaxes with binding: their semantics and proofs allais-2021-a
Cites 42 works (2 here)
With notes (2)
Observational equality, now! altenkirch-2007-observational
Wellfounded Trees and Dependent Polynomial Functors gambino_wellfounded_2004
External (40)
- Agda sources for indexed containers (2015)
- The Agda wiki (2015)
- Small Induction Recursion (2013)
- Inductive-inductive definitions (Nordvall Forsberg, PhD thesis, Swansea) (2013)
- A categorical semantics for inductive-inductive definitions (2011)
- Inductive-Inductive Definitions (2010)
- Monads Need Not Be Endofunctors (2010)
- Polynomial Functors and Trees (2010)
- Higher-Order Containers (2010)
- The gentle art of levitation (2010)
- Subtyping, declaratively: an exercise in mixed induction and coinduction (2010)
- Ornamental algebras, algebraic ornaments (2010)
- A UNIVERSE OF STRICTLY POSITIVE FAMILIES (2009)
- Big-step normalisation (2009)
- Notes on polynomial functors (Kock, manuscript) (2009)
- Indexed containers (LICS 2009) (2009)
- The Coq Proof Assistant Reference Manual, Version 8.1 (2008)
- The cartesian closed bicategory of generalised species of structures (2007)
- Subset Coercions in Coq (2007)
- Constructing strictly positive families (CATS 2007) (2007)
- Indexed induction-recursion (2006)
- Programming interfaces and basic topology (2006)
- Containers: Constructing strictly positive types (2005)
- Categories of Containers (2003)
- First-class phantom types (Cheney & Hinze, tech. report) (2003)
- Indexed induction-recursion (Proof Theory in Computer Science, LNCS 2183) (2001)
- The derivative of a regular type is its type of one-hole contexts (2001)
- Monadic Presentations of Lambda Terms Using Generalized Inductive Types (1999)
- Categories for the Working Mathematician (2nd ed.) (1998)
- Algebra of programming (1997)
- Representing inductively defined sets by wellorderings in Martin-Löf's type theory (1997)
- The Zipper (1997)
- Conservativity of equality reflection over intensional type theory (1996)
- On the greatest fixed point of a set functor (1995)
- Elementary strong functional programming (1995)
- Categories, Types, and Structures (1991)
- A construction of non-well-founded sets within Martin-Löf's type theory (1989)
- A set constructor for inductive sets in Martin-Löf's type theory (1989)
- Normal functors, power series and λ-calculus (1988)
- Foncteurs analytiques et espèces de structures (1986)