Stateful oracle substitution with bounded state growth #
Library infrastructure (no cited result): extends
Cslib.Probability.IsOraclePPTOn.run_interpret_preprocess_open_of_polyBounded to handlers whose
reply length may depend on the current encoded state as well as the caller and request, requiring
only that each call adds at most an encoded-state increment polynomially bounded in the caller and
request alone.
Because IsOraclePPTOn on the outer program gives one polynomial Q bounding both the number of
external queries and the length of every external request (IsOraclePPTOn.query_bounds), the
handler's encoded state stays bounded by |initial| + k * G after k ≤ Q calls. Combined with
IsOraclePPTOn.length_le, ProbOracleComp.mem_support_iff_exists, and finite_operations on
the handler certificate, every supported reply along a real execution stays polynomially bounded in
the caller's input. Adding an explicit call counter and capping both the call count and the request
length at Q reduces the certificate to
IsOraclePPTOn.run_interpret_preprocess_open_of_polyBounded, while query-bounded simulation shows
that the cap never triggers along executions of the program.
Specializations cover closed ProbComp handlers, handlers whose encoded state is uniformly bounded
in the caller (of_state_le, requiring no invariant or support case split), memoryless
ProbOracleComp.run oracles (including the empty-reply oracle), and parameterized IsOraclePPT
programs.
Main results #
Cslib.Probability.IsOraclePPTOn.run_interpret_preprocess_open_of_bounded_growth,Cslib.Probability.IsOraclePPTOn.run_interpret_preprocess_of_bounded_growth: open and closed stateful substitution under polynomially bounded additive state growth, without a user-supplied reply-length bound.Cslib.Probability.IsOraclePPTOn.run_interpret_preprocess_open_of_state_le,Cslib.Probability.IsOraclePPTOn.run_interpret_preprocess_of_state_le: open and closed stateful substitution when all encoded states are bounded by a polynomial in the caller.Cslib.Probability.IsOraclePPTOn.isPPTOn_run,Cslib.Probability.IsOraclePPTOn.isPPTOn_runEmptyOracle: running an oracle-PPT program against an efficient memorylessProbComporacle (or the empty-reply oracle).Cslib.Probability.IsOraclePPT.run_interpret_preprocess_open_of_bounded_growth,Cslib.Probability.IsOraclePPT.run_interpret_preprocess_of_bounded_growth,Cslib.Probability.IsOraclePPT.run_interpret_preprocess_open_of_state_le,Cslib.Probability.IsOraclePPT.run_interpret_preprocess_of_state_le,Cslib.Probability.IsOraclePPT.isPPTOn_run: parameterized counterparts forIsOraclePPT.
Library infrastructure (no cited result): open stateful substitution when each call adds encoded
state polynomially bounded in the caller and request alone. Because the outer program's query
bound caps both the number of calls and every request length, the handler's encoded state stays
polynomially bounded in the caller's input along every execution, and IsOraclePPTOn.length_le
together with ProbOracleComp.mem_support_iff_exists gives a uniform polynomial bound on all
replies, reducing the certificate to
Cslib.Probability.IsOraclePPTOn.run_interpret_preprocess_open_of_polyBounded.
Closed ProbComp stateful substitution under polynomially bounded additive state growth,
without a user-supplied reply-length bound.
Open stateful substitution when every encoded state is bounded by a polynomial bound in the
caller alone, requiring no invariant, growth allowance, or support case split.
Closed ProbComp stateful substitution when every encoded state is bounded by a polynomial
bound in the caller alone, requiring no invariant, growth allowance, or support case split.
Running an oracle-PPT program via ProbOracleComp.run against an efficient memoryless
ProbComp oracle is closed PPT, without a user-supplied reply-length bound.
Running any IsOraclePPTOn program against fun _ => pure [] is closed PPT.
Parameterized IsOraclePPTOn.run_interpret_preprocess_open_of_bounded_growth.
Parameterized IsOraclePPTOn.run_interpret_preprocess_of_bounded_growth.
Parameterized IsOraclePPTOn.run_interpret_preprocess_open_of_state_le.
Parameterized IsOraclePPTOn.run_interpret_preprocess_of_state_le.
Parameterized IsOraclePPTOn.isPPTOn_run.