NLAlib.Ops.Algorithm.good_of_contracts
Library · theorem
One run, two inputs. If two inputs have the same supplied buffers and the contracts of the model allow the interpretation I at both, then the one run of a certified program from those buffers under I meets the output condition of both inputs. Whatever distinguishes the two inputs must therefore be visible in which interpretations the model allows.
NLAlib.Ops.Algorithm.good_of_contracts {Op Tst K : Type} {r b : ℕ} {P : Ops.Problem K r b}
{M : Ops.AccessModel Op Tst P} {S : Ops.Specification Op Tst P} (A : Ops.Algorithm M S)
{d : Fin r → ℕ} (hd : P.valid d) {x y : P.Input d} (h : (↑x).2 = (↑y).2) {I : Ops.Interp Op Tst K}
(hx : M.contracts d x I) (hy : M.contracts d y I) (τ : Ops.Tape K) :
∃ st,
Ops.Reference.Execution A.program I M.resources P.formats τ d (P.initial d x) st ∧
S.good d x τ st.cost st.mem ∧ S.good d y τ st.cost st.memImport NLAlib.Ops.Dependence.