Skip to content

Commit 09f7ea5

Browse files
robin-carliertannerduve
authored andcommitted
chore(CategoryTheory/Whiskering): correct the type of some whiskering lemmas (#23698)
RHS of lemmas `whiskerLeft_twice`, `whiskerRight_twice` and `whiskerRight_left` are modified so that the type of the RHS do not abuse the defeq `(F ⋙ G) ⋙ K = F ⋙ G ⋙ K`.
1 parent aee6dbb commit 09f7ea5

File tree

4 files changed

+18
-11
lines changed

4 files changed

+18
-11
lines changed

Mathlib/CategoryTheory/Closed/Functor.lean

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,8 @@ theorem frobeniusMorphism_mate (h : L ⊣ F) (A : C) :
145145
rw [← F.map_comp, ← F.map_comp]
146146
simp only [Functor.map_comp]
147147
apply IsIso.eq_inv_of_inv_hom_id
148-
simp only [assoc]
148+
simp only [assoc, Functor.associator_inv_app, Functor.associator_hom_app, Functor.comp_obj,
149+
curriedTensor_obj_obj, tensorLeft_obj, Functor.map_id, id_comp]
149150
rw [prodComparison_natural_whiskerLeft, prodComparison_natural_whiskerRight_assoc]
150151
slice_lhs 2 3 => rw [← prodComparison_comp]
151152
simp only [assoc]

Mathlib/CategoryTheory/Shift/CommShift.lean

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -331,8 +331,8 @@ instance comp [NatTrans.CommShift τ A] [NatTrans.CommShift τ' A] :
331331
instance whiskerRight [NatTrans.CommShift τ A] :
332332
NatTrans.CommShift (whiskerRight τ G) A := ⟨fun a => by
333333
ext X
334-
simp only [whiskerRight_twice, comp_app,
335-
whiskerRight_app, Functor.comp_map, whiskerLeft_app,
334+
simp only [whiskerRight_twice, Functor.associator_hom_app, Functor.associator_inv_app, id_comp,
335+
comp_id, comp_app, whiskerRight_app, Functor.comp_map, whiskerLeft_app,
336336
Functor.commShiftIso_comp_hom_app, Category.assoc,
337337
← Functor.commShiftIso_hom_naturality,
338338
← G.map_comp_assoc, shift_app_comm]⟩

Mathlib/CategoryTheory/Sites/Equivalence.lean

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,8 +265,10 @@ lemma PreservesSheafification.transport
265265
le P Q f hf := by
266266
rw [← J.W_whiskerLeft_iff (G := G) (K := K)] at hf
267267
have := K.W_of_preservesSheafification F (whiskerLeft G.op f) hf
268-
rwa [whiskerRight_left,
269-
K.W_whiskerLeft_iff (G := G) (J := J) (f := whiskerRight f F)] at this
268+
rw [whiskerRight_left] at this
269+
haveI := K.W.of_postcomp (W' := MorphismProperty.isomorphisms _) _ _ (Iso.isIso_inv _) <|
270+
K.W.of_precomp (W' := MorphismProperty.isomorphisms _) _ _ (Iso.isIso_hom _) this
271+
rwa [K.W_whiskerLeft_iff (G := G) (J := J) (f := whiskerRight f F)] at this
270272

271273
variable [Functor.IsContinuous.{v₃} G K J] [(G.sheafPushforwardContinuous A K J).EssSurj]
272274
variable [G.IsCocontinuous K J] {FA : A → A → Type*} {CA : A → Type*}

Mathlib/CategoryTheory/Whiskering.lean

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -249,17 +249,21 @@ variable {B : Type u₄} [Category.{v₄} B]
249249

250250
@[simp]
251251
theorem whiskerLeft_twice (F : B ⥤ C) (G : C ⥤ D) {H K : D ⥤ E} (α : H ⟶ K) :
252-
whiskerLeft F (whiskerLeft G α) = whiskerLeft (F ⋙ G) α :=
253-
rfl
252+
whiskerLeft F (whiskerLeft G α) =
253+
(Functor.associator _ _ _).inv ≫ whiskerLeft (F ⋙ G) α ≫ (Functor.associator _ _ _).hom := by
254+
aesop_cat
254255

255256
@[simp]
256257
theorem whiskerRight_twice {H K : B ⥤ C} (F : C ⥤ D) (G : D ⥤ E) (α : H ⟶ K) :
257-
whiskerRight (whiskerRight α F) G = whiskerRight α (F ⋙ G) :=
258-
rfl
258+
whiskerRight (whiskerRight α F) G =
259+
(Functor.associator _ _ _).hom ≫ whiskerRight α (F ⋙ G) ≫ (Functor.associator _ _ _).inv := by
260+
aesop_cat
259261

260262
theorem whiskerRight_left (F : B ⥤ C) {G H : C ⥤ D} (α : G ⟶ H) (K : D ⥤ E) :
261-
whiskerRight (whiskerLeft F α) K = whiskerLeft F (whiskerRight α K) :=
262-
rfl
263+
whiskerRight (whiskerLeft F α) K =
264+
(Functor.associator _ _ _).hom ≫ whiskerLeft F (whiskerRight α K) ≫
265+
(Functor.associator _ _ _).inv := by
266+
aesop_cat
263267

264268
end
265269

0 commit comments

Comments
 (0)