module Cat.Monoidal.Base where
Monoidal categoriesπ
record Monoidal-category {o β} (C : Precategory o β) : Type (o β β) where
no-eta-equality
open Cr C
A monoidal category is a vertical categorification of the concept of monoid: We replace the identities in a monoid by isomorphisms. For this to make sense, a monoidal category must have an underlying precategory, rather than an underlying set; Similarly, the multiplication operation must be a multiplication functor, and we have to throw on some coherence data on top, to make sure everything works out.
We start with a category together with a chosen functor, the tensor product, , and a distinguished object , the tensor unit. These take the place of the multiplication operation and identity element, respectively.
field
: Functor (C ΓαΆ C) C
-β- : Ob Unit
We replace the associativity and unit laws by associativity and unitor morphisms, which are natural isomorphisms (in components)
The morphism is called the associator, and (resp. ) are the right unitor (resp. left unitor).
field
: Cr._β
_ Cat[ C , C ] Id (-β-.Right Unit)
unitor-l : Cr._β
_ Cat[ C , C ] Id (-β-.Left Unit)
unitor-r
: Cr._β
_ Cat[ C ΓαΆ C ΓαΆ C , C ]
associator (compose-assocΛ‘ {O = β€} {H = Ξ» _ _ β C} -β-)
(compose-assocΚ³ {O = β€} {H = Ξ» _ _ β C} -β-)
The final data we need are coherences relating the left and right
unitors (the triangle identity; despite the name,
nothing to do with adjunctions), and one for reducing sequences of
associators, the pentagon identity. As for where the
name βpentagonβ comes from, the path pentagon
witnesses commutativity of the
diagram
which we have drawn less like a regular pentagon and more like a childrenβs drawing of a house, so that it fits on the page horizontally.
field
: β {A B} β (Οβ β B) β Ξ±β A Unit B β‘ A βΆ Ξ»β
triangle
pentagon: β {A B C D}
β (Ξ±β A B C β D) β Ξ±β A (B β C) D β (A βΆ Ξ±β B C D)
(A β B) C D β Ξ±β A B (C β D) β‘ Ξ±β
Deloopingsπ
Just as a monoid can be promoted to a 1-object category, with the underlying set of the monoid becoming the single -set, we can deloop a monoidal category into a bicategory with a single object, where the sole -category is given by the monoidal category.
Deloop: β {o β} {C : Precategory o β} β Monoidal-category C β Prebicategory lzero o β
{C = C} mon = bi where
Deloop open Prebicategory
module M = Monoidal-category mon
: Prebicategory _ _ _
bi .Ob = β€
bi .Hom _ _ = C
bi .id = M.Unit
bi .compose = M.-β-
bi .unitor-l = M.unitor-l
bi .unitor-r = M.unitor-r
bi .associator = M.associator
bi .triangle _ _ = M.triangle
bi .pentagon _ _ _ _ = M.pentagon bi
This makes the idea that a monoidal category is βjustβ the categorified version of a monoid precisely, and itβs generally called the delooping hypothesis: A monoidal -category is the same as an -category with a single object.
Endomorphism categoriesπ
In the same way that, if you have a category , making a choice of object canonically gives you a monoid of endomorphisms , having a bicategory and choosing an object canonically gives you a choice of monoidal category, .
Endomorphisms: β {o β β'} (B : Prebicategory o β β')
β (a : Prebicategory.Ob B)
β Monoidal-category (Prebicategory.Hom B a a)
= mon where
Endomorphisms B a open Monoidal-category
module B = Prebicategory B
: Monoidal-category (B.Hom a a)
mon .-β- = B.compose
mon .Unit = B.id
mon .unitor-l = B.unitor-l
mon .unitor-r = B.unitor-r
mon .associator = to-natural-iso $ ni where
mon open make-natural-iso
open Cr
: make-natural-iso _ _
ni .eta _ = B.Ξ±β _ _ _
ni .inv _ = B.Ξ±β _ _ _
ni .etaβinv _ = Cr.invl _ B.associator Ξ·β _
ni .invβeta _ = Cr.invr _ B.associator Ξ·β _
ni .natural x y f = sym $ Cr.to B.associator .is-natural _ _ _
ni .triangle = B.triangle _ _
mon .pentagon = B.pentagon _ _ _ _ mon