Documentation

CslibFrontier.Computability.Complexity.Classes.MIP.Terminal

Checking the terminal sumcheck claim on a succinct decoder #

The verifier reads the three variable addresses from a raw circuit description. Each address selects field coordinates at the terminal sumcheck point and receives its own sampled line correction before the arithmetic comparison.

Main definitions #

Main results #

Check the claimed constraint value, correcting the assignment value at each of the three literal addresses selected by the raw decoder.

The corrected literal check is strictly polynomial-time given the raw succinct decoder, unary field size, precision and coordinate words, and a binary claim.

theorem Cslib.Complexity.MIP.run_checkTerminal_of_correct (π : List Bool → Bool) {p : ℕ} [Fact (Nat.Prime p)] {x : Succinct3CNFInstance} (c : Circuits.Circuit Circuits.Boolean.signature x.clauseBits (3 * (x.labelBits + 1))) (hc : c.code = x.code) (A : MvPolynomial (Fin x.labelBits) (ZMod p)) (r z : Fin (x.clauseBits + c.size) → ZMod p) (claim precision : ℕ) (hall : ∀ (j : Fin 3) (v : Fin x.labelBits → ZMod p), correctionAnswer π (literalPoint c z j) v = some ((MvPolynomial.eval (literalPoint c z j)) A).val) :
(Prover.ofProof π).run (checkTerminal x p precision (List.ofFn fun (i : Fin (x.clauseBits + c.size)) => (r i).val) (List.ofFn fun (i : Fin (x.clauseBits + c.size)) => (z i).val) claim) () = PMF.pure (decide ((MvPolynomial.eval z) (tableauConstraintPoly c A r) = ↑claim), ())

If every direction at each addressed literal gives the correct field value, the terminal check returns exactly the truth of the claimed polynomial identity.

theorem Cslib.Complexity.MIP.acceptProb_checkTerminal_of_wrong_claim (π : List Bool → Bool) {p : ℕ} [Fact (Nat.Prime p)] {x : Succinct3CNFInstance} (c : Circuits.Circuit Circuits.Boolean.signature x.clauseBits (3 * (x.labelBits + 1))) (hc : c.code = x.code) (A : MvPolynomial (Fin x.labelBits) (ZMod p)) (r z : Fin (x.clauseBits + c.size) → ZMod p) (claim precision : ℕ) (hp : x.labelBits + 1 < p) (hm : Code.IsMultilinear fun (y : Fin x.labelBits → ZMod p) => (MvPolynomial.eval y) A) (hclaim : (MvPolynomial.eval z) (tableauConstraintPoly c A r) ≠ ↑claim) :
acceptProb (checkTerminal x p precision (List.ofFn fun (i : Fin (x.clauseBits + c.size)) => (r i).val) (List.ofFn fun (i : Fin (x.clauseBits + c.size)) => (z i).val) claim) (Prover.ofProof π) ≤ 3 * ((↑x.labelBits + 1) * ↑(hammingDist (proofPoint π p) fun (y : Fin x.labelBits → ZMod p) => (MvPolynomial.eval y) A) / ↑p ^ x.labelBits + 1 / 2 ^ precision)

For any fixed bit proof, accepting a false claim costs at most three correction errors. Each error accounts for a multilinear disagreement and the finite sampling precision.