Documentation

CslibFrontier.Languages.Probabilistic.Oracle.RunLogAgree

Run-log agreement until a marked query #

Two stateless probabilistic oracles that have the same output distribution away from a predicate bad induce logging oracles satisfying ProbOracleComp.IdenticalUntilBad (until the log names a bad query), so they assign the same probability to every outcome of ProbOracleComp.runLog whose log mentions no query satisfying bad.

Main results #

theorem Cslib.ProbOracleComp.eval_runLog_apply_eq_of_agree {Q R α : Type} {O O' : Q → ProbComp R} {bad : Q → Prop} (h : ∀ (q : Q), ¬bad q → (O q).eval = (O' q).eval) (A : ProbOracleComp (fun (x : Q) => R) α) {z : α × List (Q × R)} (hz : ∀ p ∈ z.2, ¬bad p.1) :
(A.runLog O).eval z = (A.runLog O').eval z

Two oracles that agree away from bad give the same probability to every outcome whose log names no bad query.

theorem Cslib.ProbOracleComp.map_fst_eval_runLog {Q R α : Type} (A : ProbOracleComp (fun (x : Q) => R) α) (O : Q → ProbComp R) :

Forgetting the log of runLog gives run.