What Monads Can and Cannot Do with a Few Extra Pages

The delay monad provides a way to introduce general recursion in type theory. To write programs that use a wide range of computational effects directly in type theory, we need to combine the delay monad with the monads of these effects. Here we present a first systematic study of such combinations. We study both the coinductive delay monad and its guarded recursive cousin, giving concrete examples of combining these with well-known computational effects. We also provide general theorems stating which algebraic effects distribute over the delay monad, and which do not. Lastly, we salvage some of the impossible cases by considering distributive laws up to weak bisimilarity.

Authors

Institutions

Publication Details

Journal
Logical Methods in Computer Science
Published
2025-10-08
DOI
https://doi.org/10.46298/lmcs-21(4:5)2025
Primary Topic
History and Theory of Mathematics
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

What Monads Can and Cannot Do with a Few Extra Pages

Rasmus Ejlers Møgelberg, Maaike Zwart
Logical Methods in Computer Science
History and Theory of Mathematics
article

What Monads Can and Cannot Do with a Few Extra Pages

Rasmus Ejlers Møgelberg, Maaike Zwart
article en

Abstract

The delay monad provides a way to introduce general recursion in type theory. To write programs that use a wide range of computational effects directly in type theory, we need to combine the delay monad with the monads of these effects. Here we present a first systematic study of such combinations. We study both the coinductive delay monad and its guarded recursive cousin, giving concrete examples of combining these with well-known computational effects. We also provide general theorems stating which algebraic effects distribute over the delay monad, and which do not. Lastly, we salvage some of the impossible cases by considering distributive laws up to weak bisimilarity.

Logical Methods in Computer ScienceVol. Volume 21, Issue 4
IT University of Copenhagen (DK)
Openalex Percentile: Top 83%
History and Theory of Mathematics
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.