Noninteractive statistical and perfect zero knowledge #
A common random string is sampled uniformly at the length prescribed for the instance. The unrestricted prover uses the string and its own private randomness to send one proof, and a deterministic polynomial-time verifier decides whether it accepts. The verifier sees the common string and the proof as two consecutive blocks of predetermined lengths, as for the library's Arthur–Merlin verifier. The fixed-length convention permits padding proofs.
The experiment records the common string, proof and decision together. The instance indexes the experiment, so it can be omitted from the transcript. A strict polynomial-time simulator receives only the instance and samples this joint distribution. Perfect zero knowledge asks for equality on yes-instances. Statistical zero knowledge allows an error negligible in the encoded instance length. Both variants use completeness and soundness errors at most one third, following Dixon, Gayen, Pavan and Vinodchandran, Definitions 2.2–2.3, printed pp. 5–6.
A bounded-error problem has a trivial noninteractive proof: the verifier reads the common string
as the coins of the bounded-error solver and the proof is empty, so a simulator sampling the
common string itself reproduces the transcript exactly
(Cslib.Complexity.PromiseBPP_subset_PromiseNIPZK).
Main definitions #
Cslib.Complexity.CRSProtocol: the common-random-string experiment and its proof obligations.Cslib.Complexity.CRSTranscriptSimulator: a polynomial-time sampler for the transcript.Cslib.Complexity.PromiseNISZKandCslib.Complexity.PromiseNIPZK: the promise classes.Cslib.Complexity.NISZKandCslib.Complexity.NIPZK: their language specializations.
Main results #
Cslib.Complexity.PromiseNIPZK_subset_PromiseNISZK,Cslib.Complexity.NIPZK_subset_NISZK: perfect simulation is statistical simulation.Cslib.Complexity.PromiseBPP_subset_PromiseNIPZK,Cslib.Complexity.BPP_subset_NIPZK:BPP ⊆ NIPZK, with the common string as the verifier's coins.
Encode the framed common string, the framed proof, and the final decision bit.
A noninteractive proof protocol over one uniform common random string. The prover uses a finite number of private random bits on each instance. Neither that number nor the prover's computation has a polynomial bound.
- commonLength : Polynomial ℕ
The common random string length as a polynomial in the encoded instance length.
- proofLength : Polynomial ℕ
The proof length as a polynomial in the encoded instance length.
The decision on an instance and the common string concatenated with the proof.
- computableInPolyTime_verify : Turing.MultiTapeTM.ComputableInPolyTime self.verify (Turing.MultiTapeTM.encPair enc Turing.MultiTapeTM.encBits) Turing.MultiTapeTM.encBool
On the permitted input lengths, this certificate gives polynomial time in the instance.
- privateCoins : α → ℕ
The honest prover's private coin count, which can depend on the entire instance.
- respond (a : α) : (Fin (Polynomial.eval (enc a).length self.commonLength) → Bool) → (Fin (self.privateCoins a) → Bool) → Fin (Polynomial.eval (enc a).length self.proofLength) → Bool
Produce one proof given the instance, common randomness and private coins.
Sample the shared coins, then the honest prover's coins, and retain the full transcript.
The honest experiment accepts yes-instances with probability at least two thirds. On no-instances at most one third of the shared strings admit any accepting proof. This soundness condition takes the best possible response separately at each shared string.
A strict randomized polynomial-time algorithm for emitting a transcript from an instance.
- coinLength : Polynomial ℕ
The number of uniformly sampled private bits.
The transcript evaluated on the instance and its private bits.
- computableInPolyTime_sample : Turing.MultiTapeTM.ComputableInPolyTime self.sample (Turing.MultiTapeTM.encPair enc Turing.MultiTapeTM.encBits) encCRSTranscript
The sampler is a native polynomial-time function of the instance and the private bits.
The simulator's output law, with only the instance as input.
Noninteractive perfect zero knowledge for promise problems.
Noninteractive statistical zero knowledge for promise problems. One negligible error bound holds uniformly across all yes-instances of each encoded length.
Perfect simulation gives statistical simulation with zero error.
PromiseBPP ⊆ PromiseNIPZK: the verifier decides alone, reading the common random string
as the coins of a bounded-error solver, and the proof is empty. The simulator samples the
common string itself and outputs the honest transcript, so the simulation is perfect. This is the
standard observation that bounded-error problems have trivial noninteractive proofs, under the
definitions of Dixon, Gayen, Pavan and Vinodchandran,
Definitions 2.2–2.3.