instancefunctor_linear :
(functor (k := k) (R:=R) (S:=S) (F:=F)).Linear k where
body · 10
lines
map_smul :=by
intro MN g a
apply ModuleCat.hom_ext
apply leftHom_ext
intro f m
change tmul (k := k) (R:=R) f ((algebraMap k R a) • g.hom m) =
(algebraMap k S a) • tmul (k := k) (R:=R) f (g.hom m)
rw [IsScalarTower.algebraMap_smul R a (g.hom m),
IsScalarTower.algebraMap_smul S a (tmul (k := k) (R:=R) f (g.hom m))]
exact map_smul (mk (k := k) (R:=R) f) a (g.hom m)