AND, OR, and parallel composition of Sigma protocols #
Two Sigma protocols with a common challenge type combine into protocols proving knowledge of
witnesses for both statements, or for at least one of them, without revealing which
([BS23], Section 19.7). A single Sigma protocol also composes with itself in k-fold
parallel repetition on the same statement with independent challenges Fin k → C
([BS23], Exercise 19.6, pp. 810–811; our parallelRepetition allows k = 0, whereas
Exercise 19.6 assumes k ≥ 1).
The AND-proof runs both protocols in parallel and sends the same challenge to both. The OR-proof
needs the challenges to form a finite additive group; Boneh and Shoup use {0, 1}ⁿ with
exclusive or, which is the bit-string group with +. A prover with a witness for one statement
simulates the other side with a challenge of its own choice, and answers the verifier's
challenge c by splitting it as c₀ + c₁. A witness for the OR relation is Sum.inl x₀ or
Sum.inr x₁. The honest OR prover is determined by the challenge sampler (orProofWith,
specialized to exact uniform by orProof) and the two simulators. In k-fold parallel repetition
(parallelRepetition), the prover draws
k independent commitments, answers each coordinate challenge c j independently, and extraction
uses the first coordinate j : Fin k where the two challenge tuples differ.
This module supplies the transcript identities and structural preservation laws. The
polynomial-time extractor and strict-PPT simulator preservation results are in
CslibFrontier.Crypto.Protocols.SigmaProtocol.Efficient: those are the efficient counterparts
of Theorems 19.18–19.19 and Exercise 19.6(b–c). Exact special HVZK corresponds to their
zero-error specializations.
Main definitions #
SigmaProtocol.andProof,SigmaProtocol.andExtract,SigmaProtocol.andSimulate.SigmaProtocol.orRelation,SigmaProtocol.orProofWith,SigmaProtocol.orProof,SigmaProtocol.orExtract,SigmaProtocol.orSimulate.SigmaProtocol.parallelRepetition,SigmaProtocol.parallelExtract,SigmaProtocol.parallelSimulate.
Main results #
SigmaProtocol.andProof_complete,SigmaProtocol.andProof_specialSoundness,SigmaProtocol.andProof_specialHVZK: structural AND preservation.SigmaProtocol.orProofWith_complete,SigmaProtocol.orProof_complete,SigmaProtocol.orProofWith_specialSoundness,SigmaProtocol.orProof_specialHVZK: structural OR preservation.SigmaProtocol.parallelRepetition_complete,SigmaProtocol.parallelRepetition_specialSoundness,SigmaProtocol.parallelRepetition_specialHVZK: parallel repetition preserves completeness, special soundness, and special HVZK.
References #
AND #
The AND-proof ([BS23], Section 19.7.1): commit with both provers and answer the shared challenge with both.
The AND extractor applies each extractor to its half of the conversations.
An AND conversation is accepting exactly when both halves are accepting at the shared challenge.
The AND-proof's honest transcript pairs independent honest transcripts at the shared challenge.
Completeness of the AND construction.
Structural special soundness of the AND construction. Polynomial-time extraction is
preserved by EfficientSpecialSoundness.andProof in the efficient API.
Exact transcript simulation for the AND construction. Strict-PPT simulation is preserved
by EfficientSpecialHVZK.andProof in the efficient API.
OR #
The OR-proof ([BS23], Section 19.7.2, pp. 788–789) parameterized by the challenge
sampler sampleChallenge for the simulated side. With a witness for one side, the prover draws
c' ← sampleChallenge, simulates the other side at c', commits honestly on its own side, and
answers the verifier's challenge c on its own side at c - c'. The response (c₀, z₀, z₁)
names the first side's challenge; the second side's is c - c₀.
The ideal-challenge OR-proof ([BS23], Section 19.7.2): orProofWith with the
simulated side's challenge drawn from PMF.uniformOfFintype C.
The OR extractor uses the first side when the first side's challenges differ, and the second side otherwise.
The OR simulator splits the challenge uniformly and simulates both sides.
An OR conversation (c₀, z₀, z₁) for the challenge c is accepting exactly when the first
side accepts at c₀ and the second at c - c₀.
With a witness for the first statement, orProofWith draws c₁ ← sampleChallenge, simulates
the second side at c₁, and answers honestly on the first side at c - c₁.
With a witness for the second statement, orProofWith draws c₀ ← sampleChallenge, simulates
the first side at c₀, and answers honestly on the second side at c - c₀.
Completeness of orProofWith, assuming only that both component provers are complete and every
conversation in the support of simulate₀ or simulate₁ is accepting ([BS23],
Theorem 19.19 proof, p. 789).
Completeness of the OR construction, using that both SpecialHVZK simulators output accepting
conversations.
Structural special soundness of orProofWith (and hence orProof): distinct challenges differ
on the first side or the second. EfficientSpecialSoundness.orProof certifies the constructed
extractor.
Exact transcript simulation for the OR construction: the honest prover's own-side challenge
c - c' is uniform. EfficientSpecialHVZK.orProof certifies the constructed simulator.
Parallel repetition #
k-fold parallel repetition of a Sigma protocol P on the same statement with independent
challenges ([BS23], Exercise 19.6, pp. 810–811; allowing k = 0): commit k independent
times, answer each coordinate challenge c j independently, and verify all k coordinates.
The parallel-repetition extractor finds the first coordinate j : Fin k where the two
challenge tuples differ and runs extract on that coordinate's conversations. On equal
challenge tuples it uses coordinate zero when k > 0, and default only when k = 0.
A parallel-repetition conversation is accepting iff every coordinate conversation is accepting.
The honest transcript of parallelRepetition is the coordinatewise product of the honest
transcripts at c j.
Completeness is preserved under k-fold parallel repetition.
Special soundness is preserved under k-fold parallel repetition: two distinct challenge
tuples c ≠ c' must differ at some coordinate j : Fin k.
Special honest-verifier zero knowledge is preserved under k-fold parallel repetition.