Fixing private coins of randomized oracle programs #
When every external query q : Query has a finite reply type spec q, a randomized oracle program
prog : ProbOracleComp spec α has a finite tree of private coin choices Coins prog distributed
according to coinLaw prog : PMF (Coins prog). Fixing ω : Coins prog yields a deterministic
oracle program fixCoins prog ω : OracleComp spec α with no private sampling calls:
fixCoinspreserves every external query-cost budgetOracleComp.IsCostBounded(and in particularIsQueryBoundedandQueriesSatisfy);- against any stateful external oracle, sampling
ω ← coinLaw progand runningfixCoins prog ωreproduces the joint law of the output and final state ofprog(coinLaw_bind_runWith_fixCoins); against a deterministic external oracletable : (q : Query) → spec qthis is the exact output distribution ofprog(bind_interpret_fixCoins); - consequently, any experiment that samples a deterministic oracle table
t ← μindependently ofprog's private coins equals thecoinLaw prog-mixture of the corresponding deterministic-client experiments (table_bind_interpret_eq_coinLaw_bind), allowing information-theoretic bounds proved for deterministicOracleCompadversaries to transfer directly toProbOracleComp.
Main definitions #
Cslib.ProbOracleComp.Coins: finite type of private coin trees forProbOracleComp spec α.Cslib.ProbOracleComp.coinLaw: distribution overCoins prog.Cslib.ProbOracleComp.fixCoins: deterministicOracleComp spec αobtained by fixingω : Coins prog.
Main results #
Cslib.ProbOracleComp.coinLaw_pure,Cslib.ProbOracleComp.coinLaw_liftBind_inl,Cslib.ProbOracleComp.coinLaw_liftBind_inr: constructor equations forcoinLaw.Cslib.ProbOracleComp.isCostBounded_fixCoins,Cslib.ProbOracleComp.isQueryBounded_fixCoins: fixing private coins preserves query budgets.Cslib.ProbOracleComp.coinLaw_bind_runWith_fixCoins: averaging the run offixCoins prog ωovercoinLaw progagainst any stateful external oracle equals runningprogwith private coins.Cslib.ProbOracleComp.bind_interpret_fixCoins: averagingfixCoins prog ωovercoinLaw progagainst any deterministic external table equals interpretingprogwith private coins.Cslib.ProbOracleComp.table_bind_interpret_eq_coinLaw_bind: commuting an independent table distributionμpastcoinLaw prog.
Private coin space of a randomized oracle program: each private sample Fin (k + 1) pairs the
drawn value with the continuation's coins, and each external query q branches over every possible
reply in spec q.
Instances For
When every external reply type spec q is finite, Coins prog is finite.
Product distribution over the private coin choices of prog.
Deterministic oracle program obtained by supplying ω : Coins prog for all private samples.
Fixing private coins preserves any external query cost budget OracleComp.IsCostBounded.
Fixing private coins preserves IsQueryBounded.
Against any stateful external oracle, sampling ω ← coinLaw prog and running fixCoins prog ω
has the joint law of the result and final state of prog (its private samples fresh, as in
ProbOracleComp.runWith).
Against any deterministic external oracle table, sampling ω ← coinLaw prog and running
fixCoins prog ω has the exact output law of prog.
Sampling an external deterministic oracle table t ← μ independently of prog's private coins
commutes with fixing ω ← coinLaw prog.