Skip to content

Commit 6371049

Browse files
committed
chore(CateggoryTheory/Monoidal/NaturalTransformation): monoidality of whiskers (leanprover-community#33357)
Record instances that says that left/right whiskerings of a lax monoidal functor by a monoidal transformation are also monoidal transformations.
1 parent b9b7d0b commit 6371049

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Mathlib/CategoryTheory/Monoidal/NaturalTransformation.lean

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,17 @@ instance hcomp {G₁ G₂ : D ⥤ E} [G₁.LaxMonoidal] [G₂.LaxMonoidal] (τ'
6767
tensor_assoc, ← tensorHom_comp_tensorHom, μ_natural_assoc]
6868
simp only [← map_comp, tensor]
6969

70+
instance whiskerRight {G₁ : D ⥤ E} [G₁.LaxMonoidal] [IsMonoidal τ] :
71+
IsMonoidal (Functor.whiskerRight τ G₁) := by
72+
rw [← Functor.hcomp_id]
73+
infer_instance
74+
75+
instance whiskerLeft {G₁ G₂ : D ⥤ E} [G₁.LaxMonoidal] [G₂.LaxMonoidal]
76+
(τ' : G₁ ⟶ G₂) [IsMonoidal τ'] :
77+
IsMonoidal (Functor.whiskerLeft F₁ τ') := by
78+
rw [← Functor.id_hcomp]
79+
infer_instance
80+
7081
instance (F : C ⥤ D) [F.LaxMonoidal] : NatTrans.IsMonoidal F.leftUnitor.hom where
7182

7283
instance (F : C ⥤ D) [F.LaxMonoidal] : NatTrans.IsMonoidal F.rightUnitor.hom where

0 commit comments

Comments
 (0)