Documentation

CslibFrontier.Computability.Complexity.RealAlgebraic.PowerProductCoefficients

Coefficients of indexed polynomial power products #

powerProductCoefficient obtains a coefficient of v * ∏ i, r i ^ j i through modular access to v and the lower polynomials r i. It evaluates the indexed power product at each canonical grid point, then applies the existing multivariate coefficient extractor. It never constructs the full product polynomial or asks the caller to supply its coefficients.

Uniform F_a evaluation access gives an F_(a+4) coefficient evaluator. The variable count is unary so that grid points have polynomial encoded length; relation indices, field moduli, coefficient indices and power exponents remain binary. Missing list entries use the existing zero defaults. Correctness needs the Fourier degree bounds and access only at canonical finite-field grid points; the evaluator itself is total on all inputs.

Ported from LeanCanny.CountingHierarchy.PowerProductCoefficients at lean-canny commit 970f28a5ecefc1327402ade16c068aa4b1b2c183, as a step toward finite-residue evaluation.

noncomputable def Cslib.Complexity.RealAlgebraic.powerProductCoefficient (p n : ℕ) (β j : List ℕ) (v : List ℕ → ℕ) (r : ℕ → List ℕ → ℕ) :

Evaluate a coefficient of v * product r_i^j_i using modular products followed by one multivariate Fourier sum.

theorem Cslib.Complexity.RealAlgebraic.powerProductCoefficient_cast {p n : ℕ} [Fact (Nat.Prime p)] (v : MvPolynomial (Fin n) (ZMod p)) (r : Fin n → MvPolynomial (Fin n) (ZMod p)) (j : Fin n → ℕ) (e : Fin n →₀ ℕ) (β js : List ℕ) (value : List ℕ → ℕ) (rvalue : ℕ → List ℕ → ℕ) (hdeg : (v * ∏ i : Fin n, r i ^ j i).totalDegree < p - 1) (he : ∀ (i : Fin n), e i < p - 1) (hβ : ∀ (i : Fin n), β[↑i]?.getD 0 = e i) (hj : ∀ (i : Fin n), js[↑i]?.getD 0 = j i) (hv : ∀ s < p ^ n, ↑(value (gridPoint p n s)) = (MvPolynomial.eval fun (i : Fin n) => ↑((gridPoint p n s)[↑i]?.getD 0)) v) (hr : ∀ (i : Fin n), ∀ s < p ^ n, ↑(rvalue (↑i) (gridPoint p n s)) = (MvPolynomial.eval fun (k : Fin n) => ↑((gridPoint p n s)[↑k]?.getD 0)) (r i)) :
↑(powerProductCoefficient p n β js value rvalue) = (v * ∏ i : Fin n, r i ^ j i).coeff e

The evaluator computes the coefficient of the actual polynomial product. The access hypotheses are required only on canonical grid points and genuine relation indices.