Characteristic coefficients from power traces #
Newton's characteristic-coefficient recurrence holds over every commutative ring.
Over a field where 1, …, D are nonzero, the first D + 1 coefficients of the reverse
characteristic polynomial agree with the finite exponential of the polynomial with
coefficients -trace (M^j) / j. The polynomial of these coefficients is Mathlib's
Polynomial.ofFn; there is one finite-exponential construction throughout.
The finite-exponential proof is adapted from
lean-canny.
Jacobi's identity Matrix.derivative_det_adjugate, (det M)' = tr (adj M * M') for a matrix
M of polynomials, is obtained from the existing Derivation.map_det.
Jacobi's formula for a matrix of polynomials:
(det M)' = tr (adj M * M'), with M' the entrywise derivative.
Newton's characteristic-coefficient recurrence over an arbitrary commutative ring. No inverses or eigenvalues occur in this identity.
Within the matrix dimension, reversing the index identifies a coefficient of
charpolyRev with the corresponding coefficient of charpoly.
Newton recurrence determines all coefficients through a degree where its integer multipliers are nonzero.
The finite exponential has exactly the characteristic coefficients through the requested truncation degree.
Reversal turns the constructed exponential coefficients into the actual characteristic polynomial coefficients of the matrix.