Modules over monoids vs algebra over monads

132 Views Asked by At

I read somewhere that the construction of algebras over monads is motivated by/ similar to the construction of modules over monoids, but I'm having difficulty seeing this. I see that a monad "looks like" a monoid ( it has multiplication and a unit and satisfies associativity and unit axioms), but beyond that the comparison seems a bit opaque to me. Can anyone shed light on this? Thanks!

1

There are 1 best solutions below

0
On BEST ANSWER

Monoid actions for a fixed monoid $M$ are an instance of being algebras for a monad.

Specifically, let the monad be $T:\mathcal{Set}\to\mathcal{Set},\ X\mapsto M\times X$ (which is, by the way, the underlying set of the free $M$-module generated by $X$), with monad multiplication induced by the monoid multiplication: $X\times M\times M\to X\times M$ and monad unit induced by the monoid unit $X\to X\times M,\ x\mapsto (x,1_M)$.