Soundness-amplified ZKProof builders for NP with uniform generable zero knowledge #
This module packages the k n-fold sequential repetition of the masked-3SAT protocol from
CslibFrontier.Crypto.Computational.GMW.Sequential and its witness-free simulator from
CslibFrontier.Crypto.Computational.GMW.Sequential.Simulator into ZKProof systems with soundness
error (1 / 3) ^ (k n) and uniform GenerableZeroKnowledge only (zero knowledge restricted to
(instance, witness) families generated from 1^n in deterministic polynomial time, #6044, rather
than Goldreich's auxiliary-input GMW theorem of [Gol98], Definition 4.3.8 and
Theorem 4.4.10, proved under nonuniform one-way functions in
Cslib.Crypto.NonuniformOneWay.exists_zkProof_of_mem_NP and
Cslib.Crypto.NonuniformOneWay.exists_zkProof_of_npRelation):
Cslib.Crypto.PseudorandomGenerator.zkProofOfReduction: for any polynomial-time Karp reductionf : α → CNF ℕtoThreeSATand any polynomial-time repetition schedulek : ℕ → ℕ, aZKProof enc A (fun n => (1 / 3) ^ (k n))with perfect completeness, soundness(1 / 3) ^ (k n)against computationally unbounded stateful provers, and uniformGenerableZeroKnowledgeonly (#6044). UnderGMW.AdvicePRG enc generator length, a premise novel to this library, it satisfiesZKProof.AuxiliaryInputZeroKnowledge(PseudorandomGenerator.auxiliaryInputZeroKnowledge_zkProofOfReduction_of_advicePRG).Cslib.Crypto.PseudorandomGenerator.zkProofThreeSAT: specialization toThreeSATat repetition schedulek n := n + 1, with soundness(1 / 3) ^ (n + 1)(ZKProof.NegligibleSoundness) and uniformGenerableZeroKnowledgeonly (#6044).Cslib.Crypto.PseudorandomGenerator.levinZKProof: for any NP relationRand Levin reductionr : LevinReduction R ThreeSAT.npRelation, aZKProof enc R.language (fun n => (1 / 3) ^ (k n))with uniformGenerableZeroKnowledgeonly (#6044) whose honest prover usesR's own witnesses (isWitness a w := decide (R.IsWitness a w)), satisfyingZKProof.AuxiliaryInputZeroKnowledgeunderGMW.AdvicePRG.Cslib.Crypto.PseudorandomGenerator.exists_generableZKProof_of_mem_NP,Cslib.Crypto.PseudorandomGenerator.exists_generableZKProof_of_npRelation,Cslib.Crypto.OneWay.exists_generableZKProof_of_mem_NP, andCslib.Crypto.OneWay.exists_generableZKProof_of_npRelation: uniform existential endpoints at schedulek n := n + 1givingZKProof.NegligibleSoundnessand uniformGenerableZeroKnowledgeonly (#6044; not auxiliary-input GMW).Cslib.Crypto.PseudorandomGenerator.exists_auxiliaryInputZKProof_of_mem_NP_of_advicePRG,Cslib.Crypto.PseudorandomGenerator.exists_auxiliaryInputZKProof_of_npRelation_of_advicePRG: steps toward the auxiliary-input GMW theorem, addingZKProof.AuxiliaryInputZeroKnowledgeunderGMW.AdvicePRG, a premise novel to this library. The library's GMW theorem,Cslib.Crypto.NonuniformOneWay.exists_zkProof_of_mem_NPinCslibFrontier.Crypto.Computational.Nonuniform.ZeroKnowledge, discharges the premise from a nonuniform one-way function.
References #
- O. Goldreich, S. Micali, A. Wigderson, Proofs that Yield Nothing But Their Validity, or All Languages in NP Have Zero-Knowledge Proof Systems
- O. Goldreich, Foundations of Cryptography (1998 fragments, v2.03), Definition 4.3.8 (pp. 151–152) and Theorem 4.4.10 (pp. 175–176).
Sequentially amplified masked-3SAT ZKProof builder via a Karp reduction to ThreeSAT, giving
uniform GenerableZeroKnowledge only (#6044; see GenerableZeroKnowledge) and soundness
(1 / 3) ^ (k n). Given a pseudorandom generator with stretch at least 3 * m + 1, a
polynomial-time reduction f : α → CNF ℕ from A to ThreeSAT, and a polynomial-time repetition
schedule k : ℕ → ℕ, this runs k n sequential sessions of the 3-copy masked-3SAT protocol.
When ∀ n, n ≤ k n, hG.zkProofOfReduction hstretch hf hred hk has negligible soundness.
A step toward the Goldreich–Micali–Wigderson theorem, not that theorem: it rests on
GMW.AdvicePRG, a premise novel to this library. Under GMW.AdvicePRG enc generator length, the
sequentially amplified GMW proof system hG.zkProofOfReduction hstretch hf hred hk satisfies
general auxiliary-input zero knowledge (ZKProof.AuxiliaryInputZeroKnowledge). A nonuniform PRG
satisfies the premise (NonuniformPRG.advicePRG); the library's GMW theorem is
NonuniformOneWay.exists_zkProof_of_mem_NP.
Sequentially amplified masked-3SAT ZKProof builder for ThreeSAT at repetition schedule
k n := n + 1, giving uniform GenerableZeroKnowledge only (#6044; see GenerableZeroKnowledge)
and soundness bound (1 / 3) ^ (n + 1).
hG.zkProofThreeSAT hstretch has negligible soundness (1 / 3) ^ (n + 1).
A step toward the Goldreich–Micali–Wigderson theorem, not that theorem: it rests on
GMW.AdvicePRG, a premise novel to this library. Under GMW.AdvicePRG encCNF generator length,
hG.zkProofThreeSAT hstretch satisfies general auxiliary-input zero knowledge
(ZKProof.AuxiliaryInputZeroKnowledge). The library's GMW theorem is
NonuniformOneWay.exists_zkProof_of_mem_NP.
Sequentially amplified masked-3SAT ZKProof builder for an NP relation R with uniform
GenerableZeroKnowledge only (#6044; see GenerableZeroKnowledge) and soundness (1 / 3) ^ (k n).
Given a pseudorandom generator with stretch at least 3 * m + 1, a Levin reduction r from R to
ThreeSAT.npRelation, and a polynomial-time repetition schedule k : ℕ → ℕ, this is
zkProofOfReduction for the instance map of r with witnesses changed by
ZKProof.withRelationWitness: the honest prover maps an R-witness w to
r.forwardWitness (a, w) and the bundled witness check is decide (R.IsWitness a w).
The bundled witness check of levinZKProof is the NP relation R.IsWitness itself.
When ∀ n, n ≤ k n, hG.levinZKProof hstretch r hk has negligible soundness.
A step toward the Goldreich–Micali–Wigderson theorem, not that theorem: it rests on
GMW.AdvicePRG, a premise novel to this library. Under GMW.AdvicePRG enc generator length,
hG.levinZKProof hstretch r hk satisfies general auxiliary-input zero knowledge
(ZKProof.AuxiliaryInputZeroKnowledge). The library's GMW theorem for NP relations is
NonuniformOneWay.exists_zkProof_of_npRelation.
Existence of a ZKProof with uniform GenerableZeroKnowledge only (#6044; see
GenerableZeroKnowledge — not Goldreich's auxiliary-input GMW theorem of [Gol98],
Definition 4.3.8 and Theorem 4.4.10, proved under nonuniform one-way functions in
NonuniformOneWay.exists_zkProof_of_mem_NP) and negligible soundness (1 / 3) ^ (n + 1) against
unbounded provers for every language A ∈ NP enc, from any uniform pseudorandom generator with
stretch at least 3 * m + 1.
A step toward the Goldreich–Micali–Wigderson theorem, not that theorem: it rests on
GMW.AdvicePRG, a premise novel to this library, where the theorem assumes a nonuniform one-way
function. Given a pseudorandom generator with stretch at least 3 * m + 1 satisfying
GMW.AdvicePRG enc generator length, every language A ∈ NP enc has a computational
zero-knowledge interactive proof system with negligible soundness (1 / 3) ^ (n + 1) and general
auxiliary-input zero knowledge (ZKProof.AuxiliaryInputZeroKnowledge). The library's GMW theorem,
NonuniformOneWay.exists_zkProof_of_mem_NP, applies this step to a nonuniform PRG through
NonuniformPRG.advicePRG.
Existence of a ZKProof for any NP relation R with uniform GenerableZeroKnowledge only
(#6044; see GenerableZeroKnowledge — not Goldreich's auxiliary-input GMW theorem of
[Gol98], Definition 4.3.8 and Theorem 4.4.10, proved under nonuniform one-way
functions in NonuniformOneWay.exists_zkProof_of_npRelation), negligible soundness
(1 / 3) ^ (n + 1), and honest prover using R's own witnesses, from any uniform pseudorandom
generator with stretch at least 3 * m + 1.
A step toward the Goldreich–Micali–Wigderson theorem for NP relations, not that theorem: it
rests on GMW.AdvicePRG, a premise novel to this library, where the theorem assumes a nonuniform
one-way function. Given a pseudorandom generator with stretch at least 3 * m + 1 satisfying
GMW.AdvicePRG enc generator length, every NP relation R has a computational zero-knowledge
interactive proof system with negligible soundness (1 / 3) ^ (n + 1) and general auxiliary-input
zero knowledge whose honest prover uses R's own witnesses. The library's GMW theorem for
relations, NonuniformOneWay.exists_zkProof_of_npRelation, applies this step to a nonuniform PRG
through NonuniformPRG.advicePRG.
Existence of a ZKProof with uniform GenerableZeroKnowledge only (#6044; see
GenerableZeroKnowledge — not Goldreich's auxiliary-input GMW theorem of [Gol98],
Definition 4.3.8 and Theorem 4.4.10, proved under nonuniform one-way functions in
NonuniformOneWay.exists_zkProof_of_mem_NP) and negligible soundness (1 / 3) ^ (n + 1) against
unbounded provers for every language A ∈ NP enc, from any uniform one-way function.
Existence of a ZKProof for any NP relation R with uniform GenerableZeroKnowledge only
(#6044; see GenerableZeroKnowledge — not Goldreich's auxiliary-input GMW theorem of
[Gol98], Definition 4.3.8 and Theorem 4.4.10, proved under nonuniform one-way
functions in NonuniformOneWay.exists_zkProof_of_npRelation), negligible soundness
(1 / 3) ^ (n + 1), and honest prover using R's own witnesses, from any uniform one-way
function.