Multi-session zero-knowledge simulator and PRG reduction for sequentially amplified GMW #
This module constructs the multi-session zero-knowledge simulator gmwSeqSimulator and the
single-challenge PRG reduction gmwSeqViewReduction for the k n-fold sequentially composed GMW
protocol (CslibFrontier.Crypto.Computational.GMW.Sequential).
Given any uniform strict oracle PPT malicious verifier Vstar (IsOraclePPTOn), we extract its
clocked multi-tape probabilistic oracle Turing machine and run k n sequential sessions on its
configuration state (rem, cfg) via sessionStep, followed by finishSessionRun to complete any
remaining machine steps after the k n sessions are exhausted.
Because all k n * ((n + 1) * totalLen (f a)) unopened commitment pads across the k n sessions
and n + 1 challenge-guessing attempts per session are drawn independently of the adaptive machine
state, we flatten all unopened pads into a single list pre-sampled via OracleComp.replicate and
consume totalLen (f a) pads per attempt via List.take and List.drop (attemptWithPadsStep,
sessionWithPadsStep, runAllSessionsWithPads). Applying sequenceTest once to this flat pad
sequence yields the single-challenge reduction gmwSeqViewReduction with exact dyadic hybrid loss
dyadicSize (k n * ((n + 1) * totalLen (f a))) and multi-session rejection-sampling error at most
(k n : ℝ≥0) * (7 / 8) ^ (n + 1).
Main definitions #
Cslib.Crypto.GMW.realPRGPadsSessionStep: single-session hybrid repeatinggmwRealPRGPadsatttimes with fallbackst.Cslib.Crypto.GMW.attemptWithPadsStep,Cslib.Crypto.GMW.sessionWithPadsStep,Cslib.Crypto.GMW.runAllSessionsWithPads: pre-sampled pad consumption across attempts and sessions.Cslib.Crypto.GMW.gmwSeqSimulator: witness-free multi-session simulator for any uniform strict oracle PPT malicious verifierVstar.Cslib.Crypto.GMW.gmwSeqViewReduction: single-challenge PRG distinguisher for thek n-session view hybrid.
Main results #
Cslib.Crypto.GMW.gmwSeqView_advantage_le: unconditional finite multi-session view-advantage bound.Cslib.Crypto.GMW.isPPTOn_gmwSeqSimulator: strict full-input PPT certificate forgmwSeqSimulator.Cslib.Crypto.GMW.isPPTOn_gmwSeqViewReduction: strict full-input PPT certificate forgmwSeqViewReduction.Cslib.Crypto.GMW.AdvicePRG.gmwSeqView_negligible: auxiliary-input zero-knowledge view indistinguishability underAdvicePRG.Cslib.Crypto.GMW.gmwSeqView_indistinguishable_gmwSeqSimulator: uniform-family view indistinguishability underPseudorandomGenerator.
Step 1: Multi-session rejection-sampling hybrid #
One session of the intermediate hybrid on (rem, cfg), repeating gmwRealPRGPads att
times and falling back to st on failure.
An attempt of the intermediate hybrid is an honest session tagged by an independent
guessCoin.
Across K sequential sessions, replacing realSessionStep with realPRGPadsSessionStep
changes the acceptance probability of any post-processing game post by at most
(K : ℝ≥0) * (7 / 8) ^ att.
Step 2: Flattening unopened pads across attempts and sessions #
One attempt of a session consuming totalLen φ pre-sampled pads from state.2 and updating
the first-success accumulator state.1.
One session of att attempts consuming att * totalLen φ pre-sampled pads from state.2 and
updating the machine configuration state.1.
Run all K sessions on a pre-sampled flat list of pads, starting from the initial machine
configuration (limit, FiniteConfig.init machine.initial word), and finish with
finishSessionRun.
Step 3: Strict polynomial-time certificates for session and multi-session loops #
Step 4: Multi-session simulator gmwSeqSimulator and reduction gmwSeqViewReduction #
Witness-free multi-session simulator for the k n-fold sequentially composed GMW protocol.
For any uniform strict oracle PPT malicious verifier Vstar (IsOraclePPTOn), it extracts a
realizing multi-tape probabilistic oracle Turing machine and polynomial clock, executes k n
sequential simulated sessions (simSessionStep with n + 1 attempts per session) on the machine
configuration, and finishes any remaining machine steps with finishSessionRun.
gmwSeqSimulator is a uniform strict PPT program whenever generator, f, and k are
polynomial-time computable and Vstar is uniform strict oracle PPT.
Single-challenge PRG distinguisher for the k n-session GMW view hybrid.
It uses sequenceTest to splice challenge into the flat sequence of
k n * ((n + 1) * totalLen (f a)) unopened pads, runs runAllSessionsWithPads on the verifier's
realizing machine, and passes the resulting view to adversary n a z.
Pointwise finite multi-session GMW view reduction for every valid instance, witness, and
auxiliary word. Across k n sequential executions, the distinguishing advantage between the real
view of any uniform strict oracle PPT malicious verifier Vstar and gmwSeqSimulator is bounded
by (k n : ℝ≥0) * (7 / 8) ^ (n + 1) plus dyadicSize (k n * ((n + 1) * totalLen (f a))) times
the PRG advantage of gmwSeqViewReduction at seed length n + 7.
gmwSeqViewReduction has a strict uniform clock polynomial in its complete encoded input
((1^n, (a, (w, z))), challenge).
Under AdvicePRG enc generator length, the k n-session real GMW interaction view and
gmwSeqSimulator have negligible distinguishing advantage against every full-input uniform strict
PPT distinguisher across all polynomially bounded valid instance, witness, verifier-auxiliary, and
distinguisher-auxiliary families.
Zero-knowledge simulation of the sequentially amplified GMW protocol. For any uniform strict
oracle PPT malicious verifier Vstar and any deterministic polynomial-time families of instances
a, valid ThreeSAT witnesses w, and auxiliary inputs z, the k n-session real interaction
view of Vstar with gmwSeqProver is computationally indistinguishable from
gmwSeqSimulator.