NLA-lib Explorer

NLAlib.QueryAlgorithm.transcript_eq_of_forall_apply_queries_eq

Library · theorem

Indistinguishability: if a second oracle g agrees with f at every query the algorithm makes against f, then the algorithm makes the same queries against g and gets the same transcript. This is the deterministic half of every adversary and deferred-decision argument.

NLAlib.QueryAlgorithm.transcript_eq_of_forall_apply_queries_eq.{u_1, u_2, u_3} {Q : Type u_1}
  {R : Type u_2} {β : Type u_3} {q : ℕ} (alg : QueryAlgorithm Q R q β) {f g : Q → R}
  (h : ∀ (j : Fin q), g (alg.queries (alg.transcript f) j) = f (alg.queries (alg.transcript f) j)) :
  alg.transcript g = alg.transcript f

Full source on GitHub

Import NLAlib.LowerBounds.QueryModel.Basic.