Documentation

CslibFrontier.Computability.Complexity.Classes.MIP.ConstraintCheck

Checking the final arithmetized constraint with three local corrections #

A succinct clause has three literals. The verifier rejects any failed local correction and substitutes three successful values into the modular evaluator for the tableau polynomial. If the sumcheck claim differs from the ideal polynomial evaluation, acceptance requires at least one erroneous local correction.

Main definitions #

Main results #

def Cslib.Complexity.MIP.literalPoint {Q L : ℕ} {F : Type} (c : Circuits.Circuit Circuits.Boolean.signature Q (3 * (L + 1))) (z : Fin (Q + c.size) → F) (j : Fin 3) :
Fin L → F

The assignment-table address embedded in a vector of circuit wire values for literal j.

def Cslib.Complexity.MIP.checkConstraintClaim (p Q : ℕ) (gates : List (Circuits.Boolean.Op × List ℕ)) (r z signs : List ℕ) (claim : ℕ) (v : Fin 3 → Option ℕ) :

Corrected evaluations of the three literals are required before testing the arithmetic claim.

Run the three local corrections, then compare the claimed value with the constraint.

theorem Cslib.Complexity.MIP.acceptProb_verifyConstraint_of_wrong_claim (π : List Bool → Bool) {p Q L : ℕ} [NeZero p] (c : Circuits.Circuit Circuits.Boolean.signature Q (3 * (L + 1))) (A : MvPolynomial (Fin L) (ZMod p)) (r z : Fin (Q + c.size) → ZMod p) (claim : ℕ) (hclaim : (MvPolynomial.eval z) (tableauConstraintPoly c A r) ≠ ↑claim) (read : Fin 3 → Probability.WordOracleComp Unit (Option ℕ)) (error : ENNReal) (hread : ∀ (j : Fin 3), (PMF.map Prod.fst ((Prover.ofProof π).run (read j) ())).toOuterMeasure {o : Option ℕ | ∃ (y : ℕ), o = some y ∧ y ≠ ((MvPolynomial.eval (literalPoint c z j)) A).val} ≤ error) :
acceptProb (verifyConstraint p Q c.code.1 (List.ofFn fun (i : Fin (Q + c.size)) => (r i).val) (List.ofFn fun (i : Fin (Q + c.size)) => (z i).val) (List.ofFn fun (j : Fin 3) => (c.outputs (Circuits.Boolean.SuccinctVerifier.signWire L j)).toNat) claim read) (Prover.ofProof π) ≤ 3 * error

If the terminal claim is wrong, acceptance has probability at most the sum of the error bounds of the three correction queries. An explicitly rejected query contributes no error.

theorem Cslib.Complexity.MIP.run_verifyConstraint_of_correct (π : List Bool → Bool) {p Q L : ℕ} [NeZero p] (c : Circuits.Circuit Circuits.Boolean.signature Q (3 * (L + 1))) (A : MvPolynomial (Fin L) (ZMod p)) (r z : Fin (Q + c.size) → ZMod p) (claim : ℕ) (read : Fin 3 → Probability.WordOracleComp Unit (Option ℕ)) (hread : ∀ (j : Fin 3), (Prover.ofProof π).run (read j) () = PMF.pure (some ((MvPolynomial.eval (literalPoint c z j)) A).val, ())) :
(Prover.ofProof π).run (verifyConstraint p Q c.code.1 (List.ofFn fun (i : Fin (Q + c.size)) => (r i).val) (List.ofFn fun (i : Fin (Q + c.size)) => (z i).val) (List.ofFn fun (j : Fin 3) => (c.outputs (Circuits.Boolean.SuccinctVerifier.signWire L j)).toNat) claim read) () = PMF.pure (decide ((MvPolynomial.eval z) (tableauConstraintPoly c A r) = ↑claim), ())

Three successful, correct local evaluations yield the same verdict as the ideal sumcheck final comparison, including when the encoded claim is not the canonical representative.