An integer determinant criterion for qualifying characteristic roots #
For an integer matrix with separable characteristic polynomial over ℂ, a
short derivative-sign label and a bounded shift give a negative determinant
exactly when a qualifying real characteristic root exists.
Adapted from QuotientRootLabelCriterion in lean-canny at
970f28a5ecefc1327402ade16c068aa4b1b2c183, using the matrix directly.
theorem Matrix.exists_eval₂_pos_at_charpoly_root_iff_neg_shiftedRootLabel_det {ι : Type u_1} [Fintype ι] [DecidableEq ι] (M : Matrix ι ι ℤ) {q : Polynomial ℤ} {D N b : ℕ} (hD : 0 < D) (hcard : Fintype.card ι ≤ D) (hDN : D ≤ 2 ^ N) (hqD : q.natDegree ≤ D) (hMb : M.charpoly.coeffNorm1 ≤ 2 ^ b) (hqb : q.coeffNorm1 ≤ 2 ^ b) (hsep : (Polynomial.map (algebraMap ℤ ℂ) M.charpoly).Separable) :
(∃ (x : ℝ), Polynomial.eval₂ (Int.castRingHom ℝ) x M.charpoly = 0 ∧ 0 < Polynomial.eval₂ (Int.castRingHom ℝ) x q) ↔ ∃ (L : List (Fin D × SignType)),
L.length ≤ N ∧ ∃ e ≤ D,
((Polynomial.aeval M) (Polynomial.shiftedRootLabel D e (M.charpoly.sparseIntegerRootLabel q N b L))).det < 0
A real characteristic root at which q is positive exists exactly when
some short derivative-sign list and bounded natural shift give a negative
integer determinant of the shifted label evaluated at M.