Documentation

CslibFrontier.Computability.Complexity.RealAlgebraic.QuotientTraceEvaluation

Uniform modular power traces of pure-power quotients #

Compute the trace of the actual normal-basis multiplication matrix by evaluating the finite residue of v^k times the Jacobian. The algorithm uses only uniform modular evaluations of v, the Jacobian and the relations; it constructs neither the quotient matrix nor its powers. Its correctness follows from the constructed residue evaluator and the algebraic trace identity, including multiple roots. The counting-function certificate costs five levels.

This is the generic trace-evaluation step from LeanCanny.CountingHierarchy.QuotientTraceEvaluation at lean-canny commit 970f28a5ecefc1327402ade16c068aa4b1b2c183. Constructing critical-system and Jacobian evaluation from a controlled input polynomial, and completing the real-counting endpoints, remain #6560.

noncomputable def Cslib.Complexity.RealAlgebraic.quotientTraceValue (p n ell B k : ℕ) (v J : List ℕ → ℕ) (r : ℕ → List ℕ → ℕ) :

Compute a power trace by the finite residue of v^k J. The Jacobian is evaluated as a polynomial, without a quotient matrix.

theorem Cslib.Complexity.RealAlgebraic.quotientTraceValue_cast {p n B k : ℕ} [Fact (Nat.Prime p)] (d : ℕ) (hd : 1 ≤ d) (r : Fin n → MvPolynomial (Fin n) (ZMod p)) (hr : ∀ (i : Fin n), (r i).totalDegree ≤ d) (v : MvPolynomial (Fin n) (ZMod p)) (hdeg : (v ^ k * MvPolynomial.PurePower.jacobian (d + 1) r).totalDegree ≤ B) (hcut : (d + 1) * (B + 1) + 1 < p) (value Jvalue : List ℕ → ℕ) (rvalue : ℕ → List ℕ → ℕ) (hvalue : ∀ s < p ^ n, ↑(value (gridPoint p n s)) = (MvPolynomial.eval fun (i : Fin n) => ↑((gridPoint p n s)[↑i]?.getD 0)) v) (hJvalue : ∀ s < p ^ n, ↑(Jvalue (gridPoint p n s)) = (MvPolynomial.eval fun (i : Fin n) => ↑((gridPoint p n s)[↑i]?.getD 0)) (MvPolynomial.PurePower.jacobian (d + 1) r)) (hrvalue : ∀ (i : Fin n), ∀ s < p ^ n, ↑(rvalue (↑i) (gridPoint p n s)) = (MvPolynomial.eval fun (j : Fin n) => ↑((gridPoint p n s)[↑j]?.getD 0)) (r i)) :
↑(quotientTraceValue p n (d + 1) B k value Jvalue rvalue) = ((MvPolynomial.PurePower.multiplicationMatrix ⋯ r ⋯) v ^ k).trace

The trace evaluator is correct for the actual normal-basis matrix, including repeated roots. Its prime cutoff ensures Fourier non-aliasing, so these primes exceed d + 1.