Uniform indexed products of modular powers #
indexedPowerProduct p n j value multiplies value i raised to its list-addressed exponent
for i < n, using short binary addresses. Addresses at or above n contribute one, and missing
exponents default to zero. The evaluator uses modular powering and the total prime-field
product construction; it does not form unreduced powers or their full product.
indexedPowerProduct_mem proves the F_(a+3) bound for uniformly accessible F_a bases.
The modulus, arity and exponent list use binary natural encodings; the address width is the
unary bit-length of the arity. indexedPowerProduct_cast identifies the actual prime-field
product. At nonprime moduli the underlying product evaluator has its total zero default.
Ported from LeanCanny.CountingHierarchy.IndexedPowerProduct at lean-canny commit
970f28a5ecefc1327402ade16c068aa4b1b2c183, as a step toward uniform residue and trace evaluation.
The product bound reuses the existing counting-hierarchy products API.
Binary arity and binary power exponents cost three additional function levels. Only the bit-length of the binary arity is supplied to the short-index product evaluator.
Padded binary addresses enumerate precisely the genuine factors, including an empty product. Missing list entries have exponent zero; correctness imposes no list-length assumption.