openAI-math-dataset / lean /OAI /Algebra /AuslanderReiten /Tensor /BalancedTensorLinear.lean
roseking's picture
Add lean source and binary files (part 6)
2c7d975 verified
Raw History Blame Contribute Delete
1.14 kB
17
instance functor_linear :
    (functor (k := k) (R := R) (S := S) (F := F)).Linear k where
body · 10 lines
  map_smul := by
    intro M N 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)