File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed
Mathlib/RepresentationTheory/Rep Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -559,7 +559,9 @@ end Action
559559
560560end ring
561561
562- variable {k : Type u} {G : Type v} [CommRing k] [Monoid G]
562+ section CommSemiring
563+
564+ variable {k : Type u} {G : Type v} [CommSemiring k] [Monoid G]
563565
564566instance {M N : Rep k G} : SMul k (M ⟶ N) where
565567 smul r f := ofHom (r • f.hom)
@@ -587,6 +589,10 @@ instance : Linear k (Rep k G) where
587589 smul_comp _ _ _ := smul_comp
588590 comp_smul _ _ _ := comp_smul
589591
592+ end CommSemiring
593+
594+ variable {k : Type u} {G : Type v} [CommRing k] [Monoid G]
595+
590596set_option backward.isDefEq.respectTransparency false in
591597instance : Functor.Linear k (forget₂ (Rep.{w} k G) (ModuleCat.{w} k)) where
592598 map_smul {X Y} f r := by
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ Given a group homomorphism `f : H →* G`, we have the restriction functor
1919
2020universe t w u v v1 v2
2121
22- variable {k : Type u} [CommRing k] {G : Type v1} {H : Type v2} [Monoid G] [Monoid H]
22+ variable {k : Type u} [Semiring k] {G : Type v1} {H : Type v2} [Monoid G] [Monoid H]
2323
2424open CategoryTheory
2525
@@ -72,7 +72,7 @@ instance : (resFunctor (k := k) f).Additive where
7272 simp only [add_hom, Representation.IntertwiningMap.add_toLinearMap]
7373 rfl
7474
75- instance : (resFunctor (k := k) f).Linear k where
75+ instance {k : Type u} [CommSemiring k] : (resFunctor (k := k) f).Linear k where
7676 map_smul {X Y} l r := by
7777 ext : 2 ;
7878 rw [smul_hom, Representation.IntertwiningMap.toLinearMap_smul,
You can’t perform that action at this time.
0 commit comments