Skip to search boxSkip to navigationSkip to main content

What Monads Can and Cannot Do with a Bit of Extra Time

Research Output:
Conference Article in Proceeding or Book/Report chapter
Article in proceedings
Peer-review

Open access

Publication Information

Output type

Research Output:
Conference Article in Proceeding or Book/Report chapter
Article in proceedings
Peer-review

Original language

English

Article number

39

Pages from-to (Number of pages)

Pages 39:1--39:18 (18 pages)

Publication milestones

  • Published - 2024

Publication status

Published - 2024

Volume

288

Publisher

Schloss Dagstuhl - Leibniz-Zentrum fuer Informatik GmbH

Host publication title

32nd EACSL Annual Conference on Computer Science Logic (CSL 2024)

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.

Access to documents

Accepted author manuscript, 691.14 KB
License:Unspecified

Related Event

Title

Computer Science Logic

Event type

Conference

Degree of recognition

International event

Date

19/02/2024 - 23/02/2024

Location

ItalyNaplesItaly