Clock bridge for auxiliary-input zero knowledge with unbounded auxiliary input #
In AuxiliaryInputZeroKnowledge, the malicious verifier Vstar is a standard IsOraclePPTOn
program on encInstanceAuxInput enc, so its polynomial clock is allowed to depend
on the length of the auxiliary input z, and the family z : ℕ → List Bool is required to be
polynomially bounded.
When Vstar is instead clocked in the primary input (1^n, a) (or in the instance x alone) via
IsOraclePPTWithAux, input-tape prefix locality (IsOraclePPTWithAux.exists_run_interpret_take)
shows that Vstar reads at most a polynomial prefix z.take (T_V n a) of z during its run
against any stateful prover Prover Unit. Applying AuxiliaryInputZeroKnowledge to Vstar and
setting S n a z := S₀ n a (z.take (T_V n a)) yields a primary-input-clocked simulator
(IsPPTWithAux) that works for arbitrary, unbounded auxiliary inputs z against any
distinguisher clocked in the primary input and view (IsPPTWithAux) that receives the full
untruncated z, both in the security-parameter-indexed family form
(UnboundedAuxiliaryInputZeroKnowledge) and in the Goldreich-style instance-indexed (x-indexed)
form (InstanceAuxiliaryInputZeroKnowledge) where the security parameter is (enc x).length and
the simulator is chosen once per Vstar before the distinguisher, instance x, valid witness w,
and unbounded auxiliary input z.
Because AuxiliaryInputZeroKnowledge quantifies independently over the polynomially bounded
verifier auxiliary input z_V and distinguisher auxiliary input z_A, the bridge passes the
verifier-sized prefix z_V n := (z n).take (T_V n (a n)) to Vstar and S₀ (where
S₀ n (a n) (z_V n) = S n (a n) (z n) holds definitionally) and the distinguisher-sized prefix
z_A n := (z n).take (T_A n (a n)) to adversary, without requiring any syntactic congruence
condition on S₀.
Main definitions #
Cslib.Probability.encAuxTriple: the encoding of a primary input pair and an auxiliary word, flattened into a triple.Cslib.Crypto.UnboundedAuxiliaryInputZeroKnowledge,Cslib.Crypto.ZKProof.UnboundedAuxiliaryInputZeroKnowledge: family-indexed auxiliary-input zero knowledge against prefix-clocked verifiers (IsOraclePPTWithAux) and distinguishers (IsPPTWithAux) over arbitrary, unbounded auxiliary-input familiesz : ℕ → List Bool.Cslib.Crypto.InstanceAuxiliaryInputZeroKnowledge,Cslib.Crypto.ZKProof.InstanceAuxiliaryInputZeroKnowledge: Goldreich-style instance-indexed (x-indexed) auxiliary-input zero knowledge with unbounded auxiliary inputz : List Booland quantifier order∀ Vstar, ∃ S, ∀ adversary, ... ∀ x w z.
Main results #
Cslib.Complexity.Prover.exists_run_take_of_isOraclePPTWithAux: anIsOraclePPTWithAuxverifier has identical interaction distribution with any statefulProveron(a, z)and on(a, z.take m)wheneverm ≥ c * ((input a).length + 1) ^ d.Cslib.Crypto.AuxiliaryInputZeroKnowledge.unboundedAuxiliaryInputZeroKnowledge:AuxiliaryInputZeroKnowledgeimpliesUnboundedAuxiliaryInputZeroKnowledge(with theZKProofprojection of the same name).Cslib.Crypto.UnboundedAuxiliaryInputZeroKnowledge.instanceAuxiliaryInputZeroKnowledge,Cslib.Crypto.AuxiliaryInputZeroKnowledge.instanceAuxiliaryInputZeroKnowledge:UnboundedAuxiliaryInputZeroKnowledgeandAuxiliaryInputZeroKnowledgeimplyInstanceAuxiliaryInputZeroKnowledge(with theZKProofprojections).
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 (Fragments of a Book – Version 2.03), 1998 draft, Section 4.3.3, Definition 4.3.8 and the discussion that follows it, printed pp. 151–153; and O. Goldreich, Foundations of Cryptography: Volume 1, Basic Tools, Chapter 4.
Prover interaction prefix truncation for IsOraclePPTWithAux. An oracle verifier clocked
in the primary input a has the exact same joint distribution of (result, finalProverState)
against every stateful prover P : Prover Operation on (a, z.take m) as on (a, z) whenever
m ≥ c * ((input a).length + 1) ^ d.
Input (a, b, z) of a program with a primary input pair (a, b) and an auxiliary bit word
z, flattened into a triple: a encoded by enc₁, b by enc₂, then z as a bit word. a
and b are framed; z is not. IsPPTWithAux (encPair enc₁ enc₂) keeps the pair and the word
apart, and the lemmas below pass between the two forms. With enc₁ = encUnary, the layout is that
of the zero-knowledge input Cslib.Crypto.encInstanceAuxInput enc₂.
Reassociate IsOraclePPTWithAux (encPair enc₁ enc₂) into a standard IsOraclePPTOn
certificate on encAuxTriple enc₁ enc₂.
Truncating the auxiliary input of a three-argument IsPPTOn program to a polynomial in the
encoded primary pair encPair enc₁ enc₂ (a, b) yields an IsPPTWithAux (encPair enc₁ enc₂)
certificate.
Truncating the auxiliary input of a three-argument IsPPTOn program to a polynomial in the
encoded primary pair encPair enc₁ enc₂ (a, b) preserves IsPPTOn.
Unbounded-z family auxiliary-input computational zero knowledge.
For every malicious verifier Vstar clocked in the primary input (1^n, a)
(IsOraclePPTWithAux (encPair encUnary enc) encBits), there exists a uniform strict PPT
witness-free simulator S clocked in (1^n, a) (IsPPTWithAux (encPair encUnary enc) encBits)
together with a polynomial prefix bound c, d in (1^n, a) such that:
Sdepends only on the firstc * ((encPair encUnary enc (n, a)).length + 1) ^ dbits ofz.- Across all polynomially bounded instance families
a : ℕ → α, polynomially bounded valid witness familiesw : ℕ → List Bool, and arbitrary, unbounded auxiliary-input familiesz : ℕ → List Bool, every distinguisher clocked in((1^n, a), view)(IsPPTWithAux) receiving the full untruncatedz nhas negligible distinguishing advantage between the real interaction view and the simulated view.
This notion is novel to this library. It follows [Gol98], Definition 4.3.8,
pp. 151–152, in its treatment of auxiliary input: z may have any length, the verifier, simulator
and distinguisher are clocked in the primary input (1^n, a) (and the view), so they read only a
polynomial prefix of it, and the distinguisher receives the verifier's z. It strengthens the
source by decoupling the security parameter from the instance, as AuxiliaryInputZeroKnowledge
does: the instances are polynomially bounded families indexed by n, every party runs in time
polynomial in n, and the gap is negligible in n, so on instances much shorter than n the
prover must withstand verifiers and distinguishers that run in time superpolynomial in the
instance length.
Relation to standard assumptions. It implies the library's instance-indexed form of
Definition 4.3.8, InstanceAuxiliaryInputZeroKnowledge
(UnboundedAuxiliaryInputZeroKnowledge.instanceAuxiliaryInputZeroKnowledge), and follows from
AuxiliaryInputZeroKnowledge (AuxiliaryInputZeroKnowledge.unboundedAuxiliaryInputZeroKnowledge).
Why it is plausible. Through AuxiliaryInputZeroKnowledge, the library's
Goldreich–Micali–Wigderson theorem NonuniformOneWay.exists_zkProof_of_mem_NP gives a proof system
with this property for every language in NP from any nonuniformly one-way function.
Under UnboundedAuxiliaryInputZeroKnowledge, the real and simulated view ensembles are
ComputationallyIndistinguishable across all polynomially bounded valid (a, w) families and
all arbitrary, unbounded auxiliary-input families z : ℕ → List Bool.
Clock bridge for family auxiliary-input zero knowledge.
Every system satisfying AuxiliaryInputZeroKnowledge also satisfies
UnboundedAuxiliaryInputZeroKnowledge against verifiers clocked in (1^n, a).
Goldreich-style instance-indexed (x-indexed) auxiliary-input computational zero knowledge
with unbounded auxiliary input.
For every malicious verifier Vstar : α → List Bool → WordOracleComp Unit (List Bool) clocked in
the primary instance x (IsOraclePPTWithAux enc encBits Vstar), there exists a single uniform
strict PPT witness-free simulator S : α → List Bool → ProbComp (List Bool) clocked in x
(IsPPTWithAux enc encBits S, chosen once per Vstar before the distinguisher, polynomial bounds,
instance x, witness w, and auxiliary input z) together with a polynomial prefix bound c, d
such that:
Sdepends only on the firstc * ((enc x).length + 1) ^ dbits ofz.- For every distinguisher
adversary : α → List Bool → List Bool → ProbComp Boolclocked in(x, view)(IsPPTWithAux (encPair enc encBits) encBool (fun (x, view) z => adversary x z view)) receiving the full untruncatedz, and every witness-length boundc_w * (n + 1) ^ d_wand inverse-polynomial degreek, for all sufficiently large instance lengthsn = (enc x).length, every valid instance-witness pair(x, w)(isWitness x w = true,w.length ≤ c_w * (n + 1) ^ d_w) and every arbitrary, unbounded auxiliary inputz : List Boolhave distinguishing advantage at most1 / ((n : ℝ) + 1) ^ kwhen interacting withprover (enc x).length x w.
Source. This is zero knowledge with respect to auxiliary input, [Gol98],
Definition 4.3.8, pp. 151–152, with the clock conventions stated after it (p. 152): the verifier,
the simulator and the distinguisher are clocked in |x| (here (enc x).length) alone, the
auxiliary input z may have any length and is also given to the distinguisher, the verifier's
output is compared with the simulator's, and the gap is measured in |x|. It differs from the
source as follows.
- The prover's private input ranges over valid witnesses (
isWitness x w) of length at mostc_w * (|x| + 1) ^ d_w, for everyc_wandd_w, where the source's ranges over every string with which the prover meets the completeness condition. The prover is the familyproverrun at security parameter|x|. This weakens the notion. - The simulator must also depend only on a prefix of
zof length polynomial in|x|(item 1). A machine clocked in|x|, as the source's simulator is, reads no more ofzthan that. - The distinguisher is clocked in the lengths of the instance and the view together, where the
source's is clocked in
|x|. Both views have length polynomial in|x|, since the verifier and the simulator are clocked in|x|, so the two clocks admit the same distinguishers on them.
It is a property of the prover alone; ZKProof.InstanceAuxiliaryInputZeroKnowledge states it for
the prover of a proof system.
Indexing bridge from UnboundedAuxiliaryInputZeroKnowledge to Goldreich-style x-indexed
auxiliary-input zero knowledge.
Every system satisfying UnboundedAuxiliaryInputZeroKnowledge satisfies
InstanceAuxiliaryInputZeroKnowledge.
Clock and indexing bridge to Goldreich-style x-indexed auxiliary-input zero knowledge.
Every system satisfying AuxiliaryInputZeroKnowledge satisfies
InstanceAuxiliaryInputZeroKnowledge.
Unbounded-z family auxiliary-input zero knowledge for a bundled ZKProof:
Cslib.Crypto.UnboundedAuxiliaryInputZeroKnowledge for the bundled prover and witness predicate.
Like that notion, this one is novel to this library: it strengthens [Gol98],
Definition 4.3.8, pp. 151–152, by decoupling the security parameter from the instance. It implies
ZKProof.InstanceAuxiliaryInputZeroKnowledge, which follows the source's indexing
(ZKProof.UnboundedAuxiliaryInputZeroKnowledge.instanceAuxiliaryInputZeroKnowledge). It follows
from ZKProof.AuxiliaryInputZeroKnowledge
(ZKProof.AuxiliaryInputZeroKnowledge.unboundedAuxiliaryInputZeroKnowledge), so it is plausible
for the same reason: NonuniformOneWay.exists_zkProof_of_mem_NP builds systems with that property
for every language in NP from any nonuniformly one-way function.
Goldreich-style x-indexed auxiliary-input zero knowledge with unbounded z for a bundled
ZKProof: InstanceAuxiliaryInputZeroKnowledge of its prover and witness relation, which is
[Gol98], Definition 4.3.8, pp. 151–152, with the deviations listed there.
zk.AuxiliaryInputZeroKnowledge implies zk.UnboundedAuxiliaryInputZeroKnowledge.
zk.UnboundedAuxiliaryInputZeroKnowledge implies zk.InstanceAuxiliaryInputZeroKnowledge.
zk.AuxiliaryInputZeroKnowledge implies zk.InstanceAuxiliaryInputZeroKnowledge.