NLAlib.Ops.Profile.Refines.runsLaw
Library · theorem
The corollary for any algorithm and any certified profile, law-level form. A law-level theorem proved for every interpretation meeting Ck whose operations read the tape only in their windows holds for the linked program over every interpretation meeting Base whose operations read the tape only in theirs, with the counts pushed forward, the same workspace and the same statement about the law.
NLAlib.Ops.Profile.Refines.runsLaw {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} {I : Ops.Interp Lo Tst K}
{ξ : Ω → Ops.Tape K} {s : Ops.Stmt Op Tst} {ρ : Ops.Env} {m : Ops.Mem K} {B : Ops.Count Op Tst}
{M : ℕ} (h : P.Refines Base Ck) {Q : α → Ops.Mem K → Prop} {Φ : (Ω → α) → Prop}
(hT :
∀ (J : Ops.Interp Op Tst K),
Ck J → (∀ (o : Op), J.TapeLocal o (P.win o)) → Ops.ConditionalRunsLaw J P.ws ξ s ρ m B M Q Φ)
(hI : Base I) (hloc : ∀ (o : Lo), I.TapeLocal o (P.winLo o)) :
Ops.ConditionalRunsLaw I P.wsLo ξ (Ops.Stmt.link P.table s) ρ m ((Ops.Count.push P.cost) B) M Q ΦImport NLAlib.Ops.Law.