NLAlib.Ops.Algorithm.mapPost
Library · def
Add a pure mathematical output consequence without redoing program or resource proofs.
NLAlib.Ops.Algorithm.mapPost {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)
(Q :
(d : Fin r → ℕ) →
P.Input d → Ops.Tape K → Ops.Count (Op ⊕ Ops.Bookkeeping) Tst → Ops.Mem K → Prop)
(hQ :
∀ (d : Fin r → ℕ),
P.valid d →
∀ (x : P.Input d) (τ : Ops.Tape K) (c : Ops.Count (Op ⊕ Ops.Bookkeeping) Tst)
(m : Ops.Mem K), S.good d x τ c m → Q d x τ c m) :
Ops.Algorithm M
{ budget := S.budget, scratch := S.scratch, work := S.work, span := S.span, memory := S.memory,
good := Q }Import NLAlib.Ops.Cert.