Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a term for a monad that is also a comonad?

I'm just wondering whether there's a concise term for something that's both a monad and a comonad. I've done some searching, and I know these structures exist, but I haven't found a name for them.

like image 201
qbeightol Avatar asked Nov 27 '14 13:11

qbeightol


People also ask

What is comonad?

Comonad is a Functor and provides duals of the Monad pure and flatMap functions. A dual to a function has the same types but the direction of the arrows are reversed. Whether or not that is useful, or even possible, depends on the particular type.

What is a Monad in math?

A monad is a structure that is a lot like a monoid, but that lives in a bicategory rather than a monoidal category. In other words, the concept of a monad is a vertical categorification of that of a monoid. Monads are among the most pervasive structures in category theory and its applications.


1 Answers

Such a creature, subject to certain conditions, is sometimes called a "Hopf monad" or a "Bimonad" (http://ncatlab.org/nlab/show/Hopf+monad).

However, this also requires fulfilling a number of axioms regarding distributive properties, and I haven't seen it come up in a programming context in any particular way.

like image 154
sclv Avatar answered Oct 05 '22 19:10

sclv