Articles
Monadic Corecursion —Definition, Fusion Laws, and Applications—

https://doi.org/10.1016/S1571-0661(04)00055-6Get rights and content
Under a Creative Commons license
open access

Abstract

This paper investigates corecursive definitions which are at the same time monadic. This corresponds to functions that generate a data structure following a corecursive process, while producing a computational effect modeled by a monad. We introduce a functional, called monadic anamorphism, that captures definitions of this kind. We also explore another class of monadic recursive functions, corresponding to the composition of a monadic anamorphism followed by (the lifting of) a function defined by structural recursion on the data structure that the monadic anamorphism generates. Such kind of functions are captured by so-called monadic hylomorphism. We present transformation laws for these monadic functionals. Two non-trivial applications are also described.

Cited by (0)

1

Address from May'98: Instituto de Computación, Facultad de Ingeniería, Julio Herrera y Reissig 565, 11300 Montevideo, Uruguay.