Documentation

CslibFrontier.Crypto.Computational.Nonuniform.ZeroKnowledge

Auxiliary-input zero knowledge from a nonuniform generator or one-way function #

GMW.AdvicePRG enc generator length, a premise novel to this library, is the security premise of the steps toward the auxiliary-input Goldreich–Micali–Wigderson theorem, such as PseudorandomGenerator.exists_auxiliaryInputZKProof_of_mem_NP_of_advicePRG: a test reading an instance, a witness and an auxiliary input from arbitrary polynomially bounded families cannot distinguish the generator's output at seed length n + 7 from uniform. A nonuniform pseudorandom generator satisfies it: the three families form one advice value under the pair encoding, which the test reads without decoding, and the parameter shift by 7 is polynomial-time preprocessing.

Composing this bridge with NonuniformOneWay.exists_nonuniformPRG_three_mul derives auxiliary-input zero knowledge (AuxiliaryInputZeroKnowledge, and hence the unbounded-z and instance-indexed forms in CslibFrontier.Crypto.Computational.ZeroKnowledge.AuxClock) for every language and relation in NP from any nonuniform one-way function, at negligible soundness (1 / 3) ^ (n + 1) via (n + 1)-fold sequential repetition (ZKProof, ZKProof.NegligibleSoundness).

Main results #

References #

theorem Cslib.Crypto.NonuniformPRG.advicePRG {generator : List Bool → List Bool} {length : ℕ → ℕ} (h : NonuniformPRG generator length) {α : Type} (enc : α ↪ List Bool) :
GMW.AdvicePRG enc generator length

A nonuniform PRG satisfies the GMW advice premise for every instance encoding: the instance, witness and auxiliary-input families together are one polynomially bounded advice family, and the test runs at parameter n + 7 on the advice for n.

theorem Cslib.Crypto.NonuniformPRG.exists_zkProof_of_mem_NP {α : Type} {enc : α ↪ List Bool} {A : Set α} {generator : List Bool → List Bool} {length : ℕ → ℕ} (h : NonuniformPRG generator length) (hA : A ∈ Complexity.NP enc) :
∃ (zk : ZKProof enc A fun (n : ℕ) => (1 / 3) ^ (n + 1)), zk.NegligibleSoundness ∧ zk.AuxiliaryInputZeroKnowledge

Soundness-amplified auxiliary-input GMW zero knowledge from a nonuniform PRG. Given any nonuniform pseudorandom generator, every language A ∈ NP enc has a computational zero-knowledge interactive proof system with negligible soundness (1 / 3) ^ (n + 1) (ZKProof.NegligibleSoundness) and general auxiliary-input zero knowledge (ZKProof.AuxiliaryInputZeroKnowledge, and hence ZKProof.UnboundedAuxiliaryInputZeroKnowledge and ZKProof.InstanceAuxiliaryInputZeroKnowledge).

theorem Cslib.Crypto.NonuniformPRG.exists_zkProof_of_npRelation {α : Type} {enc : α ↪ List Bool} {generator : List Bool → List Bool} {length : ℕ → ℕ} (h : NonuniformPRG generator length) (R : Complexity.NPRelation enc) :
∃ (zk : ZKProof enc R.language fun (n : ℕ) => (1 / 3) ^ (n + 1)), (∀ (a : α) (w : List Bool), zk.isWitness a w = true ↔ R.IsWitness a w) ∧ zk.NegligibleSoundness ∧ zk.AuxiliaryInputZeroKnowledge

Soundness-amplified auxiliary-input GMW zero knowledge for NP relations from a nonuniform PRG. Given any nonuniform pseudorandom generator, 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.

theorem Cslib.Crypto.NonuniformOneWay.exists_zkProof_of_mem_NP {α : Type} {enc : α ↪ List Bool} {A : Set α} {f : List Bool → List Bool} (hf : NonuniformOneWay f) (hA : A ∈ Complexity.NP enc) :
∃ (zk : ZKProof enc A fun (n : ℕ) => (1 / 3) ^ (n + 1)), zk.NegligibleSoundness ∧ zk.AuxiliaryInputZeroKnowledge

Goldreich–Micali–Wigderson theorem in full (from a nonuniform one-way function). If a nonuniform one-way function exists, every language A ∈ NP enc has a computational zero-knowledge interactive proof system with negligible soundness (1 / 3) ^ (n + 1) against computationally unbounded stateful provers (ZKProof.NegligibleSoundness) and general auxiliary-input zero knowledge (ZKProof.AuxiliaryInputZeroKnowledge, and hence ZKProof.UnboundedAuxiliaryInputZeroKnowledge and ZKProof.InstanceAuxiliaryInputZeroKnowledge).

theorem Cslib.Crypto.NonuniformOneWay.exists_zkProof_of_npRelation {α : Type} {enc : α ↪ List Bool} {f : List Bool → List Bool} (hf : NonuniformOneWay f) (R : Complexity.NPRelation enc) :
∃ (zk : ZKProof enc R.language fun (n : ℕ) => (1 / 3) ^ (n + 1)), (∀ (a : α) (w : List Bool), zk.isWitness a w = true ↔ R.IsWitness a w) ∧ zk.NegligibleSoundness ∧ zk.AuxiliaryInputZeroKnowledge

Goldreich–Micali–Wigderson theorem in full for NP relations (from a nonuniform one-way function). If a nonuniform one-way function exists, every NP relation R has a computational zero-knowledge interactive proof system whose honest prover uses R's own witnesses, with negligible soundness (1 / 3) ^ (n + 1) (ZKProof.NegligibleSoundness) and general auxiliary-input zero knowledge (ZKProof.AuxiliaryInputZeroKnowledge, and hence ZKProof.UnboundedAuxiliaryInputZeroKnowledge and ZKProof.InstanceAuxiliaryInputZeroKnowledge).