NLAlib.Ops.Algorithm.accepts_of_reference
Library · theorem
The reference event strengthens the postcondition of the actual counted execution. Success and all resource facts come from the total certificate, rather than premises.
NLAlib.Ops.Algorithm.accepts_of_reference {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) {Omega : Type} (tape : Omega → Ops.Tape K) (R : Omega → Prop)
(Q : Omega → Ops.Count (Op ⊕ Ops.Bookkeeping) Tst → Ops.Mem K → Prop)
(hPost :
∀ (omega : Omega) (c : Ops.Count (Op ⊕ Ops.Bookkeeping) Tst) (m : Ops.Mem K),
S.good d x (tape omega) c m → R omega → Q omega c m)
(omega : Omega) (hR : R omega) : S.Accepts A.program I model.resources (tape omega) d x (Q omega)Import NLAlib.Ops.Probability.