NLA-lib Explorer

NLAlib.Ops.Profile.Refines.of_accounts

Library · theorem

A certificate from the contracts of the induced interpretation and the accounting certificate of the table.

NLAlib.Ops.Profile.Refines.of_accounts {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}
  (hm : ∀ (I : Ops.Interp Lo Tst K), Base I → Ck (I.link P.table))
  (hacc : ∀ (I : Ops.Interp Lo Tst K), P.table.Accounts I P.wsLo P.cost P.ws)
  (htl :
    ∀ (I : Ops.Interp Lo Tst K),
      Base I →
        (∀ (o : Lo), I.TapeLocal o (P.winLo o)) →
          ∀ (o : Op), (I.link P.table).TapeLocal o (P.win o)) :
  P.Refines Base Ck

Full source on GitHub

Import NLAlib.Ops.Profile.