Pointwise reduction and zero-knowledge simulation for the 3-copy GMW protocol #
gmwViewReduction is one uniform PRG-challenge test whose ordinary input contains the unary
security parameter, instance, witness, auxiliary word and challenge. For every valid tuple,
gmwView_advantage_le bounds the real/simulated view advantage by
(7 / 8) ^ (n + 1) plus dyadicSize (n + 1) * dyadicSize (totalLen (f a)) times this test's
PRG advantage at seed parameter n + 7. No security or efficient-generation assumption is used
in that finite bound. The final view test receives the instance and auxiliary word in both games.
The simulator gmwSimulator remains witness-free.
isPPTOn_gmwViewReduction charges the complete encoded input, both hybrid selections, all
surrounding samples and the malicious verifier's adaptive computation and retained private state.
The existing uniform-family theorem gmwView_indistinguishable_gmwSimulator follows from this
finite bound and certificate under uniform PRG security, for deterministic polynomial-time
instance/witness/auxiliary families.
gmwView_negligible_of_advice_prg instead permits arbitrary families with three separate
polynomial encoding-length bounds, under AdvicePRG: a PRG premise, novel to this library, against
uniform full-input tests supplied those families as advice. It follows from a nonuniform PRG
(Cslib.Crypto.NonuniformPRG.advicePRG), and is not known to follow from uniform one-wayness.
Unbounded auxiliary input with a clock independent of its length, witness-level Levin reductions,
and sequential soundness amplification remain separate.
The proof uses four distribution transformations:
- Guess a uniform 3-bit challenge in each of
n + 1independent attempts. Each attempt is the honest view tagged by an independentguessCoin(eval_game0), so the shared retry boundGame.advantage_bind_firstSuccess_replicate_lecharges(7 / 8) ^ (n + 1). - Factor the commitment seeds into active seeds and pseudorandom unopened pads without
changing the attempt distribution (
eval_game0Pads_eq_eval_game0). - Apply
sequenceTest_advantageonce to attempts and once to unopened pads. The resulting product of dyadic-range losses is exact (gmwViewReduction_advantage), including zero pads. - Uniform unopened pads eliminate the witness from each attempt
(
eval_game1_eq_eval_gmwSimAttempt), giving the existing witness-free simulator.
Main definitions #
Cslib.Crypto.GMW.game0: one guessed-challenge attempt of the honest prover.Cslib.Crypto.GMW.guessCoin: the law of a uniform 3-bit guess hitting the challenge.Cslib.Crypto.GMW.gmwRealWithPads: a guessed-challenge attempt with supplied unopened pads.Cslib.Crypto.GMW.gmwRealPRGPads,Cslib.Crypto.GMW.gmwRealUniformPads: its two pad sources.Cslib.Crypto.GMW.gmwViewReduction: the single-challenge pointwise reduction.Cslib.Crypto.GMW.AdvicePRG: advice-supplied PRG premise at seed sizen + 7for arbitrary polynomially bounded instance, witness, and auxiliary-input families; novel to this library, and implied by a nonuniform PRG.
Main results #
Cslib.Crypto.GMW.gmwView_advantage_le: unconditional finite view-advantage reduction.Cslib.Crypto.GMW.isPPTOn_gmwViewReduction: strict full-input polynomial-time certificate.Cslib.Crypto.GMW.gmwView_negligible_of_advice_prg: the stronger advice-PRG consequence.Cslib.Crypto.GMW.gmwView_indistinguishable_gmwSimulator: the existing uniform-family result.
References #
Step 1: Replacing the verifier's challenge in runTwoRound by a random guess #
Whether a uniform 3-bit guess hits the challenge [false, false, false]. By symmetry it has
the law of a guess hitting any fixed 3-bit challenge (uniformList_map_beq_eq_guessCoin).
A uniform 3-bit guess misses a fixed challenge with probability 7 / 8.
Single-attempt hybrid 0: guess a 3-bit challenge ch_guess, sample honest prover coins, run
prog against honestReply1 and fun _ => honestReply2 ... ch_guess, and return the verifier's
output when its challenge equals ch_guess.
An attempt of hybrid 0 returns the honest view tagged by an independent guessCoin: answering
the guessed challenge instead of the verifier's leaves the accepted views unchanged.
Step 2: Introducing unopened pads via naorSelectPads #
Run one attempt with pre-sampled unopened pads pads and active flags
allOpenFlags φ ch_guess bits.
Masking unopened committed bits and eliminating the witness #
A pointwise finite reduction #
A single PRG-challenge test for the complete GMW view. The ordinary input is the security
parameter n, instance a, witness w, auxiliary word z, and PRG challenge. Two independently
sampled dyadic indices select an attempt and an unopened pad. The remaining attempts and pads
are generated by this program, including the verifier's adaptive queries and private randomness.
The simulator remains witness-free; only the reduction is given w. No security or validity
assumption is needed to define this program. Its PRG challenge has seed parameter n + 7.
Pointwise finite GMW view reduction for every valid instance, witness and auxiliary word.
The two dyadic factors are exact hybrid losses; the remaining term bounds failure of all
n + 1 challenge guesses. The PRG challenge uses the protocol's shifted seed size n + 7.
This is an unconditional reduction identity and statistical bound, not a PRG-security premise.
In particular no efficient generation of a, w or z is assumed. The test receives the same
public instance and auxiliary word in both views, and the simulator receives no witness.
The reduction has a strict uniform clock polynomial in its entire ordinary input. In
particular the encoded witness and auxiliary word are charged, without requiring either to be
generated efficiently from n. The certificate includes both hybrid indices, all surrounding
samples, and the verifier interaction; the verifier may retain its private coins in its output.
The advice-PRG premise of the GMW auxiliary-input steps. This assumption is novel to this
library: no cited source states it. For an instance encoding enc, generator has output length
length, is computable in polynomial time, and its output at seed length n + 7 is
indistinguishable from uniform strings of length length (n + 7) against every full-input uniform
strict PPT test that also reads arbitrary polynomially bounded instance, witness and
auxiliary-input families (a, w, z).
Relation to standard assumptions. It follows from a nonuniform pseudorandom generator
(NonuniformPRG.advicePRG), so a nonuniform one-way function yields a generator satisfying it
(NonuniformOneWay.exists_nonuniformPRG_three_mul). That is how the library's
Goldreich–Micali–Wigderson theorem, NonuniformOneWay.exists_zkProof_of_mem_NP, discharges it.
It is not known to follow from a uniform PseudorandomGenerator or a uniform OneWay function:
the families are arbitrary, so the tests it covers are nonuniform.
Why it is plausible. It is the special case of nonuniform PRG security in which the advice is
the tuple (a n, w n, z n) and the seed length is shifted by 7; any generator secure against
tests with polynomially bounded advice satisfies it.
AdvicePRG covers any uniform strict PPT challenge test taking an auxiliary advice value
aux n : γ under an arbitrary encoding encAux : γ ↪ List Bool, via
IsPPTOn.exists_bool_factor.
Under AdvicePRG enc generator length, the real GMW interaction view and gmwSimulator
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.
Auxiliary-input consequence under an explicitly stronger PRG premise. The three families
may be arbitrary, subject to their separate polynomial encoding-length bounds. hPRG supplies
those families as ordinary advice to every full-input PPT challenge test, at seed size n + 7.
It is not a consequence established here of uniform PRG security or uniform one-wayness.
Both the verifier and final test have clocks polynomial in their complete encoded inputs. This does not cover unbounded auxiliary words with clocks bounded only in the security parameter and common-input length. Witness-level Levin reductions and sequential amplification are separate from this single-execution masked-3SAT view theorem.
Zero-knowledge simulation of the 3-copy 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 real interaction view of Vstar with
gmwProver is computationally indistinguishable from gmwSimulator.