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.
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.
At a positive modulus, the target magnitude is at most the degree bound times the modulus.
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.