Apply symmetric Gaussian elimination without row exchanges. At step , let be the leading diagonal entry of the remaining symmetric Schur complement. If , stop and report that is not positive definite. If , use it to eliminate the rest of its row and column. If all steps succeed, this constructs an LDL decomposition
where is unit lower triangular and has positive diagonal.
The test is correct from first principles. If all , then for every nonzero ,
because is invertible. Conversely, if is positive definite, its first pivot is , and completing the square gives
Choosing shows that the Schur complement is positive definite. Induction forces every pivot to be positive. This is also Sylvester's criterion.
At step , updating the remaining matrix costs arithmetic operations. Hence the total is
which proves the existence of the required algorithm.
A Hermitian form is conjugate-linear in its first argument, linear in its second, and satisfies . For , the hypothesis says . The complex polarization identity
therefore gives for all .
The displayed matrix is Hermitian. By Sylvester's criterion, its leading principal minors are
Hence the form is
The displayed simply-laced tree has arms of lengths , , and from its trivalent vertex, so it is the finite type Coxeter graph. Its Gram matrix is the Cartan matrix, which has positive leading principal minors in a leaf-removal ordering and determinant . By Sylvester's criterion it is positive definite. It is therefore positive semidefinite and nondegenerate as well: the three answers are yes, yes, and yes.