Category-Graded Algebraic Theories and Effect Handlers

12/14/2022
by   Takahiro Sanada, et al.
0

We provide an effect system CatEff based on a category-graded extension of algebraic theories that correspond to category-graded monads. CatEff has category-graded operations and handlers. Effects in CatEff are graded by morphisms of the grading category. Grading morphisms represent fine structures of effects such as dependencies or sorts of states. Handlers in CatEff are regarded as an implementation of category-graded effects. We define the notion of category-graded algebraic theory to give semantics of CatEff and prove soundness and adequacy. We also give an example using category-graded effects to express protocols for sending receiving typed data.

READ FULL TEXT
research
02/17/2020

Graded Algebraic Theories

We provide graded extensions of algebraic theories and Lawvere theories ...
research
04/10/2018

Factorisation systems for logical relations and monadic lifting in type-and-effect system semantics

Type-and-effect systems incorporate information about the computational ...
research
01/25/2022

Structured Handling of Scoped Effects: Extended Version

Algebraic effects offer a versatile framework that covers a wide variety...
research
07/31/2023

Canonical Gradings of Monads

We define a notion of grading of a monoid T in a monoidal category C, re...
research
11/30/2020

The costructure-cosemantics adjunction for comodels for computational effects

It is well established that equational algebraic theories, and the monad...
research
05/27/2020

Local Algebraic Effect Theories

Algebraic effects are computational effects that can be described with a...
research
08/03/2021

Localisable Monads

Monads govern computational side-effects in programming semantics. They ...

Please sign up or login with your details

Forgot password? Click here to reset