Tag 6022
Appears as Definition 70.1 (Monad) in Section 70, Monads and their algebras.
A monad on a category \(\mathcal{C}\) consists of a functor \(T\colon \mathcal{C}\to \mathcal{C}\) and natural transformations \(\eta \colon 1_{\mathcal{C}}\Rightarrow T\), the unit, and \(\mu \colon T^2\Rightarrow T\), the multiplication, such that \(\mu \circ T\mu =\mu \circ \mu T\) and \(\mu \circ T\eta =1_T=\mu \circ \eta T\) [ 229 , Definition 5.1.1 ] , [ 31 , Definition 4.1.1 ] . Thus a monad is a monoid in the category of endofunctors of \(\mathcal{C}\), with composition as product [ 229 , Remark 5.1.2 ] . A comonad on \(\mathcal{C}\) is a monad on \(\mathcal{C}^{\mathrm{op}}\) [ 229 , Definition 5.1.6 ] .
Source: latex/entries/18-category-theory/10-monads.tex (history, edit), line 11.
Uses
Used by
- Tag 6023: Proposition 70.2
- Tag 6024: Definition 70.3 (Eilenberg–Moore category)
- Tag 6025: Definition 70.4 (Kleisli category)
Formalisation
Defined in Mathlib, the community library of formalised mathematics for the Lean theorem prover.
CategoryTheory.Monad · documentation · source (Mathlib/CategoryTheory/Monad/Basic.lean, line 39)
/-- The data of a monad on C consists of an endofunctor T together with natural transformations
`η : 𝟭 C ⟶ T` and `μ : T ⋙ T ⟶ T` satisfying three equations:
- `T μ_X ≫ μ_X = μ_(TX) ≫ μ_X` (associativity)
- `η_(TX) ≫ μ_X = 1_X` (left unit)
- `Tη_X ≫ μ_X = 1_X` (right unit) -/
structure Monad extends C ⥤ C
-- Full signature:
CategoryTheory.Monad.{v₁, u₁} (C : Type u₁) [CategoryTheory.Category.{v₁, u₁} C] : Type (max u₁ v₁)Lean checks this structure; the axioms it rests on: propext, Classical.choice, Quot.sound.
Reproduced from Mathlib, Mathlib/CategoryTheory/Monad/Basic.lean at commit 02a839b (Copyright (c) 2019 Kim Morrison; authors: Kim Morrison, Bhavik Mehta, Adam Topaz), under the Apache License 2.0.
In Lean, its proof rests on the formalisations of Definition 61.1 (Category), Definition 62.1 (Functor), Definition 63.1 (Natural transformation).
Link checked on 2026-11-29 against Mathlib at commit 02a839b. About the formalisations.
What it rests on
Everything this statement rests on, directly or through other statements, as declared in its source and in the sources of its proof. An arrow means that the second item uses the first; implied arrows are left out. Dashed boxes are results of other works that these statements and proofs cite. Click a node to open its tag, or open this tree in the interactive proof tree.
DefinitionTheoremPropositionCorollaryConjectureCited resultThis statementCertified by a proof assistantPublished in the literatureOnly in preprintsDefinition formalised in Lean
How to cite
ModernMath, Tag 6022 (Definition 70.1 (Monad)).