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 #
Cslib.ProbOracleComp.eval_runLog_apply_eq_of_agree: equal probabilities for outcomes without abadquery in the log.Cslib.ProbOracleComp.map_fst_eval_runLog: forgetting the log ofrunLoggivesrun.
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) :
Two oracles that agree away from bad give the same probability to every outcome whose log
names no bad query.