Documentation

CslibFrontier.Foundations.LinearAlgebra.Matrix.Charpoly.EvalDeterminant

Determinants of polynomial evaluations at matrices #

Factoring the test polynomial gives a resultant with the characteristic polynomial. When the characteristic polynomial also splits, the determinant is the product of the test values at its roots, counted with multiplicity. After a coefficient extension in which the characteristic polynomial is separable, the product can be taken over distinct roots.

Adapted from NormPolynomialEvaluation and QuotientRealSpectralProduct in lean-canny at 970f28a5ecefc1327402ade16c068aa4b1b2c183, using the matrix directly.

theorem Matrix.det_aeval_eq_charpoly_resultant {ι : Type u_1} {K : Type u_2} [Fintype ι] [DecidableEq ι] [Field K] (M : Matrix ι ι K) (g : Polynomial K) (hg : g.Splits) :

The determinant of a split polynomial evaluated at a matrix is its resultant against the characteristic polynomial, with the characteristic polynomial first.

theorem Matrix.det_aeval_eq_prod_charpoly_roots {ι : Type u_1} {K : Type u_2} [Fintype ι] [DecidableEq ι] [Field K] (M : Matrix ι ι K) (g : Polynomial K) (hg : g.Splits) (hM : M.charpoly.Splits) :

The determinant of a polynomial evaluated at a matrix is the product of its values at the characteristic roots, counted with multiplicity, when both polynomials split.

theorem Matrix.algebraMap_det_aeval_eq_prod_aroots_toFinset {ι : Type u_1} {R : Type u_2} {K : Type u_3} [Fintype ι] [DecidableEq ι] [CommRing R] [Field K] [DecidableEq K] [Algebra R K] (M : Matrix ι ι R) (g : Polynomial R) (hg : (Polynomial.map (algebraMap R K) g).Splits) (hM : (Polynomial.map (algebraMap R K) M.charpoly).Splits) (hsep : (Polynomial.map (algebraMap R K) M.charpoly).Separable) :

Extend coefficients to a field in which both polynomials split. If the characteristic polynomial is separable there, the image of the source determinant is the product of the test values over distinct characteristic roots.