Repeated attempts that succeed through an independent coin #
A simulator that guesses a verifier's challenge succeeds in each attempt only when its guess is
right. Its output is that of the honest interaction, μ, on success and nothing otherwise, and
whether an attempt succeeds is an independent coin ch : PMF Bool. After k independent
attempts, firstSuccess d returns the first successful output, or the fallback d when every
attempt failed. Every distinguisher then separates this from μ with advantage at most
(ch false) ^ k: the selected output has the law of μ except on the event that all k
attempts fail.
The independence is stated by ProbComp.eval attempt = μ.bind (tagWith ch): the attempt's output
is drawn from μ and its success coin from ch, independently. For the zero-knowledge simulator
of Goldreich–Micali–Wigderson the coin is a uniform 3-bit guess hitting the verifier's challenge,
so that ch false = 7 / 8.
This is the rejection-sampling argument of a black-box simulator. The bounded retry loop
Cslib.OracleComp.retry runs a program lazily until a result passes a predicate and states the
law of the result; here every attempt is run and the bound is on the advantage against μ.
Main definitions #
Cslib.Crypto.mixWith: runpwhen the coinchshowstrueandqotherwise.Cslib.Crypto.tagWith: keep an output when an independent coinchshowstrue.Cslib.Crypto.firstSuccess: the first successful attempt in a list, with a fallback.
Main results #
Cslib.Crypto.Game.advantage_mixWith: mixing ing2with probabilitych falsescales the advantage againstg1bych false.Cslib.Crypto.eval_firstSuccess_replicate_succ: one more attempt mixes the law ofμwith the law of the remaining attempts.Cslib.Crypto.Game.advantage_bind_firstSuccess_replicate_le: afterkattempts, every continuation separates the first success fromμwith advantage at most(ch false) ^ k.
References #
The first successful attempt in attempts, or d when every attempt failed.
The first success is the fallback or one of the successful attempts.
One more attempt succeeds with the law of μ when its coin shows true, and otherwise falls
back to the first success among the remaining attempts.
Repeated attempts. If each attempt has the law of μ on success and succeeds through an
independent coin ch, then after k attempts every continuation f separates the first success
from μ with advantage at most (ch false) ^ k, the probability that all attempts fail.