{n : ℕ} → Matrix (Fin n) (Fin n) ℝ → ℤThe signature sigPos − sigNeg of the quadratic form of a matrix.
Part of the SVI polynomial-sign certificate (#174).
The sign variations of the characteristic coefficients compute the inertia signature of a real symmetric matrix (signatureTest_eq_matrixSignature), and a positive scalar factor does not change the test.
matrixSignature: the signature sigPos - sigNeg of the quadratic form of a real matrix.signatureTest_eq_matrixSignature: for a symmetric real matrix M, signatureTest M equals matrixSignature M, singular matrices included.signatureTest_smul_pos: for symmetric M and c > 0, signatureTest (c • M) equals signatureTest M.matrix inertia, Descartes rule of signs, characteristic polynomial, symmetric matrix signature, SVI, MSC 91G20, JEL G13
Above: what it imports. Below: what imports it.
{n : ℕ} → Matrix (Fin n) (Fin n) ℝ → ℤThe signature sigPos − sigNeg of the quadratic form of a matrix.
∀ {n : ℕ} (M : Matrix (Fin n) (Fin n) ℝ) (x : Fin n → ℝ), M.toQuadraticForm' x = x ⬝ᵥ M.mulVec xThe quadratic form of a matrix evaluates as x ⬝ᵥ M *ᵥ x.
∀ {n : ℕ} (w : Fin n → ℝ), (Matrix.diagonal w).toQuadraticForm' = QuadraticMap.weightedSumSquares ℝ wThe quadratic form of a diagonal matrix is the weighted sum of squares.
∀ {n : ℕ} (M : Matrix (Fin n) (Fin n) ℝ) (U : ↥(Matrix.unitaryGroup (Fin n) ℝ)), (star ↑U * M * ↑U).toQuadraticForm' = QuadraticMap.comp M.toQuadraticForm' ↑(Matrix.UnitaryGroup.toLinearEquiv U)The quadratic form of Uᴴ * M * U is that of M composed with U.
∀ {n : ℕ} (M : Matrix (Fin n) (Fin n) ℝ), M.IsSymm → signatureTest M = matrixSignature MCharacteristic sign variations compute the inertia signature of the associated real quadratic form, even for singular matrices.
∀ {n : ℕ} (Q : QuadraticForm ℝ (Fin n → ℝ)) (c : ℝ), 0 < c → sigPos (c • Q) = sigPos QA positive scalar multiple of a quadratic form has the same positive index.
∀ {n : ℕ} (Q : QuadraticForm ℝ (Fin n → ℝ)) (c : ℝ), 0 < c → sigNeg (c • Q) = sigNeg QA positive scalar multiple of a quadratic form has the same negative index.
∀ {n : ℕ} (M : Matrix (Fin n) (Fin n) ℝ) (c : ℝ), (c • M).toQuadraticForm' = c • M.toQuadraticForm'The quadratic form of a scalar multiple of a matrix is the scalar multiple.
∀ {n : ℕ} (M : Matrix (Fin n) (Fin n) ℝ), M.IsSymm → ∀ (c : ℝ), 0 < c → signatureTest (c • M) = signatureTest MA positive common denominator does not change the sign certificate.