Polynomial ℝ → (n : ℕ) → Matrix (Fin n) (Fin n) ℝ
ℓ times the companion matrix of f/ℓ, where ℓ = leadingCoeff f. Intended dimension: n = natDegree f, positive.
Part of the SVI polynomial-sign certificate (#174).
Explicit denominator-free matrix constructions. Their correctness as a root-counting certificate is proved in MatrixCertificate.lean.
scaledCompanion: ℓ times the companion matrix of f / ℓ, with ℓ = leadingCoeff f.clearedHermite: the Hermite matrix of f with weight q built from scaledCompanion and powers of the leading coefficient, so that no division by it occurs.signatureTest: the sign variations of M.charpoly minus those of M.charpoly.comp (-X).certificateMatrices: the four cleared Hermite matrices of P' with weights X²P², XP², X²P, XP.matrixCountFour: the signed combination of the four signature tests.clearedHermite_symmetric: clearedHermite f q n is symmetric.exponent_bound: for n ≤ 9, i, j < n and r ≤ 22, i + j + r ≤ 38.Hermite matrices, root counting certificate, denominator-free, SVI, MSC 91G20, JEL G13
Above: what it imports. Below: what imports it.
Polynomial ℝ → (n : ℕ) → Matrix (Fin n) (Fin n) ℝ
ℓ times the companion matrix of f/ℓ, where ℓ = leadingCoeff f. Intended dimension: n = natDegree f, positive.
Polynomial ℝ → Polynomial ℝ → (n : ℕ) → Matrix (Fin n) (Fin n) ℝ
The finite-support version of formula (17). Correct denominator clearing requires i+j+r ≤ 38 on q.support, proved below for the SVI size bounds.
∀ (f q : Polynomial ℝ) (n : ℕ), (clearedHermite f q n).IsSymm
∀ n ≤ 9, ∀ (i j : Fin n), ∀ r ≤ 22, ↑i + ↑j + r ≤ 38
{n : ℕ} → Matrix (Fin n) (Fin n) ℝ → ℤCharacteristic coefficient sign rule. Its identification with spectral signature, including singular matrices, is proved in MatrixSignature.lean.
(P : Polynomial ℝ) → Fin 4 → Matrix (Fin (Polynomial.derivative P).natDegree) (Fin (Polynomial.derivative P).natDegree) ℝ
The four denominator-cleared Hermite matrices of P' with weights X²P², XP², X²P, XP.
Polynomial ℝ → ℤ
The signed combination of the four signature tests, which is four times badCriticalCount for a nonconstant polynomial of degree at most ten (matrixCountFour_eq).