Modular evaluation of the dyadic sign product #
The factors in the dyadic sign product have short binary addresses. Their prime-field product adds three counting levels, and the final modular power preserves that level. Adding and subtracting the positive and reflected evaluations gives the cleared denominator and numerator used by the integer sign-label score.
Adapted from RationalSignEvaluation and SignTestEvaluation in lean-canny at commit
970f28a5ecefc1327402ade16c068aa4b1b2c183 for the common-scale factors of
Polynomial.dyadicSignProduct.
Evaluate the dyadic product with padded binary addresses and a shared power of two.
For a uniformly accessible test value at level F_a, binary width and precision
give a dyadic sign product at level F_(a+3).
The binary evaluator computes the common-scale integer polynomial at every prime.
Sum of the two reflected product evaluations, used as the cleared denominator.
Difference of the two reflected product evaluations, used as the cleared numerator.
The two cleared values preserve the common counting level of the dyadic products.
The cleared residues cast to the sum and difference used by the sign-label polynomial.