Sequential soundness amplification for the 3-copy GMW zero-knowledge protocol #
This module sequentially composes k n independent executions of the 3-copy masked-3SAT GMW
protocol (CslibFrontier.Crypto.Computational.GMW.Protocol), where generator maps seeds of
length m to words of length length m. Perfect completeness (acceptProb = 1) is preserved for
every k. If 3 * m + 1 ≤ length m for all m, the soundness error drops from 1 / 3 to
(1 / 3) ^ (k n) against arbitrary unbounded stateful provers, again for every k.
Computational zero-knowledge is proved in
CslibFrontier.Crypto.Computational.GMW.Sequential.Simulator, which builds gmwSeqSimulator from
the single-session attempts of CslibFrontier.Crypto.Computational.GMW.Simulator and the
machine-slicing primitives of Section 2 below. It holds
against arbitrary uniform strict oracle PPT malicious verifiers when the map f from instances to
formulas is computable in polynomial time and k is computable in polynomial time in unary
(ComputableInPolyTime k encUnary encUnary), and it is conditional: under PseudorandomGenerator
it covers instance, witness and auxiliary-input families computable in polynomial time from the
unary parameter, and under AdvicePRG it covers arbitrary such families of polynomially bounded
length. In both cases the witnesses are valid ThreeSAT witnesses.
Main definitions #
Cslib.Crypto.GMW.seqStep,Cslib.Crypto.GMW.runSeq: multi-session deterministic state handler forksequential two-round GMW sessions.Cslib.Crypto.GMW.gmwSeqProver,Cslib.Crypto.GMW.gmwSeqInteract: honest sequential prover and itsProbCompinteraction realization.Cslib.Crypto.GMW.gmwSeqVerifier: sequentially amplified GMW verifier runninggmwVerifierk ntimes and accepting iff allk nexecutions accept.Cslib.Crypto.GMW.encBudgetedConfig: the encoding of a machine configuration with its remaining step and query budgets, the state ofoneSessionStep.
Main results #
Cslib.Crypto.GMW.isOraclePPTOn_gmwSeqVerifier:gmwSeqVerifierisIsOraclePPTOn.Cslib.Crypto.GMW.isPPTOn_gmwSeqInteract:gmwSeqInteractisIsPPTOn.Cslib.Crypto.GMW.acceptProb_gmwSeqVerifier_gmwSeqProver: perfect completeness (acceptProb = 1).Cslib.Crypto.GMW.acceptProb_replicate_all_le,Cslib.Crypto.GMW.acceptProb_gmwSeqVerifier_le: sequential soundness amplification (acceptProb ≤ (1 / 3) ^ (k n)).
Section 1: Sequential multi-session prover, verifier, completeness, and soundness #
Multi-session deterministic transition for sequential two-round GMW executions.
The state (inRound2, coinsList) tracks whether the current session is waiting for its first
query (false) or second query (true), together with the remaining list of per-session prover
ProverCoins. Once coinsList is exhausted, subsequent queries return [].
Run a WordOracleComp Unit program against seqStep with honest GMW reply functions inside
ProbComp.
The honest sequential GMW prover for k executions on a 3SAT formula φ and witness w.
On the first query it samples k independent ProverCoins from sampleHonestCoins s φ w and
answers up to k two-round sessions via seqStep.
The PPT program realizing gmwSeqProver's interaction with a verifier prog.
Encode the multi-session prover state (inRound2, coinsList).
gmwSeqInteract is uniform strict PPT whenever k is computable in polynomial time.
Completeness of the sequentially amplified GMW protocol. When
ThreeSAT.verifier (f a, w) = true, gmwSeqProver makes gmwSeqVerifier accept with
probability 1.
Sequential soundness amplification for interactive proofs. If no stateful prover makes
verifier accept with probability greater than c, then running verifier k times sequentially
and accepting iff all k executions accept has soundness error at most c ^ k against every
unbounded stateful prover P.
Soundness of the sequentially amplified GMW protocol. When f a ∉ ThreeSAT and
3 * m + 1 ≤ length m for all m, no unbounded stateful prover P makes gmwSeqVerifier
accept with probability greater than (1 / 3) ^ (k n).
Section 2: Query-budgeted machine slicing (sessionStep) #
Query handler for oneSessionStep: truncates the oracle reply to limit bits and
decrements the remaining query budget q by 1.
One step of the query-budgeted machine simulation: if both the remaining step budget rem
and query budget q are positive, executes one machine step via OpenOracleSimulation.step
with sessionQueryHandler limit and decrements rem; otherwise returns (rem, q, cfg)
unchanged.
Run machine for up to rem steps or until q oracle queries have been made,
truncating each oracle reply to limit bits, and returning the remaining step count and
finite configuration.
When rem ≤ q, the query budget q is never exhausted before rem steps, so
sessionStep produces the exact same output program as machine.finiteRunFrom with
limit-truncated replies.
Starting from FiniteConfig.init machine.initial word with T ≤ q, sessionStep
produces the exact same ProbOracleComp program as machine.runOracle T word.
Every finite configuration cfg satisfies FiniteConfig.SpaceBound L L 0 cfg where
L := (encFiniteConfig cfg).length.
One step of oneSessionStep preserves the countdown and FiniteConfig.SpaceBound.
State (rem, q, cfg) of oneSessionStep, with both budgets in unary: the remaining step
budget rem, the remaining query budget q, then the machine's finite configuration encoded by
encFiniteConfig. Both budgets are framed.
oneSessionStep is uniform strict oracle PPT.
sessionStep is uniform strict oracle PPT.
Every state reachable by sessionStep preserves the countdown and FiniteConfig.SpaceBound.
Running runSeq from the exhausted prover state (false, []) answers every query with [],
independently of generator, s, m, and φ.
Complete any remaining steps of a sliced machine run against the exhausted prover state
(false, []) and return the final output tape.
finishSessionRun is uniform strict PPT.
Any result in the support of runTwoRound lies in OracleComp.support prog.
An output that acceptGuess keeps from runTwoRound lies in OracleComp.support prog.
One session of the honest sequential execution on (rem, cfg) with fresh prover coins.
One session of the simulated sequential execution on (rem, cfg), repeating
gmwSimAttempt att times and falling back to st on failure.
Peeling K sessions of runSeq on sessionStep into OracleComp.iterate K realSessionStep
followed by running against fun _ => pure [].
gmwSeqInteract on a clocked machine run machine.runOracle T word has the exact same output
distribution as K iterations of realSessionStep followed by finishSessionRun.