NLAlib.inertiaPos_eq_card_of_eq_mul_diagonal_mul_conjTranspose
Library · theorem
The positive index of inertia of \mathbf{B} is read off the diagonal of a congruence: if \mathbf{B} = \mathbf{S} \operatorname{diag}(\mathbf{d}) \mathbf{S}^{\mathsf{H}} with \mathbf{S} invertible and \mathbf{d} real, then inertiaPos B is the number of indices i with \mathbf{d}_i > 0.
NLAlib.inertiaPos_eq_card_of_eq_mul_diagonal_mul_conjTranspose.{u_1, u_2} {𝕜 : Type u_1} [RCLike 𝕜]
{n : Type u_2} [Fintype n] [DecidableEq n] {B S : Matrix n n 𝕜} {d : n → ℝ} (hS : IsUnit S.det)
(hB : B = (S * diagonal fun i ↦ ↑(d i)) * Sᴴ) : inertiaPos B = {i | 0 < d i}.cardImport NLAlib.Matrix.Spectral.Congruence.