A Trustful Monad for Axiomatic Reasoning with Probability and Nondeterminism

Reynald Affeldt, Jacques Garrigue, David Nowak, Takafumi Saikawa
3/22/2020
cs.LO

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

Abstract

The algebraic properties of the combination of probabilistic choice and nondeterministic choice have long been a research topic in program semantics. This paper explains a formalization in the Coq proof assistant of a monad equipped with both choices: the geometrically convex monad.

Show full abstract

This formalization has an immediate application: it provides a model for a monad that implements a non-trivial interface which allows for proofs by equational reasoning using probabilistic and nondeterministic effects. We explain the technical choices we made to go from the literature to a complete Coq formalization, from which we identify reusable theories about mathematical structures such as convex spaces and concrete categories, and that we integrate in a framework for monadic equational reasoning.

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{affeldt2020trustful,
  title  = {A Trustful Monad for Axiomatic Reasoning with Probability and Nondeterminism},
  author = {Reynald Affeldt and Jacques Garrigue and David Nowak and Takafumi Saikawa},
  year   = {2020},
  eprint = {2003.09993},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2003.09993}
}

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/2003.09993.svg)](https://codeofpaper.com/paper/2003.09993)

Discussion