Simulating query-bounded programs #
A program with private coins runs against a real stateful oracle or against an ideal oracle that
depends on a hidden sample. The two are linked by a law exp s of the hidden sample given the
real oracle state and by a representation rep s of that state. When each external query keeps
the link, the whole program keeps it, retaining its result and the final oracle state.
The local link need only hold on states satisfying an invariant indexed by the remaining query budget. Each query may use one unit of the budget, as when the invariant reserves room in a bounded cache for every query still to come. Private samples use none.
Main results #
Cslib.ProbOracleComp.IsQueryBounded.run_interpret_bind_comm_of_invariant: a link kept by every external query on the remaining budget is kept by a query-bounded program.Cslib.ProbOracleComp.IsQueryBounded.run_interpret_invariant: a budget-indexed invariant kept by every external query holds after a query-bounded program.
A query-bounded program keeps the link (exp s).map (·, a, rep s) between the real run and
an ideal run on a hidden sample, when every external query keeps it on states satisfying the
invariant inv (rem + 1) and leads to states satisfying inv rem. Private samples are fresh in
both runs.
A budget-indexed invariant holds after a query-bounded program when every external query from
a state satisfying inv (rem + 1) leads to states satisfying inv rem. Private samples leave the
state unchanged.