Bilinear form/Symmetric/Type/Inertia law/Fact/Proof
With respect to an orthogonal basis of (which exists due to fact), the Gram matrix is in diagonal form. Let be the number of positive diagonal entries, and let be the number of negative diagonal entries. We may order the basis in such a way that the first diagonal entries are positive, the following diagonal entries are negative, and the remaining entries are . On the linear subspace of dimension , the restricted bilinear form is positive definite; therefore, holds. Let ; on this linear subspace, the restricted bilinear form is negative semidefinite. We have , and these spaces are orthogonal to each other.
Assume now that there exists a linear subspace , such that the bilinear form restricted to is positive definite, and such that its dimension is larger than .
The dimension of is , therefore, because of fact. For a vector , , we get directly the contradiction and .