Documentation

CslibFrontier.Computability.Complexity.Classes.NoninteractiveZeroKnowledge

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 #

Main results #

The transcript observed at a fixed instance of a common-random-string protocol.

  • commonString : List Bool

    The publicly sampled common random string.

  • proof : List Bool

    The message sent by the prover.

  • accepted : Bool

    The verifier's acceptance bit.

theorem Cslib.Complexity.encCRSTranscript_mk_budget {γ : Type} {encIn : γ ↪ List Bool} {budget : γ → ℕ} {x0 x1 : γ → List Bool} {x2 : γ → Bool} (h0 : Turing.MultiTapeTM.ComputableInSpace x0 encIn Turing.MultiTapeTM.encBits budget) (h1 : Turing.MultiTapeTM.ComputableInSpace x1 encIn Turing.MultiTapeTM.encBits budget) (h2 : Turing.MultiTapeTM.ComputableInSpace x2 encIn Turing.MultiTapeTM.encBool budget) :
Turing.MultiTapeTM.ComputableInSpace (fun (x : γ) => { commonString := x0 x, proof := x1 x, accepted := x2 x }) encIn encCRSTranscript budget
theorem Cslib.Complexity.encCRSTranscript_proof_budget {γ✝ : Type} {encIn✝ : γ✝ ↪ List Bool} {S✝ : γ✝ → ℕ} {g✝ : γ✝ → CRSTranscript} :
theorem Cslib.Complexity.encCRSTranscript_commonString_budget {γ✝ : Type} {encIn✝ : γ✝ ↪ List Bool} {S✝ : γ✝ → ℕ} {g✝ : γ✝ → CRSTranscript} :
theorem Cslib.Complexity.encCRSTranscript_accepted_budget {γ✝ : Type} {encIn✝ : γ✝ ↪ List Bool} {S✝ : γ✝ → ℕ} {g✝ : γ✝ → CRSTranscript} :
theorem Cslib.Complexity.encCRSTranscript_mk_inO {γ : Type} {encIn : γ ↪ List Bool} {x0 : γ → List Bool} {T0 S0 : γ → ℕ} {x1 : γ → List Bool} {T1 S1 : γ → ℕ} {x2 : γ → Bool} {T2 S2 : γ → ℕ} (h0 : Turing.MultiTapeTM.ComputableInO x0 encIn Turing.MultiTapeTM.encBits T0 S0) (h1 : Turing.MultiTapeTM.ComputableInO x1 encIn Turing.MultiTapeTM.encBits T1 S1) (h2 : Turing.MultiTapeTM.ComputableInO x2 encIn Turing.MultiTapeTM.encBool T2 S2) :
Turing.MultiTapeTM.ComputableInO (fun (x : γ) => { commonString := x0 x, proof := x1 x, accepted := x2 x }) encIn encCRSTranscript (fun (x : γ) => T0 x + (T1 x + T2 x)) fun (x : γ) => S0 x + (S1 x + S2 x)
@[reducible, inline]

The tuple of the fields of encCRSTranscript.

Encode the framed common string, the framed proof, and the final decision bit.

structure Cslib.Complexity.CRSProtocol {α : Type} (enc : α ↪ List Bool) :

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.

noncomputable def Cslib.Complexity.CRSProtocol.transcript {α : Type} {enc : α ↪ List Bool} (P : CRSProtocol enc) (a : α) :

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.

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.

def Cslib.Complexity.NIPZK {α : Type} (enc : α ↪ List Bool) :
Set (Set α)

Languages with noninteractive perfect zero-knowledge proofs.

def Cslib.Complexity.NISZK {α : Type} (enc : α ↪ List Bool) :
Set (Set α)

Languages with noninteractive statistical zero-knowledge proofs.

Perfect simulation gives statistical simulation with zero error.

theorem Cslib.Complexity.NIPZK_subset_NISZK {α : Type} (enc : α ↪ List Bool) :
NIPZK enc ⊆ NISZK enc

Every noninteractive perfect zero-knowledge language is statistically zero knowledge.

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.

theorem Cslib.Complexity.BPP_subset_NIPZK {α : Type} (enc : α ↪ List Bool) :
BPP enc ⊆ NIPZK enc

BPP ⊆ NIPZK: a bounded-error decider, run on the common random string, is a noninteractive proof with an empty proof and a perfect simulator.