Running an oracle program against a probabilistic oracle #
A.run O runs A : ProbOracleComp spec α as a closed probabilistic program: each private sample
is a fresh uniform draw, and each external query q runs O q. A deterministic oracle f is
fun q => pure (f q), so a keyed experiment reads A.run fun x => pure (F key x). Security games
write the challenger's oracle this way, instead of spelling out the sum handler that interprets
the program.
Main definitions #
Cslib.ProbOracleComp.run: run an oracle program with fresh private coins against an oracle.
Main results #
Cslib.ProbOracleComp.run_pure,run_bind,run_map,run_query,run_sample:runis the monad morphism answering queries withOand sampling with fresh coins.Cslib.ProbOracleComp.run_simulate: running a reduction built bysimulateruns each handler program against the oracle.Cslib.ProbOracleComp.eval_run: the law of a run, as the program interpreted at thePMFlevel against the laws of the oracle's replies.
Run A with fresh uniform private coins, answering each external query q with O q.
A sequenced program runs its first part, then the continuation, with the same oracle.
Running a substituted program runs each handler program against the oracle, with the same fresh private coins.
The law of a run: interpret the program at the PMF level, sampling uniformly and answering
each query with the law of the oracle's reply.