Total dyadic summation on binary intervals #
dyadicRangeSum scales each natural numerator by 2 ^ B, divides by its denominator,
sums below a binary endpoint, and reduces modulo 2 ^ B. A zero denominator contributes
zero by natural division's total convention. No rational or represented integer is program data.
The precision is polynomial-time unary, so constructing the binary scale is charged.
Uniform F_a numerator and denominator evaluators give an F_(a+1) sum. Masking the numerator
outside a finite subset recovers the mathematical Cslib.dyadicResidueNumerator exactly.
Main definitions #
Cslib.Complexity.dyadicRangeSum: total natural dyadic numerator summation.
Main results #
Cslib.Complexity.CountingFunction.dyadicRangeSum_mem: one-level summation bound.Cslib.Complexity.dyadicRangeSum_restrict_eq: restriction to a finite residue set.
Zero-masking outside a finite subset agrees with the finite residue numerator. The denominators are the indices themselves; index zero uses the same total division default.
Uniform F_a numerators and denominators yield an F_(a+1) dyadic numerator sum. Unary precision pays for scale construction; the binary endpoint may have exponential value. Division, intermediate arithmetic, summation and the final binary remainder are all charged.