Documentation

Mathlib.LinearAlgebra.QuadraticForm.Signature

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 #

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.

@[simp]
theorem QuadraticMap.IsometryEquiv.map_posDef_iff {R : Type u_1} {M : Type u_2} {M' : Type u_3} [AddCommGroup M] [AddCommGroup M'] [CommRing R] [LinearOrder R] [Module R M] {Q : QuadraticForm R M} [Module R M'] {Q' : QuadraticForm R M'} {V : Submodule R M} (e : IsometryEquiv Q Q') :
(restrict Q' (Submodule.map (↑e.toLinearEquiv) V)).PosDef ↔ (restrict Q V).PosDef
@[simp]
theorem QuadraticMap.IsometryEquiv.map_negDef_iff {R : Type u_1} {M : Type u_2} {M' : Type u_3} [AddCommGroup M] [AddCommGroup M'] [CommRing R] [LinearOrder R] [Module R M] {Q : QuadraticForm R M} [Module R M'] {Q' : QuadraticForm R M'} {V : Submodule R M} (e : IsometryEquiv Q Q') :
(restrict (-Q') (Submodule.map (↑e.toLinearEquiv) V)).PosDef ↔ (restrict (-Q) V).PosDef
noncomputable def sigPos {R : Type u_1} {M : Type u_2} [AddCommGroup M] [CommRing R] [LinearOrder R] [Module R M] (Q : 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).

Instances For
    theorem sigPos_isGreatest {R : Type u_1} {M : Type u_2} [AddCommGroup M] [CommRing R] [LinearOrder R] [Module R M] (Q : QuadraticForm R M) [Module.Finite R M] [StrongRankCondition R] :
    IsGreatest {r : β„• | βˆƒ (V : Submodule R M), Module.finrank R β†₯V = r ∧ (QuadraticMap.restrict Q V).PosDef} (sigPos Q)

    Defining property of sigPos.

    noncomputable def sigNeg {R : Type u_1} {M : Type u_2} [AddCommGroup M] [CommRing R] [LinearOrder R] [Module R M] (Q : 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).

    Instances For
      theorem sigNeg_isGreatest {R : Type u_1} {M : Type u_2} [AddCommGroup M] [CommRing R] [LinearOrder R] [Module R M] (Q : QuadraticForm R M) [Module.Finite R M] [StrongRankCondition R] :
      IsGreatest {r : β„• | βˆƒ (V : Submodule R M), Module.finrank R β†₯V = r ∧ (QuadraticMap.restrict (-Q) V).PosDef} (sigNeg Q)

      Defining property of sigNeg.

      @[simp]
      theorem sigPos_neg {R : Type u_1} {M : Type u_2} [AddCommGroup M] [CommRing R] [LinearOrder R] [Module R M] {Q : QuadraticForm R M} :
      sigPos (-Q) = sigNeg Q
      @[simp]
      theorem sigNeg_neg {R : Type u_1} {M : Type u_2} [AddCommGroup M] [CommRing R] [LinearOrder R] [Module R M] {Q : QuadraticForm R M} :
      sigNeg (-Q) = sigPos Q
      theorem QuadraticMap.Equivalent.sigPos_eq {R : Type u_1} {M : Type u_2} {M' : Type u_3} [AddCommGroup M] [AddCommGroup M'] [CommRing R] [LinearOrder R] [Module R M] {Q : QuadraticForm R M} [Module R M'] {Q' : QuadraticForm R M'} (h : Equivalent Q Q') :
      sigPos Q = sigPos Q'
      theorem QuadraticMap.Equivalent.sigNeg_eq {R : Type u_1} {M : Type u_2} {M' : Type u_3} [AddCommGroup M] [AddCommGroup M'] [CommRing R] [LinearOrder R] [Module R M] {Q : QuadraticForm R M} [Module R M'] {Q' : QuadraticForm R M'} (h : Equivalent Q Q') :
      sigNeg Q = sigNeg Q'
      theorem QuadraticForm.sigPos_add_finrank_le_of_nonpos {M : Type u_2} [AddCommGroup M] {π•œ : Type u_4} [Field π•œ] [LinearOrder π•œ] [Module π•œ M] {Q : QuadraticForm π•œ M} [FiniteDimensional π•œ M] {V : Subspace π•œ M} (hV : βˆ€ 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 {π•œ : Type u_4} [Field π•œ] [LinearOrder π•œ] {ΞΉ : Type u_5} [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 {π•œ : Type u_4} [Field π•œ] [LinearOrder π•œ] {ΞΉ : Type u_5} [Fintype ΞΉ] {w : ΞΉ β†’ π•œ} [IsStrictOrderedRing π•œ] :
      sigNeg (QuadraticMap.weightedSumSquares π•œ w) = {i : ΞΉ | w i < 0}.ncard
      theorem QuadraticForm.sigPos_add_sigNeg_add_radical {M : Type u_2} [AddCommGroup M] {π•œ : Type u_4} [Field π•œ] [LinearOrder π•œ] [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 {M : Type u_2} [AddCommGroup M] {π•œ : Type u_4} [Field π•œ] [LinearOrder π•œ] [Module π•œ M] {Q : QuadraticForm π•œ M} {ΞΉ : Type u_5} [Fintype ΞΉ] {w : ΞΉ β†’ π•œ} [IsStrictOrderedRing π•œ] (hQ : 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 {M : Type u_2} [AddCommGroup M] {π•œ : Type u_4} [Field π•œ] [LinearOrder π•œ] [Module π•œ M] {Q : QuadraticForm π•œ M} {ΞΉ : Type u_5} [Fintype ΞΉ] {w : ΞΉ β†’ π•œ} [IsStrictOrderedRing π•œ] (hQ : 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.