Explain why a monad is called 'a monoid in the category of endofunctors' and identify which monad structures play the roles of unit element and multiplication.
Think about your answer, then reveal below.
Model answer: A monoid is a set with an associative binary operation and an identity element. In the category of endofunctors [C, C] (with functor composition as the monoidal product), a monad (T, η, μ) makes T a monoid object: η: Id ⇒ T is the 'unit element' (the identity functor Id plays the role of the identity element), and μ: T∘T ⇒ T is the 'multiplication' (composing two copies of T into one). The monad laws (μ ∘ Tμ = μ ∘ μT; μ ∘ Tη = id = μ ∘ ηT) are exactly the monoid associativity and unit laws stated as equations between natural transformations.
This description is genuinely precise, not just a slogan. The monoidal category is [C, C] with composition (∘) as tensor product and Id_C as the unit object. A monoid object in any monoidal category (M, ⊗, I) is an object m with morphisms μ: m ⊗ m → m and η: I → m satisfying associativity and unit laws. Setting m = T, ⊗ = ∘, and I = Id_C gives the monad definition exactly. Understanding monads as monoid objects in [C, C] explains why monads appear wherever algebras do and lets category theorists generalize the construction to other monoidal settings.