Eilenberg-Moore Monoids and Backtracking Monad Transformers

@inproceedings{Pirg2016EilenbergMooreMA,
  title={Eilenberg-Moore Monoids and Backtracking Monad Transformers},
  author={Maciej Pir{\'o}g},
  booktitle={MSFP},
  year={2016}
}
We develop an algebraic underpinning of backtracking monad transformers in the general setting of monoidal categories. As our main technical device, we introduce Eilenberg–Moore monoids, which combine monoids with algebras for strong monads. We show that Eilenberg–Moore monoids coincide with algebras for the list monad transformer (‘done right’) known from Haskell libraries. From this, we obtain a number of results, including the facts that the list monad transformer is indeed a monad, a… Expand
A unified view of monadic and applicative non-determinism
TLDR
This article recovers a unified view of computational effects with non-determinism by extending monoids to near-semirings with both additive and multiplicative structure to generically define free constructions as well as a novel double Cayley representation. Expand
Backtracking with cut via a distributive law and left-zero monoids*
TLDR
Two descriptions of the resulting monad are given: as the monad of free left-zero monoids, and as a composition via a distributive law of the list monad and the ‘unary idempotent operation’ monad. Expand
Equational Theories and Monads from Polynomial Cayley Representations
TLDR
CayMon, a tool that takes a polynomial as an input and generates the corresponding equational theory together with the two implementations of the induced monad in Haskell is introduced. Expand
Algebras for weighted search
Weighted search is an essential component of many fundamental and useful algorithms. Despite this, it is relatively under explored as a computational effect, receiving not nearly as much attention asExpand
Distributive interaction of algebraic effects
TLDR
This dissertation seeks to further the understanding of combining effects, especially from this more algebraic perspective, and considers in some detail a derivation of the geometrically convex monad, that is the combination of probabilistic and nondeterministic choice effects, called combined choice. Expand
List Objects with Algebraic Structure
TLDR
This work introduces and study the notion of list object with algebraic structure, and provides a basic theory explicitly describing as an inductively defined object such free monoids with suitably compatiblegebraic structure in common practical situations. Expand
Denotational validation of higher-order Bayesian inference
TLDR
A modular semantic account of Bayesian inference algorithms for probabilistic programming languages, as used in data science and machine learning, is presented and Kock's synthetic measure theory is used to emphasize the connection between the semantic manipulation and its traditional measure theoretic origins. Expand
Formally justified and modular Bayesian inference for probabilistic programs
TLDR
This paper aims to demonstrate the efforts towards in-situ applicability of EMMARM, as to provide real-time information about concrete mechanical properties such as E-modulus and compressive strength. Expand

References

SHOWING 1-10 OF 50 REFERENCES
Monad transformers as monoid transformers
TLDR
This work abstract and generalize from monads to monoids (in a monoidal category), and from monad transformers to monoid transformers, and opens the way for lifting of operations with applicability beyond monads. Expand
From monoids to near-semirings: the essence of MonadPlus and alternative
TLDR
This article recovers the essence of these two type classes by extending monoids to near-semirings with both additive and multiplicative structure and enables us to generically define the free construction. Expand
Notions of computation as monoids*
TLDR
This article gives conditions under which one can obtain free monoids and Cayley representations at the level of monoidal categories, and shows that their concretisation results in useful constructions for monads, applicative functors, and arrows. Expand
Backtracking, interleaving, and terminating monad transformers: (functional pearl)
TLDR
Inspired by logic programming, the library provides constructs for fair disjunctions, fair conjunctions, conditionals, pruning, and an expressive top-level interface and it is shown that all these additional constructs can be generically and monadically realized using a single primitive msplit. Expand
Algebraic Operations and Generic Effects
TLDR
This work defines the notion of generic effect and shows that to give a generic effect is equivalent to giving an algebraic operation, and shows how the usual monadic semantics of the computational λ-calculus extends uniformly to incorporate generic effects. Expand
The Coinductive Resumption Monad
TLDR
This paper introduces generalised resumptions in a category-theoretic, coalgebraic context and shows their basic properties: they form a monad, they come equipped with a corecursion scheme in the sense of Adamek et al.'s notion of completely iterative monads (cims), and they enjoy a certain universal property. Expand
Deriving backtracking monad transformers
TLDR
This work applies two fundamental techniques for deriving programs from their specification to derive a backtracking monad transformer that adds backtracking to an arbitrary monad. Expand
Monads and monoids on symmetric monoidal closed categories
part of a $/%monad A. In this note, we show that for a monad Tand a monoid A and a Y/'-natural transformation r -- (~ A --> T the following are equivalent (1) q is a Yf-monad map; (2) q is monoidalExpand
Infinite trees and completely iterative theories: a coalgebraic view
TLDR
It is proved that whenever an endofunctor H of a category has final coalgebras for all functors H(-) + X, then those coalgeBRas, TX, form a monad, which is a free completely iterative monad on H. Expand
Codensity and the ultrafilter monad
Even a functor without an adjoint induces a monad, namely, its codensity monad; this is subject only to the existence of certain limits. We clarify the sense in which codensity monads act asExpand
...
1
2
3
4
5
...