Randomized pointer-machine programs #
Scalar instructions can sample from a supplied kernel. Each step uses the program counter in the machine state. Halt and out-of-range labels are absorbing.
Main definitions #
Op.evalRand: the randomized interpretation of structured data operations.stepRand,runRand: step and bounded execution of flat randomized programs.
Main results #
runRand_program: the output distribution of an assembled structured execution.
theorem Cslib.PointerMachine.runRand_program {M : Model} {L : Layout} (kernel : M.Op → M.Value → M.Value → ProbComp M.Value) {c : Code M L} {x : State M L} {m : ProbComp (State M L × ℕ)} {T : ℕ} (h : Program.ExecRand (Op.evalRand kernel) c x m) (hT : ∀ z ∈ OracleComp.support m, z.2 ≤ T) :
The assembled randomized program reaches its final halt with the structured output distribution whenever the budget covers each path.