Modular evaluation of an integer sign label #
The dyadic test evaluations contribute three counting levels. The denominator products and the sum of squares range over the unary number of tests, so they stay at that level. Products with one denominator omitted are evaluated directly, including when a denominator is zero.
The weighted fingerprint label uses binary-length addresses for its denominator products. Its evaluator agrees with the integer label at every prime. Beyond the dyadic tests it uses three levels for the products and one further level for the weighted sum.
Adapted from RootLabelModularEvaluation, RootLabelModularCorrectness, RootLabelEvaluation,
FingerprintModularCorrectness, and FingerprintModularEvaluation in lean-canny at commit
970f28a5ecefc1327402ade16c068aa4b1b2c183, using the precisions of the integer labels.
A unary number of cleared tests preserves the level F_(a+3) of the dyadic evaluations.
At every prime, the evaluator agrees with the integer sign label, including when some cleared denominators vanish. Only test and target values at genuine indices are needed.
Evaluate the cleared fingerprint label from addressed test residues. The test at
index zero qualifies the point and weight i attaches to test i + 1. Both the
common denominator and its omitted-factor products use binary factor counts.
A zero modulus is treated as one.
At every prime the addressed residue evaluator gives the integer fingerprint label. Only genuine test and weight indices need correct values, and denominators may vanish.
The full fingerprint evaluator is in CountingFunction (a + 7). The modulus,
precision, weight budget, and number of weighted tests are polynomial-time binary
parameters. Test residues are addressed at level a. The weights and target residue
can be supplied at level a + 6, the level of the cleared numerator products.