Reference. Parsing as a lifting problem and the Chomsky-Schützenberger representation theorem
We begin by explaining how any context-free grammar encodes a functor of operads from a freely generated operad into a certain “operad of spliced words”. This motivates a more general notion of CFG over any category , defined as a finite species equipped with a color denoting the start symbol and a functor of operads into the operad of spliced arrows in . We show that many standard properties of CFGs can be formulated within this framework, and that usual closure properties of CF languages generalize to CF languages of arrows. We also discuss a dual fibrational perspective on the functor via the notion of “displayed” operad, corresponding to a lax functor of operads .
We then turn to the Chomsky-Schützenberger Representation Theorem. We describe how a non-deterministic finite state automaton can be seen as a category equipped with a pair of objects denoting initial and accepting states and a functor of categories satisfying the unique lifting of factorizations property and the finite fiber property. Then, we explain how to extend this notion of automaton to functors of operads, which generalize tree automata, allowing us to lift an automaton over a category to an automaton over its operad of spliced arrows. We show that every CFG over a category can be pulled back along a ND finite state automaton over the same category, and hence that CF languages are closed under intersection with regular languages. The last important ingredient is the identification of a left adjoint to the operad of spliced arrows functor, building the “contour category” of an operad. Using this, we generalize the C-S representation theorem, proving that any context-free language of arrows over a category is the functorial image of the intersection of a -chromatic tree contour language and a regular language.
Cite
Cited by (1)
The categorical contours of the Chomsky-Schützenberger representation theorem mellies-2025-the
Cites 31 works (6 here)
With notes (6)
Displayed Categories ahrens-lumsdaine-2019
We introduce and develop the notion of displayed categories. A displayed category over a category is equivalent to “a category and functor , but instead of having a single collection of “objects of ” with a map to the objects of , the objects are given as a family indexed by objects of , and similarly for the morphisms. This encapsulates a common way of building categories in practice, by starting with an existing category and adding extra data/properties to the objects and morphisms. The interest of this seemingly trivial reformulation is that various properties of functors are more naturally defined as properties of the corresponding displayed categories. Grothendieck fibrations, for example, when defined as certain functors, use equality on objects in their definition. When defined instead as certain displayed categories, no reference to equality on objects is required. Moreover, almost all examples of fibrations in nature are, in fact, categories whose standard construction can be seen as going via displayed categories. We therefore propose displayed categories as a basis for the development of fibrations in the type-theoretic setting, and similarly for various other notions whose classical definitions involve equality on objects. Besides giving a conceptual clarification of such issues, displayed categories also provide a powerful tool in computer formalisation, unifying and abstracting common constructions and proof techniques of category theory, and enabling modular reasoning about categories of multi-component structures. As such, most of the material of this article has been formalised in Coq over the UniMath library, with the aim of providing a practical library for use in further developments.
An Isbell duality theorem for type refinement systems mellies-2017-an
Functors are type refinement systems mellies_zeilberger_2015
The standard reading of type theory through the lens of category theory is based on the idea of viewing a type system as a category of well-typed terms. We propose a basic revision of this reading: rather than interpreting type systems as categories, we describe them as functors from a category of typing derivations to a category of underlying terms. Then, turning this around, we explain how in fact any functor gives rise to a generalized type system, with an abstract notion of typing judgment, typing derivations and typing rules. This leads to a purely categorical reformulation of various natural classes of type systems as natural classes of functors.
The main purpose of this paper is to describe the general framework (which can also be seen as providing a categorical analysis of refinement types), and to present a few applications. As a larger case study, we revisit Reynolds’ paper on “The Meaning of Types” (2000), showing how the paper’s main results may be reconstructed along these lines.
Linear logic girard_linear_1987
An efficient context-free parsing algorithm Earley1970
On the translation of languages from left to right KNUTH1965607
External (25)
- Classical linear logic, cobordisms and categorial grammars (2020)
- Automata Minimization: a Functorial Approach (2020)
- A bifibrational reconstruction of Lawvere’s presheaf hyperdoctrine (2016)
- The Hopf algebra of Möbius intervals (2010)
- To CNF or not to CNF? An Efficient Yet Presentable Version of the CYK Algorithm (2009)
- The cartesian closed bicategory of generalised species of structures (2008)
- On the Expressive Power of Abstract Categorial Grammars: Representing Context-Free Formalisms (2004)
- Higher Operads, Higher Categories (2004)
- Operads in algebra, topology, and physics (2002)
- Towards Abstract Categorial Grammars (2001)
- Distributors at work (2000)
- Combinatorial species and tree-like structures (1997)
- Cohomology of Monoids in Monoidal Categories (1997)
- Tree automata techniques and applications (1997)
- Maps, hypermaps, and triangle groups (1994)
- Drawing Curves Over Number Fields (1990)
- A note on context-free languages (1989)
- How to cover a grammar (1989)
- Geometry of Interaction 1: Interpretation of System F (1989)
- Multicategories revisited (1989)
- Parsing Theory - Volume I: Languages and Parsing (1988)
- Foncteurs analytiques et espèces de structures (1986)
- Une théorie combinatoire des séries formelles (1981)
- Ordinal sums and equational doctrines (1969)
- The Algebraic Theory of Context-Free Languages* (1963)