NLA-lib Explorer

NLAlib.charpoly_coeff_eq_sum_principalMinor

Library · theorem

The coefficients of the characteristic polynomial are signed sums of principal minors: for k + j = \lvert n \rvert the coefficient of X^j in \det(X\mathbf{I} - \mathbf{A}) is (-1)^k \sum_{\lvert s \rvert = k} \det \mathbf{A}_{s,s}, the sum over the principal minors of order k. [HornJohnson2013, Theorem 1.2.16].

NLAlib.charpoly_coeff_eq_sum_principalMinor.{u_2, u_3} {n : Type u_2} [DecidableEq n] [Fintype n]
  {R : Type u_3} [CommRing R] (A : Matrix n n R) {k j : ℕ} (h : k + j = Fintype.card n) :
  A.charpoly.coeff j = (-1) ^ k * ∑ s ∈ Finset.powersetCard k Finset.univ, principalMinor A s

Full source on GitHub

Import NLAlib.Matrix.Spectral.SylvesterCriterion.