Scoped Effects, Scoped Operations, and Parameterized Algebraic Theories
Notions of computation can be modeled by monads. Algebraic effects offer a characterization of monads in terms of algebraic operations and equational axioms, where operations are basic programming features, such as reading or updating the state, and axioms specify observably equivalent expressions. However, many useful programming features depend on additional mechanisms such as delimited scopes or dynamically allocated resources. Such mechanisms can be supported via extensions to algebraic effects including scoped effects and parameterized algebraic theories . We present a fresh perspective on scoped effects by translation into a variation of parameterized algebraic theories. The translation enables a new approach to equational reasoning for scoped effects and gives rise to an alternative characterization of monads in terms of generators and equations involving both scoped and algebraic operations. We demonstrate the power of our approach by way of equational characterizations of several known models of scoped effects.
Authors
- Zhixuan Yang (ORCID: https://orcid.org/0000-0001-5573-3357)
- Sean Moss (ORCID: https://orcid.org/0009-0005-3930-5340)
- Sam Lindley (ORCID: https://orcid.org/0000-0002-1360-4714)
- Sam Staton (ORCID: https://orcid.org/0000-0002-0141-8922)
- Nicolas Wu (ORCID: https://orcid.org/0000-0002-4161-985X)
- Cristina Matache (ORCID: https://orcid.org/0009-0003-6036-6426)
Institutions
- University of Oxford (GB)
- Imperial College London (GB)
- University of Birmingham (GB)
- University of Edinburgh (GB)
Publication Details
- Journal
- ACM Transactions on Programming Languages and Systems
- Published
- 2025-05-05
- DOI
- https://doi.org/10.1145/3731678
- Citations
- 2
- Primary Topic
- Logic, programming, and type systems
- Type
- article
- Field-Weighted Citation Impact
- 4.96