Whiskering #
Given a functor F : C ⥤ D
and functors G H : D ⥤ E
and a natural transformation α : G ⟶ H
,
we can construct a new natural transformation F ⋙ G ⟶ F ⋙ H
,
called whiskerLeft F α
. This is the same as the horizontal composition of 𝟙 F
with α
.
This operation is functorial in F
, and we package this as whiskeringLeft
. Here
(whiskeringLeft.obj F).obj G
is F ⋙ G
, and
(whiskeringLeft.obj F).map α
is whiskerLeft F α
.
(That is, we might have alternatively named this as the "left composition functor".)
We also provide analogues for composition on the right, and for these operations on isomorphisms.
At the end of the file, we provide the left and right unitors, and the associator, for functor composition. (In fact functor composition is definitionally associative, but very often relying on this causes extremely slow elaboration, so it is better to insert it explicitly.) We also show these natural isomorphisms satisfy the triangle and pentagon identities.
If α : G ⟶ H
then
whiskerLeft F α : (F ⋙ G) ⟶ (F ⋙ H)
has components α.app (F.obj X)
.
Equations
- CategoryTheory.whiskerLeft F α = { app := fun (X : C) => α.app (F.obj X), naturality := ⋯ }
Instances For
If α : G ⟶ H
then
whisker_right α F : (G ⋙ F) ⟶ (G ⋙ F)
has components F.map (α.app X)
.
Equations
- CategoryTheory.whiskerRight α F = { app := fun (X : C) => F.map (α.app X), naturality := ⋯ }
Instances For
Left-composition gives a functor (C ⥤ D) ⥤ ((D ⥤ E) ⥤ (C ⥤ E))
.
(whiskeringLeft.obj F).obj G
is F ⋙ G
, and
(whiskeringLeft.obj F).map α
is whiskerLeft F α
.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Right-composition gives a functor (D ⥤ E) ⥤ ((C ⥤ D) ⥤ (C ⥤ E))
.
(whiskeringRight.obj H).obj F
is F ⋙ H
, and
(whiskeringRight.obj H).map α
is whiskerRight α H
.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- ⋯ = ⋯
If F : D ⥤ E
is fully faithful, then so is
(whiskeringRight C D E).obj F : (C ⥤ D) ⥤ C ⥤ E
.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The isomorphism between left-whiskering on the identity functor and the identity of the functor between the resulting functor categories.
Equations
- CategoryTheory.whiskeringLeftObjIdIso = CategoryTheory.Iso.refl ((CategoryTheory.whiskeringLeft C C E).obj (CategoryTheory.Functor.id C))
Instances For
The isomorphism between left-whiskering on the composition of functors and the composition of two left-whiskering applications.
Equations
- CategoryTheory.whiskeringLeftObjCompIso F G = CategoryTheory.Iso.refl ((CategoryTheory.whiskeringLeft C D' E).obj (F.comp G))
Instances For
The isomorphism between right-whiskering on the identity functor and the identity of the functor between the resulting functor categories.
Equations
- CategoryTheory.wiskeringRightObjIdIso = CategoryTheory.Iso.refl ((CategoryTheory.whiskeringRight E C C).obj (CategoryTheory.Functor.id C))
Instances For
The isomorphism between right-whiskering on the composition of functors and the composition of two right-whiskering applications.
Equations
- CategoryTheory.whiskeringRightObjCompIso F G = CategoryTheory.Iso.refl (((CategoryTheory.whiskeringRight E C D).obj F).comp ((CategoryTheory.whiskeringRight E D D').obj G))
Instances For
Equations
- ⋯ = ⋯
If α : G ≅ H
is a natural isomorphism then
iso_whisker_left F α : (F ⋙ G) ≅ (F ⋙ H)
has components α.app (F.obj X)
.
Equations
- CategoryTheory.isoWhiskerLeft F α = ((CategoryTheory.whiskeringLeft C D E).obj F).mapIso α
Instances For
If α : G ≅ H
then
iso_whisker_right α F : (G ⋙ F) ≅ (H ⋙ F)
has components F.map_iso (α.app X)
.
Equations
- CategoryTheory.isoWhiskerRight α F = ((CategoryTheory.whiskeringRight C D E).obj F).mapIso α
Instances For
Equations
- ⋯ = ⋯
Equations
- ⋯ = ⋯
The left unitor, a natural isomorphism ((𝟭 _) ⋙ F) ≅ F
.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The right unitor, a natural isomorphism (F ⋙ (𝟭 B)) ≅ F
.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The associator for functors, a natural isomorphism ((F ⋙ G) ⋙ H) ≅ (F ⋙ (G ⋙ H))
.
(In fact, iso.refl _
will work here, but it tends to make Lean slow later,
and it's usually best to insert explicit associators.)
Equations
- One or more equations did not get rendered due to their size.