Signature of a quadratic form #
We define the signature of a quadratic form over a linearly ordered field, and show that it can be computed from any sum-of-squares representation.
Main results and definitions #
QuadraticForm.sigPos,QuadraticForm.sigNeg: for a quadratic formQ, the maximal dimension of a subspace on whichQis positive-definite (resp. negative-definite).QuadraticForm.sigPos_of_equiv_weightedSumOfSquares,QuadraticForm.sigNeg_of_equiv_weightedSumOfSquares: for any isomorphism fromQto a weighted sum of squares,Q.sigPosandQ.sigNegare the number of positive and negative weights. (This is the uniqueness part of Sylvester's law of inertia; the existence isQuadraticForm.equivalent_one_zero_neg_one_weighted_sum_squaredin fileMathlib.LinearAlgebra.QuadraticForm.Real.)
Acknowledgements #
This file is based on work carried out by Sina Keller, Philipp Schumann, and Nicolas Trutmann in the course of their studies at ETH Zürich.
For quadratic forms on finite-dimensional spaces, the maximal finrank of a positive-definite
subspace of M. (Defined as 0 if M is infinite-dimensional).
Equations
- sigPos Q = {r ∈ Finset.Iic (Module.finrank R M) | ∃ (V : Submodule R M), Module.finrank R ↥V = r ∧ (QuadraticMap.restrict Q V).PosDef}.max' ⋯
Instances For
Defining property of sigPos.
For quadratic forms on finite-dimensional spaces, the maximal finrank of a negative-definite
subspace of M. (Defined as 0 if M is infinite-dimensional).
Instances For
Defining property of sigNeg.
Key lemma for Sylvester's law of inertia: the sum of sigPos Q and the dimension of any
negative-semidefinite subspace is bounded above by the dimension of the whole space.
Key lemma for Sylvester's law of inertia: compute the signature of a weighted sum of squares.
Uniqueness part of Sylvester's law of inertia (positive part):
for any weighted sum of squares equivalent to Q,
the number of strictly positive weights is equal to sigPos Q.
Uniqueness part of Sylvester's law of inertia (negative part):
for any weighted sum of squares equivalent to Q,
the number of strictly negative weights is equal to sigNeg Q.