Documentation

CslibFrontier.Computability.Complexity.RealAlgebraic.QuotientCharacteristicEvaluation

Characteristic coefficients and determinants of pure-power quotients #

quotientCharacteristicValue composes the constructed modular power-trace evaluator with trace-to-characteristic reconstruction. Uniform F_a evaluation access to the objective, Jacobian, and relation polynomials gives an F_(a+8) coefficient evaluator. It builds neither the quotient multiplication matrix nor a list of its exponentially many entries or traces. The variable count is unary; the modulus, relation exponent, degree budget and requested coefficient address are binary. Above the quotient dimension the total evaluator returns zero.

At a sufficiently large prime, canonical grid-point evaluations of those polynomials suffice for correctness against the characteristic polynomial of the actual normal-monomial multiplication matrix. The degree budget is needed only for positive powers through the dimension. Coefficient specialization before evaluation gives the reduction of the source characteristic coefficient over any commutative coefficient ring. The signed constant coefficient gives the determinant at the same counting level.

Adapted from LeanCanny.CountingHierarchy.QuotientCharacteristicEvaluation, QuotientCharacteristicSpecialization, and QuotientDeterminantEvaluation at lean-canny commit 970f28a5ecefc1327402ade16c068aa4b1b2c183, as a component of the real-counting development tracked by #6560.

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

The entire trace-to-characteristic computation uses only polynomial evaluations and short binary indices.

Uniform polynomial evaluations in F_a give actual quotient characteristic coefficients in F_(a+8), without a trace oracle.

theorem Cslib.Complexity.RealAlgebraic.quotientCharacteristicValue_eq {p n B m : ℕ} [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 : ∀ (k : ℕ), 1 ≤ k → k ≤ (d + 1) ^ n → (v ^ k * MvPolynomial.PurePower.jacobian (d + 1) r).totalDegree ≤ B) (hcut : (d + 1) * (B + 1) + 1 < p) (hdegree : (d + 1) ^ n * (d + 1) ^ n < p - 1) (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)) :
quotientCharacteristicValue p n (d + 1) B m value Jvalue rvalue = (((MvPolynomial.PurePower.multiplicationMatrix ⋯ r ⋯) v).charpoly.coeff m).val

Compute the characteristic coefficient of the actual normal-basis multiplication matrix. Only positive powers need numerator-degree and trace correctness bounds; the zero trace slot is ignored. The single dimension cutoff also guarantees the denominator inverses.

theorem Cslib.Complexity.RealAlgebraic.quotientCharacteristicValue_eq_specialization {S : Type u_1} [CommRing S] {p n B m : ℕ} [Fact (Nat.Prime p)] (φ : S →+* ZMod p) (d : ℕ) (hd : 1 ≤ d) (r : Fin n → MvPolynomial (Fin n) S) (hr : ∀ (i : Fin n), (r i).totalDegree ≤ d) (v : MvPolynomial (Fin n) S) (hdeg : ∀ (k : ℕ), 1 ≤ k → k ≤ (d + 1) ^ n → (v ^ k * MvPolynomial.PurePower.jacobian (d + 1) r).totalDegree ≤ B) (hcut : (d + 1) * (B + 1) + 1 < p) (hdegree : (d + 1) ^ n * (d + 1) ^ n < p - 1) (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)) ((MvPolynomial.map φ) v)) (hJvalue : ∀ s < p ^ n, ↑(Jvalue (gridPoint p n s)) = (MvPolynomial.eval fun (i : Fin n) => ↑((gridPoint p n s)[↑i]?.getD 0)) ((MvPolynomial.map φ) (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)) ((MvPolynomial.map φ) (r i))) :
quotientCharacteristicValue p n (d + 1) B m value Jvalue rvalue = (φ (((MvPolynomial.PurePower.multiplicationMatrix ⋯ r ⋯) v).charpoly.coeff m)).val

Evaluating the specialized polynomials gives the source matrix's characteristic coefficient reduced by φ. The coefficient ring may itself be a polynomial ring in deformation parameters. The same cutoff and uniform evaluator apply even when φ is noninjective.

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

Evaluate the integer-residue determinant by signing the constant characteristic coefficient.

theorem Cslib.Complexity.RealAlgebraic.quotientDeterminantValue_cast {S : Type u_1} [CommRing S] {p n B : ℕ} [Fact (Nat.Prime p)] (φ : S →+* ZMod p) (d : ℕ) (hd : 1 ≤ d) (r : Fin n → MvPolynomial (Fin n) S) (hr : ∀ (i : Fin n), (r i).totalDegree ≤ d) (v : MvPolynomial (Fin n) S) (hdeg : ∀ (k : ℕ), 1 ≤ k → k ≤ (d + 1) ^ n → (v ^ k * MvPolynomial.PurePower.jacobian (d + 1) r).totalDegree ≤ B) (hcut : (d + 1) * (B + 1) + 1 < p) (hdegree : (d + 1) ^ n * (d + 1) ^ n < p - 1) (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)) ((MvPolynomial.map φ) v)) (hJvalue : ∀ s < p ^ n, ↑(Jvalue (gridPoint p n s)) = (MvPolynomial.eval fun (i : Fin n) => ↑((gridPoint p n s)[↑i]?.getD 0)) ((MvPolynomial.map φ) (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)) ((MvPolynomial.map φ) (r i))) :
↑(quotientDeterminantValue p n (d + 1) B value Jvalue rvalue) = φ ((MvPolynomial.PurePower.multiplicationMatrix ⋯ r ⋯) v).det

At a prime satisfying the quotient coefficient cutoffs, specialized polynomial evaluation recovers the image of the original multiplication determinant.