Translated coefficients in one additional counting level #
translatedCoefficientResidue uses the existing grid sum after polynomial-time modular
point translation. A uniform F_a evaluation oracle therefore yields an F_(a+1) coefficient
evaluator; the variable arity is unary and the modulus, exponents and coordinates are binary.
Correctness requires a prime field, total degree below p - 1, and each requested exponent
below p - 1. The same total function is certified on every input.
Adapted from lean-canny.
theorem Cslib.Complexity.RealAlgebraic.translatedCoefficientResidue_mem {α : Type} {enc : α ↪ List Bool} {a : ℕ} (E : Turing.MultiTapeTM.Decoder enc) {p n : α → ℕ} {β z : α → List ℕ} {value : α × List ℕ → ℕ} (hp : Turing.MultiTapeTM.ComputableInPolyTime p enc Turing.MultiTapeTM.encNat) (hn : Turing.MultiTapeTM.ComputableInPolyTime n enc Turing.MultiTapeTM.encUnary) (hβ : Turing.MultiTapeTM.ComputableInPolyTime β enc (Turing.MultiTapeTM.encList Turing.MultiTapeTM.encNat)) (hz : Turing.MultiTapeTM.ComputableInPolyTime z enc (Turing.MultiTapeTM.encList Turing.MultiTapeTM.encNat)) (hv :
value ∈ CountingFunction a (Turing.MultiTapeTM.encPair enc (Turing.MultiTapeTM.encList Turing.MultiTapeTM.encNat))
Turing.MultiTapeTM.encNat) :
(fun (w : α) => translatedCoefficientResidue (p w) (n w) (β w) (z w) fun (y : List ℕ) => value (w, y)) ∈ CountingFunction (a + 1) enc Turing.MultiTapeTM.encNat
theorem Cslib.Complexity.RealAlgebraic.translatedCoefficientResidue_cast {p n : ℕ} [Fact (Nat.Prime p)] (F : MvPolynomial (Fin n) (ZMod p)) (e : Fin n →₀ ℕ) (β z : List ℕ) (value : List ℕ → ℕ) (hF : F.totalDegree < p - 1) (he : ∀ (i : Fin n), e i < p - 1) (hβ : ∀ (i : Fin n), β[↑i]?.getD 0 = e i) (hv : ∀ (y : List ℕ), ↑(value y) = (MvPolynomial.eval fun (i : Fin n) => ↑(y[↑i]?.getD 0)) F) :
↑(translatedCoefficientResidue p n β z value) = ((MvPolynomial.shift fun (i : Fin n) => ↑(z[↑i]?.getD 0)) F).coeff e