The areas / V08. Multilinear algebra and forms
Mathlib.LinearAlgebra.QuadraticForm.Signature
21 declarations. Mathlib docs · Source
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.
theorem QuadraticMap.IsometryEquiv.map_posDef_iff E0 #
∀ {R : Type u_1} {M : Type u_2} {M' : Type u_3} [inst : AddCommGroup M] [inst_1 : AddCommGroup M'] [inst_2 : CommRing R]
[inst_3 : LinearOrder R] [inst_4 : Module R M] {Q : QuadraticForm R M} [inst_5 : Module R M']
{Q' : QuadraticForm R M'} {V : Submodule R M} (e : QuadraticMap.IsometryEquiv Q Q'),
(QuadraticMap.restrict Q' (Submodule.map (↑e.toLinearEquiv) V)).PosDef ↔ (QuadraticMap.restrict Q V).PosDef
theorem QuadraticMap.IsometryEquiv.map_negDef_iff E0 #
∀ {R : Type u_1} {M : Type u_2} {M' : Type u_3} [inst : AddCommGroup M] [inst_1 : AddCommGroup M'] [inst_2 : CommRing R]
[inst_3 : LinearOrder R] [inst_4 : Module R M] {Q : QuadraticForm R M} [inst_5 : Module R M']
{Q' : QuadraticForm R M'} {V : Submodule R M} (e : QuadraticMap.IsometryEquiv Q Q'),
(QuadraticMap.restrict (-Q') (Submodule.map (↑e.toLinearEquiv) V)).PosDef ↔ (QuadraticMap.restrict (-Q) V).PosDef
def sigPos E1 #
{R : Type u_1} →
{M : Type u_2} →
[inst : AddCommGroup M] → [inst_1 : CommRing R] → [LinearOrder R] → [inst_3 : Module R M] → QuadraticForm R M → ℕ
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).
theorem sigPos_le_finrank E1 #
∀ {R : Type u_1} {M : Type u_2} [inst : AddCommGroup M] [inst_1 : CommRing R] [inst_2 : LinearOrder R]
[inst_3 : Module R M] (Q : QuadraticForm R M), sigPos Q ≤ Module.finrank R M
theorem sigPos_isGreatest E1 #
∀ {R : Type u_1} {M : Type u_2} [inst : AddCommGroup M] [inst_1 : CommRing R] [inst_2 : LinearOrder R]
[inst_3 : Module R M] (Q : QuadraticForm R M) [Module.Finite R M] [StrongRankCondition R],
IsGreatest {r | ∃ V, Module.finrank R ↥V = r ∧ (QuadraticMap.restrict Q V).PosDef} (sigPos Q)
Defining property of sigPos.
theorem exists_finrank_eq_sigPos_and_posDef E1 #
∀ {R : Type u_1} {M : Type u_2} [inst : AddCommGroup M] [inst_1 : CommRing R] [inst_2 : LinearOrder R]
[inst_3 : Module R M] (Q : QuadraticForm R M) [Module.Finite R M] [StrongRankCondition R],
∃ V, Module.finrank R ↥V = sigPos Q ∧ (QuadraticMap.restrict Q V).PosDef
theorem le_sigPos_of_posDef E1 #
∀ {R : Type u_1} {M : Type u_2} [inst : AddCommGroup M] [inst_1 : CommRing R] [inst_2 : LinearOrder R]
[inst_3 : Module R M] (Q : QuadraticForm R M) [Module.Finite R M] [StrongRankCondition R] {V : Submodule R M},
(QuadraticMap.restrict Q V).PosDef → Module.finrank R ↥V ≤ sigPos Q
def sigNeg E1 #
{R : Type u_1} →
{M : Type u_2} →
[inst : AddCommGroup M] → [inst_1 : CommRing R] → [LinearOrder R] → [inst_3 : Module R M] → QuadraticForm R M → ℕ
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).
theorem sigNeg_isGreatest E1 #
∀ {R : Type u_1} {M : Type u_2} [inst : AddCommGroup M] [inst_1 : CommRing R] [inst_2 : LinearOrder R]
[inst_3 : Module R M] (Q : QuadraticForm R M) [Module.Finite R M] [StrongRankCondition R],
IsGreatest {r | ∃ V, Module.finrank R ↥V = r ∧ (QuadraticMap.restrict (-Q) V).PosDef} (sigNeg Q)
Defining property of sigNeg.
theorem exists_finrank_eq_sigNeg_and_negDef E1 #
∀ {R : Type u_1} {M : Type u_2} [inst : AddCommGroup M] [inst_1 : CommRing R] [inst_2 : LinearOrder R]
[inst_3 : Module R M] (Q : QuadraticForm R M) [Module.Finite R M] [StrongRankCondition R],
∃ V, Module.finrank R ↥V = sigNeg Q ∧ (QuadraticMap.restrict (-Q) V).PosDef
theorem le_sigNeg_of_negDef E1 #
∀ {R : Type u_1} {M : Type u_2} [inst : AddCommGroup M] [inst_1 : CommRing R] [inst_2 : LinearOrder R]
[inst_3 : Module R M] (Q : QuadraticForm R M) [Module.Finite R M] [StrongRankCondition R] {V : Submodule R M},
(QuadraticMap.restrict (-Q) V).PosDef → Module.finrank R ↥V ≤ sigNeg Q
theorem sigPos_neg E0 #
∀ {R : Type u_1} {M : Type u_2} [inst : AddCommGroup M] [inst_1 : CommRing R] [inst_2 : LinearOrder R]
[inst_3 : Module R M] {Q : QuadraticForm R M}, sigPos (-Q) = sigNeg Q
theorem sigNeg_neg E0 #
∀ {R : Type u_1} {M : Type u_2} [inst : AddCommGroup M] [inst_1 : CommRing R] [inst_2 : LinearOrder R]
[inst_3 : Module R M] {Q : QuadraticForm R M}, sigNeg (-Q) = sigPos Q
theorem QuadraticMap.Equivalent.sigPos_eq E0 #
∀ {R : Type u_1} {M : Type u_2} {M' : Type u_3} [inst : AddCommGroup M] [inst_1 : AddCommGroup M'] [inst_2 : CommRing R]
[inst_3 : LinearOrder R] [inst_4 : Module R M] {Q : QuadraticForm R M} [inst_5 : Module R M']
{Q' : QuadraticForm R M'}, QuadraticMap.Equivalent Q Q' → sigPos Q = sigPos Q'
theorem QuadraticMap.Equivalent.sigNeg_eq E0 #
∀ {R : Type u_1} {M : Type u_2} {M' : Type u_3} [inst : AddCommGroup M] [inst_1 : AddCommGroup M'] [inst_2 : CommRing R]
[inst_3 : LinearOrder R] [inst_4 : Module R M] {Q : QuadraticForm R M} [inst_5 : Module R M']
{Q' : QuadraticForm R M'}, QuadraticMap.Equivalent Q Q' → sigNeg Q = sigNeg Q'
theorem QuadraticForm.sigPos_add_finrank_le_of_nonpos E2 #
∀ {M : Type u_2} [inst : AddCommGroup M] {𝕜 : Type u_4} [inst_1 : Field 𝕜] [inst_2 : LinearOrder 𝕜]
[inst_3 : Module 𝕜 M] {Q : QuadraticForm 𝕜 M} [FiniteDimensional 𝕜 M] {V : Subspace 𝕜 M},
(∀ x ∈ V, Q x ≤ 0) → sigPos Q + Module.finrank 𝕜 ↥V ≤ Module.finrank 𝕜 M
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.
theorem QuadraticForm.sigPos_weightedSumSquares E2 #
∀ {𝕜 : Type u_4} [inst : Field 𝕜] [inst_1 : LinearOrder 𝕜] {ι : Type u_5} [inst_2 : Fintype ι] {w : ι → 𝕜}
[IsStrictOrderedRing 𝕜], sigPos (QuadraticMap.weightedSumSquares 𝕜 w) = {i | 0 < w i}.ncard
Key lemma for Sylvester's law of inertia: compute the signature of a weighted sum of squares.
theorem QuadraticForm.sigNeg_weightedSumSquares E1 #
∀ {𝕜 : Type u_4} [inst : Field 𝕜] [inst_1 : LinearOrder 𝕜] {ι : Type u_5} [inst_2 : Fintype ι] {w : ι → 𝕜}
[IsStrictOrderedRing 𝕜], sigNeg (QuadraticMap.weightedSumSquares 𝕜 w) = {i | w i < 0}.ncard
theorem QuadraticForm.sigPos_add_sigNeg_add_radical E1 #
∀ {M : Type u_2} [inst : AddCommGroup M] {𝕜 : Type u_4} [inst_1 : Field 𝕜] [inst_2 : LinearOrder 𝕜]
[inst_3 : Module 𝕜 M] {Q : QuadraticForm 𝕜 M} [IsStrictOrderedRing 𝕜] [FiniteDimensional 𝕜 M],
sigPos Q + sigNeg Q + Module.finrank 𝕜 ↥(QuadraticMap.radical Q) = Module.finrank 𝕜 M
theorem QuadraticForm.sigPos_of_equiv_weightedSumSquares E3 #
∀ {M : Type u_2} [inst : AddCommGroup M] {𝕜 : Type u_4} [inst_1 : Field 𝕜] [inst_2 : LinearOrder 𝕜]
[inst_3 : Module 𝕜 M] {Q : QuadraticForm 𝕜 M} {ι : Type u_5} [inst_4 : Fintype ι] {w : ι → 𝕜} [IsStrictOrderedRing 𝕜],
QuadraticMap.Equivalent Q (QuadraticMap.weightedSumSquares 𝕜 w) → sigPos Q = {i | 0 < w i}.ncard
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.
theorem QuadraticForm.sigNeg_of_equiv_weightedSumSquares E1 #
∀ {M : Type u_2} [inst : AddCommGroup M] {𝕜 : Type u_4} [inst_1 : Field 𝕜] [inst_2 : LinearOrder 𝕜]
[inst_3 : Module 𝕜 M] {Q : QuadraticForm 𝕜 M} {ι : Type u_5} [inst_4 : Fintype ι] {w : ι → 𝕜} [IsStrictOrderedRing 𝕜],
QuadraticMap.Equivalent Q (QuadraticMap.weightedSumSquares 𝕜 w) → sigNeg Q = {i | w i < 0}.ncard
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.