Documentation

CslibFrontier.Computability.Complexity.Classes.MIP.SumcheckVerifier

The scalar sumcheck verifier with a static bit proof #

The verifier receives its independent challenges on a binary tape. Each coefficient row is addressed by the external challenges and the preceding entries of the tape.

Main definitions #

Main results #

Verify the coefficient rows of a sumcheck claiming a zero Boolean-cube sum. Return the full challenge prefix, the final claim and the conjunction of the consistency checks.

The transcript verifier is strict oracle polynomial time, including against arbitrary stateful oracles. Its parameters and complete challenge tape may depend on the original input.

The transcript obtained by interpreting a static table at the actual public prefixes.

@[simp]
theorem Cslib.Complexity.MIP.SumcheckProof.transcript_nil (π : List Bool → Bool) (p : ℕ) (ext : List ℕ) (d w : ℕ) :
transcript π p ext d w [] = { challenges := [], claim := 0, ok := true }

The empty transcript starts at claim zero and has passed every check so far.

theorem Cslib.Complexity.MIP.SumcheckProof.transcript_snoc (π : List Bool → Bool) (p : ℕ) (ext : List ℕ) (d w r : ℕ) (rs : List ℕ) :
transcript π p ext d w (rs ++ [r]) = (transcript π p ext d w rs).advance p (row π ext (transcript π p ext d w rs).challenges d w) r

Appending one challenge advances the state from its prefix.

@[simp]
theorem Cslib.Complexity.MIP.SumcheckProof.transcript_challenges (π : List Bool → Bool) (p : ℕ) (ext : List ℕ) (d w : ℕ) (rs : List ℕ) :
(transcript π p ext d w rs).challenges = rs

Each round reveals its single new challenge after fixing its coefficient row.

theorem Cslib.Complexity.MIP.SumcheckProof.transcript_claim_lt (π : List Bool → Bool) {p : ℕ} (hp : 0 < p) (ext : List ℕ) (d w : ℕ) (rs : List ℕ) :
(transcript π p ext d w rs).claim < p

Every claim returned by a nonzero-modulus transcript is a canonical residue.

theorem Cslib.Complexity.MIP.SumcheckProof.run_verifyRounds (π : List Bool → Bool) (p : ℕ) (ext : List ℕ) (d w : ℕ) (rs : List ℕ) :
(Prover.ofProof π).run (verifyRounds p ext d w rs) () = PMF.pure (transcript π p ext d w rs, ())

Under a static proof, the word verifier computes precisely the prefix-dependent transcript.