Reference. An Isbell duality theorem for type refinement systems
Cite
Cited by (3)
The free bifibration on a functor clarke-2025-the
The categorical contours of the Chomsky-Schützenberger representation theorem mellies-2025-the
Parsing as a lifting problem and the Chomsky-Schützenberger representation theorem mellis_zeilberger_2022
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.
Cites 33 works (7 here)
With notes (7)
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.
Type refinement and monoidal closed bifibrations mellies_zeilberger_2013
Categorical Logic and Type Theory jacobs-1999
This book is an attempt to give a systematic presentation of both logic and type theory from a categorical perspective, using the unifying concept of fibred category. Its intended audience consists of logicians, type theorists, category theorists and (theoretical) computer scientists.
Normalization and the Yoneda embedding NormalizationAndTheYonedaEmbedding
Linear logic girard_linear_1987
Categories for the Working Mathematician maclane_1971
Adjointness in Foundations lawvere_1969
External (26)
- A bifibrational reconstruction of Lawvere's presheaf hyperdoctrine (2016)
- Indexed induction and coinduction, fibrationally (2013)
- Refining Inductive Types (2012)
- Game semantics in string diagrams (2012)
- Forward with Hoare (2010)
- Church and curry: Combining intrinsic and extrinsic typing (2008)
- Hoare type theory, polymorphism and separation (2008)
- Taking categories seriously (2005)
- La théorie de l'homotopie de Grothendieck (2005)
- A semantic formulation of ⊤⊤-lifting and logical predicates for computational metalanguage (2005)
- Higher Operads, Higher Categories (2004)
- Semantic analysis of normalisation by evaluation for typed lambda calculus (2002)
- Distributors at work (2000)
- Categorical glueing and logical predicates for models of linear logic (1999)
- Structural Induction and Coinduction in a Fibrational Setting (1998)
- Categorical structure of continuation passing style (1997)
- Handbook of Categorical Algebra 2: Categories and Structures (1994)
- Fibrations, Logical Predicates and Indeterminates (1993)
- Logic Programming with Focusing Proofs in Linear Logic (1992)
- Basic Concepts in Enriched Category Theory (1982)
- On closed categories of functors (1970)
- Equality in hyperdoctrines and comprehension schema as an adjoint functor (1970)
- Deductive Systems and Categories II (1969)
- The Collected Papers of Gerhard Gentzen (1969)
- An axiomatic basis for computer programming (1969)
- Structure of categories (1966)