Coefficients from finite-field evaluations #
A polynomial of degree strictly below card K - 1 has its indexed
coefficients recovered by one weighted sum over the field. The exponent is
positive, so the zero evaluation point contributes zero and needs no special
case. Multivariate extraction takes one sum over the complete grid,
including the unique empty point at zero variables.
This module proves the algebraic identity; its short-index computation and counting-level bound are separate from the finite field's mathematical sum. Adapted from lean-canny.
Main results #
Polynomial.coeff_eq_neg_sum_eval: coefficient extraction by finite-field evaluations.Polynomial.coeff_eq_neg_sum_range_eval: the sum over prime-field natural representatives.MvPolynomial.coeff_eq_signed_sum_eval: simultaneous multivariate coefficient extraction.
One field sum recovers any coefficient below the multiplicative period.
The condition on k is independent of the actual degree, so coefficients
above the degree are correctly recovered as zero.
Simultaneous multivariate coefficient extraction uses one grid sum, rather than an input-dependent nesting of coefficient-extraction procedures. This includes zero variables and coefficient indices outside the polynomial support.