English

A Recipe for State-and-Effect Triangles

Logic in Computer Science 2023-06-22 v3

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.

Keywords

Cite

@article{arxiv.1703.09034,
  title  = {A Recipe for State-and-Effect Triangles},
  author = {Bart Jacobs},
  journal= {arXiv preprint arXiv:1703.09034},
  year   = {2023}
}
R2 v1 2026-06-22T18:57:47.710Z