Definiteness and the signature of a quadratic form #
This file characterizes positive and negative semidefiniteness by the vanishing of the
opposite index of inertia. It also characterizes positive-definiteness by the negative
index and the radical. These are convenient consequences of Sylvester's law of inertia which
complement Mathlib's definitions of QuadraticMap.PosDef, sigPos, and sigNeg.
It also proves that restriction to a subspace cannot increase either index of inertia, that quotienting a quadratic form by its radical preserves both indices, and that multiplication by a positive scalar preserves both indices while multiplication by a negative scalar exchanges them. Finally, both indices are additive under orthogonal products.
Main results #
QuadraticForm.forall_nonneg_iff_sigNeg_eq_zero: nonnegativity is characterized by vanishing negative index of inertia.QuadraticForm.forall_nonpos_iff_sigPos_eq_zero: nonpositivity is characterized by vanishing positive index of inertia.QuadraticForm.sigPos_restrict_le: restriction to a subspace cannot increase the positive index of inertia.QuadraticForm.sigNeg_restrict_le: restriction to a subspace cannot increase the negative index of inertia.QuadraticForm.sigPos_smul_of_posandQuadraticForm.sigNeg_smul_of_pos: positive scaling preserves both indices.QuadraticForm.sigPos_smul_of_negandQuadraticForm.sigNeg_smul_of_neg: negative scaling exchanges the two indices.QuadraticForm.sigPos_lift_radical: quotienting by the radical preserves the positive index of inertia.QuadraticForm.sigNeg_lift_radical: quotienting by the radical preserves the negative index of inertia.QuadraticForm.sigPos_prodandQuadraticForm.sigNeg_prod: the indices of inertia are additive under orthogonal products.QuadraticForm.posDef_iff_sigNeg_eq_zero_and_radical_eq_bot: positive-definiteness is characterized by vanishing negative index and trivial radical.QuadraticForm.sigPos_add_sigNeg_of_nondegenerate: the two indices of inertia of a nondegenerate quadratic form add up to the dimension.
References #
- W. Ebeling, Lattices and Codes, Chapter 1.
Multiplication by a positive scalar preserves positive-definiteness. Thus a quadratic form is positive-definite if and only if its positive scalar multiple is.
Multiplication by a positive scalar preserves the positive index of inertia.
Multiplication by a positive scalar preserves the negative index of inertia.
Multiplication by a negative scalar exchanges the positive and negative indices of inertia.
Multiplication by a negative scalar exchanges the negative and positive indices of inertia.
A quadratic form is nonnegative exactly when its negative index of inertia vanishes.
A quadratic form is nonpositive exactly when its positive index of inertia vanishes.
Restricting a quadratic form to a subspace cannot increase its positive index.
Restricting a quadratic form to a subspace cannot increase its negative index.
The positive index of inertia is additive under orthogonal products.
The negative index of inertia is additive under orthogonal products.
Quotienting a quadratic form by its radical preserves its positive index of inertia.
Lifting by a subspace known to be the radical preserves the positive index of inertia.
Quotienting a quadratic form by its radical preserves its negative index of inertia.
Lifting by a subspace known to be the radical preserves the negative index of inertia.
A quadratic form is positive-definite exactly when its negative index vanishes and its radical is trivial.
The positive and negative indices of inertia of a nondegenerate quadratic form add up to the dimension of the space.
A symmetric bilinear form is positive-semidefinite if and only if the negative index of its associated quadratic form vanishes.
The quadratic form of a symmetric bilinear form is positive-definite if and only if the bilinear form is positive-semidefinite and nondegenerate.
The quadratic form of a symmetric bilinear form is positive-definite if and only if the kernel of the bilinear form and the negative index of the quadratic form both vanish.