Documentation

CslibFrontier.Foundations.Algebra.Polynomial.RealRoot.DerivativeFingerprint

Short derivative fingerprints for real roots #

A bounded prime and one field parameter determine weights that compress the positive-order derivative signs into an integer. The same weights distinguish every real root of a nonzero polynomial. The fingerprint of any prescribed root can serve as a target for a root label.

Adapted from LeanCanny.CountingHierarchy.FingerprintRootSelection and LeanCanny.Algebra.FiniteFeatureSeparator at 970f28a5ecefc1327402ade16c068aa4b1b2c183.

noncomputable def Polynomial.derivativeFingerprint (q : Polynomial ℝ) (D p t : ℕ) (x : ℝ) :

Weight the signs of derivative orders one through D by the least residues of powers of t modulo p. In particular, order one has weight 1 % p.

theorem Polynomial.natAbs_derivativeFingerprint_le (q : Polynomial ℝ) (D p t : ℕ) (x : ℝ) (hp : 0 < p) :

At a positive modulus, the target magnitude is at most the degree bound times the modulus.

theorem Polynomial.exists_derivativeFingerprint_injOn_roots (q : Polynomial ℝ) (hq : q ≠ 0) {D : ℕ} (hD : q.natDegree ≤ D) :
∃ (p : ℕ) (t : ℕ), Nat.Prime p ∧ 2 < p ∧ p ≤ 2 * (D ^ 3 + 2) ∧ t < p ∧ Set.InjOn (q.derivativeFingerprint D p t) {x : ℝ | q.IsRoot x}

A prime and a parameter with bit lengths logarithmic in D + 2 distinguish all real roots of a nonzero polynomial of degree at most D. Every prescribed real root has a unique integer fingerprint for this choice of parameters.