Strict PPT bounded retries #
Cslib.OracleComp.retry good program fuel runs program at most fuel times and returns the first
result satisfying good. It is strict probabilistic polynomial time when program is, good is
decided in polynomial time and fuel is computed in unary: the loop is a bounded iteration whose
state is the optional result found so far (Cslib.Probability.IsPPTOn.iterateWith_spec), and
every reachable state is none or a possible result of one run.
Main definitions #
Cslib.OracleComp.retryStep: one run of the loop on the optional result found so far.
Main results #
Cslib.OracleComp.retry_eq_iterate: the loop isfueliterations ofretryStepfromnone.Cslib.Probability.IsPPTOn.retry: bounded retries of a strict PPT program are strict PPT.
One run of the retry loop: keep a result already found, otherwise run program and keep its
result when it is good.
The retry loop as an iteration: fuel runs of retryStep from none.
Bounded retries are strict PPT. If program is strict PPT, good is decided in
polynomial time and the fuel is computed in unary, then running program at most fuel a times
and returning the first good result is strict PPT, with the optional result encoded by
encOption.