NLAlib.Ops.Reference.instrumented_frame
Library · theorem
A live frame runs its body at the evaluated dimensions and operands after its entry charge.
NLAlib.Ops.Reference.instrumented_frame {Op Tst K : Type} (I : Ops.Interp Op Tst K)
(R : Ops.ResourceModel Op Tst) (τ : Ops.Tape K) (ds : List Ops.IExp) (args : List Ops.Operand)
(body : Ops.Stmt Op Tst) (ρ : Ops.Env) (a : Ops.Reference.State Op Tst K) (ha : a.cur ≤ a.peak)
{d : List ℕ} {xs : List (ℕ × ℕ)} (hd : Ops.IExp.evalList ρ.idx ds = some d)
(hx : Ops.Operand.evalList ρ args = some xs) (hl : a.mem.Live xs) :
Ops.Reference.instrumented I R τ (Ops.Stmt.frame ds args body) ρ a =
Ops.Reference.instrumented I R τ body (Ops.Env.frame d xs)
(Ops.Reference.charge
(Ops.Reference.dimensions ds + Ops.Reference.operands args +
Ops.Reference.core Ops.Bookkeeping.frame)
a)Import NLAlib.Ops.Reference.Accounting.