{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,4,23]],"date-time":"2026-04-23T09:02:16Z","timestamp":1776934936842,"version":"3.51.2"},"reference-count":28,"publisher":"Association for Computing Machinery (ACM)","issue":"4","license":[{"start":{"date-parts":[[2022,10,20]],"date-time":"2022-10-20T00:00:00Z","timestamp":1666224000000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/www.acm.org\/publications\/policies\/copyright_policy#Background"}],"funder":[{"DOI":"10.13039\/501100000038","name":"Natural Sciences and Engineering Research Council of Canada","doi-asserted-by":"crossref","award":["206263"],"award-info":[{"award-number":["206263"]}],"id":[{"id":"10.13039\/501100000038","id-type":"DOI","asserted-by":"crossref"}]},{"name":"Fonds de recherche du Qu\u00e9bec - Nature et Technologies","award":["253521"],"award-info":[{"award-number":["253521"]}]},{"name":"Postgraduate Scholarship - Doctoral by the Natural Sciences and Engineering Research Council of Canada"}],"content-domain":{"domain":["dl.acm.org"],"crossmark-restriction":true},"short-container-title":["ACM Trans. Comput. Logic"],"published-print":{"date-parts":[[2022,10,31]]},"abstract":"<jats:p>\n            We describe the categorical semantics for a simply typed variant and a simplified dependently typed variant of\n            <jats:sc>Cocon<\/jats:sc>\n            , a contextual modal type theory where the box modality mediates between the weak function space that is used to represent higher-order abstract syntax (HOAS) trees and the strong function space that describes (recursive) computations about them. What makes\n            <jats:sc>Cocon<\/jats:sc>\n            different from standard type theories is the presence of first-class contexts and contextual objects to describe syntax trees that are closed with respect to a given context of assumptions. Following M.\u00a0Hofmann\u2019s work, we use a presheaf model to characterise HOAS trees. Surprisingly, this model already provides the necessary structure to also model\n            <jats:sc>Cocon<\/jats:sc>\n            . In particular, we can capture the contextual objects of\n            <jats:sc>Cocon<\/jats:sc>\n            using a comonad\u00a0\u266d that restricts presheaves to their closed elements. This gives a simple semantic characterisation of the invariants of contextual types (e.g.\u00a0substitution invariance) and identifies\n            <jats:sc>Cocon<\/jats:sc>\n            as a type-theoretic syntax of presheaf models. We further extend this characterisation to dependent types using categories with families and show that we can model a fragment of\n            <jats:sc>Cocon<\/jats:sc>\n            without recursor in the Fitch-style dependent modal type theory presented by Birkedal et\u00a0al.\n          <\/jats:p>","DOI":"10.1145\/3545115","type":"journal-article","created":{"date-parts":[[2022,6,29]],"date-time":"2022-06-29T12:35:52Z","timestamp":1656506152000},"page":"1-36","update-policy":"https:\/\/doi.org\/10.1145\/crossmark-policy","source":"Crossref","is-referenced-by-count":5,"title":["A Category Theoretic View of Contextual Types: From Simple Types to Dependent Types"],"prefix":"10.1145","volume":"23","author":[{"ORCID":"https:\/\/orcid.org\/0000-0001-6710-6262","authenticated-orcid":false,"given":"Jason Z. S.","family":"Hu","sequence":"first","affiliation":[{"name":"McGill University, Montr\u00e9al, Qu\u00e9bec, Canada"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-2549-4276","authenticated-orcid":false,"given":"Brigitte","family":"Pientka","sequence":"additional","affiliation":[{"name":"McGill University, Montr\u00e9al, Qu\u00e9bec, Canada"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-5445-9461","authenticated-orcid":false,"given":"Ulrich","family":"Sch\u00f6pp","sequence":"additional","affiliation":[{"name":"fortiss GmbH, Munich, Germany"}],"role":[{"role":"author","vocabulary":"crossref"}]}],"member":"320","published-online":{"date-parts":[[2022,10,20]]},"reference":[{"key":"e_1_3_1_2_1","article-title":"Two-level type theory and applications","author":"Annenkov Danil","year":"2017","unstructured":"Danil Annenkov, Paolo Capriotti, and Nicolai Kraus. 2017. Two-level type theory and applications. ArXiv E-prints (May 2017). Retrieved from http:\/\/arxiv.org\/abs\/1705.03307.","journal-title":"ArXiv E-prints"},{"key":"e_1_3_1_3_1","volume-title":"Dual Intuitionistic Linear Logic","author":"Barber Andrew","year":"1996","unstructured":"Andrew Barber and Gordon Plotkin. 1996. Dual Intuitionistic Linear Logic. University of Edinburgh, Department of Computer Science, Laboratory for Foundations of Computer Science."},{"key":"e_1_3_1_4_1","doi-asserted-by":"publisher","DOI":"10.1007\/BFb0037099"},{"key":"e_1_3_1_5_1","doi-asserted-by":"publisher","DOI":"10.1017\/S0960129519000197"},{"key":"e_1_3_1_6_1","volume-title":"Models of Type Theory with Strict Equality","author":"Capriotti Paolo","year":"2016","unstructured":"Paolo Capriotti. 2016. Models of Type Theory with Strict Equality. Ph.D. Dissertation. School of Computer Science, University of Nottingham, UK, Nottingham. Retrieved from http:\/\/arxiv.org\/abs\/1702.04912."},{"key":"e_1_3_1_7_1","doi-asserted-by":"publisher","DOI":"10.1017\/S0960129513000881"},{"key":"e_1_3_1_8_1","doi-asserted-by":"publisher","DOI":"10.1145\/382780.382785"},{"key":"e_1_3_1_9_1","doi-asserted-by":"publisher","DOI":"10.1007\/3-540-61780-9_66"},{"key":"e_1_3_1_10_1","doi-asserted-by":"publisher","DOI":"10.1109\/LICS.1999.782615"},{"key":"e_1_3_1_11_1","doi-asserted-by":"publisher","DOI":"10.1109\/LICS.1999.782617"},{"key":"e_1_3_1_12_1","doi-asserted-by":"publisher","DOI":"10.1016\/j.jal.2012.07.002"},{"key":"e_1_3_1_13_1","doi-asserted-by":"publisher","DOI":"10.1145\/3341711"},{"key":"e_1_3_1_14_1","doi-asserted-by":"publisher","DOI":"10.1145\/138027.138060"},{"key":"e_1_3_1_15_1","first-page":"79","volume-title":"Syntax and Semantics of Dependent Types","author":"Hofmann Martin","year":"1997","unstructured":"Martin Hofmann. 1997. Syntax and Semantics of Dependent Types. Cambridge University Press, 79\u2013130."},{"key":"e_1_3_1_16_1","doi-asserted-by":"publisher","DOI":"10.1109\/LICS.1999.782616"},{"key":"e_1_3_1_17_1","doi-asserted-by":"publisher","DOI":"10.1016\/0304-3975(93)90169-T"},{"key":"e_1_3_1_18_1","unstructured":"G. A. Kavvos. 2017. Intensionality intensional recursion and the G\u00f6del-L\u00f6b axiom."},{"key":"e_1_3_1_19_1","first-page":"22:1\u201322:17","volume-title":"Proceedings of the Formal Structures for Computation and Deduction Conference (FSCD\u201918)","author":"Licata Daniel R.","year":"2018","unstructured":"Daniel R. Licata, Ian Orton, Andrew M. Pitts, and Bas Spitters. 2018. Internal universes in models of homotopy type theory. In Proceedings of the Formal Structures for Computation and Deduction Conference (FSCD\u201918). 22:1\u201322:17."},{"key":"e_1_3_1_20_1","doi-asserted-by":"publisher","DOI":"10.1145\/333580.333590"},{"key":"e_1_3_1_21_1","doi-asserted-by":"publisher","DOI":"10.1145\/1352582.1352591"},{"key":"e_1_3_1_22_1","doi-asserted-by":"publisher","DOI":"10.1145\/53990.54010"},{"key":"e_1_3_1_23_1","doi-asserted-by":"publisher","DOI":"10.1145\/1328438.1328483"},{"key":"e_1_3_1_24_1","first-page":"273","volume-title":"Proceedings of the 13th International Conference on Typed Lambda Calculi and Applications (TLCA\u201915)","author":"Pientka Brigitte","year":"2015","unstructured":"Brigitte Pientka and Andreas Abel. 2015. Structural recursion over contextual objects. In Proceedings of the 13th International Conference on Typed Lambda Calculi and Applications (TLCA\u201915). Leibniz International Proceedings in Informatics (LIPIcs) of Schloss Dagstuhl, 273\u2013287."},{"key":"e_1_3_1_25_1","doi-asserted-by":"publisher","DOI":"10.1145\/1389449.1389469"},{"key":"e_1_3_1_26_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-030-45231-5_26"},{"key":"e_1_3_1_27_1","doi-asserted-by":"publisher","DOI":"10.1109\/LICS.2019.8785683"},{"key":"e_1_3_1_28_1","doi-asserted-by":"publisher","DOI":"10.1007\/3-540-18508-9_18"},{"key":"e_1_3_1_29_1","doi-asserted-by":"publisher","DOI":"10.1017\/S0960129517000147"}],"container-title":["ACM Transactions on Computational Logic"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3545115","content-type":"unspecified","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3545115","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,6,17]],"date-time":"2025-06-17T19:02:44Z","timestamp":1750186964000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3545115"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2022,10,20]]},"references-count":28,"journal-issue":{"issue":"4","published-print":{"date-parts":[[2022,10,31]]}},"alternative-id":["10.1145\/3545115"],"URL":"https:\/\/doi.org\/10.1145\/3545115","relation":{},"ISSN":["1529-3785","1557-945X"],"issn-type":[{"value":"1529-3785","type":"print"},{"value":"1557-945X","type":"electronic"}],"subject":[],"published":{"date-parts":[[2022,10,20]]},"assertion":[{"value":"2021-05-04","order":0,"name":"received","label":"Received","group":{"name":"publication_history","label":"Publication History"}},{"value":"2022-05-28","order":1,"name":"accepted","label":"Accepted","group":{"name":"publication_history","label":"Publication History"}},{"value":"2022-10-20","order":2,"name":"published","label":"Published","group":{"name":"publication_history","label":"Publication History"}}]}}