Efficient stateful oracle runs #
An oracle-PPT word program run against an efficient stateful oracle is PPT, with the final oracle
state returned. The statements use ProbOracleComp.runState: the run is
(program.runState (oracle caller)).run (initial caller). They are
IsOraclePPTOn.run_interpret_preprocess and IsOraclePPT.run_interpret_preprocess stated on
runState, with the same resource allowance: a local invariant of the oracle state bounds each
reply and the encoded state added by each call. Each is derived from the corresponding theorem,
whose conclusion is definitionally the same run. State a run as (P.runState O).run s and certify
it here; run_interpret_preprocess remains for runs still written with OracleComp.interpret and
OracleComp.sumHandler.
Main results #
Cslib.Probability.IsOraclePPTOn.isPPTOn_runState: running an oracle-PPT program against an efficient stateful oracle is PPT, with polynomial-time preparation, initial state and allowance.Cslib.Probability.IsOraclePPT.isPPTOn_runState: the same for a program parameterized by the unary security parameter and a word.
Running an oracle-PPT program against an efficient stateful oracle is PPT in the caller, with
the final oracle state returned. prepare computes the program's input from the caller and
initial the oracle's initial state. On every supported call from a state satisfying
invariant, the oracle keeps the invariant, and the reply and the encoded state it adds are
bounded by the computed allowance resources caller request.
Running a parameterized oracle-PPT program against an efficient stateful oracle is PPT in the
caller, with the final oracle state returned. prepare computes the security parameter and word
from the caller, and initial the oracle's initial state, both in polynomial time; the oracle
condition is that of IsOraclePPTOn.isPPTOn_runState.