-
Notifications
You must be signed in to change notification settings - Fork 251
/
CommShift.lean
421 lines (345 loc) · 17.9 KB
/
CommShift.lean
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
/-
Copyright (c) 2023 Joël Riou. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Joël Riou
-/
import Mathlib.CategoryTheory.Shift.Basic
/-!
# Functors which commute with shifts
Let `C` and `D` be two categories equipped with shifts by an additive monoid `A`. In this file,
we define the notion of functor `F : C ⥤ D` which "commutes" with these shifts. The associated
type class is `[F.CommShift A]`. The data consists of commutation isomorphisms
`F.commShiftIso a : shiftFunctor C a ⋙ F ≅ F ⋙ shiftFunctor D a` for all `a : A`
which satisfy a compatibility with the addition and the zero. After this was formalised in Lean,
it was found that this definition is exactly the definition which appears in Jean-Louis
Verdier's thesis (I 1.2.3/1.2.4), although the language is different. (In Verdier's thesis,
the shift is not given by a monoidal functor `Discrete A ⥤ C ⥤ C`, but by a fibred
category `C ⥤ BA`, where `BA` is the category with one object, the endomorphisms of which
identify to `A`. The choice of a cleavage for this fibered category gives the individual
shift functors.)
## References
* [Jean-Louis Verdier, *Des catégories dérivées des catégories abéliennes*][verdier1996]
-/
namespace CategoryTheory
open Category
namespace Functor
variable {C D E : Type*} [Category C] [Category D] [Category E]
(F : C ⥤ D) (G : D ⥤ E) (A B : Type*) [AddMonoid A] [AddCommMonoid B]
[HasShift C A] [HasShift D A] [HasShift E A]
[HasShift C B] [HasShift D B]
namespace CommShift
/-- For any functor `F : C ⥤ D`, this is the obvious isomorphism
`shiftFunctor C (0 : A) ⋙ F ≅ F ⋙ shiftFunctor D (0 : A)` deduced from the
isomorphisms `shiftFunctorZero` on both categories `C` and `D`. -/
@[simps!]
noncomputable def isoZero : shiftFunctor C (0 : A) ⋙ F ≅ F ⋙ shiftFunctor D (0 : A) :=
isoWhiskerRight (shiftFunctorZero C A) F ≪≫ F.leftUnitor ≪≫
F.rightUnitor.symm ≪≫ isoWhiskerLeft F (shiftFunctorZero D A).symm
variable {F A}
/-- If a functor `F : C ⥤ D` is equipped with "commutation isomorphisms" with the
shifts by `a` and `b`, then there is a commutation isomorphism with the shift by `c` when
`a + b = c`. -/
@[simps!]
noncomputable def isoAdd' {a b c : A} (h : a + b = c)
(e₁ : shiftFunctor C a ⋙ F ≅ F ⋙ shiftFunctor D a)
(e₂ : shiftFunctor C b ⋙ F ≅ F ⋙ shiftFunctor D b) :
shiftFunctor C c ⋙ F ≅ F ⋙ shiftFunctor D c :=
isoWhiskerRight (shiftFunctorAdd' C _ _ _ h) F ≪≫ Functor.associator _ _ _ ≪≫
isoWhiskerLeft _ e₂ ≪≫ (Functor.associator _ _ _).symm ≪≫ isoWhiskerRight e₁ _ ≪≫
Functor.associator _ _ _ ≪≫ isoWhiskerLeft _ (shiftFunctorAdd' D _ _ _ h).symm
/-- If a functor `F : C ⥤ D` is equipped with "commutation isomorphisms" with the
shifts by `a` and `b`, then there is a commutation isomorphism with the shift by `a + b`. -/
noncomputable def isoAdd {a b : A}
(e₁ : shiftFunctor C a ⋙ F ≅ F ⋙ shiftFunctor D a)
(e₂ : shiftFunctor C b ⋙ F ≅ F ⋙ shiftFunctor D b) :
shiftFunctor C (a + b) ⋙ F ≅ F ⋙ shiftFunctor D (a + b) :=
CommShift.isoAdd' rfl e₁ e₂
@[simp]
lemma isoAdd_hom_app {a b : A}
(e₁ : shiftFunctor C a ⋙ F ≅ F ⋙ shiftFunctor D a)
(e₂ : shiftFunctor C b ⋙ F ≅ F ⋙ shiftFunctor D b) (X : C) :
(CommShift.isoAdd e₁ e₂).hom.app X =
F.map ((shiftFunctorAdd C a b).hom.app X) ≫ e₂.hom.app ((shiftFunctor C a).obj X) ≫
(shiftFunctor D b).map (e₁.hom.app X) ≫ (shiftFunctorAdd D a b).inv.app (F.obj X) := by
simp only [isoAdd, isoAdd'_hom_app, shiftFunctorAdd'_eq_shiftFunctorAdd]
@[simp]
lemma isoAdd_inv_app {a b : A}
(e₁ : shiftFunctor C a ⋙ F ≅ F ⋙ shiftFunctor D a)
(e₂ : shiftFunctor C b ⋙ F ≅ F ⋙ shiftFunctor D b) (X : C) :
(CommShift.isoAdd e₁ e₂).inv.app X = (shiftFunctorAdd D a b).hom.app (F.obj X) ≫
(shiftFunctor D b).map (e₁.inv.app X) ≫ e₂.inv.app ((shiftFunctor C a).obj X) ≫
F.map ((shiftFunctorAdd C a b).inv.app X) := by
simp only [isoAdd, isoAdd'_inv_app, shiftFunctorAdd'_eq_shiftFunctorAdd]
end CommShift
/-- A functor `F` commutes with the shift by a monoid `A` if it is equipped with
commutation isomorphisms with the shifts by all `a : A`, and these isomorphisms
satisfy coherence properties with respect to `0 : A` and the addition in `A`. -/
class CommShift where
iso (a : A) : shiftFunctor C a ⋙ F ≅ F ⋙ shiftFunctor D a
zero : iso 0 = CommShift.isoZero F A := by aesop_cat
add (a b : A) : iso (a + b) = CommShift.isoAdd (iso a) (iso b) := by aesop_cat
variable {A}
section
variable [F.CommShift A]
/-- If a functor `F` commutes with the shift by `A` (i.e. `[F.CommShift A]`), then
`F.commShiftIso a` is the given isomorphism `shiftFunctor C a ⋙ F ≅ F ⋙ shiftFunctor D a`. -/
def commShiftIso (a : A) :
shiftFunctor C a ⋙ F ≅ F ⋙ shiftFunctor D a :=
CommShift.iso a
-- Note: The following two lemmas are introduced in order to have more proofs work `by simp`.
-- Indeed, `simp only [(F.commShiftIso a).hom.naturality f]` would almost never work because
-- of the compositions of functors which appear in both the source and target of
-- `F.commShiftIso a`. Otherwise, we would be forced to use `erw [NatTrans.naturality]`.
@[reassoc (attr := simp)]
lemma commShiftIso_hom_naturality {X Y : C} (f : X ⟶ Y) (a : A) :
F.map (f⟦a⟧') ≫ (F.commShiftIso a).hom.app Y =
(F.commShiftIso a).hom.app X ≫ (F.map f)⟦a⟧' :=
(F.commShiftIso a).hom.naturality f
@[reassoc (attr := simp)]
lemma commShiftIso_inv_naturality {X Y : C} (f : X ⟶ Y) (a : A) :
(F.map f)⟦a⟧' ≫ (F.commShiftIso a).inv.app Y =
(F.commShiftIso a).inv.app X ≫ F.map (f⟦a⟧') :=
(F.commShiftIso a).inv.naturality f
variable (A)
lemma commShiftIso_zero :
F.commShiftIso (0 : A) = CommShift.isoZero F A :=
CommShift.zero
variable {A}
lemma commShiftIso_add (a b : A) :
F.commShiftIso (a + b) = CommShift.isoAdd (F.commShiftIso a) (F.commShiftIso b) :=
CommShift.add a b
lemma commShiftIso_add' {a b c : A} (h : a + b = c) :
F.commShiftIso c = CommShift.isoAdd' h (F.commShiftIso a) (F.commShiftIso b) := by
subst h
simp only [commShiftIso_add, CommShift.isoAdd]
end
namespace CommShift
variable (C) in
instance id : CommShift (𝟭 C) A where
iso := fun a => rightUnitor _ ≪≫ (leftUnitor _).symm
instance comp [F.CommShift A] [G.CommShift A] : (F ⋙ G).CommShift A where
iso a := (Functor.associator _ _ _).symm ≪≫ isoWhiskerRight (F.commShiftIso a) _ ≪≫
Functor.associator _ _ _ ≪≫ isoWhiskerLeft _ (G.commShiftIso a) ≪≫
(Functor.associator _ _ _).symm
zero := by
ext X
dsimp
simp only [id_comp, comp_id, commShiftIso_zero, isoZero_hom_app, ← Functor.map_comp_assoc,
assoc, Iso.inv_hom_id_app, id_obj, comp_map, comp_obj]
add := fun a b => by
ext X
dsimp
simp only [commShiftIso_add, isoAdd_hom_app]
dsimp
simp only [comp_id, id_comp, assoc, ← Functor.map_comp_assoc, Iso.inv_hom_id_app, comp_obj]
simp only [map_comp, assoc, commShiftIso_hom_naturality_assoc]
end CommShift
@[simp]
lemma commShiftIso_id_hom_app (a : A) (X : C) :
(commShiftIso (𝟭 C) a).hom.app X = 𝟙 _ := comp_id _
@[simp]
lemma commShiftIso_id_inv_app (a : A) (X : C) :
(commShiftIso (𝟭 C) a).inv.app X = 𝟙 _ := comp_id _
lemma commShiftIso_comp_hom_app [F.CommShift A] [G.CommShift A] (a : A) (X : C) :
(commShiftIso (F ⋙ G) a).hom.app X =
G.map ((commShiftIso F a).hom.app X) ≫ (commShiftIso G a).hom.app (F.obj X) := by
simp [commShiftIso, CommShift.iso]
lemma commShiftIso_comp_inv_app [F.CommShift A] [G.CommShift A] (a : A) (X : C) :
(commShiftIso (F ⋙ G) a).inv.app X =
(commShiftIso G a).inv.app (F.obj X) ≫ G.map ((commShiftIso F a).inv.app X) := by
simp [commShiftIso, CommShift.iso]
variable {B}
lemma map_shiftFunctorComm_hom_app [F.CommShift B] (X : C) (a b : B) :
F.map ((shiftFunctorComm C a b).hom.app X) = (F.commShiftIso b).hom.app (X⟦a⟧) ≫
((F.commShiftIso a).hom.app X)⟦b⟧' ≫ (shiftFunctorComm D a b).hom.app (F.obj X) ≫
((F.commShiftIso b).inv.app X)⟦a⟧' ≫ (F.commShiftIso a).inv.app (X⟦b⟧) := by
have eq := NatTrans.congr_app (congr_arg Iso.hom (F.commShiftIso_add a b)) X
simp only [comp_obj, CommShift.isoAdd_hom_app,
← cancel_epi (F.map ((shiftFunctorAdd C a b).inv.app X)), Category.assoc,
← F.map_comp_assoc, Iso.inv_hom_id_app, F.map_id, Category.id_comp, F.map_comp] at eq
simp only [shiftFunctorComm_eq D a b _ rfl]
dsimp
simp only [Functor.map_comp, shiftFunctorAdd'_eq_shiftFunctorAdd, Category.assoc,
← reassoc_of% eq, shiftFunctorComm_eq C a b _ rfl]
dsimp
rw [Functor.map_comp]
simp only [NatTrans.congr_app (congr_arg Iso.hom (F.commShiftIso_add' (add_comm b a))) X,
CommShift.isoAdd'_hom_app, Category.assoc, Iso.inv_hom_id_app_assoc,
← Functor.map_comp_assoc, Iso.hom_inv_id_app,
Functor.map_id, Category.id_comp, comp_obj, Category.comp_id]
@[simp, reassoc]
lemma map_shiftFunctorCompIsoId_hom_app [F.CommShift A] (X : C) (a b : A) (h : a + b = 0) :
F.map ((shiftFunctorCompIsoId C a b h).hom.app X) =
(F.commShiftIso b).hom.app (X⟦a⟧) ≫ ((F.commShiftIso a).hom.app X)⟦b⟧' ≫
(shiftFunctorCompIsoId D a b h).hom.app (F.obj X) := by
dsimp [shiftFunctorCompIsoId]
have eq := NatTrans.congr_app (congr_arg Iso.hom (F.commShiftIso_add' h)) X
simp only [commShiftIso_zero, comp_obj, CommShift.isoZero_hom_app,
CommShift.isoAdd'_hom_app] at eq
rw [← cancel_epi (F.map ((shiftFunctorAdd' C a b 0 h).hom.app X)), ← reassoc_of% eq, F.map_comp]
simp only [Iso.inv_hom_id_app, id_obj, Category.comp_id, ← F.map_comp_assoc, Iso.hom_inv_id_app,
F.map_id, Category.id_comp]
@[simp, reassoc]
lemma map_shiftFunctorCompIsoId_inv_app [F.CommShift A] (X : C) (a b : A) (h : a + b = 0) :
F.map ((shiftFunctorCompIsoId C a b h).inv.app X) =
(shiftFunctorCompIsoId D a b h).inv.app (F.obj X) ≫
((F.commShiftIso a).inv.app X)⟦b⟧' ≫ (F.commShiftIso b).inv.app (X⟦a⟧) := by
rw [← cancel_epi (F.map ((shiftFunctorCompIsoId C a b h).hom.app X)), ← F.map_comp,
Iso.hom_inv_id_app, F.map_id, map_shiftFunctorCompIsoId_hom_app]
simp only [comp_obj, id_obj, Category.assoc, Iso.hom_inv_id_app_assoc,
← Functor.map_comp_assoc, Iso.hom_inv_id_app, Functor.map_id, Category.id_comp]
end Functor
namespace NatTrans
variable {C D E J : Type*} [Category C] [Category D] [Category E] [Category J]
{F₁ F₂ F₃ : C ⥤ D} (τ : F₁ ⟶ F₂) (τ' : F₂ ⟶ F₃) (e : F₁ ≅ F₂)
(G G' : D ⥤ E) (τ'' : G ⟶ G') (H : E ⥤ J)
(A : Type*) [AddMonoid A] [HasShift C A] [HasShift D A] [HasShift E A] [HasShift J A]
[F₁.CommShift A] [F₂.CommShift A] [F₃.CommShift A]
[G.CommShift A] [G'.CommShift A] [H.CommShift A]
/-- If `τ : F₁ ⟶ F₂` is a natural transformation between two functors
which commute with a shift by an additive monoid `A`, this typeclass
asserts a compatibility of `τ` with these shifts. -/
class CommShift : Prop :=
comm' (a : A) : (F₁.commShiftIso a).hom ≫ whiskerRight τ _ =
whiskerLeft _ τ ≫ (F₂.commShiftIso a).hom
namespace CommShift
section
variable {A}
variable [NatTrans.CommShift τ A]
lemma comm (a : A) : (F₁.commShiftIso a).hom ≫ whiskerRight τ _ =
whiskerLeft _ τ ≫ (F₂.commShiftIso a).hom := by
apply comm'
@[reassoc]
lemma comm_app (a : A) (X : C) :
(F₁.commShiftIso a).hom.app X ≫ (τ.app X)⟦a⟧' =
τ.app (X⟦a⟧) ≫ (F₂.commShiftIso a).hom.app X :=
NatTrans.congr_app (comm τ a) X
@[reassoc]
lemma shift_app (a : A) (X : C) :
(τ.app X)⟦a⟧' = (F₁.commShiftIso a).inv.app X ≫
τ.app (X⟦a⟧) ≫ (F₂.commShiftIso a).hom.app X := by
rw [← comm_app, Iso.inv_hom_id_app_assoc]
@[reassoc]
lemma app_shift (a : A) (X : C) :
τ.app (X⟦a⟧) = (F₁.commShiftIso a).hom.app X ≫ (τ.app X)⟦a⟧' ≫
(F₂.commShiftIso a).inv.app X := by
erw [comm_app_assoc, Iso.hom_inv_id_app, Category.comp_id]
end
instance of_iso_inv [NatTrans.CommShift e.hom A] :
NatTrans.CommShift e.inv A := ⟨fun a => by
ext X
dsimp
rw [← cancel_epi (e.hom.app (X⟦a⟧)), e.hom_inv_id_app_assoc, ← comm_app_assoc,
← Functor.map_comp, e.hom_inv_id_app, Functor.map_id]
rw [Category.comp_id]⟩
lemma of_isIso [IsIso τ] [NatTrans.CommShift τ A] :
NatTrans.CommShift (inv τ) A := by
haveI : NatTrans.CommShift (asIso τ).hom A := by
dsimp
infer_instance
change NatTrans.CommShift (asIso τ).inv A
infer_instance
variable (F₁) in
instance id : NatTrans.CommShift (𝟙 F₁) A := ⟨by aesop_cat⟩
instance comp [NatTrans.CommShift τ A] [NatTrans.CommShift τ' A] :
NatTrans.CommShift (τ ≫ τ') A := ⟨fun a => by
ext X
simp [comm_app_assoc, comm_app]⟩
instance whiskerRight [NatTrans.CommShift τ A] :
NatTrans.CommShift (whiskerRight τ G) A := ⟨fun a => by
ext X
simp only [Functor.comp_obj, whiskerRight_twice, comp_app,
whiskerRight_app, Functor.comp_map, whiskerLeft_app,
Functor.commShiftIso_comp_hom_app, Category.assoc]
erw [← NatTrans.naturality]
dsimp
simp only [← G.map_comp_assoc, comm_app]⟩
variable {G G'} (F₁)
instance whiskerLeft [NatTrans.CommShift τ'' A] :
NatTrans.CommShift (whiskerLeft F₁ τ'') A := ⟨fun a => by
ext X
simp only [Functor.comp_obj, comp_app, whiskerRight_app, whiskerLeft_app, whiskerLeft_twice,
Functor.commShiftIso_comp_hom_app, Category.assoc, ← NatTrans.naturality_assoc, comm_app]⟩
instance associator : CommShift (Functor.associator F₁ G H).hom A where
comm' a := by ext X; simp [Functor.commShiftIso_comp_hom_app]
instance leftUnitor : CommShift F₁.leftUnitor.hom A where
comm' a := by ext X; simp [Functor.commShiftIso_comp_hom_app]
instance rightUnitor : CommShift F₁.rightUnitor.hom A where
comm' a := by ext X; simp [Functor.commShiftIso_comp_hom_app]
end CommShift
end NatTrans
namespace Functor
namespace CommShift
variable {C D E : Type*} [Category C] [Category D]
{F : C ⥤ D} {G : C ⥤ D} (e : F ≅ G)
(A : Type*) [AddMonoid A] [HasShift C A] [HasShift D A]
[F.CommShift A]
/-- If `e : F ≅ G` is an isomorphism of functors and if `F` commutes with the
shift, then `G` also commutes with the shift. -/
def ofIso : G.CommShift A where
iso a := isoWhiskerLeft _ e.symm ≪≫ F.commShiftIso a ≪≫ isoWhiskerRight e _
zero := by
ext X
simp only [comp_obj, F.commShiftIso_zero A, Iso.trans_hom, isoWhiskerLeft_hom,
Iso.symm_hom, isoWhiskerRight_hom, NatTrans.comp_app, whiskerLeft_app,
isoZero_hom_app, whiskerRight_app, assoc]
erw [← e.inv.naturality_assoc, ← NatTrans.naturality,
e.inv_hom_id_app_assoc]
add a b := by
ext X
simp only [comp_obj, F.commShiftIso_add, Iso.trans_hom, isoWhiskerLeft_hom,
Iso.symm_hom, isoWhiskerRight_hom, NatTrans.comp_app, whiskerLeft_app,
isoAdd_hom_app, whiskerRight_app, assoc, map_comp, NatTrans.naturality_assoc,
NatIso.cancel_natIso_inv_left]
simp only [← Functor.map_comp_assoc, e.hom_inv_id_app_assoc]
simp only [← NatTrans.naturality, comp_obj, comp_map, map_comp, assoc]
lemma ofIso_compatibility :
letI := ofIso e A
NatTrans.CommShift e.hom A := by
letI := ofIso e A
refine' ⟨fun a => _⟩
dsimp [commShiftIso, ofIso]
rw [← whiskerLeft_comp_assoc, e.hom_inv_id, whiskerLeft_id', id_comp]
end CommShift
end Functor
/--
Assume that we have a diagram of categories
```
C₁ ⥤ D₁
‖ ‖
v v
C₂ ⥤ D₂
‖ ‖
v v
C₃ ⥤ D₃
```
with functors `F₁₂ : C₁ ⥤ C₂`, `F₂₃ : C₂ ⥤ C₃` and `F₁₃ : C₁ ⥤ C₃` on the first
column that are related by a natural transformation `α : F₁₃ ⟶ F₁₂ ⋙ F₂₃`
and similarly `β : G₁₂ ⋙ G₂₃ ⟶ G₁₃` on the second column. Assume that we have
natural transformations
`e₁₂ : F₁₂ ⋙ L₂ ⟶ L₁ ⋙ G₁₂` (top square), `e₂₃ : F₂₃ ⋙ L₃ ⟶ L₂ ⋙ G₂₃` (bottom square),
and `e₁₃ : F₁₃ ⋙ L₃ ⟶ L₁ ⋙ G₁₃` (outer square), where the horizontal functors
are denoted `L₁`, `L₂` and `L₃`. Assume that `e₁₃` is determined by the other
natural transformations `α`, `e₂₃`, `e₁₂` and `β`. Then, if all these categories
are equipped with a shift by an additive monoid `A`, and all these functors commute with
these shifts, then the natural transformation `e₁₃` of the outer square commutes with the
shift if all `α`, `e₂₃`, `e₁₂` and `β` do. -/
lemma NatTrans.CommShift.verticalComposition {C₁ C₂ C₃ D₁ D₂ D₃ : Type*}
[Category C₁] [Category C₂] [Category C₃] [Category D₁] [Category D₂] [Category D₃]
{F₁₂ : C₁ ⥤ C₂} {F₂₃ : C₂ ⥤ C₃} {F₁₃ : C₁ ⥤ C₃} (α : F₁₃ ⟶ F₁₂ ⋙ F₂₃)
{G₁₂ : D₁ ⥤ D₂} {G₂₃ : D₂ ⥤ D₃} {G₁₃ : D₁ ⥤ D₃} (β : G₁₂ ⋙ G₂₃ ⟶ G₁₃)
{L₁ : C₁ ⥤ D₁} {L₂ : C₂ ⥤ D₂} {L₃ : C₃ ⥤ D₃}
(e₁₂ : F₁₂ ⋙ L₂ ⟶ L₁ ⋙ G₁₂) (e₂₃ : F₂₃ ⋙ L₃ ⟶ L₂ ⋙ G₂₃) (e₁₃ : F₁₃ ⋙ L₃ ⟶ L₁ ⋙ G₁₃)
(A : Type*) [AddMonoid A] [HasShift C₁ A] [HasShift C₂ A] [HasShift C₃ A]
[HasShift D₁ A] [HasShift D₂ A] [HasShift D₃ A]
[F₁₂.CommShift A] [F₂₃.CommShift A] [F₁₃.CommShift A] [CommShift α A]
[G₁₂.CommShift A] [G₂₃.CommShift A] [G₁₃.CommShift A] [CommShift β A]
[L₁.CommShift A] [L₂.CommShift A] [L₃.CommShift A]
[CommShift e₁₂ A] [CommShift e₂₃ A]
(h₁₃ : e₁₃ = CategoryTheory.whiskerRight α L₃ ≫ (Functor.associator _ _ _).hom ≫
CategoryTheory.whiskerLeft F₁₂ e₂₃ ≫ (Functor.associator _ _ _).inv ≫
CategoryTheory.whiskerRight e₁₂ G₂₃ ≫ (Functor.associator _ _ _).hom ≫
CategoryTheory.whiskerLeft L₁ β): CommShift e₁₃ A := by
subst h₁₃
infer_instance
end CategoryTheory