Documentation

TauCeti.LinearAlgebra.QuadraticForm.Signature

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 #

References #

@[simp]

Multiplication by a positive scalar preserves positive-definiteness. Thus a quadratic form is positive-definite if and only if its positive scalar multiple is.

@[simp]
theorem QuadraticForm.sigPos_smul_of_pos {K : Type u_1} {M : Type u_2} [Field K] [LinearOrder K] [IsStrictOrderedRing K] [AddCommGroup M] [Module K M] [FiniteDimensional K M] (Q : QuadraticForm K M) {a : K} (ha : 0 < a) :
sigPos (a • Q) = sigPos Q

Multiplication by a positive scalar preserves the positive index of inertia.

@[simp]
theorem QuadraticForm.sigNeg_smul_of_pos {K : Type u_1} {M : Type u_2} [Field K] [LinearOrder K] [IsStrictOrderedRing K] [AddCommGroup M] [Module K M] [FiniteDimensional K M] (Q : QuadraticForm K M) {a : K} (ha : 0 < a) :
sigNeg (a • Q) = sigNeg Q

Multiplication by a positive scalar preserves the negative index of inertia.

@[simp]
theorem QuadraticForm.sigPos_smul_of_neg {K : Type u_1} {M : Type u_2} [Field K] [LinearOrder K] [IsStrictOrderedRing K] [AddCommGroup M] [Module K M] [FiniteDimensional K M] (Q : QuadraticForm K M) {a : K} (ha : a < 0) :
sigPos (a • Q) = sigNeg Q

Multiplication by a negative scalar exchanges the positive and negative indices of inertia.

@[simp]
theorem QuadraticForm.sigNeg_smul_of_neg {K : Type u_1} {M : Type u_2} [Field K] [LinearOrder K] [IsStrictOrderedRing K] [AddCommGroup M] [Module K M] [FiniteDimensional K M] (Q : QuadraticForm K M) {a : K} (ha : a < 0) :
sigNeg (a • Q) = sigPos Q

Multiplication by a negative scalar exchanges the negative and positive indices of inertia.

theorem QuadraticForm.forall_nonneg_iff_sigNeg_eq_zero {K : Type u_1} {M : Type u_2} [Field K] [LinearOrder K] [IsStrictOrderedRing K] [AddCommGroup M] [Module K M] [FiniteDimensional K M] (Q : QuadraticForm K M) :
(∀ (x : M), 0 ≤ Q x) ↔ sigNeg Q = 0

A quadratic form is nonnegative exactly when its negative index of inertia vanishes.

theorem QuadraticForm.forall_nonpos_iff_sigPos_eq_zero {K : Type u_1} {M : Type u_2} [Field K] [LinearOrder K] [IsStrictOrderedRing K] [AddCommGroup M] [Module K M] [FiniteDimensional K M] (Q : QuadraticForm K M) :
(∀ (x : M), Q x ≤ 0) ↔ sigPos Q = 0

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.

@[simp]
theorem QuadraticForm.sigPos_prod {K : Type u_1} {M : Type u_2} [Field K] [LinearOrder K] [IsStrictOrderedRing K] [AddCommGroup M] [Module K M] [FiniteDimensional K M] {M' : Type u_3} [AddCommGroup M'] [Module K M'] [FiniteDimensional K M'] (Q : QuadraticForm K M) (Q' : QuadraticForm K M') :

The positive index of inertia is additive under orthogonal products.

@[simp]
theorem QuadraticForm.sigNeg_prod {K : Type u_1} {M : Type u_2} [Field K] [LinearOrder K] [IsStrictOrderedRing K] [AddCommGroup M] [Module K M] [FiniteDimensional K M] {M' : Type u_3} [AddCommGroup M'] [Module K M'] [FiniteDimensional K M'] (Q : QuadraticForm K M) (Q' : QuadraticForm K M') :

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.