Auxiliary-input zero knowledge and product composition for interactive reductions #
This module extends the public-coin interactive reduction core (Cslib.Interactive) in two
directions from the zero-knowledge roadmap:
- Auxiliary-input zero knowledge ([Gol01], §4.3.3, Definition 4.3.10;
[AB09], Chapter 9):
Reduction.PerfectHVZK,Reduction.AuxHVZK,Reduction.PerfectAuxHVZK: exact and statistical (CloseTo) honest-verifier zero knowledge in the plain model when the simulator (and error bound) may depend on an auxiliary inputz : Aux. EveryHVZK/PerfectHVZKreduction is automaticallyAuxHVZK/PerfectAuxHVZKby ignoringz(Reduction.HVZK.auxHVZK,Reduction.PerfectHVZK.perfectAuxHVZK), and conversely instantiating at anyz₀ : AuxrecoversHVZK/PerfectHVZK.VerifierStrategy,runAgainst,Reduction.viewOf,Reduction.ZK: statistical malicious-verifier auxiliary-input zero knowledge in the plain model, with unbounded verifiers and an unbounded simulator, where a strategy tree of the verifier's role adaptively chooses challenges and outputs an arbitrary view. It is not the computational definition of [Gol01], whose verifiers and simulators are efficient. Embedding the honest verifier's challenge samplers (honestVerifierStrategy) proves thatReduction.ZKimpliesReduction.AuxHVZK(Reduction.ZK.auxHVZK).AuxSimulatorRealizedBy,Reduction.EfficientAuxHVZK: uniform strict-PPT realization of an auxiliary-input simulator family over encoded statements and auxiliary inputs up to statistical errorδ, withReduction.EfficientHVZK.efficientAuxHVZKlifting anyEfficientHVZKcertificate.Reduction.ComputationalHVZK,Reduction.ComputationalAuxHVZK: computational honest-verifier zero knowledge over polynomially bounded families against uniform strict-PPT auxiliary-input distinguishers, with unconditional statistical-to-computational bridges (AuxSimulatorRealizedBy.computationalAuxHVZK,Reduction.EfficientAuxHVZK.exists_computationalAuxHVZK,Reduction.EfficientHVZK.exists_computationalHVZK_zero) and the lifting theoremReduction.ComputationalHVZK.computationalAuxHVZK.
- Product (AND) composition of interactive reductions (
Verifier.seqProd,Reduction.seqProd) overs₁ ++ s₂for product relationsrelProd(alongside the disjunctive relationrelDisj):- Completeness errors add (
Reduction.Complete.seqProd), preserving perfect completeness. - Soundness error against
language (relProd relIn₁ relIn₂)ismax ε₁ ε₂(Verifier.Sound.seqProd), since a false product statement is false in at least one coordinate. - Straight-line knowledge soundness composes with the product extractor
Verifier.extractSeqProdand errorκ₁ + κ₂(Verifier.KnowledgeSound.seqProd). HVZK,PerfectHVZK,AuxHVZK, andPerfectAuxHVZKcompose via independent transcript simulation (simSeqProd,auxSimSeqProd) with additive statistical errors (Reduction.HVZK.seqProd,Reduction.PerfectHVZK.seqProd,Reduction.AuxHVZK.seqProd,Reduction.PerfectAuxHVZK.seqProd).
- Completeness errors add (
Main definitions #
Cslib.Interactive.Reduction.honestTranscript,Cslib.Interactive.Reduction.PerfectHVZK,Cslib.Interactive.Reduction.AuxHVZK,Cslib.Interactive.Reduction.PerfectAuxHVZK.Cslib.Interactive.VerifierStrategy,Cslib.Interactive.runAgainst,Cslib.Interactive.Reduction.viewOf,Cslib.Interactive.Reduction.ZK,Cslib.Interactive.honestVerifierStrategy.Cslib.Interactive.Encoding.encStatementAux,Cslib.Interactive.AuxSimulatorRealizedBy,Cslib.Interactive.Reduction.EfficientAuxHVZK,Cslib.Interactive.Reduction.ComputationalHVZK,Cslib.Interactive.Reduction.ComputationalAuxHVZK.Cslib.Interactive.relProd,Cslib.Interactive.relDisj,Cslib.Interactive.Verifier.liftFirst,Cslib.Interactive.Verifier.liftSecond,Cslib.Interactive.Verifier.seqProd,Cslib.Interactive.Reduction.liftFirst,Cslib.Interactive.Reduction.liftSecond,Cslib.Interactive.Reduction.seqProd,Cslib.Interactive.Verifier.extractSeqProd,Cslib.Interactive.simSeqProd,Cslib.Interactive.auxSimSeqProd.
Main results #
Cslib.Interactive.Reduction.HVZK.auxHVZK,Cslib.Interactive.Reduction.PerfectHVZK.perfectAuxHVZK,Cslib.Interactive.Reduction.ZK.auxHVZK,Cslib.Interactive.Reduction.EfficientHVZK.efficientAuxHVZK,Cslib.Interactive.Reduction.ComputationalHVZK.computationalAuxHVZK,Cslib.Interactive.AuxSimulatorRealizedBy.computationalAuxHVZK,Cslib.Interactive.Reduction.EfficientAuxHVZK.exists_computationalAuxHVZK,Cslib.Interactive.Reduction.EfficientHVZK.exists_computationalHVZK_zero.Cslib.Interactive.Reduction.Complete.seqProd,Cslib.Interactive.Verifier.Sound.seqProd,Cslib.Interactive.Verifier.KnowledgeSound.seqProd,Cslib.Interactive.Reduction.HVZK.seqProd,Cslib.Interactive.Reduction.PerfectHVZK.seqProd,Cslib.Interactive.Reduction.AuxHVZK.seqProd,Cslib.Interactive.Reduction.PerfectAuxHVZK.seqProd.
References #
- O. Goldreich, Foundations of Cryptography: Volume 1, Basic Tools, Section 4.3.3 (Auxiliary-Input Zero-Knowledge, Definition 4.3.10).
- S. Arora, B. Barak, Computational Complexity: A Modern Approach, Chapter 9.
- E. Ben-Sasson, A. Chiesa, N. Spooner, Interactive Oracle Proofs
Part 1: Auxiliary-input zero knowledge #
The distribution of transcripts in an honest plain-model run of R on (x, w).
In the plain model, R.honestTranscript x w is the first marginal of running R.prover x w
against R.verifier.samplers.
Perfect honest-verifier zero knowledge in the plain model: on every valid (x, w) in relIn,
the simulator's transcript law equals the honest transcript law.
Perfect HVZK implies 0-error statistical HVZK.
Enlarging the statistical error preserves Reduction.HVZK.
Auxiliary-input honest-verifier zero knowledge ([Gol01], §4.3.3, Definition 4.3.10
for an honest verifier) with statistical error ε x z, in the plain model: on every (x, w) in
relIn and every auxiliary input z : Aux, the simulator Sim x z produces transcripts within
statistical distance ε x z of the honest transcript distribution.
Perfect auxiliary-input honest-verifier zero knowledge in the plain model: on every
(x, w) in relIn and every auxiliary input z : Aux, the simulator Sim x z reproduces the
honest transcript distribution exactly.
Perfect auxiliary-input HVZK implies 0-error statistical AuxHVZK.
Enlarging the error bound pointwise preserves Reduction.AuxHVZK.
Every HVZK reduction is automatically AuxHVZK: an honest-verifier simulator only needs
the statement x and can ignore the auxiliary input z.
Every PerfectHVZK reduction is automatically PerfectAuxHVZK by ignoring the auxiliary
input z.
Instantiating an AuxHVZK simulator at a fixed auxiliary input z₀ yields HVZK when the
error bound at z₀ is at most ε.
Instantiating a PerfectAuxHVZK simulator at any z₀ : Aux yields PerfectHVZK.
Under AuxHVZK, any randomized Boolean distinguisher D : StmtIn → Aux → Transcript s → Game
(receiving the statement, the auxiliary input, and the transcript) has distinguishing advantage at
most ε x z on every valid (x, w).
Malicious-verifier auxiliary-input zero knowledge in the plain model #
The law of a malicious verifier's view after interacting with the honest prover of R on
(x, w) and auxiliary input z : Aux.
Statistical malicious-verifier auxiliary-input zero knowledge, with an unbounded simulator
and verifier, in the plain model: for every malicious verifier Vstar, every valid (x, w) in
relIn, and every auxiliary input z : Aux, the simulator Sim Vstar x z reproduces Vstar's
view within statistical distance ε x z. Neither Vstar nor Sim is required to be efficient,
and closeness is statistical, so this is not the computational auxiliary-input definition of
[Gol01], §4.3.3, Definition 4.3.10, whose verifiers and simulators are efficient. An
efficient variant is not formalized.
Map a function over the output view of a VerifierStrategy.
Running against a mapped VerifierStrategy maps the verifier's output in plainLaw.
The honest public-coin verifier's challenge samplers embedded as a VerifierStrategy whose
output view is the complete transcript Transcript s.
Running a prover strategy against honestVerifierStrategy has the same law as runStrategy,
recording the transcript as the verifier's output view as well.
The view of honestVerifierStrategy on (x, w) is R.honestTranscript x w.
Statistical malicious-verifier auxiliary-input zero knowledge (Reduction.ZK) implies
honest-verifier auxiliary-input zero knowledge (Reduction.AuxHVZK).
Efficient and computational auxiliary-input HVZK #
Family index, encoded statement and auxiliary input word (i, x, z): the index under
enc.index, then x and z as bit words (enc.index and x framed, z unframed). An
auxiliary-input simulator reads this triple; a transcript distinguisher reads it after the unary
parameter, paired with an encoded transcript, with an auxiliary input word in the z slot.
The program program realizes the auxiliary-input simulator family Sim on encodings up to
statistical distance δ: on (i, enc.statement i x, encAux i z), its output is within δ i of
the encoded transcript sampled by Sim i x z.
A program realizing an AuxHVZK simulator up to δ is ε i + δ i-close to the honest encoded
transcript for every valid (x, w) and auxiliary input z.
A SimulatorRealizedBy witness lifts to AuxSimulatorRealizedBy by ignoring the encoded
auxiliary input.
Efficient auxiliary-input honest-verifier zero knowledge, with simulation error ε and
realization error δ. At every index i, Sim i is an ε i-AuxHVZK simulator for R i, and
one uniform strict PPT program of (i, enc.statement i x, encAux i z) realizes the simulator
family on encoded transcripts up to δ.
- auxHVZK (i : I) : (R i).AuxHVZK (rel i) (Sim i) fun (x : StmtI i) (x_1 : AuxI i) => ε i
Sim iis anε i-AuxHVZK simulator at every index. - realized : ∃ (program : I × List Bool × List Bool → ProbComp (List Bool)), Probability.IsPPTOn enc.encStatementAux Turing.MultiTapeTM.encBits program ∧ AuxSimulatorRealizedBy enc encAux Sim program δ
One uniform strict PPT program of the index, statement and auxiliary input realizes
Simup toδ.
Every EfficientHVZK reduction is automatically EfficientAuxHVZK: the simulator and its
strict PPT realizing program ignore the auxiliary input.
Computational honest-verifier zero knowledge over an indexed family of reductions: one
uniform strict PPT simulator program on (i, enc.statement i x) produces encoded transcripts
that are computationally indistinguishable from honest encoded transcripts across all polynomially
bounded valid families (i n, x n, w n) and distinguisher auxiliary inputs z n, against every
uniform strict PPT distinguisher clocked on ((1^n, i n, enc.statement (i n) (x n), z n), τ).
- ppt : Probability.IsPPTOn (Turing.MultiTapeTM.encPair enc.index Turing.MultiTapeTM.encBits) Turing.MultiTapeTM.encBits program
The simulator program is uniform strict PPT in
(i, enc.statement i x). - indistinguishable (idx : ℕ → I) (x : (n : ℕ) → StmtI (idx n)) (w : (n : ℕ) → WitI (idx n)) (z : ℕ → List Bool) : (PolynomiallyBounded fun (n : ℕ) => (enc.index (idx n)).length) → (PolynomiallyBounded fun (n : ℕ) => ((enc.statement (idx n)) (x n)).length) → (PolynomiallyBounded fun (n : ℕ) => (z n).length) → (∀ (n : ℕ), rel (idx n) (x n) (w n)) → ∀ (D : ℕ → I → List Bool → List Bool → List Bool → ProbComp Bool), (Probability.IsPPTOn (Turing.MultiTapeTM.encPair (Turing.MultiTapeTM.encPair Turing.MultiTapeTM.encUnary enc.encStatementAux) Turing.MultiTapeTM.encBits) Turing.MultiTapeTM.encBool fun (x : (ℕ × I × List Bool × List Bool) × List Bool) => match x with | ((n, i, xw, zw), τw) => D n i xw zw τw) → Crypto.Negligible fun (n : ℕ) => Crypto.Game.advantage ((PMF.map (⇑(enc.transcript (idx n))) ((R (idx n)).honestTranscript (x n) (w n))).bind fun (τw : List Bool) => (D n (idx n) ((enc.statement (idx n)) (x n)) (z n) τw).eval) ((program (idx n, (enc.statement (idx n)) (x n))).eval.bind fun (τw : List Bool) => (D n (idx n) ((enc.statement (idx n)) (x n)) (z n) τw).eval)
Honest and simulated encoded transcripts have negligible distinguishing advantage across all polynomially bounded valid families and auxiliary inputs.
Computational auxiliary-input honest-verifier zero knowledge ([Gol01], §4.3.3,
Definition 4.3.10 for an honest verifier) over an indexed family of reductions: one uniform strict
PPT simulator program on (i, enc.statement i x, encAux i z) produces encoded transcripts that
are computationally indistinguishable from honest encoded transcripts across all polynomially
bounded valid families (i n, x n, w n, z n), against every uniform strict PPT distinguisher
clocked on ((1^n, i n, enc.statement (i n) (x n), encAux (i n) (z n)), τ).
The simulator program is uniform strict PPT in
(i, enc.statement i x, encAux i z).- indistinguishable (idx : ℕ → I) (x : (n : ℕ) → StmtI (idx n)) (w : (n : ℕ) → WitI (idx n)) (z : (n : ℕ) → AuxI (idx n)) : (PolynomiallyBounded fun (n : ℕ) => (enc.index (idx n)).length) → (PolynomiallyBounded fun (n : ℕ) => ((enc.statement (idx n)) (x n)).length) → (PolynomiallyBounded fun (n : ℕ) => ((encAux (idx n)) (z n)).length) → (∀ (n : ℕ), rel (idx n) (x n) (w n)) → ∀ (D : ℕ → I → List Bool → List Bool → List Bool → ProbComp Bool), (Probability.IsPPTOn (Turing.MultiTapeTM.encPair (Turing.MultiTapeTM.encPair Turing.MultiTapeTM.encUnary enc.encStatementAux) Turing.MultiTapeTM.encBits) Turing.MultiTapeTM.encBool fun (x : (ℕ × I × List Bool × List Bool) × List Bool) => match x with | ((n, i, xw, zw), τw) => D n i xw zw τw) → Crypto.Negligible fun (n : ℕ) => Crypto.Game.advantage ((PMF.map (⇑(enc.transcript (idx n))) ((R (idx n)).honestTranscript (x n) (w n))).bind fun (τw : List Bool) => (D n (idx n) ((enc.statement (idx n)) (x n)) ((encAux (idx n)) (z n)) τw).eval) ((program (idx n, (enc.statement (idx n)) (x n), (encAux (idx n)) (z n))).eval.bind fun (τw : List Bool) => (D n (idx n) ((enc.statement (idx n)) (x n)) ((encAux (idx n)) (z n)) τw).eval)
Honest and simulated encoded transcripts have negligible distinguishing advantage across all polynomially bounded valid families and auxiliary inputs.
Every ComputationalHVZK reduction is automatically ComputationalAuxHVZK: the simulator
ignores the encoded auxiliary input while still handling auxiliary-input distinguishers.
Statistical AuxSimulatorRealizedBy with negligible total error ε i + δ i implies
Reduction.ComputationalAuxHVZK (in fact against arbitrary, even unbounded distinguishers).
Efficient statistical EfficientAuxHVZK implies ComputationalAuxHVZK whenever ε + δ is
negligible along polynomially bounded index families (for instance when ε = 0 and δ = 0).
Efficient statistical EfficientHVZK with zero error (ε = 0, δ = 0) implies both
ComputationalHVZK and ComputationalAuxHVZK.
Part 2: Product (AND) and disjunctive (OR) relations and product composition #
A pair (x₁, x₂) is outside language (relProd rel₁ rel₂) iff x₁ ∉ language rel₁ or
x₂ ∉ language rel₂.
A pair (x₁, x₂) belongs to language (relDisj rel₁ rel₂) iff x₁ ∈ language rel₁ or
x₂ ∈ language rel₂.
Lift a verifier V₁ on the first coordinate to a verifier on S₁ × S₂ that passes x.2
through unchanged.
Lift a verifier V₂ on the second coordinate to a verifier on S₁' × S₂ that passes y.1
through unchanged.
Product composition of verifiers over s₁ ++ s₂: run V₁ on x.1 in the first phase and
V₂ on x.2 in the second phase, accepting with some (y₁, y₂) when both accept.
Lift a reduction R₁ on the first coordinate to a reduction on (S₁ × S₂, W₁ × W₂) that
threads (x.2, w.2) through unchanged.
Lift a reduction R₂ on the second coordinate to a reduction on (S₁' × S₂, W₁' × W₂) that
threads (y.1, w.1) through unchanged.
Product (AND) composition of interactive reductions over s₁ ++ s₂: run R₁ on the first
coordinate and then R₂ on the second coordinate.
The output of V₁.seqProd V₂ on a transcript τ pairs the outputs of V₁ and V₂ on the two
halves of τ.
(V₁.seqProd V₂).outputOn x τ = some y iff V₁ outputs some y.1 on the first half and V₂
outputs some y.2 on the second half.
Plain-model execution law of R₁.liftFirst.
Plain-model execution law of R₂.liftSecond.
R₁.liftFirst preserves completeness with the same error.
R₂.liftSecond preserves completeness with the same error.
Completeness of product composition (Reduction.seqProd): completeness errors add up.
Perfect completeness of product composition: if both R₁ and R₂ are perfectly complete,
so is R₁.seqProd R₂.
Soundness of product composition (Verifier.seqProd): on any pair (x₁, x₂) ∉ L₁ ×ˢ L₂,
either x₁ ∉ L₁ (bounded by ε₁) or x₂ ∉ L₂ (bounded by ε₂), so the soundness error of
V₁.seqProd V₂ is at most max ε₁ ε₂.
Product straight-line extractor: extract the first witness from the first half of the transcript and the second witness from the second half.
Straight-line knowledge soundness of product composition (Verifier.seqProd): running both
extractors recovers a valid witness pair (w₁, w₂) with error at most κ₁ + κ₂.
The honest transcript of R₁.seqProd R₂ on (x, w) is the concatenation of independent
honest transcripts of R₁ on (x.1, w.1) and R₂ on (x.2, w.2).
Product simulator for Reduction.seqProd: run Sim₁ on x.1 and Sim₂ on x.2, and
concatenate their transcripts.
Product auxiliary-input simulator for Reduction.seqProd: run Sim₁ on (x.1, z) and Sim₂
on (x.2, z), and concatenate their transcripts.
Auxiliary-input HVZK of product composition (Reduction.seqProd): independent
auxiliary-input simulation preserves AuxHVZK with error ε₁ x.1 z + ε₂ x.2 z.
Perfect auxiliary-input HVZK of product composition (Reduction.seqProd).
HVZK of product composition (Reduction.seqProd): independent transcript simulation
preserves HVZK with the sum of the statistical errors.
Perfect HVZK of product composition (Reduction.seqProd).