Classification of real quadratic forms by their signature #
Mathlib proves the two halves of Sylvester's law of inertia separately: every real quadratic form
on a finite-dimensional space is equivalent to a weighted sum of squares with weights 1, 0
and -1, and the numbers of positive and of negative weights are the invariants sigPos and
sigNeg. This file combines them into the classification itself: two real quadratic forms are
isometric exactly when their dimensions and their two indices of inertia agree. For a
nondegenerate form the two indices already determine the dimension, so a regular real form is
classified by its signature alone.
The file also supplies the normal form realizing a prescribed signature, the orthogonal sum of
p copies of ⟨1⟩ and q copies of ⟨-1⟩, and shows that every regular real form is isometric
to the normal form of its own signature.
Without any finite-dimensionality assumption, a real quadratic form is anisotropic exactly when it is positive or negative definite. This identifies the algebraic condition used in compactness criteria for real orthogonal groups with the usual order-theoretic notion of definiteness.
Main results #
QuadraticForm.anisotropic_iff_posDef_or_negDef: real anisotropic forms are exactly the positive and negative definite forms, including forms on the zero space.QuadraticForm.anisotropic_iff_sigNeg_eq_zero_or_sigPos_eq_zero: a real form with trivial radical on a finite-dimensional space is anisotropic exactly when one of its two indices of inertia vanishes.QuadraticMap.anisotropic_weightedSumSquares_iff: a real diagonal form is anisotropic exactly when its coefficients are all positive or all negative.QuadraticMap.map_inv_sqrt_smul_eq_one: a vector of positive quadratic value can be normalized to value one by inverse-square-root scaling. This normalization feeds the reflection-pair construction for compact real Clifford forms.QuadraticMap.map_inv_sqrt_abs_smul_eq_one_or_neg_one: a vector of nonzero quadratic value can be normalized to value1or-1.QuadraticMap.exists_isOrtho_of_mul_pos: two orthogonal vectors whose values are nonzero of the same sign rescale to orthogonal vectors with the same value1or-1.QuadraticForm.sigPos_weightedSumSquares_signTypeandQuadraticForm.sigNeg_weightedSumSquares_signType: the two indices of inertia of a sign-weighted sum of squares count the weights1and the weights-1.QuadraticForm.equivalent_iff_finrank_eq_and_sigPos_eq_and_sigNeg_eq: two real quadratic forms on finite-dimensional spaces are isometric exactly when their dimensions and both indices of inertia agree.QuadraticForm.equivalent_iff_sigPos_eq_and_sigNeg_eq: two nondegenerate real quadratic forms are isometric exactly when their signatures agree.QuadraticForm.realSignatureForm: the normal form of signature(p, q).QuadraticForm.sigPos_realSignatureForm,QuadraticForm.sigNeg_realSignatureFormandQuadraticForm.nondegenerate_realSignatureForm: every signature is realized by a regular form.QuadraticForm.equivalent_realSignatureForm: a regular real quadratic form is isometric to the normal form of its signature.QuadraticForm.equivalent_weightedSumSquares_ite_lt_sigNeg: the same normal form on the coordinate space, with thesigNeg Qnegative squares first.QuadraticForm.exists_nondegenerate_and_sigPos_eq_and_sigNeg_eq: every signature(p, n - p)is realized by a regular form on the coordinate spaceℝⁿ.QuadraticForm.equivalent_realSignatureForm_iff_sigPos_eq_and_sigNeg_eq: a regular real form is isometric to a prescribed normal form exactly when it has the prescribed signature.QuadraticForm.equivalent_realSignatureForm_iff: distinct signatures give non-isometric normal forms.
References #
- W. Ebeling, Lattices and Codes, Chapter 1.
Scaling a vector by the inverse square root of its positive quadratic value gives value one.
Scaling a vector by the inverse square root of the absolute value of its quadratic value gives
value Q v / |Q v|, which is 1, -1 or 0 according to the sign of Q v.
Scaling a vector of nonzero quadratic value by the inverse square root of the absolute value
of that quadratic value gives value 1 or -1.
Two orthogonal vectors whose quadratic values are nonzero of the same sign rescale to two
orthogonal vectors with the same quadratic value 1 or -1.
A real quadratic form is anisotropic if and only if it is positive or negative definite. No finite-dimensionality assumption is needed; on the zero space both alternatives hold.
A real quadratic form with trivial radical on a finite-dimensional space is anisotropic if and only if one of its two indices of inertia vanishes: an indefinite regular real form is isotropic.
A real diagonal form ⟨b₁, …, bₙ⟩ is anisotropic exactly when its coefficients are all
positive or all negative. No nonvanishing hypothesis is needed: a zero coefficient makes the
corresponding basis vector isotropic and rules out both alternatives.
Sylvester's law of inertia, classification form: two real quadratic forms on finite-dimensional spaces are isometric exactly when their dimensions agree and both indices of inertia agree. The dimension is a genuine third condition: it records the number of zero weights in a diagonalization, which the two indices do not see.
Sylvester's law of inertia for regular forms: two nondegenerate real quadratic forms are isometric exactly when their signatures agree.
The normal form of signature (p, q): the orthogonal sum of p copies of ⟨1⟩ and q
copies of ⟨-1⟩.
Instances For
The normal form is the weighted sum of squares with p positive and q negative weights.
The positive index of inertia of the normal form realSignatureForm p q is p.
The negative index of inertia of the normal form realSignatureForm p q is q.
The normal form of signature (p, q) is regular, so every signature is realized by a regular
real quadratic form.
A regular real quadratic form is isometric to the normal form of signature (p, q) exactly
when its positive and negative indices are p and q.
Two normal forms are isometric exactly when their signatures coincide, so the signature is a complete and independent system of invariants for regular real quadratic forms.
Every regular real quadratic form is isometric to the normal form of its signature.
Sylvester's normal form with the negative squares first. A regular real quadratic form
Q on an n-dimensional space is isometric to the diagonal form
-x₀² - ⋯ - x_{q-1}² + x_q² + ⋯ + x_{n-1}² on Fin n → ℝ, where q = sigNeg Q. This is the
coordinate order of Morse charts, in which the negative directions of a Hessian come first.
Every signature (p, n - p) with p ≤ n is the signature of a regular quadratic form on the
coordinate space ℝⁿ: the normal form realSignatureForm p (n - p) transported along a bijection
of its index type with Fin n.
A positive definite real quadratic form is isometric to the standard sum-of-squares form in its dimension.