The first accepted trial #
Run m independent uniform trials v : Fin m → T and keep the first one accepted by acc
(Cslib.Probability.firstAccepted). Counting over all m-tuples:
- no trial is accepted for exactly
R ^ mtuples, whereRcounts the rejected values (Cslib.Probability.card_filter_forall_not_acc); - the first accepted trial is bad for at most
B N ^ m / Atuples, whereN = #T,Acounts the accepted values andBthe accepted bad ones (Cslib.Probability.card_filter_firstAccepted_bad_mul_le).
So the first accepted trial is bad with probability at most Pr[bad | accepted], whatever m
is. The bound is the elementary fact behind rejection sampling with a timeout, as in the circuit
C_{A,v} of Impagliazzo, Jaiswal, Kabanets and Wigderson, Section
3.
Main definitions #
Cslib.Probability.firstAccepted: the first accepted entry of a tuple, if any.
Main results #
Cslib.Probability.card_filter_forall_not_acc: no trial is accepted.Cslib.Probability.card_filter_firstAccepted_bad_mul_le: the first accepted trial is bad.
References #
@[simp]
theorem Cslib.Probability.card_filter_firstAccepted_bad_mul_le {T : Type u_1} [Fintype T] (acc bad : T → Bool) (m : ℕ) :
The first accepted trial is bad for at most a B / A fraction of the tuples, where A
counts the accepted values and B the accepted bad ones.