Reference. Substructural calculi with dependent types
In this paper, we investigate how to introduce dependent types into the substructural calculi such as the Lambek calculus and linear logic. The motivations of such a move include facilitating a closer correspondence between syntax and semantics in natural language analysis and developing promising applications such as that to concurrency through dependent session types.
We shall present two substructural calculi with dependent types: the first containing dependent Lambek types and the second dependent linear types. Technically, the former adheres to the usual assumption that types do not depend on substructural variables (in this case, the Lambek variables), which makes the technical development easier, while the latter allows type dependency on linear variables, which makes the development more challenging as well as more interesting in applications.
Cite
Cited by (1)
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 16 works (4 here)
With notes (4)
I Got Plenty o’ Nuttin’ mcbride-2016-i
Integrating Linear and Dependent Types krishnaswami_integrating_2015
Linear logic girard_linear_1987
External (12)
- Formal Semantics in Modern Type Theories (2020)
- Session types: Achievements and challenges (2016)
- A linear dependent type theory (2016)
- A Categorical Semantics for Linear Logical Frameworks (2015)
- A Lambek Calculus with Dependent Types (2015)
- A Dynamic Categorial Grammar (2014)
- Formal semantics in modern type theories with coercive subtyping (2012)
- On Two Extensions of Abstract Categorial Grammars (2007)
- Type-theoretic extensions of Abstract Categorial Grammars (2007)
- A Linear Logical Framework (2002)
- Syntactic Calculus with Dependent Types (1998)
- Type-Theoretical Grammar (1995)