Extending Equational Monadic Reasoning with Monad Transformers

Reynald Affeldt, David Nowak
11/6/2020
cs.LO
transformer-attention

Official code: affeldt-aist/monae (79 stars, Rocq Prover, LGPL-2.1, last commit 2026-09-23).

Abstract

There is a recent interest for the verification of monadic programs using proof assistants. This line of research raises the question of the integration of monad transformers, a standard technique to combine monads.

Show full abstract

In this paper, we extend Monae, a Coq library for monadic equational reasoning, with monad transformers and we explain the benefits of this extension. Our starting point is the existing theory of modular monad transformers, which provides a uniform treatment of operations. Using this theory, we simplify the formalization of models in Monae and we propose an approach to support monadic equational reasoning in the presence of monad transformers. We also use Monae to revisit the lifting theorems of modular monad transformers by providing equational proofs and explaining how to patch a known bug using a non-standard use of Coq that combines impredicative polymorphism and parametricity.

View on arXivView PDF

Code Implementations(1)

affeldt-aist/monaeOfficial100%
LGPL-2.1

Monadic effects and equational reasoning in Rocq

7919Rocq Prover, NixAug 6, 20182 months agoLGPL-2.1
math-compmathcompmonad-transformersmonadic-effectsmonads+3 more

Similar Papers

Cite this paper

@article{affeldt2020extending,
  title  = {Extending Equational Monadic Reasoning with Monad Transformers},
  author = {Reynald Affeldt and David Nowak},
  year   = {2020},
  eprint = {2011.03463},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2011.03463}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2011.03463.svg)](https://codeofpaper.com/paper/2011.03463)

Discussion