A certified stateful oracle interpreter #
The interpreter retains finite machine storage and the handler's state in one encoded value.
A local step uses the original transition table and a certified closed handler. Each certificate
charges captured input, requests, replies, state and retained configuration storage. The
certificates specialize those of the open interpreter Cslib.Probability.OpenOracleSimulation
to a sampled closed handler without external channels.
Main definitions #
Cslib.Probability.OracleSimulation.step: a native step with explicit handler state.
Main results #
Cslib.Probability.OracleSimulation.isPPTOn_step: the single-step PPT certificate.Cslib.Probability.OracleSimulation.step_eq_run_interpret: the exact stateful step law.Cslib.Probability.OracleSimulation.sample_step: a sampled step is an open step.Cslib.Probability.OracleSimulation.isPPTOn_run: a bounded run with a state invariant is PPT.
References #
Adapts Computability/Probabilistic/Realization/OracleSimulation.lean on the cslib crypto
branch at 5ff69ca93402e7c947208dc56396d6d86203ccd8 to the shared interpreter and tidy calculus.
Execute one native step, retaining all machine storage and the handler's state.
Instances For
One interpreted step retains the full finite configuration and final handler state.
A sampled step is the open interpreter's step with the sampled handler.
A certified stateful handler makes one complete interpreter step PPT.
A bounded native run with a stateful PPT handler is PPT. A local invariant bounds reply length and private-state growth; the loop certificate charges all interpreter storage.