@@ -267,9 +267,15 @@ section has_zero_morphisms
267267variables [has_zero_morphisms V]
268268
269269instance : has_zero_morphisms (Action V G) :=
270- { has_zero := λ X Y, ⟨⟨0 , by tidy⟩⟩, }
270+ { has_zero := λ X Y, ⟨⟨0 , by { intro g, simp }⟩⟩,
271+ comp_zero' := λ P Q f R, by { ext1, simp },
272+ zero_comp' := λ P Q R f, by { ext1, simp }, }
271273
272- instance : functor.preserves_zero_morphisms (functor_category_equivalence V G).functor := {}
274+ instance forget_preserves_zero_morphisms : functor.preserves_zero_morphisms (forget V G) := {}
275+ instance forget₂_preserves_zero_morphisms [concrete_category V] :
276+ functor.preserves_zero_morphisms (forget₂ (Action V G) V) := {}
277+ instance functor_category_equivalence_preserves_zero_morphisms :
278+ functor.preserves_zero_morphisms (functor_category_equivalence V G).functor := {}
273279
274280end has_zero_morphisms
275281
@@ -289,8 +295,12 @@ instance : preadditive (Action V G) :=
289295 add_comp' := by { intros, ext, exact preadditive.add_comp _ _ _ _ _ _, },
290296 comp_add' := by { intros, ext, exact preadditive.comp_add _ _ _ _ _ _, }, }
291297
292- instance : functor.additive (functor_category_equivalence V G).functor := {}
293- instance forget_additive : functor.additive (forget V G) := {}
298+ instance forget_additive :
299+ functor.additive (forget V G) := {}
300+ instance forget₂_additive [concrete_category V] :
301+ functor.additive (forget₂ (Action V G) V) := {}
302+ instance functor_category_equivalence_additive :
303+ functor.additive (functor_category_equivalence V G).functor := {}
294304
295305@[simp] lemma zero_hom {X Y : Action V G} : (0 : X ⟶ Y).hom = 0 := rfl
296306@[simp] lemma neg_hom {X Y : Action V G} (f : X ⟶ Y) : (-f).hom = -f.hom := rfl
@@ -315,7 +325,12 @@ instance : linear R (Action V G) :=
315325 smul_comp' := by { intros, ext, exact linear.smul_comp _ _ _ _ _ _, },
316326 comp_smul' := by { intros, ext, exact linear.comp_smul _ _ _ _ _ _, }, }
317327
318- instance : functor.linear R (functor_category_equivalence V G).functor := {}
328+ instance forget_linear :
329+ functor.linear R (forget V G) := {}
330+ instance forget₂_linear [concrete_category V] :
331+ functor.linear R (forget₂ (Action V G) V) := {}
332+ instance functor_category_equivalence_linear :
333+ functor.linear R (functor_category_equivalence V G).functor := {}
319334
320335@[simp] lemma smul_hom {X Y : Action V G} (r : R) (f : X ⟶ Y) : (r • f).hom = r • f.hom := rfl
321336
@@ -412,10 +427,10 @@ instance [symmetric_category V] : symmetric_category (Action V G) :=
412427symmetric_category_of_faithful (forget_braided V G)
413428
414429section
415- local attribute [simp] monoidal_preadditive.tensor_add monoidal_preadditive.add_tensor
416-
417430variables [preadditive V] [monoidal_preadditive V]
418431
432+ local attribute [simp] monoidal_preadditive.tensor_add monoidal_preadditive.add_tensor
433+
419434instance : monoidal_preadditive (Action V G) := {}
420435
421436variables {R : Type *} [semiring R] [linear R V] [monoidal_linear R V]
0 commit comments