Modular evaluation of separated critical potentials #
Centers and potential summands use modular powers, including when the corresponding integer centers are exponentially large. Unary arity permits the bounded sum without expanding any large power. Correctness identifies the values with the actual separated potential polynomial.
Extracted from the center/potential portion of
LeanCanny.CountingHierarchy.CriticalNumericEvaluation
at lean-canny commit 970f28a5ecefc1327402ade16c068aa4b1b2c183. Specialization and root-label
bounds are separate later work under
#6560.
Compute a separated center without constructing its unreduced power.
One separated-potential summand, evaluated by modular powering.
theorem Cslib.Complexity.RealAlgebraic.criticalCenterResidue_polyTime {α : Type} {enc : α ↪ List Bool} {p ell i : α → ℕ} (hp : Turing.MultiTapeTM.ComputableInPolyTime p enc Turing.MultiTapeTM.encNat) (hell : Turing.MultiTapeTM.ComputableInPolyTime ell enc Turing.MultiTapeTM.encNat) (hi : Turing.MultiTapeTM.ComputableInPolyTime i enc Turing.MultiTapeTM.encNat) :
Turing.MultiTapeTM.ComputableInPolyTime (fun (w : α) => criticalCenterResidue (p w) (ell w) (i w)) enc
Turing.MultiTapeTM.encNat
theorem Cslib.Complexity.RealAlgebraic.criticalPotentialTermResidue_polyTime {α : Type} {enc : α ↪ List Bool} {p ell i x : α → ℕ} (hp : Turing.MultiTapeTM.ComputableInPolyTime p enc Turing.MultiTapeTM.encNat) (hell : Turing.MultiTapeTM.ComputableInPolyTime ell enc Turing.MultiTapeTM.encNat) (hi : Turing.MultiTapeTM.ComputableInPolyTime i enc Turing.MultiTapeTM.encNat) (hx : Turing.MultiTapeTM.ComputableInPolyTime x enc Turing.MultiTapeTM.encNat) :
Turing.MultiTapeTM.ComputableInPolyTime (fun (w : α) => criticalPotentialTermResidue (p w) (ell w) (i w) (x w)) enc
Turing.MultiTapeTM.encNat
theorem Cslib.Complexity.RealAlgebraic.criticalPotentialResidue_polyTime {α : Type} {enc : α ↪ List Bool} {p n ell : α → ℕ} {z : α → List ℕ} (hp : Turing.MultiTapeTM.ComputableInPolyTime p enc Turing.MultiTapeTM.encNat) (hn : Turing.MultiTapeTM.ComputableInPolyTime n enc Turing.MultiTapeTM.encUnary) (hell : Turing.MultiTapeTM.ComputableInPolyTime ell enc Turing.MultiTapeTM.encNat) (hz : Turing.MultiTapeTM.ComputableInPolyTime z enc (Turing.MultiTapeTM.encList Turing.MultiTapeTM.encNat)) :
Turing.MultiTapeTM.ComputableInPolyTime (fun (w : α) => criticalPotentialResidue (p w) (n w) (ell w) (z w)) enc
Turing.MultiTapeTM.encNat
The separated potential is polynomial-time computable with unary arity.
theorem Cslib.Complexity.RealAlgebraic.criticalPotentialResidue_cast {p n : ℕ} [Fact (Nat.Prime p)] (ell : ℕ) (z : List ℕ) :
↑(criticalPotentialResidue p n ell z) = (MvPolynomial.eval fun (i : Fin n) => ↑(z[↑i]?.getD 0))
(MvPolynomial.CriticalSystem.potentialPolynomial ell fun (i : Fin n) =>
↑(MvPolynomial.CriticalSystem.separatedCenters ell i))