Running and counting queries of OracleComp.pi and OracleComp.replicate #
Execution (ProbOracleComp.run), simulation (ProbOracleComp.simulate), syntactic query bounds
(ProbOracleComp.IsQueryBounded), and exact stateful transcript lengths
(OracleComp.withTranscript) for finite tuples (OracleComp.pi) and independent repetitions
(OracleComp.replicate) of probabilistic oracle computations.
Main results #
Cslib.OracleComp.isCostBounded_pi: cost budgets add alongOracleComp.pi.Cslib.ProbOracleComp.run_pi,Cslib.ProbOracleComp.run_pi_query: runningOracleComp.piagainst a probabilistic or deterministic oracle.Cslib.ProbOracleComp.simulate_pi,Cslib.ProbOracleComp.simulate_mapM: simulatingOracleComp.pior a list traversalList.mapMdistributes over its steps.Cslib.ProbOracleComp.isQueryBounded_pi_query,Cslib.ProbOracleComp.length_transcript_pi_query: a tuple ofmexternal queries makes at mostm(and on every supported transcript, exactlym) external queries.Cslib.ProbOracleComp.run_replicate: runningOracleComp.replicate k programagainst an oracle repeatsProbOracleComp.run program O.Cslib.ProbOracleComp.isQueryBounded_replicate,Cslib.ProbOracleComp.length_transcript_replicate: repeating aq-query computationktimes makes at mostk * q(and on every supported transcript, exactlyk * q) external queries.
Budgets add along OracleComp.pi: if each of m coordinate programs costs at most c, the
tuple costs at most m * c.
Running OracleComp.pi against an oracle runs each coordinate program in order.
Simulating OracleComp.pi under an oracle simulation h simulates each coordinate program
in order.
Simulating a list traversal under an oracle simulation h simulates each step in order.
Running a tuple of external queries against a deterministic oracle returns the tuple of answers.
A tuple of m external queries makes at most m external queries.
Every supported stateful execution of a tuple of m external queries logs a transcript of
exact length m.
Running OracleComp.replicate against an oracle repeats the run of the underlying program.
Repeating a q-query-bounded program k times makes at most k * q queries.
If every supported execution of program makes exactly q external queries, then every
supported execution of OracleComp.replicate k program makes exactly k * q external queries.