Strict oracle PPT list traversal #
Running an oracle PPT program on each element of an efficiently computed list is strict oracle PPT when every encoded result has an efficiently computed length bound from the original input. The traversal maintains the remaining items and the results in order. Its state grows by at most one framed result per step, including under arbitrary oracle replies. Sending a list of queries and keeping a prefix of each reply is a specialization.
Main results #
Cslib.Probability.IsOraclePPTOn.mapM_with_of_bounded_output: certify a traversal whose per-item program can read the original input.Cslib.Probability.IsOraclePPTOn.mapM_query_take: the traversalList.mapMof truncated external queries is strict oracle PPT.
Traverse an efficiently computed list with a strict oracle PPT program that can read the original input. An efficiently computed bound covers every supported encoded result, including under arbitrary oracle replies. The fallback only totalizes the loop body.
Querying channel op on each word of an efficiently computed list, in order, and keeping the
first limit a bits of each reply is strict oracle PPT.