The matrix algebra is a central algebra #
theorem
Matrix.subalgebraCenter_eq_scalarAlgHom_map
{n : Type u_1}
{R : Type u_2}
{A : Type u_3}
[CommSemiring R]
[Semiring A]
[Algebra R A]
[Fintype n]
[DecidableEq n]
:
Subalgebra.center R (Matrix n n A) = Subalgebra.map (scalarAlgHom n R) (Subalgebra.center R A)