NLA-lib Explorer

NLAlib.charpoly_mul_mul_of_mul_eq_one

Library · theorem

Similar matrices have the same characteristic polynomial: conjugation by a pair of mutually inverse matrices over a commutative ring preserves it. For a unit of the matrix ring this is Mathlib's Matrix.charpoly_units_conj'; here the similarity is given by the equation \mathbf{S}'\mathbf{S} = \mathbf{I}, as \mathbf{S}^{-1} with IsUnit S.det or \mathbf{U}^{\mathsf{H}} with HasOrthonormalCols U provide it.

NLAlib.charpoly_mul_mul_of_mul_eq_one.{u_4, u_5} {n : Type u_4} [Fintype n] [DecidableEq n]
  {R : Type u_5} [CommRing R] {S S' : Matrix n n R} (hS : S' * S = 1) (M : Matrix n n R) :
  (S' * M * S).charpoly = M.charpoly

Full source on GitHub

Import NLAlib.Matrix.Spectral.EigenvalueListing.