Skip to content

Commit 718d4e2

Browse files
chore(RepresentationTheory): drop some useless commutativity argument (#38117)
1 parent 3dcb7dd commit 718d4e2

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

Mathlib/RepresentationTheory/Rep/Basic.lean

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,9 @@ end Action
559559

560560
end 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

564566
instance {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+
590596
set_option backward.isDefEq.respectTransparency false in
591597
instance : Functor.Linear k (forget₂ (Rep.{w} k G) (ModuleCat.{w} k)) where
592598
map_smul {X Y} f r := by

Mathlib/RepresentationTheory/Rep/Res.lean

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Given a group homomorphism `f : H →* G`, we have the restriction functor
1919

2020
universe 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

2424
open 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,

0 commit comments

Comments
 (0)