{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2025,5,13]],"date-time":"2025-05-13T21:57:17Z","timestamp":1747173437429,"version":"3.40.5"},"reference-count":37,"publisher":"Cambridge University Press (CUP)","issue":"4","license":[{"start":{"date-parts":[[2021,12,6]],"date-time":"2021-12-06T00:00:00Z","timestamp":1638748800000},"content-version":"unspecified","delay-in-days":0,"URL":"https:\/\/www.cambridge.org\/core\/terms"}],"content-domain":{"domain":["cambridge.org"],"crossmark-restriction":true},"short-container-title":["Math. Struct. Comp. Sci."],"published-print":{"date-parts":[[2022,4]]},"abstract":"<jats:title>Abstract<\/jats:title><jats:p>It is well established that equational algebraic theories and the monads they generate can be used to encode computational effects. An important insight of Power and Shkaravska is that <jats:italic>comodels<\/jats:italic> of an algebraic theory <jats:inline-formula><jats:alternatives><jats:inline-graphic xmlns:xlink=\"http:\/\/www.w3.org\/1999\/xlink\" mime-subtype=\"png\" xlink:href=\"S0960129521000219_inline1.png\"\/><jats:tex-math>\n$\\mathbb{T}$\n<\/jats:tex-math><\/jats:alternatives><\/jats:inline-formula> \u2013 i.e., models in the opposite category <jats:inline-formula><jats:alternatives><jats:inline-graphic xmlns:xlink=\"http:\/\/www.w3.org\/1999\/xlink\" mime-subtype=\"png\" xlink:href=\"S0960129521000219_inline2.png\"\/><jats:tex-math>\n$\\mathcal{S}\\mathrm{et}^{\\mathrm{op}}$\n<\/jats:tex-math><\/jats:alternatives><\/jats:inline-formula> \u2013 provide a suitable environment for evaluating the computational effects encoded by <jats:inline-formula><jats:alternatives><jats:inline-graphic xmlns:xlink=\"http:\/\/www.w3.org\/1999\/xlink\" mime-subtype=\"png\" xlink:href=\"S0960129521000219_inline3.png\"\/><jats:tex-math>\n$\\mathbb{T}$\n<\/jats:tex-math><\/jats:alternatives><\/jats:inline-formula>. As already noted by Power and Shkaravska, taking comodels yields a functor from accessible monads to accessible comonads on <jats:inline-formula><jats:alternatives><jats:inline-graphic xmlns:xlink=\"http:\/\/www.w3.org\/1999\/xlink\" mime-subtype=\"png\" xlink:href=\"S0960129521000219_inline4.png\"\/><jats:tex-math>\n$\\mathcal{S}\\mathrm{et}$\n<\/jats:tex-math><\/jats:alternatives><\/jats:inline-formula>. In this paper, we show that this functor is part of an adjunction \u2013 the \u201ccostructure\u2013cosemantics adjunction\u201d of the title \u2013 and undertake a thorough investigation of its properties. We show that, on the one hand, the cosemantics functor takes its image in what we term the <jats:italic>presheaf comonads<\/jats:italic> induced by small categories; and that, on the other, costructure takes its image in the <jats:italic>presheaf monads<\/jats:italic> induced by small categories. In particular, the cosemantics comonad of an accessible monad will be induced by an explicitly-described category called its <jats:italic>behaviour category<\/jats:italic> that encodes the static and dynamic properties of the comodels. Similarly, the costructure monad of an accessible comonad will be induced by a behaviour category encoding static and dynamic properties of the comonad coalgebras. We tie these results together by showing that the costructure\u2013cosemantics adjunction is <jats:italic>idempotent<\/jats:italic>, with fixpoints to either side given precisely by the presheaf monads and comonads. Along the way, we illustrate the value of our results with numerous examples drawn from computation and mathematics.<\/jats:p>","DOI":"10.1017\/s0960129521000219","type":"journal-article","created":{"date-parts":[[2021,12,6]],"date-time":"2021-12-06T05:26:31Z","timestamp":1638768391000},"page":"374-419","update-policy":"https:\/\/doi.org\/10.1017\/policypage","source":"Crossref","is-referenced-by-count":1,"title":["The costructure\u2013cosemantics adjunction for comodels for computational effects"],"prefix":"10.1017","volume":"32","author":[{"ORCID":"https:\/\/orcid.org\/0000-0003-4475-8721","authenticated-orcid":false,"given":"Richard","family":"Garner","sequence":"first","affiliation":[],"role":[{"role":"author","vocabulary":"crossref"}]}],"member":"56","published-online":{"date-parts":[[2021,12,6]]},"reference":[{"key":"S0960129521000219_ref13","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-40206-7_13"},{"key":"S0960129521000219_ref34","doi-asserted-by":"publisher","DOI":"10.1016\/S0304-3975(00)00056-6"},{"key":"S0960129521000219_ref3","unstructured":"[3] Aguiar, M. (1997) Internal Categories and Quantum Groups. PhD thesis, Cornell University."},{"key":"S0960129521000219_ref9","doi-asserted-by":"publisher","DOI":"10.1007\/978-1-4899-0021-0"},{"key":"S0960129521000219_ref21","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-03741-2_8"},{"key":"S0960129521000219_ref30","doi-asserted-by":"publisher","DOI":"10.1023\/A:1023064908962"},{"key":"S0960129521000219_ref2","doi-asserted-by":"publisher","DOI":"10.1007\/s10485-014-9372-9"},{"key":"S0960129521000219_ref32","doi-asserted-by":"crossref","unstructured":"[32] Power, J. and Shkaravska, O. (2004) From comodels to coalgebras: State and arrays. In: Proceedings of the Workshop on Coalgebraic Methods in Computer Science (2004), vol. 106. Electronic Notes in Theoretical Computer Science, Elsevier, 297\u2013314.","DOI":"10.1016\/j.entcs.2004.02.041"},{"key":"S0960129521000219_ref37","doi-asserted-by":"publisher","DOI":"10.1016\/j.entcs.2015.12.024"},{"key":"S0960129521000219_ref10","first-page":"985","article-title":"Spectres et localisations relatifs \u00e0 un foncteur","volume":"287","author":"Diers","year":"1978","journal-title":"Comptes rendus hebdomadaires des s\u00e9ances de l\u2019Acad\u00e9mie des sciences"},{"key":"S0960129521000219_ref11","doi-asserted-by":"publisher","DOI":"10.1007\/BFb0060485"},{"key":"S0960129521000219_ref36","unstructured":"[36] Thielecke, H. (1997) Categorical Structure of Continuation Passing Style. PhD thesis, University of Edinburgh."},{"key":"S0960129521000219_ref22","doi-asserted-by":"publisher","DOI":"10.1073\/pnas.50.5.869"},{"key":"S0960129521000219_ref31","doi-asserted-by":"publisher","DOI":"10.1016\/j.entcs.2008.10.018"},{"key":"S0960129521000219_ref14","doi-asserted-by":"crossref","unstructured":"[14] Goncharov, S. , Milius, S. and Silva, A. (2014) Towards a coalgebraic chomsky hierarchy. In: TCS 2014, Rome (2014), vol. 8705, Lecture Notes in Computer Science, Springer, 265\u2013280.","DOI":"10.1007\/978-3-662-44602-7_21"},{"key":"S0960129521000219_ref27","doi-asserted-by":"crossref","unstructured":"[27] Pattinson, D. and Schr\u00f6der, L. (2016) Program equivalence is coinductive. In: Proceedings of the 31st Annual ACM-IEEE Symposium on Logic in Computer Science (LICS 2016) (2016), ACM, 10.","DOI":"10.1145\/2933575.2934506"},{"key":"S0960129521000219_ref4","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-030-44914-8_2"},{"key":"S0960129521000219_ref7","unstructured":"[7] Ahman, D. and Uustalu, T. (2014) Update monads: Cointerpreting directed containers. In: 19th International Conference on Types for Proofs and Programs, vol. 26 LIPIcs, Leibniz Int. Proc. Inform., Schloss Dagstuhl. Leibniz-Zent. Inform., Wadern, 1\u201323."},{"key":"S0960129521000219_ref16","doi-asserted-by":"publisher","DOI":"10.1017\/S0305004100071760"},{"key":"S0960129521000219_ref17","doi-asserted-by":"publisher","DOI":"10.1016\/0021-8693(90)90230-L"},{"key":"S0960129521000219_ref23","doi-asserted-by":"publisher","DOI":"10.1007\/978-1-4612-9860-1"},{"key":"S0960129521000219_ref8","unstructured":"[8] Ahman, D. and Uustalu, T. (2017) Taking updates seriously. In: Proceedings of the 6th International Workshop on Bidirectional Transformations (2017), CEUR Workshop Proceedings, 59\u201373."},{"key":"S0960129521000219_ref1","doi-asserted-by":"publisher","DOI":"10.1016\/j.tcs.2005.06.002"},{"key":"S0960129521000219_ref26","doi-asserted-by":"publisher","DOI":"10.1016\/j.entcs.2015.12.019"},{"key":"S0960129521000219_ref35","doi-asserted-by":"publisher","DOI":"10.1007\/3-540-56596-5_45"},{"key":"S0960129521000219_ref25","doi-asserted-by":"publisher","DOI":"10.1016\/0890-5401(91)90052-4"},{"key":"S0960129521000219_ref6","doi-asserted-by":"publisher","DOI":"10.1016\/j.entcs.2014.10.003"},{"key":"S0960129521000219_ref12","doi-asserted-by":"publisher","DOI":"10.1145\/1232420.1232424"},{"key":"S0960129521000219_ref24","doi-asserted-by":"publisher","DOI":"10.2168\/LMCS-10(1:17)2014"},{"key":"S0960129521000219_ref15","doi-asserted-by":"publisher","DOI":"10.1145\/3372880"},{"key":"S0960129521000219_ref20","doi-asserted-by":"crossref","first-page":"163","DOI":"10.1016\/0022-4049(93)90092-8","article-title":"Adjunctions whose counits are coequalizers, and presentations of finitary enriched monads","volume":"89","author":"Kelly","year":"1993","journal-title":"Journal of Pure and Applied Algebra"},{"key":"S0960129521000219_ref18","doi-asserted-by":"crossref","first-page":"95","DOI":"10.7146\/math.scand.a-10627","article-title":"On two properties of free algebras","volume":"9","author":"J\u00f3nsson","year":"1961","journal-title":"Mathematica Scandinavica"},{"key":"S0960129521000219_ref19","doi-asserted-by":"crossref","unstructured":"[19] Katsumata, S. , Rivas, E. and Uustalu, T. (2019) Interaction laws of monads and comonads. Preprint, available as arXiv:1912.13477.","DOI":"10.1145\/3373718.3394808"},{"key":"S0960129521000219_ref33","doi-asserted-by":"publisher","DOI":"10.1007\/BFb0091072"},{"key":"S0960129521000219_ref5","doi-asserted-by":"crossref","unstructured":"[5] Ahman, D. , Chapman, J. and Uustalu, T. (2012) When is a container a comonad? In: Foundations of Software Science and Computational Structures, vol. 7213, Lecture Notes in Computer Science, Heidelberg: Springer, 74\u201388.","DOI":"10.1007\/978-3-642-28729-9_5"},{"key":"S0960129521000219_ref28","doi-asserted-by":"publisher","DOI":"10.1007\/3-540-45315-6_1"},{"key":"S0960129521000219_ref29","first-page":"342","volume-title":"Computer Science","volume":"2002","author":"Plotkin","year":"2002"}],"container-title":["Mathematical Structures in Computer Science"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/www.cambridge.org\/core\/services\/aop-cambridge-core\/content\/view\/S0960129521000219","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2022,12,16]],"date-time":"2022-12-16T12:26:55Z","timestamp":1671193615000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.cambridge.org\/core\/product\/identifier\/S0960129521000219\/type\/journal_article"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2021,12,6]]},"references-count":37,"journal-issue":{"issue":"4","published-print":{"date-parts":[[2022,4]]}},"alternative-id":["S0960129521000219"],"URL":"https:\/\/doi.org\/10.1017\/s0960129521000219","relation":{},"ISSN":["0960-1295","1469-8072"],"issn-type":[{"type":"print","value":"0960-1295"},{"type":"electronic","value":"1469-8072"}],"subject":[],"published":{"date-parts":[[2021,12,6]]},"assertion":[{"value":"\u00a9 The Author(s), 2021. Published by Cambridge University Press","name":"copyright","label":"Copyright","group":{"name":"copyright_and_licensing","label":"Copyright and Licensing"}}]}}