Algebraic and coalgebraic perspectives on interaction laws

dc.contributorReykjavik Universityen_US
dc.contributorHáskólinn í Reykjavíken_US
dc.contributor.authorUustalu, Tarmo
dc.contributor.authorVoorneveld, Niels
dc.contributor.departmentDepartment of Computer Science (RU)en_US
dc.contributor.departmentTölvunarfræðideild (HR)en_US
dc.contributor.schoolSchool of Technology (RU)en_US
dc.contributor.schoolTæknisvið (HR)en_US
dc.date.accessioned2023-02-17T13:42:57Z
dc.date.available2023-02-17T13:42:57Z
dc.date.issued2020
dc.description.abstractMonad algebras, turning computations over return values into values, are used to handle algebraic effects invoked by programs, whereas comonad coalgebras, turning initial states into environments (“cocomputations”) over states, describe production of coalgebraic coeffects that can respond to effects. (Monad-comonad) interaction laws by Katsumata et al. describe interaction protocols between a computation and an environment. We show that any triple of those devices can be combined into a single algebra handling computations over state predicates. This method yields an isomorphism between the category of interaction laws, and the category of so-called merge functors which merge algebras and coalgebras to form combined algebras. In a similar vein, we can combine interaction laws with coalgebras only, retrieving Uustalu’s stateful runners. If instead we combine interaction laws with algebras only, we get a novel concept of continuation-based runners that lift an environment of value predicates to a single predicate on computations of values. We use these notions to study different running examples of interactions of computations and environments.en_US
dc.description.sponsorshipT.U. was supported by the Icelandic Research Fund project grant no. 196323-052 and by the Estonian Ministry of Education and Research institutional research grant no. IUT33-13. N.V. was supported by the Estonian IT Academy research measure (the European Social Fund project no. 2014-2020.4.05.19-0001).en_US
dc.description.versionPost-printen_US
dc.format.extent186-205en_US
dc.identifier.citationT. Uustalu, N. Voorneveld. Algebraic and coalgebraic perspectives on interaction laws. In B. C. d. S. Oliveira, ed., Programming Languages and Systems: 18th Asian Symposium, APLAS 2020, Fukuoka, Japan, November 30 – December 2, 2020, Proceedings, Lecture Notes in Comput. Science, v. 12470, pp. 186-205. Springer, Cham, 2020. doi:10.1007/978-3-030-64437-6_10en_US
dc.identifier.doi10.1007/978-3-030-64437-6_10
dc.identifier.isbn9783030644369
dc.identifier.isbn9783030644376
dc.identifier.issn0302-9743
dc.identifier.issn1611-3349
dc.identifier.journalProgramming Languages and Systems: 18th Asian Symposium, APLAS 2020, Fukuoka, Japan, November 30 – December 2, 2020, Proceedingsen_US
dc.identifier.urihttps://hdl.handle.net/20.500.11815/4001
dc.language.isoenen_US
dc.publisherSpringeren_US
dc.relation.ispartofseriesLecture Notes in Computer Science;12470
dc.relation.urlhttps://link.springer.com/content/pdf/10.1007/978-3-030-64437-6_10en_US
dc.rightsinfo:eu-repo/semantics/openAccessen_US
dc.subjectMonad algebrasen_US
dc.subjectComonad coalgebrasen_US
dc.subjectInteraction lawsen_US
dc.subjectRunnersen_US
dc.subjectMonad morphismsen_US
dc.subjectEffectsen_US
dc.subjectCoeffectsen_US
dc.subjectAlgebraen_US
dc.subjectTölvunarfræðien_US
dc.titleAlgebraic and coalgebraic perspectives on interaction lawsen_US
dc.typeinfo:eu-repo/semantics/bookParten_US

Skrár

Original bundle

Niðurstöður 1 - 1 af 1
Hleð...
Thumbnail Image
Nafn:
uustalu-voorneveld-aplas20-opinvisindi.pdf
Stærð:
499.77 KB
Snið:
Adobe Portable Document Format
Description:
Post-print

Undirflokkur