Theorem (Matrix.IsHermitian.posDef_iff_forall_re_principalMinor_Iic_pos). Sylvester's criterion. A Hermitian matrix is positive definite exactly when its leading principal minors are positive: \operatorname{Re} \det \mathbf{A}_{s_i,s_i} > 0 for every i, where s_i = \{j : j \le i\} and \mathbf{A}_{s,s} is the principal submatrix on s (the minor is real; principalMinor). [HornJohnson2013, Theorem 7.2.5].
Headline
Lean statement and details
Matrix.IsHermitian.posDef_iff_forall_re_principalMinor_Iic_pos.{u_1, u_2} {๐ : Type u_1} [RCLike ๐]
{n : Type u_2} [DecidableEq n] [Finite n] [LinearOrder n] [LocallyFiniteOrderBot n]
{A : Matrix n n ๐} (hA : A.IsHermitian) :
A.PosDef โ โ (i : n), 0 < RCLike.re (principalMinor A (Finset.Iic i))