NLAlib.Ops.Impl.Satisfies.runs
Library · theorem
The bridge: satisfaction in total mode gives the top-level statement. Under the precondition of the contract, the tree, run in the environment of its dimensions and operands, terminates within its static counts and workspace, and the postcondition of the contract holds of the final memory.
NLAlib.Ops.Impl.Satisfies.runs {Op Tst K : Type} {E : Ops.Impl Op Tst} {I : Ops.Interp Op Tst K}
{C : Ops.Contract K} (h : E.Satisfies I Ops.Mode.total C) (W : Op → List ℕ → ℕ) {d : List ℕ}
{ins outs : List (ℕ × ℕ)} {τ : Ops.Tape K} {m : Ops.Mem K}
(hpre : (C.on Ops.Mode.total d ins outs τ m).pre m) :
Ops.ConditionalRuns I W τ E.body (Ops.Env.frame d (ins ++ outs)) m
(Ops.stmtCost E.body (d ++ List.map Prod.snd (ins ++ outs)))
(Ops.stmtPeak W E.body (d ++ List.map Prod.snd (ins ++ outs)))
((C.on Ops.Mode.total d ins outs τ m).post m)Import NLAlib.Ops.Cert.