1. A Recipe for State-and-Effect Triangles
- Author
-
Jacobs, B., Moss, L., and Moss, L.
- Subjects
FOS: Computer and information sciences ,Computer Science - Logic in Computer Science ,000 Computer science, knowledge, general works ,TheoryofComputation_MATHEMATICALLOGICANDFORMALLANGUAGES ,Computer Science::Logic in Computer Science ,Mathematics::Category Theory ,Computer Science ,ComputingMethodologies_DOCUMENTANDTEXTPROCESSING ,Computer Science::Programming Languages ,Digital Security ,Leibniz International Proceedings in Informatics ,GeneralLiterature_REFERENCE(e.g.,dictionaries,encyclopedias,glossaries) ,Logic in Computer Science (cs.LO) - Abstract
In the semantics of programming languages one can view programs as state transformers, or as predicate transformers. Recently the author has introduced state-and-effect triangles which capture this situation categorically, involving an adjunction between state- and predicate-transformers. The current paper exploits a classical result in category theory, part of Jon Beck's monadicity theorem, to systematically construct such a state-and-effect triangle from an adjunction. The power of this construction is illustrated in many examples, covering many monads occurring in program semantics, including (probabilistic) power domains., Logical Methods in Computer Science ; Volume 13, Issue 2 ; 1860-5974
- Published
- 2017