Documentation

CslibFrontier.Computability.Complexity.RealAlgebraic.FormulaGateCoefficientSign

Signs of indexed formula gate coefficients #

The gate coefficient norm and prime interpolation cutoff give the bounds needed by Frontier's residue-sign theorem. This composes the residue access of the indexed family in LeanCanny.ETR.FormulaAtomPolynomials.access at lean-canny 970f28a5ecefc1327402ade16c068aa4b1b2c183 with sign recovery. The coordinate-value computation for the critical-point family remains open.

theorem Cslib.Complexity.RealAlgebraic.formulaWordGateCoefficientSign_mem {α : Type} {enc : α ↪ List Bool} {a : ℕ} (D : Turing.MultiTapeTM.Decoder enc) {word : α → List Bool} (coordinates : (w : α) → Fin (word w).length → Polynomial (Polynomial ℤ)) {gate i j inner outer massExponent pointCutoff : α → ℕ} {point : (α × ℕ) × ℕ → List ℕ} (hword : Turing.MultiTapeTM.ComputableInPolyTime word enc Turing.MultiTapeTM.encBits) (hgate : Turing.MultiTapeTM.ComputableInPolyTime gate enc Turing.MultiTapeTM.encNat) (hi : Turing.MultiTapeTM.ComputableInPolyTime i enc Turing.MultiTapeTM.encNat) (hj : Turing.MultiTapeTM.ComputableInPolyTime j enc Turing.MultiTapeTM.encNat) (hinner : Turing.MultiTapeTM.ComputableInPolyTime inner enc Turing.MultiTapeTM.encNat) (houter : Turing.MultiTapeTM.ComputableInPolyTime outer enc Turing.MultiTapeTM.encNat) (hmass : Turing.MultiTapeTM.ComputableInPolyTime massExponent enc Turing.MultiTapeTM.encNat) (hcutoff : Turing.MultiTapeTM.ComputableInPolyTime pointCutoff enc Turing.MultiTapeTM.encNat) (hpoint : point ∈ CountingFunction a (Turing.MultiTapeTM.encPair (Turing.MultiTapeTM.encPair enc Turing.MultiTapeTM.encNat) Turing.MultiTapeTM.encNat) (Turing.MultiTapeTM.encList Turing.MultiTapeTM.encNat)) (hinnerBound : ∀ (w : α) (k : Fin (word w).length), (Polynomial.Bivariate.swap (coordinates w k)).natDegree ≤ inner w) (houterBound : ∀ (w : α) (k : Fin (word w).length), (coordinates w k).natDegree ≤ outer w) (hmassBound : ∀ (w : α) (k : Fin (word w).length), (coordinates w k).bivariateCoeffNorm1 ≤ 2 ^ massExponent w) (hpointEq : ∀ (w : α) (p : ℕ), Nat.Prime p → pointCutoff w < p → ∀ z < p, ∀ (k : Fin (word w).length), ↑((point ((w, p), z))[↑k]?.getD 0) = (Polynomial.aevalAeval (↑z) (↑z ^ formulaWordGateKroneckerRadix (word w) (inner w))) (coordinates w k)) :
(fun (w : α) => (((Logic.RealArithmetic.formulaWordGatePolynomial (word w) (gate w) (coordinates w)).coeff (j w)).coeff (i w)).sign) ∈ CountingFunction (max (a + 1) 5 + 3) enc Turing.MultiTapeTM.encIntBin

An indexed substituted gate coefficient has a sign computation at level max (a + 1) 5 + 3 when its coordinate evaluator at Kronecker points has level a. The word and all numeric bounds and indices use raw bit strings and binary naturals. The coordinate query receives an instance, a binary modulus and a binary field element, and returns a framed list of binary residues. Its semantic guarantee is only needed at primes above the supplied coordinate cutoff and at the canonical field representatives.