Integer polynomial labels for sparse real-root selectors #
A fixed-width family contains a distinguished positive test and a short list of
derivative signs. An integer polynomial realizes these tests at every real root.
Its degree and coefficient norm have uniform bounds. If a qualifying root
exists and the source degree is at most 2 ^ N, a list of at most N derivative
tests makes the label positive at one qualifying root and negative at every
other real root.
Adapted from DerivativeRootLabels and SparseIntegerRootLabels in lean-canny
at commit 970f28a5ecefc1327402ade16c068aa4b1b2c183.
The qualifying polynomial and its positive target occupy slot zero. The next N
slots contain derivatives of p and their targets from L. Missing slots test zero.
The integer polynomial encoding the qualifying test and the first N derivative tests.
The degree and norm bounds are uniform over the list and its target signs.
At a real root, the label has magnitude at least one half and is positive exactly when the qualifying test is positive and every listed derivative sign matches.
If some real root has a positive qualifying test, a label from at most N derivative
tests is positive at one such root and negative at every other real root.