English

Extending Equational Monadic Reasoning with Monad Transformers

Logic in Computer Science 2021-07-20 v3

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. 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.

Keywords

Cite

@article{arxiv.2011.03463,
  title  = {Extending Equational Monadic Reasoning with Monad Transformers},
  author = {Reynald Affeldt and David Nowak},
  journal= {arXiv preprint arXiv:2011.03463},
  year   = {2021}
}

Comments

19 pages, 26th International Conference on Types for Proofs and Programs (TYPES 2020)

R2 v1 2026-06-23T19:58:02.888Z