NLAlib.Ops.Algorithm.accepts_of_wp
Library · theorem
The bridge from the program logic: a total postcondition Q of the memory semantics of the certified program, at one tape, is a postcondition of the same counted run. The counted run succeeds within every resource bound of the specification (from the certificate) and its final memory is the final memory of the memory semantics, so it meets Q. Unlike NLAlib.Ops.Algorithm.accepts_of_reference, the output specification need not identify the final memory: a relational model is allowed.
NLAlib.Ops.Algorithm.accepts_of_wp {Op Tst K : Type} {r b : ℕ} {P : Ops.Problem K r b}
{model : Ops.AccessModel Op Tst P} {S : Ops.Specification Op Tst P} (A : Ops.Algorithm model S)
{d : Fin r → ℕ} (hd : P.valid d) (x : P.Input d) (I : Ops.Interp Op Tst K)
(hI : model.contracts d x I) {τ : Ops.Tape K} {Q : Ops.Mem K → Prop}
(h : Ops.Wp Ops.Mode.total I τ A.program.body (Ops.Program.environment d) Q (P.initial d x)) :
S.Accepts A.program I model.resources τ d x fun x m ↦ Q mImport NLAlib.Ops.Probability.