ModernMath

LogicArtificialis

Tag 6022

Appears as Definition 70.1 (Monad) in Section 70, Monads and their algebras.

Definition 70.1 Monad

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 ] .

Uses

  • Tag 600J: Definition 63.1 (Natural transformation)
  • Tag 600M: Definition 63.4 (Functor categories)

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

G def:monad Def. 70.1 Monad def:category Def. 61.1 Category def:opposite-category Def. 61.4 Opposite category and duality def:category->def:opposite-category def:functor Def. 62.1 Functor def:opposite-category->def:functor def:natural-transformation Def. 63.1 Natural transformation def:functor->def:natural-transformation def:functor-category Def. 63.4 Functor categories def:natural-transformation->def:functor-category def:functor-category->def:monad cite:Riehl2016:Lemma 1.7.1 and Corollary 1.7.2 [229, Lemma 1.7.1 and Corollary 1.7.2] cite:Riehl2016:Lemma 1.7.1 and Corollary 1.7.2->def:functor-category

How to cite

ModernMath, Tag 6022 (Definition 70.1 (Monad)).