nLab graded monad




By analogy with graded algebra, an β„³\mathcal{M}-graded monad in a category π’ž\mathcal{C} for a monoidal category, (β„³,βŠ—,I)(\mathcal{M}, \otimes, I), is a lax monoidal functor from β„³\mathcal{M} to the endo-functor category of π’ž\mathcal{C} (that whose monoid objects are monads on π’ž\mathcal{C}):

(β„³,βŠ—,I)⟢([π’ž,π’ž],∘,id π’ž). (\mathcal{M}, \otimes, I) \longrightarrow ([\mathcal{C}, \mathcal{C}], \circ, id_{\mathcal{C}}) \,.

This generalizes the concept of a plain monad on π’ž\mathcal{C}, which is recovered as the special case of grading by the the terminal monoidal category 11.

Equivalently, an β„³\mathcal{M}-grading is a lax action of β„³\mathcal{M} on π’ž\mathcal{C}, which in turn is equivalently a lax 2-functor to Cat from the delooping of β„³\mathcal{M}, i.e.: Bβ„³β†’Cat\mathbf{B} \mathcal{M} \to Cat.

Just as monads may be defined in any 2-category KK (besides the case K=K = Cat), this suggests that we may generalize graded monads to lax 2-functors Bβ„³β†’K\mathbf{B} \mathcal{M} \to K.

A further generalization is to category-valued monads, lax functors from any category to CatCat (OrchWadEad), and then to 2-category-valued monads from any 2-category.

Graded monads are also known as parametric monads. The grading idea may also be applied to comonads.


  1. The grading may arise from a monoid (M,βŠ—,e)(M, \otimes, e). Then for some given category, CC, we have a family of endofunctors, T mT_m, indexed by elements of MM, with maps ΞΌ m,n,X:T m(T nX)β†’T mβŠ—nX\mu_{m, n, X}: T_m(T_n X) \to T_{m \otimes n} X and Ξ· X:Xβ†’T eX\eta_{X}: X \to T_{e} X, for m,nm, n in MM and XX in CC. For instance, there is a (β„•,Γ—,1)(\mathbb{N}, \times, 1)-graded monad on sets where T nT_n returns lists of length nn of elements of a set.

  2. In computer science, monads model effects and comonads coeffects. Grading can therefore allow further annotation of these. For instance, there are graded versions of the reader monad, state monad and writer comonad (OrchPet).

  3. Any graded modality, such as found in bounded linear logic.

  4. For graded monads relevant for probability theory see (Perrone).

  5. Given the strict action of a monoidal category, β„³\mathcal{M} on a category ℬ\mathcal{B}, and an adjunction

then π’œ\mathcal{A} inherits a lax action of β„³\mathcal{M} and is hence a graded monad. Every lax action can be generated from a strict action in this way. Initial and terminal such resolutions of a lax action then generalize the β„³β‰…1\mathcal{M} \cong 1 situation in which is a monad is resolved into adjunctions with the Kleisli and Eilenberg-Moore categories (FKM 16).


Graded monads can be used to construct ordinary monads by left Kan extension in the 2-category of monoidal categories, lax monoidal functors, and monoidal transformations. There are known criteria for when this Kan extension exists; see (Fritz & Perrone 18, Theorem 2.1), as well as the references in there on algebraic Kan extensions.

For example, taking the left Kan extension of the graded list monad Bβ„•β†’[Set,Set]\mathbf{B} \mathbb{N} \to [Set,Set] described above results in the usual list monad on SetSet, given by a lax monoidal functor 1β†’[Set,Set]1 \to [Set,Set]. Based on a similar construction on the category of complete metric spaces, (Fritz & Perrone 17) have contructed a monad of Radon probability measures without any appeal to measure theory; the intuitive idea being that a probability measure can be thought of as an idealized version of a finite sample, and spaces of finite samples make up a graded monad. Forgetting the grading by taking the above Kan extension then produces the Kantorovich monad, containing all Radon probability measures of finite first moment. This construction reduces certain problems in measure-theoretic probability to purely combinatorial problems.

A useful feature of such constructions is that the multiplication of the graded monad is often a strong monoidal functor in practice. For the graded list monad, this is because a list of length mnm n can be decomposed uniquely into a list of length mm of lists of length nn, so that the multiplication T mT nX⟢T mnXT_m T_n X \longrightarrow T_{m n} X is an isomorphism. For the probability monad mentioned in the previous paragraph, the analogous phenomenon occurs as well, and this can be exploited e.g. in order to prove a disintegration theorem for finite first moment Radon probability measures on complete metric spaces (Perrone, Theorem 2.6.9).


Graded monads are shown to be examples of enriched relative monads in:

Last revised on August 27, 2023 at 06:41:47. See the history of this page for a list of all contributions to it.