One-counting-level coefficient extraction #
The evaluator receives a modulus, coefficient index, and uniform polynomial evaluation access. It sums weighted evaluations without expanding coefficients. Its fixed-level certificate holds on every input; algebraic correctness requires a prime exceeding the polynomial degree and the requested coefficient index by at least two. Degrees and coefficient indices may have exponential value.
Adapted from lean-canny.
Main definitions #
Cslib.Complexity.RealAlgebraic.coefficientResidue: weighted finite-field coefficient sum.
Main results #
Cslib.Complexity.RealAlgebraic.coefficientResidue_mem: one additional counting level.Cslib.Complexity.RealAlgebraic.coefficientResidue_eq_val: exact canonical coefficient residue.
References #
Uniform modular evaluations yield indexed coefficients at one higher function level. Both the modulus and index use binary encodings.
The total evaluator represents the actual polynomial coefficient in the field.
Correctness uses values only on the canonical representatives below p.
The returned natural is the canonical representative, including zero coefficients.