NLA-lib Explorer

NLAlib.Ops.Profile.Refines.runs

Library · theorem

The corollary for any algorithm and any certified profile: a theorem proved for every interpretation meeting Ck holds for the linked program over every interpretation meeting Base, with the counts pushed forward and the same workspace.

NLAlib.Ops.Profile.Refines.runs {Op Lo Tst K : Type} {P : Ops.Profile Op Lo Tst}
  {Base : Ops.Interp Lo Tst K → Prop} {Ck : Ops.Interp Op Tst K → Prop} (h : P.Refines Base Ck)
  {τ : Ops.Tape K} {s : Ops.Stmt Op Tst} {ρ : Ops.Env} {m : Ops.Mem K} {B : Ops.Count Op Tst}
  {M : ℕ} {Q : Ops.Mem K → Prop}
  (hT : ∀ (J : Ops.Interp Op Tst K), Ck J → Ops.ConditionalRuns J P.ws τ s ρ m B M Q)
  {I : Ops.Interp Lo Tst K} (hI : Base I) :
  Ops.ConditionalRuns I P.wsLo τ (Ops.Stmt.link P.table s) ρ m ((Ops.Count.push P.cost) B) M Q

Full source on GitHub

Import NLAlib.Ops.Profile.