Reference. First steps in synthetic guarded domain theory: step-indexing in the topos of trees
Cite
Cited by (17)
Categorical Semantics of Probabilistic Symbolic Execution li-2026-categorical
Context-Dependent Effects and Concurrency in Guarded Interaction Trees stepanenko-2025-context
A Modal Deconstruction of Löb Induction gratzer-2025-a
Idempotent Resources in Separation Logic: The Heart of core in Iris gratzer-2025-idempotent
Context-Dependent Effects in Guarded Interaction Trees stepanenko-2025-contextx
Solving Guarded Domain Equations in Presheaves over Ordinals and Mechanizing It stepanenko-2025-solving
Unifying cubical and multimodal type theory aagaard-2024-unifying
Modular Denotational Semantics for Effects with Guarded Interaction Trees frumin-2024-modular
Towards Univalent Reference Types: The Impact of Univalence on Denotational Semantics sterling-2024-towards
A Formal Logic for Formal Category Theory new_licata_2023
mitten: A Flexible Multimodal Proof Assistant stassen-2023-mitten
A Stratified Approach to Löb Induction gratzer-2022-a
Multimodal Dependent Type Theory gratzerNutyzBirkedal2021
Coinduction in flow: the later modality in fibrations basold_2019
This paper provides a construction on fibrations that gives access to the so-called later modality, which allows for a controlled form of recursion in coinductive proofs and programs. The construction is essentially a generalisation of the topos of trees from the codomain fibration over sets to arbitrary fibrations. As a result, we obtain a framework that allows the addition of a recursion principle for coinduction to rather arbitrary logics and programming languages. The main interest of using recursion is that it allows one to write proofs and programs in a goal-oriented fashion. This enables easily understandable coinductive proofs and programs, and fosters automatic proof search.
Part of the framework are also various results that enable a wide range of applications: transportation of (co)limits, exponentials, fibred adjunctions and first-order connectives from the initial fibration to the one constructed through the framework. This means that the framework extends any first-order logic with the later modality. Moreover, we obtain soundness and completeness results, and can use up-to techniques as proof rules. Since the construction works for a wide variety of fibrations, we will be able to use the recursion offered by the later modality in various context. For instance, we will show how recursive proofs can be obtained for arbitrary (syntactic) first-order logics, for coinductive set-predicates, and for the probabilistic modal mu-calculus. Finally, we use the same construction to obtain a novel language for probabilistic productive coinductive programming. These examples demonstrate the flexibility of the framework and its accompanying results.
Guarded Cubical Type Theory birkedal-2018-guarded
Productive coprogramming with guarded recursion atkey-2013-productive
Definition. Later on Grammars grammar-later
Write when is a proper suffix of , that is, with . The later of a grammar is
A parse of over is a parse of over every proper suffix of . In particular is a singleton.
This is later on families for strings under the proper-suffix order. That order is well-founded because it strictly decreases length, so it is a thin direct category. There is at most one map , so the product over maps from the strict past has one factor per proper suffix. Guarded recursion is modelled by presheaves on , the topos of trees, and more generally by sheaves over a well-founded base [1]. Here the later acts on families, which is what grammars are, and there is no clock.
Later is the right adjoint of the proper-suffix derivative. Let be the grammar of non-empty strings. Then the derivative has the right adjoint
so . Splitting into its summands gives the form of that the calculus can define:
The component at says: if the string begins with , then the rest parses as .
The restriction to non-empty is what makes this a later. At the component is . Including it would give a projection , and Löb would then prove every grammar. For the same reason the later is a product over suffixes. A sum such as is empty at , and at it is . The identity step would then give Löb a proof of .
In the Agda this is ▷ in Grammar/Later/Base.agda, which is defined as the indexed conjunction of √l-string. The mirror image ▷r, over proper prefixes, is defined in the same way. See also the bilateral later and the later along an arbitrary well-founded order.
Cites 35 works (1 here)
With notes (1)
Introduction to Higher-Order Categorical Logic lambek_scott_1986
External (34)
- Extending Type Theory with Forcing (2012)
- Step-indexed kripke models over recursive worlds (2011)
- A Step-Indexed Kripke Model of Hidden State via Recursive Properties on Recursively Defined Metric Spaces (2011)
- A typed store-passing translation for general references (2011)
- Step-Indexed Relational Reasoning for Countable Nondeterminism (2011)
- First steps in synthetic guarded domain theory: step-indexing in the topos of trees (LICS 2011 version) (2011)
- The impact of higher-order state and control effects on local relational reasoning (2010)
- A Semantic Foundation for Hidden State (2010)
- Realisability semantics of parametric polymorphism, general references and recursive types (2010)
- A metric model of lambda calculus with guarded recursion (Birkedal, Schwinghammer, Støvring; FICS) (2010)
- The category-theoretic solution of recursive metric-space equations (2010)
- A relational modal logic for higher-order stateful ADTs (2010)
- State-dependent representation independence (2009)
- Packaging Mathematical Structures (2009)
- Logical Step-Indexed Logical Relations (2009)
- A very modal model of a modern, major, general type system (2007)
- Representing Nested Inductive Types Using W-Types (2004)
- Unifying recursive and co-recursive definitions in sheaf categories (2004)
- Type theories, toposes and constructive set theory: predicative aspects of AST (2002)
- Wellfounded trees in categories (2000)
- A modality for recursion (2000)
- Categorical Logic and Type Theory (Jacobs) (1999)
- Representing inductively defined sets by wellorderings in Martin-Löf's type theory (1997)
- Relational Properties of Domains (1996)
- On the interpretation of type theory in locally cartesian closed categories (1995)
- Remarks on algebraically compact categories (1992)
- Sheaves in Geometry and Logic: A First Introduction to Topos Theory (1992)
- Algebraically complete categories (1991)
- First steps in synthetic domain theory (1991)
- Recursive types reduced to inductive types (1990)
- The Category-Theoretic Solution of Recursive Domain Equations (1982)
- Basic Concepts of Enriched Category Theory (Kelly) (1982)
- Tripos theory (1980)
- Strong functors and monoidal monads (1972)