The category of monoids in a monoidal category. #
We define monoids in a monoidal category C
and show that the category of monoids is equivalent to
the category of lax monoidal functors from the unit monoidal category to C
. We also show that if
C
is braided, then the category of monoids is naturally monoidal.
A monoid object internal to a monoidal category.
When the monoidal category is preadditive, this is also sometimes called an "algebra object".
- X : C
- one : 𝟙_ C ⟶ self.X
- mul : CategoryTheory.MonoidalCategory.tensorObj self.X self.X ⟶ self.X
- one_mul : CategoryTheory.CategoryStruct.comp (CategoryTheory.MonoidalCategory.whiskerRight self.one self.X) self.mul = (CategoryTheory.MonoidalCategory.leftUnitor self.X).hom
- mul_one : CategoryTheory.CategoryStruct.comp (CategoryTheory.MonoidalCategory.whiskerLeft self.X self.one) self.mul = (CategoryTheory.MonoidalCategory.rightUnitor self.X).hom
- mul_assoc : CategoryTheory.CategoryStruct.comp (CategoryTheory.MonoidalCategory.whiskerRight self.mul self.X) self.mul = CategoryTheory.CategoryStruct.comp (CategoryTheory.MonoidalCategory.associator self.X self.X self.X).hom (CategoryTheory.CategoryStruct.comp (CategoryTheory.MonoidalCategory.whiskerLeft self.X self.mul) self.mul)
Instances For
The trivial monoid object. We later show this is initial in Mon_ C
.
Equations
- Mon_.trivial C = Mon_.mk (𝟙_ C) (CategoryTheory.CategoryStruct.id (𝟙_ C)) (CategoryTheory.MonoidalCategory.leftUnitor (𝟙_ C)).hom
Instances For
Equations
- Mon_.instInhabitedMon_ C = { default := Mon_.trivial C }
A morphism of monoid objects.
- hom : M.X ⟶ N.X
- one_hom : CategoryTheory.CategoryStruct.comp M.one self.hom = N.one
- mul_hom : CategoryTheory.CategoryStruct.comp M.mul self.hom = CategoryTheory.CategoryStruct.comp (CategoryTheory.MonoidalCategory.tensorHom self.hom self.hom) N.mul
Instances For
The identity morphism on a monoid object.
Equations
Instances For
Equations
- Mon_.homInhabited M = { default := Mon_.id M }
Composition of morphisms of monoid objects.
Equations
- Mon_.comp f g = Mon_.Hom.mk (CategoryTheory.CategoryStruct.comp f.hom g.hom)
Instances For
Equations
- Mon_.instCategoryMon_ = CategoryTheory.Category.mk
The forgetful functor from monoid objects to the ambient category.
Equations
- Mon_.forget C = CategoryTheory.Functor.mk { obj := fun (A : Mon_ C) => A.X, map := fun {X Y : Mon_ C} (f : X ⟶ Y) => f.hom }
Instances For
Equations
- (_ : CategoryTheory.Faithful (Mon_.forget C)) = (_ : CategoryTheory.Faithful (Mon_.forget C))
Equations
- (_ : CategoryTheory.IsIso f.hom) = e
The forgetful functor from monoid objects to the ambient category reflects isomorphisms.
Equations
- (_ : CategoryTheory.ReflectsIsomorphisms (Mon_.forget C)) = (_ : CategoryTheory.ReflectsIsomorphisms (Mon_.forget C))
Construct an isomorphism of monoids by giving an isomorphism between the underlying objects and checking compatibility with unit and multiplication only in the forward direction.
Equations
- Mon_.isoOfIso f one_f mul_f = CategoryTheory.Iso.mk (Mon_.Hom.mk f.hom) (Mon_.Hom.mk f.inv)
Instances For
Equations
- Mon_.uniqueHomFromTrivial A = { toInhabited := { default := Mon_.Hom.mk A.one }, uniq := (_ : ∀ (f : Mon_.trivial C ⟶ A), f = default) }
Equations
- (_ : CategoryTheory.Limits.HasInitial (Mon_ C)) = (_ : CategoryTheory.Limits.HasInitial (Mon_ C))
A lax monoidal functor takes monoid objects to monoid objects.
That is, a lax monoidal functor F : C ⥤ D
induces a functor Mon_ C ⥤ Mon_ D
.
Equations
- One or more equations did not get rendered due to their size.
Instances For
mapMon
is functorial in the lax monoidal functor.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Implementation of Mon_.equivLaxMonoidalFunctorPUnit
.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Implementation of Mon_.equivLaxMonoidalFunctorPUnit
.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Implementation of Mon_.equivLaxMonoidalFunctorPUnit
.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Implementation of Mon_.equivLaxMonoidalFunctorPUnit
.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Monoid objects in C
are "just" lax monoidal functors from the trivial monoidal category to C
.
Equations
- One or more equations did not get rendered due to their size.
Instances For
In this section, we prove that the category of monoids in a braided monoidal category is monoidal.
Given two monoids M
and N
in a braided monoidal category C
,
the multiplication on the tensor product M.X ⊗ N.X
is defined in the obvious way:
it is the tensor product of the multiplications on M
and N
,
except that the tensor factors in the source come in the wrong order,
which we fix by pre-composing with a permutation isomorphism constructed from the braiding.
(There is a subtlety here: in fact there are two ways to do these, using either the positive or negative crossing.)
A more conceptual way of understanding this definition is the following:
The braiding on C
gives rise to a monoidal structure on
the tensor product functor from C × C
to C
.
A pair of monoids in C
gives rise to a monoid in C × C
,
which the tensor product functor by being monoidal takes to a monoid in C
.
The permutation isomorphism appearing in the definition of
the multiplication on the tensor product of two monoids is
an instance of a more general family of isomorphisms
which together form a strength that equips the tensor product functor with a monoidal structure,
and the monoid axioms for the tensor product follow from the monoid axioms for the tensor factors
plus the properties of the strength (i.e., monoidal functor axioms).
The strength tensor_μ
of the tensor product functor has been defined in
Mathlib.CategoryTheory.Monoidal.Braided
.
Its properties, stated as independent lemmas in that module,
are used extensively in the proofs below.
Notice that we could have followed the above plan not only conceptually
but also as a possible implementation and
could have constructed the tensor product of monoids via mapMon
,
but we chose to give a more explicit definition directly in terms of tensor_μ
.
To complete the definition of the monoidal category structure on the category of monoids,
we need to provide definitions of associator and unitors.
The obvious candidates are the associator and unitors from C
,
but we need to prove that they are monoid morphisms, i.e., compatible with unit and multiplication.
These properties translate to the monoidality of the associator and unitors
(with respect to the monoidal structures on the functors they relate),
which have also been proved in Mathlib.CategoryTheory.Monoidal.Braided
.
Equations
- One or more equations did not get rendered due to their size.
Equations
- Mon_.monMonoidal = CategoryTheory.MonoidalCategory.ofTensorHom
Projects:
- Check that
Mon_ MonCat ≌ CommMonCat
, via the Eckmann-Hilton argument. (You'll have to hook up the cartesian monoidal structure onMonCat
first, available in mathlib3#3463) - More generally, check that
Mon_ (Mon_ C) ≌ CommMon_ C
whenC
is braided. - Check that
Mon_ TopCat ≌ [bundled topological monoids]
. - Check that
Mon_ AddCommGroupCat ≌ RingCat
. (We've already gotMon_ (ModuleCat R) ≌ AlgebraCat R
, inMathlib.CategoryTheory.Monoidal.Internal.Module
.) - Can you transport this monoidal structure to
RingCat
orAlgebraCat R
? How does it compare to the "native" one? - Show that when
C
is braided, the forgetful functorMon_ C ⥤ C
is monoidal. - Show that when
F
is a lax braided functorC ⥤ D
, the functormap_Mon F : Mon_ C ⥤ Mon_ D
is lax monoidal.