Documentation

CslibFrontier.Crypto.Computational.ZeroKnowledge.Soundness

Negligible soundness for zero-knowledge proof systems #

Cslib.Crypto.ZKProof enc A soundness (CslibFrontier.Crypto.Computational.ZeroKnowledge) carries a soundness bound soundness : ℕ → ENNReal indexed by the security parameter. The single-session GMW systems have soundness := fun _ => 1 / 3, and sequential repetition (CslibFrontier.Crypto.Computational.ZeroKnowledge.Amplification) amplifies this to fun n => (1 / 3) ^ (k n). This module states when such a bound is negligible.

Main definitions #

Main results #

def Cslib.Crypto.ZKProof.NegligibleSoundness {α : Type} {enc : α ↪ List Bool} {A : Set α} {soundness : ℕ → ENNReal} (_zk : ZKProof enc A soundness) :

Negligible soundness for a ZKProof: the soundness bound is finite at every security parameter (∀ n, soundness n ≠ ⊤, ruling out the degenerate ENNReal.toNNReal ⊤ = 0 case) and its nonnegative real value fun n => (soundness n).toNNReal is Negligible.

This notion is novel to this library. It strengthens the soundness condition of [Gol98], Definition 4.2.6, p. 136, with a negligible soundness bound: through ZKProof.sound, soundness n bounds the acceptance probability of every prover on every false instance at parameter n, uniformly in the instance, where the source's bound s(|x|) is a function of the input length. For a verifier that ignores n, a bound negligible in n forces soundness error 0, so such a verifier with soundness error 2^(-|x|) meets the source's condition with a negligible bound but not this one. As in the source, the provers have no resource bound.

Relation to standard assumptions. Running the verifier at n = |x| gives the source's soundness condition with the negligible bound s(m) = soundness m.

Why it is plausible. Sequential repetition gives it: ZKProof.negligibleSoundness_one_third_pow proves it for soundness (1/3)^(k n) with n ≤ k n, and OneWay.exists_generableZKProof_of_mem_NP and the library's Goldreich–Micali–Wigderson theorem NonuniformOneWay.exists_zkProof_of_mem_NP build proof systems with it for every language in NP.

theorem Cslib.Crypto.ZKProof.NegligibleSoundness.soundness_ne_top {α : Type} {enc : α ↪ List Bool} {A : Set α} {soundness : ℕ → ENNReal} {zk : ZKProof enc A soundness} (h : zk.NegligibleSoundness) (n : ℕ) :
soundness n ≠ ⊤
theorem Cslib.Crypto.ZKProof.NegligibleSoundness.negligible_toNNReal {α : Type} {enc : α ↪ List Bool} {A : Set α} {soundness : ℕ → ENNReal} {zk : ZKProof enc A soundness} (h : zk.NegligibleSoundness) :
Negligible fun (n : ℕ) => (soundness n).toNNReal
theorem Cslib.Crypto.ZKProof.NegligibleSoundness.acceptProb_toNNReal_negligible {α : Type} {enc : α ↪ List Bool} {A : Set α} {soundness : ℕ → ENNReal} {zk : ZKProof enc A soundness} (h : zk.NegligibleSoundness) {a : ℕ → α} (ha : ∀ (n : ℕ), a n ∉ A) (P : ℕ → Complexity.Prover Unit) :
Negligible fun (n : ℕ) => (Complexity.acceptProb (zk.verifier n (a n)) (P n)).toNNReal

Under NegligibleSoundness, any family of false instances a : ℕ → α (∀ n, a n ∉ A) and any family of computationally unbounded stateful provers P : ℕ → Prover Unit have negligible acceptance probability.

theorem Cslib.Crypto.ZKProof.NegligibleSoundness.of_le {α : Type} {enc : α ↪ List Bool} {A : Set α} {soundness soundness' : ℕ → ENNReal} {zk : ZKProof enc A soundness} {zk' : ZKProof enc A soundness'} (h : zk.NegligibleSoundness) (hle : ∀ (n : ℕ), soundness' n ≤ soundness n) :

A pointwise smaller soundness bound preserves NegligibleSoundness.

theorem Cslib.Crypto.ZKProof.NegligibleSoundness.mem_IP {α : Type} {enc : α ↪ List Bool} {A : Set α} {soundness : ℕ → ENNReal} {zk : ZKProof enc A soundness} (h : zk.NegligibleSoundness) :

Any ZKProof with negligible soundness places A ∈ IP enc.

theorem Cslib.Crypto.negligible_pow_of_lt_one {ratio : NNReal} (hratio : ratio < 1) {k : ℕ → ℕ} (hk : ∀ (n : ℕ), n ≤ k n) :
Negligible fun (n : ℕ) => ratio ^ k n

Geometric decay fun n => ratio ^ k n is negligible for any ratio ratio < 1 and repetition count k : ℕ → ℕ satisfying ∀ n, n ≤ k n.

theorem Cslib.Crypto.negligible_one_third_pow {k : ℕ → ℕ} (hk : ∀ (n : ℕ), n ≤ k n) :
Negligible fun (n : ℕ) => ((1 / 3) ^ k n).toNNReal

The amplified soundness bound fun n => ((1 / 3 : ENNReal) ^ k n).toNNReal is negligible whenever ∀ n, n ≤ k n.

theorem Cslib.Crypto.one_third_pow_succ_le (n : ℕ) :
(1 / 3) ^ (n + 1) ≤ 1 / 3

Any positive number of repetitions is at least as sound as one round: (1 / 3) ^ (n + 1) ≤ 1 / 3. With ZKProof.mono, this turns a sequentially amplified system into one with the single-session bound fun _ => 1 / 3.

theorem Cslib.Crypto.ZKProof.negligibleSoundness_one_third_pow {α : Type} {enc : α ↪ List Bool} {A : Set α} {k : ℕ → ℕ} (zk : ZKProof enc A fun (n : ℕ) => (1 / 3) ^ k n) (hk : ∀ (n : ℕ), n ≤ k n) :

A ZKProof with soundness (1 / 3) ^ (k n) for ∀ n, n ≤ k n has negligible soundness.