NLAlib.Ops.Inputs.Oracles.good_of_allOps
Library · theorem
A tree that calls no declared oracle cannot use data that is in no buffer. If every operation the tree of a certified program calls passes a check p that no declared oracle passes, and two inputs have the same supplied buffers, then the one run from those buffers, under any interpretation the model allows, meets the output condition of both inputs.
NLAlib.Ops.Inputs.Oracles.good_of_allOps {Op Tst K : Type} {r b : ℕ} {D : Ops.Inputs K r b}
{M : Ops.AccessModel Op Tst D.problem} {S : Ops.Specification Op Tst D.problem} (O : D.Oracles M)
(A : Ops.Algorithm M S) (p : Op → Bool) (hp : ∀ (o : Op), p o = true → o ∉ O.ops)
(hA : Ops.Stmt.allOps p A.program.body = true) {d : Fin r → ℕ} (hd : D.valid d)
{X Y : D.problem.Input d} (h : (↑X).2 = (↑Y).2) {I : Ops.Interp Op Tst K} (hI : M.contracts d X I)
(τ : Ops.Tape K) :
∃ st,
Ops.Reference.Execution A.program I M.resources D.problem.formats τ d (D.problem.initial d X)
st ∧
S.good d X τ st.cost st.mem ∧ S.good d Y τ st.cost st.memImport NLAlib.Ops.Dependence.