Sylvester's law of inertia states that a real quadratic form can be brought by an invertible real change of coordinates to
with remaining zero coordinates, and that the integers are uniquely determined. To prove existence, represent it by a symmetric matrix. The allowed orthogonal diagonalization yields real eigenvalues, and scaling each nonzero eigen-coordinate by the square root of its absolute eigenvalue changes its coefficient to or .
For uniqueness, is the largest dimension of a subspace on which the form is positive definite. The positive coordinate subspace attains . Any subspace of dimension greater than intersects the -dimensional span of the negative and zero coordinates nontrivially, by the dimension formula. A nonzero vector in that intersection has nonpositive quadratic value, contradicting positive definiteness. Similarly, is the maximal dimension of a negative-definite subspace. These descriptions are independent of coordinates, and is then fixed. This proves existence and uniqueness, including degenerate forms.
For the final application, nonsingularity gives . In diagonal coordinates write , with . If projects to zero in the positive coordinates, forces , so projection is injective. The same argument applies to the negative coordinates. Hence and , and their sum is . Therefore
The inertia signature is , or signature difference if that convention is used. This is the isotropic dimension bound from real inertia.