Tabulating an oracle on a list of points #
ProbOracleComp.tabulate q ps queries the oracle at q p for each point p of the list ps, in
order, and returns the table of answers, with 0 at points outside the list. Against a fixed
function the table is that function on the list (interpret_tabulate), and the program makes at
most ps.length queries, one per list entry (isQueryBounded_tabulate). More generally, its
cost under any per-query weight is at most the sum of the entry costs (isCostBounded_tabulate),
and when ps has no duplicates and a projection f ∘ q is injective, at most one query lands on
each fibre of f (isCostBounded_tabulate_eq). A reduction that needs
an oracle's values on a known finite set of points, for example every PRF input used by a
construction, reads them all up front this way and then runs without further queries.
Main definitions #
Cslib.ProbOracleComp.tabulate: query a list of points and return the table of answers.
Main results #
Cslib.ProbOracleComp.interpret_tabulate: against a fixed function, the returned table.Cslib.ProbOracleComp.isCostBounded_tabulate: cost bound under an arbitrary query weight.Cslib.ProbOracleComp.isCostBounded_tabulate_eq,Cslib.ProbOracleComp.isCostBounded_tabulate_le_one: at most one query per fibre whenf ∘ qis injective on a duplicate-free list.Cslib.ProbOracleComp.isQueryBounded_tabulate: at most one query per list entry.
Query the oracle at q p for each p in ps, in order, and return the table p ↦ answer,
which is 0 off the list.
Against a fixed function f, tabulation returns f ∘ q on the list and 0 off it, in every
lawful monad supplying the private coins.
Tabulation costs at most the sum of the query costs of the list entries.
When ps has no duplicates and f ∘ q is injective, at most one tabulated query has image
t under f.
Uniform 1-bound form of isCostBounded_tabulate_eq: when ps has no duplicates and
f ∘ q is injective, at most one tabulated query has image t under f for every t.
Tabulation makes at most ps.length external queries, one per list entry.