Di- is for Directed: First-Order Directed Type Theory via Dinaturality
Andrea Laretto, Fosco Loregiàn, Niccolò Veltri
Abstract
We show how dinaturality plays a central role in the interpretation of directed type theory where types are given by (1-)categories and directed equality by hom-functors. We introduce a first-order directed type theory where types are semantically interpreted as categories, terms as functors, predicates as dipresheaves, and proof-relevant entailments as dinatural transformation. This type theory is equipped with an elimination principle for directed equality, motivated by dinaturality, which closely resembles the J -rule used in Martin-Löf type theory. This directed J -rule comes with a simple syntactic restriction which recovers all theorems about symmetric equality, except for symmetry. Dinaturality is used to prove properties about transitivity (composition), congruence (functoriality), and transport (coYoneda) in exactly the same way as in Martin-Löf type theory, and allows us to obtain an internal “naturality for free”. We then argue that the quantifiers of directed type theory should be ends and coends, which dinaturality allows us to capture formally. Our type theory provides a formal treatment to (co)end calculus and Yoneda reductions, which we use to give distinctly logical proofs to the (co)Yoneda lemma, the adjointness property of Kan extensions via (co)ends, exponential objects of presheaves, and the Fubini rule for quantifier exchange. Our main theorems are formalized in Agda.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext 5d9ec7c1-9ba7-4d34-809c-9d81ae04a011Builds on4
- The taming of the rew: a type theory with computational assumptionsJesper Cockx, Nicolas Tabareau, Théo WinterhalterPOPL 2021 · 24 citations
- A Constructive Model of Directed Univalence in Bicubical SetsMatthew Z. Weaver, Daniel R. LicataLICS 2020 · 15 citations
- Semantics for two-dimensional type theoryBenedikt Ahrens, Paige Randall North, Niels van der WeideLICS 2022 · 4 citations
- The Yoneda embedding in simplicial type theoryDaniel Gratzer, Jonathan Weinberger, Ulrik BuchholtzLICS 2025
Related papers
- A Syntax for Strictly Associative and Unital ∞-CategoriesEric Finster, Alex Rice, Jamie VicaryLICS 2024
- Coherence via Well-Foundedness: Taming Set-Quotients in Homotopy Type TheoryNicolai Kraus, Jakob von RaumerLICS 2020 · 8 citations
- A Type Theory for Strictly Unital ∞-CategoriesEric Finster, David Reutter, Jamie Vicary, Alex RiceLICS 2022 · 6 citations
- Observational equality: now for goodLoïc Pujet, Nicolas TabareauPOPL 2022 · 26 citations
- Sequential Colimits in Homotopy Type TheoryKristina Sojakova, Floris van Doorn, Egbert RijkeLICS 2020 · 5 citations
