{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,7,16]],"date-time":"2026-07-16T14:13:57Z","timestamp":1784211237525,"version":"3.55.0"},"reference-count":87,"publisher":"Association for Computing Machinery (ACM)","issue":"POPL","license":[{"start":{"date-parts":[[2026,1,8]],"date-time":"2026-01-08T00:00:00Z","timestamp":1767830400000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/legalcode"}],"funder":[{"DOI":"10.13039\/501100002301","name":"Estonian Research Council","doi-asserted-by":"crossref","award":["PSG749"],"award-info":[{"award-number":["PSG749"]}],"id":[{"id":"10.13039\/501100002301","id-type":"DOI","asserted-by":"crossref"}]},{"DOI":"10.13039\/501100002301","name":"Estonian Research Council","doi-asserted-by":"crossref","award":["PRG1210"],"award-info":[{"award-number":["PRG1210"]}],"id":[{"id":"10.13039\/501100002301","id-type":"DOI","asserted-by":"crossref"}]}],"content-domain":{"domain":["dl.acm.org"],"crossmark-restriction":true},"short-container-title":["Proc. ACM Program. Lang."],"published-print":{"date-parts":[[2026,1,8]]},"abstract":"<jats:p>\n                    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\n                    <jats:italic toggle=\"yes\">J<\/jats:italic>\n                    -rule used in Martin-L\u00f6f type theory. This directed\n                    <jats:italic toggle=\"yes\">J<\/jats:italic>\n                    -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\u00f6f type theory, and allows us to obtain an internal \u201cnaturality for free\u201d. 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.\n                  <\/jats:p>","DOI":"10.1145\/3776703","type":"journal-article","created":{"date-parts":[[2026,1,8]],"date-time":"2026-01-08T18:59:43Z","timestamp":1767898783000},"page":"1759-1789","update-policy":"https:\/\/doi.org\/10.1145\/crossmark-policy","source":"Crossref","is-referenced-by-count":1,"title":["Di- is for Directed: First-Order Directed Type Theory via Dinaturality"],"prefix":"10.1145","volume":"10","author":[{"ORCID":"https:\/\/orcid.org\/0000-0002-6413-5794","authenticated-orcid":false,"given":"Andrea","family":"Laretto","sequence":"first","affiliation":[{"name":"Tallinn University of Technology, Tallinn, Estonia"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0003-3052-465X","authenticated-orcid":false,"given":"Fosco","family":"Loregian","sequence":"additional","affiliation":[{"name":"Tallinn University of Technology, Tallinn, Estonia"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-7230-3436","authenticated-orcid":false,"given":"Niccol\u00f2","family":"Veltri","sequence":"additional","affiliation":[{"name":"Tallinn University of Technology, Tallinn, Estonia"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"320","published-online":{"date-parts":[[2026,1,8]]},"reference":[{"key":"e_1_3_2_2_2","doi-asserted-by":"publisher","DOI":"10.1145\/3531130.3533334"},{"key":"e_1_3_2_3_2","doi-asserted-by":"publisher","unstructured":"Benedikt Ahrens Paige Randall North and Niels van der Weide. 2023. Bicategorical type theory: semantics and syntax. Mathematical Structures in Computer Science (Oct. 2023) 1-45. doi:10.1017\/S0960129523000312","DOI":"10.1017\/S0960129523000312"},{"key":"e_1_3_2_4_2","doi-asserted-by":"publisher","DOI":"10.1145\/2837614.2837638"},{"key":"e_1_3_2_5_2","doi-asserted-by":"publisher","unstructured":"Thorsten Altenkirch and Jacob Neumann. 2024. Synthetic 1-Categories in Directed Type Theory. arXiv:2410. 19520 doi:10.48550\/arXiv.2410.19520","DOI":"10.48550\/arXiv.2410.19520"},{"key":"e_1_3_2_6_2","doi-asserted-by":"publisher","DOI":"10.1145\/1863597.1863607"},{"key":"e_1_3_2_7_2","doi-asserted-by":"publisher","unstructured":"Kazuyuki Asada and Ichiro Hasuo. 2010. Categorifying Computations into Components via Arrows as Profunctors. Electronic Notes in Theoretical Computer Science 264 2 (Aug. 2010) 25-45. doi:10.1016\/j.entcs.2010.07.012","DOI":"10.1016\/j.entcs.2010.07.012"},{"key":"e_1_3_2_8_2","doi-asserted-by":"publisher","unstructured":"Steve Awodey and Michael A. Warren. 2009. Homotopy theoretic models of identity types. Mathematical Proceedings of the Cambridge Philosophical Society 146 1 (2009) 45-55. doi:10.1017\/S0305004108001783","DOI":"10.1017\/S0305004108001783"},{"key":"e_1_3_2_9_2","doi-asserted-by":"publisher","DOI":"10.48550\/arxiv.0903.0340"},{"key":"e_1_3_2_10_2","doi-asserted-by":"publisher","DOI":"10.1016\/S0019-9958(76)90390-9"},{"key":"e_1_3_2_11_2","doi-asserted-by":"publisher","DOI":"10.1016\/0304-3975(90)90151-7"},{"key":"e_1_3_2_12_2","doi-asserted-by":"publisher","DOI":"10.1016\/0304-3975(93)90053-V"},{"key":"e_1_3_2_13_2","doi-asserted-by":"publisher","DOI":"10.1016\/0168-0072(95)00017-8"},{"key":"e_1_3_2_14_2","doi-asserted-by":"publisher","DOI":"10.2307\/2586659"},{"key":"e_1_3_2_15_2","doi-asserted-by":"publisher","DOI":"10.4230\/LIPIcs.FSCD.2020.17"},{"key":"e_1_3_2_16_2","doi-asserted-by":"publisher","DOI":"10.1145\/3236779"},{"key":"e_1_3_2_17_2","doi-asserted-by":"publisher","DOI":"10.1017\/CBO9780511525858"},{"key":"e_1_3_2_18_2","doi-asserted-by":"crossref","unstructured":"Claudia Casadio and Philip J. Scott (Eds.). 2021. Joachim Lambek: The Interplay of Mathematics Logic and Linguistics. Springer Verlag Cham.","DOI":"10.1007\/978-3-030-66545-6"},{"key":"e_1_3_2_19_2","doi-asserted-by":"publisher","unstructured":"Simon Castellan Pierre Clairambault and Peter Dybjer. 2020. Categories with Families: Unityped Simply Typed and Dependently Typed. arXiv:1904.00827 doi:10.48550\/arXiv.1904.00827","DOI":"10.48550\/arXiv.1904.00827"},{"key":"e_1_3_2_20_2","article-title":"A directed type theory for 1-categories","volume":"205","author":"Chu Fernando","year":"2024","unstructured":"Fernando Chu, \u00c9l\u00e9onore Mangel, and Paige Randall North. 2024. A directed type theory for 1-categories. In 30th International Conference on Types for Proofs and Programs TYPES 2024-Abstracts. 205. https:\/\/types2024.itu.dk\/abstracts.pdf#page=215","journal-title":"30th International Conference on Types for Proofs and Programs TYPES 2024-Abstracts"},{"key":"e_1_3_2_21_2","doi-asserted-by":"publisher","unstructured":"Bryce Clarke Derek Elkins Jeremy Gibbons Fosco Loregian Bartosz Milewski Emily Pillmore and Mario Rom\u00e1n. 2022. Profunctor Optics a Categorical Update. arXiv:2001.07488[cs.PL] doi:10.48550\/arxiv.2001.07488","DOI":"10.48550\/arxiv.2001.07488"},{"key":"e_1_3_2_22_2","doi-asserted-by":"publisher","DOI":"10.1145\/3434341"},{"key":"e_1_3_2_23_2","doi-asserted-by":"publisher","DOI":"10.4230\/LIPIcs.TYPES.2015.5"},{"key":"e_1_3_2_24_2","doi-asserted-by":"publisher","DOI":"10.1017\/CBO9781139172707"},{"key":"e_1_3_2_25_2","doi-asserted-by":"publisher","DOI":"10.48550\/arxiv.0907.2460"},{"key":"e_1_3_2_26_2","doi-asserted-by":"publisher","DOI":"10.1007\/3-540-44755-5_11"},{"key":"e_1_3_2_27_2","doi-asserted-by":"publisher","DOI":"10.1007\/BFb0060443"},{"key":"e_1_3_2_28_2","doi-asserted-by":"publisher","DOI":"10.1016\/0021-8693(66)90006-8"},{"key":"e_1_3_2_29_2","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-319-15398-8"},{"key":"e_1_3_2_30_2","doi-asserted-by":"publisher","DOI":"10.1017\/CBO9780511525902.007"},{"key":"e_1_3_2_31_2","doi-asserted-by":"publisher","DOI":"10.1109\/LICS.1992.185555"},{"key":"e_1_3_2_32_2","doi-asserted-by":"publisher","DOI":"10.4230\/LIPIcs.FSCD.2020.16"},{"key":"e_1_3_2_33_2","doi-asserted-by":"publisher","DOI":"10.1007\/978-1-4612-2822-6_8"},{"key":"e_1_3_2_34_2","doi-asserted-by":"publisher","DOI":"10.1017\/CBO9780511657474"},{"key":"e_1_3_2_35_2","doi-asserted-by":"publisher","unstructured":"Daniel Gratzer Jonathan Weinberger and Ulrik Buchholtz. 2024. Directed univalence in simplicial homotopy type theory. doi:10.48550\/arXiv.2407.09146","DOI":"10.48550\/arXiv.2407.09146"},{"key":"e_1_3_2_36_2","doi-asserted-by":"publisher","unstructured":"Daniel Gratzer Jonathan Weinberger and Ulrik Buchholtz. 2025. The Yoneda embedding in simplicial type theory. doi:10.48550\/arXiv.2501.13229","DOI":"10.48550\/arXiv.2501.13229"},{"key":"e_1_3_2_37_2","first-page":"65","volume-title":"Proof Nets and the \u03bb-Calculus","author":"Guerrini Stefano","year":"2004","unstructured":"Stefano Guerrini. 2004. Proof Nets and the \u03bb-Calculus. Cambridge University Press, 65-118."},{"key":"e_1_3_2_38_2","doi-asserted-by":"publisher","DOI":"10.5555\/3002812"},{"key":"e_1_3_2_39_2","doi-asserted-by":"publisher","DOI":"10.4204\/EPTCS.380.4"},{"key":"e_1_3_2_40_2","doi-asserted-by":"publisher","DOI":"10.1093\/oso\/9780198739623.001.0001"},{"key":"e_1_3_2_41_2","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-31113-0_16"},{"key":"e_1_3_2_42_2","doi-asserted-by":"publisher","DOI":"10.1017\/CBO9780511526619.004"},{"key":"e_1_3_2_43_2","doi-asserted-by":"publisher","DOI":"10.1093\/oso\/9780198501275.003.0008"},{"key":"e_1_3_2_44_2","article-title":"Studies in Logic and the Foundations of Mathematics","volume":"141","author":"Jacobs Bart P. F.","year":"1999","unstructured":"Bart P. F. Jacobs. 1999. Categorical Logic and Type Theory. Studies in Logic and the Foundations of Mathematics, Vol. 141. North-Holland.","journal-title":"Categorical Logic and Type Theory"},{"key":"e_1_3_2_45_2","unstructured":"Alex Kavvos. 2019. A Quantum of Direction. (2019). https:\/\/seis.bristol.ac.uk\/~tz20861\/papers\/meio.pdf"},{"key":"e_1_3_2_46_2","doi-asserted-by":"publisher","DOI":"10.1145\/3636501.3636945"},{"key":"e_1_3_2_47_2","article-title":"Cambridge Studies in Advanced Mathematics","volume":"7","author":"Lambek Joachim","year":"1986","unstructured":"Joachim Lambek and Philip J. Scott. 1986. Introduction to Higher-Order Categorical Logic. Cambridge Studies in Advanced Mathematics, Vol. 7. Cambridge University Press. https:\/\/www.cambridge.org\/ee\/academic\/subjects\/mathematics\/logic-categories-and-sets\/introduction-higher-order-categorical-logic, https:\/\/www.cambridge.org\/ee\/academic\/subjects\/mathematics\/logic-categories-and-sets","journal-title":"Introduction to Higher-Order Categorical Logic"},{"key":"e_1_3_2_48_2","doi-asserted-by":"publisher","unstructured":"Andrea Laretto. 2025. Artifact for \"Di- is for Directed: First-Order Directed Type Theory via Dinaturality\". Zenodo. doi:10.5281\/zenodo.17788596","DOI":"10.5281\/zenodo.17788596"},{"key":"e_1_3_2_49_2","doi-asserted-by":"publisher","unstructured":"Andrea Laretto Fosco Loregian and Niccol\u00f2 Veltri. 2025. Di- is for Directed: First-Order Directed Type Theory via Dinaturality. arXiv:2409.10237 doi:10.48550\/arxiv.2409.10237","DOI":"10.48550\/arxiv.2409.10237"},{"key":"e_1_3_2_50_2","doi-asserted-by":"publisher","DOI":"10.1073\/pnas.50.5.869"},{"key":"e_1_3_2_51_2","doi-asserted-by":"publisher","DOI":"10.1111\/j.1746-8361.1969.tb01194.x"},{"key":"e_1_3_2_52_2","first-page":"1","volume-title":"Applications of Categorical Algebra","author":"Lawvere Francis W.","year":"1970","unstructured":"Francis W. Lawvere. 1970. Equality in hyperdoctrines and comprehension schema as an adjoint functor. In Applications of Categorical Algebra, A. Heller (Ed.). American Mathematical Society, Providence, R.I., 1-14."},{"key":"e_1_3_2_53_2","doi-asserted-by":"publisher","DOI":"10.1017\/CBO9781107360068"},{"key":"e_1_3_2_54_2","doi-asserted-by":"publisher","DOI":"10.1016\/j.entcs.2011.09.026"},{"key":"e_1_3_2_55_2","doi-asserted-by":"publisher","DOI":"10.1017\/9781108778657"},{"key":"e_1_3_2_56_2","doi-asserted-by":"publisher","DOI":"10.1007\/978-1-4757-4721-8"},{"key":"e_1_3_2_57_2","doi-asserted-by":"publisher","DOI":"10.1007\/s10485-013-9360-5"},{"key":"e_1_3_2_58_2","doi-asserted-by":"publisher","DOI":"10.1016\/j.jpaa.2021.106689"},{"key":"e_1_3_2_59_2","unstructured":"Samuel Mimram. 2020. Program = Proof. Independently Published. https:\/\/books.google.ee\/books?id=nzZzzgEACAAJ"},{"key":"e_1_3_2_60_2","doi-asserted-by":"publisher","DOI":"10.1016\/0890-5401(91)90052-4"},{"key":"e_1_3_2_61_2","doi-asserted-by":"publisher","unstructured":"Jacob Neumann. 2023. Paranatural Category Theory. arXiv:2307.09289 doi:10.48550\/arXiv.2307.09289","DOI":"10.48550\/arXiv.2307.09289"},{"key":"e_1_3_2_62_2","unstructured":"Jacob Neumann. 2025. A Generalized Algebraic Theory of Directed Equality. Ph. D. Dissertation."},{"key":"e_1_3_2_63_2","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-031-30829-1_6"},{"key":"e_1_3_2_64_2","doi-asserted-by":"publisher","DOI":"10.1016\/j.entcs.2019.09.012"},{"key":"e_1_3_2_65_2","unstructured":"Paige Randall North and Fernando Chu. 2025. Dependent two-sided fibrations for directed type theory. In TYPES 2025."},{"key":"e_1_3_2_66_2","volume-title":"Towards a Directed Homotopy Type Theory based on 4 Kinds of Variance","author":"Nuyts Andreas","year":"2015","unstructured":"Andreas Nuyts. 2015. Towards a Directed Homotopy Type Theory based on 4 Kinds of Variance. Master's thesis. KU Leuven."},{"key":"e_1_3_2_67_2","unstructured":"Andreas Nuyts. 2023. Higher Pro-arrows: Towards a Model for Naturality Pretype Theory. (2023)."},{"key":"e_1_3_2_68_2","doi-asserted-by":"publisher","DOI":"10.1016\/S0022-4049(97)00036-4"},{"key":"e_1_3_2_69_2","doi-asserted-by":"publisher","DOI":"10.1016\/S0168-0072(03)00003-4"},{"key":"e_1_3_2_70_2","doi-asserted-by":"publisher","DOI":"10.4230\/LIPIcs.FSCD.2017.29"},{"key":"e_1_3_2_71_2","doi-asserted-by":"publisher","DOI":"10.4204\/EPTCS.292.9"},{"key":"e_1_3_2_72_2","doi-asserted-by":"publisher","DOI":"10.23638\/LMCS-15(4:6)2019"},{"key":"e_1_3_2_73_2","doi-asserted-by":"publisher","DOI":"10.4230\/LIPIcs.CSL.2021.35"},{"key":"e_1_3_2_74_2","first-page":"39","volume-title":"Handbook of Logic in Computer Science: Volume 5 : Logic and Algebraic Methods","author":"Pitts Andrew M.","year":"1995","unstructured":"Andrew M. Pitts. 1995. Categorical logic. In Handbook of Logic in Computer Science: Volume 5 : Logic and Algebraic Methods, S. Abramsky, D. M. Gabbay, and T. S. E. Maibaum (Eds.). Oxford University Press, 39-123."},{"key":"e_1_3_2_75_2","doi-asserted-by":"publisher","DOI":"10.5555\/645891.671433"},{"issue":"1","key":"e_1_3_2_76_2","article-title":"A type theory for synthetic \u221e-categories","volume":"1","author":"Riehl Emily","year":"2017","unstructured":"Emily Riehl and Michael Shulman. 2017. A type theory for synthetic \u221e-categories. Higher structures 1, 1 (2017). arXiv:1705.07442.","journal-title":"Higher structures"},{"key":"e_1_3_2_77_2","doi-asserted-by":"publisher","DOI":"10.4204\/EPTCS.333.5"},{"key":"e_1_3_2_78_2","volume-title":"Towards a Godement calculus for dinatural transformations","author":"Santamaria Alessio","year":"2019","unstructured":"Alessio Santamaria. 2019. Towards a Godement calculus for dinatural transformations. Ph. D. Dissertation. University of Bath. https:\/\/ethos.bl.uk\/OrderDetails.do?uin=uk.bl.ethos.787523"},{"key":"e_1_3_2_79_2","doi-asserted-by":"publisher","DOI":"10.1016\/S1570-7954(00)80027-3"},{"key":"e_1_3_2_80_2","unstructured":"Michael Shulman. 2016. Categorical Logic from a Categorical Point of View. https:\/\/github.com\/mikeshulman\/catlog"},{"key":"e_1_3_2_81_2","volume-title":"Homotopy Type Theory: Univalent Foundations of Mathematics","author":"The Univalent Foundations Program","year":"2013","unstructured":"The Univalent Foundations Program. 2013. Homotopy Type Theory: Univalent Foundations of Mathematics. https:\/\/homotopytypetheory.org\/book, Institute for Advanced Study."},{"key":"e_1_3_2_82_2","first-page":"77","volume-title":"7th Workshop on Fixed Points in Computer Science, FICS 2010, Brno, Czech Republic, August 21-22, 2010","author":"Uustalu Tarmo","year":"2010","unstructured":"Tarmo Uustalu. 2010. A Note on Strong Dinaturality, Initial Algebras and Uniform Parameterized Fixpoint Operators. In 7th Workshop on Fixed Points in Computer Science, FICS 2010, Brno, Czech Republic, August 21-22, 2010, Luigi Santocanale (Ed.). Laboratoire d'Informatique Fondamentale de Marseille, 77-82. https:\/\/hal.archives-ouvertes.fr\/hal00512377\/document#page=78"},{"key":"e_1_3_2_83_2","doi-asserted-by":"publisher","DOI":"10.1016\/j.entcs.2020.09.012"},{"key":"e_1_3_2_84_2","doi-asserted-by":"publisher","DOI":"10.1112\/plms\/pdq026"},{"key":"e_1_3_2_85_2","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-030-46714-2_16"},{"key":"e_1_3_2_86_2","unstructured":"Matthew Weaver. 2024. Bicubical Directed Type Theory. Ph. D. Dissertation. https:\/\/dataspace.princeton.edu\/handle\/88435\/dsp017s75dg778"},{"key":"e_1_3_2_87_2","doi-asserted-by":"publisher","DOI":"10.1145\/3373718.3394794"},{"issue":"3","key":"e_1_3_2_88_2","first-page":"279","article-title":"Abstract proarrows I","volume":"23","author":"Wood Robert J.","year":"1982","unstructured":"Robert J. Wood. 1982. Abstract proarrows I. Cahiers de topologie et g\u00e9ometrie diff\u00e9rentielle categoriques 23, 3 (1982), 279-290.","journal-title":"Cahiers de topologie et g\u00e9ometrie diff\u00e9rentielle categoriques"}],"container-title":["Proceedings of the ACM on Programming Languages"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3776703","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,7,16]],"date-time":"2026-07-16T13:44:55Z","timestamp":1784209495000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3776703"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2026,1,8]]},"references-count":87,"journal-issue":{"issue":"POPL","published-print":{"date-parts":[[2026,1,8]]}},"alternative-id":["10.1145\/3776703"],"URL":"https:\/\/doi.org\/10.1145\/3776703","relation":{},"ISSN":["2475-1421"],"issn-type":[{"value":"2475-1421","type":"electronic"}],"subject":[],"published":{"date-parts":[[2026,1,8]]},"assertion":[{"value":"2025-07-09","order":0,"name":"received","label":"Received","group":{"name":"publication_history","label":"Publication History"}},{"value":"2025-11-06","order":2,"name":"accepted","label":"Accepted","group":{"name":"publication_history","label":"Publication History"}},{"value":"2026-01-08","order":3,"name":"published","label":"Published","group":{"name":"publication_history","label":"Publication History"}}]}}