Reference. Finite Automata and Their Decision Problems
Cite
Cited by (6)
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 categorical contours of the Chomsky-Schützenberger representation theorem mellies-2025-the
A Bayesian Interpretation of the Internal Model Principle baltieri-2025-a
Self-certifying Railroad Diagrams: Or: How to Teach Nondeterministic Finite Automata hinze-2019-self
Regular-expression derivatives re-examined owensRegularexpressionDerivativesReexamined2009
Derivatives of Regular Expressions brzozowskiDerivativesRegularExpressions1964
Cites 7 works (0 here)
External (7)
- The Reduction of Two-Way Automata to One-Way Automata (1959)
- Linear automaton transformations (1958)
- The Logic of Automata (Burks, Wang; JACM 4, two parts: Part I 10.1145/320868.320880, Part II 10.1145/320881.320885) (1957)
- Representation of Events in Nerve Nets and Finite Automata (1956)
- Gedanken-Experiments on Sequential Machines (1956)
- A variant of a recursively unsolvable problem (1946)
- A logical calculus of the ideas immanent in nervous activity (1943)