NLAlib.Ops.Inputs.Oracles.good_of_satisfies
Library · theorem
Two inputs with the same buffers are told apart only by an oracle. If the declared oracles of the interpretation I satisfy their contracts at the input Y as well as at X, and X and Y have the same supplied buffers, then the one run of a certified program under I meets the output condition of both. So for the output to depend on data that is in no buffer, some declared oracle must answer in a way that the other input does not allow.
NLAlib.Ops.Inputs.Oracles.good_of_satisfies {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) {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)
(hO : ∀ o ∈ O.ops, I.Satisfies Ops.Mode.total o (M.operation d Y o)) (τ : 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.