What it saysAmitsur's formula for matrices. For an R-algebra \Lambda, an R-algebra map \rho : \Lambda \to M_\sigma (L) such that every coefficient of the characteristic polynomial of every \rho (w) lies in the image of R (c), a matrix P \in M_N(\Lambda ) and k: the coefficient of X^k of the characteristic polynomial of the block matrix (\rho (P_{ij}))_{i,j}, flattened to an (N \times \sigma )-matrix over L, lies in the image of R.
The argument in briefApply Amitsur's span criterion to the flattened block map: the matrices with one nonzero entry span, and the characteristic polynomial of the block image of such a matrix is, up to a power of X, that of the image of one entry.
Let \varphi = flattening \circ \rho entrywise. By amitsur_charpoly_mem_of_span it suffices that the elements with characteristic polynomial over R span M_N(\Lambda ); every P is a sum of matrices with a single nonzero entry (matrix_eq_sum_single), so it suffices to treat those, whose image under \varphi factors as:
\varphi (E_{qq'}(w)) = (a column block of \varphi (1)) \cdot (a row block of \varphi (P)), so its characteristic polynomial is X^{\ldots } times that of the reversed product (charpoly_mul_comm'), which is the characteristic polynomial of \rho (P_{qq}) or 0; its coefficients lie in R by c.
Lean statesφ _ = (φ 1).submatrix id (q, ·) * (φ P).submatrix (q, ·) id