Proof
According to
fact,
the
characteristic polynomial
of
splits into real linear factors. Let
be the positive zeroes and let
be the negative zeroes. Due to
fact,
we have a direct sum decomposition
-

which is orthogonal with respect to the inner product
(
might be zero).
For vectors
and
from different eigenspaces, we have
-

therefore, the eigenspaces are also orthogonal with respect to the form
. For
-

with
,
we have

This means that on this linear subspace, the restricted form is
positive definite;
hence,
-

If
were strictly larger that this dimension, there existed a
-dimensional linear subspace
such that the restriction of
to
is positive definite. Because of
fact,
we have
-

This yields a contradiction, since the form
is negative semidefinite on the right-hand space. Therefore,
-

The argument for
is the same.