Bounded shifts for polynomial root labels #
Scaling a real label by -4 * D reverses its sign, and adding a natural
number at most D preserves the reversed sign when the label has magnitude
at least one half. A shift in this range avoids zero on the enumerated roots
of a source polynomial of degree at most D.
Adapted from ShiftedRootTests in lean-canny at
970f28a5ecefc1327402ade16c068aa4b1b2c183.
A root test formed by scaling a label by -4 * D and adding a constant shift.
The shift does not increase degree. With D ≤ 2 ^ N, it costs at most
N + 3 additional bits in a power-of-two coefficient norm bound. The input bound on
D passes through directly, including when it comes from a quotient dimension.
Among D + 1 natural shifts, some shifted label is nonzero on p.aroots A
when p has degree at most D and A is a characteristic-zero domain.