NLA-lib Explorer

NLAlib.Ops.Program.Certifies.map_post

Library · theorem

A mathematical consequence of a canonical output specification keeps the fixed program, model and every count/work/span/memory bound. The same actual counts and tape are forwarded.

NLAlib.Ops.Program.Certifies.map_post {Op Tst K : Type} {r b : ℕ} {P : Ops.Problem K r b}
  {p : Ops.Program Op Tst r b} {M : Ops.AccessModel Op Tst P} {S : Ops.Specification Op Tst P}
  (h : p.Certifies 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) :
  p.Certifies M
    { budget := S.budget, scratch := S.scratch, work := S.work, span := S.span, memory := S.memory,
      good := Q }

Full source on GitHub

Import NLAlib.Ops.Cert.