NLA-lib Explorer

Matrix.IsHermitian.posSemidef_iff_forall_re_charpoly_coeff_nonneg

Library ยท theorem

A Hermitian matrix is positive semidefinite exactly when the coefficients of its characteristic polynomial alternate in sign: (-1)^k \operatorname{Re} c_j \ge 0 whenever k + j = \lvert n \rvert, where c_j is the coefficient of X^j.

Matrix.IsHermitian.posSemidef_iff_forall_re_charpoly_coeff_nonneg.{u_1, u_2} {๐•œ : Type u_1}
  [RCLike ๐•œ] {n : Type u_2} [DecidableEq n] [Fintype n] {A : Matrix n n ๐•œ} (hA : A.IsHermitian) :
  A.PosSemidef โ†” โˆ€ (k j : โ„•), k + j = Fintype.card n โ†’ 0 โ‰ค (-1) ^ k * RCLike.re (A.charpoly.coeff j)

Full source on GitHub

Import NLAlib.Matrix.Spectral.SylvesterCriterion.