NLAlib.Ops.evalCounted_frame_body
Library · theorem
A counted frame executes its actual body at the evaluated dimensions and operands, without changing the incoming counts or scratch history.
NLAlib.Ops.evalCounted_frame_body {Op Tst K : Type} {I : Ops.Interp Op Tst K} {W : Op → List ℕ → ℕ}
{τ : Ops.Tape K} {ρ : Ops.Env} {ds : List Ops.IExp} {args : List Ops.Operand}
{body : Ops.Stmt Op Tst} {d : List ℕ} {as : List (ℕ × ℕ)} {a b : Ops.St Op Tst K}
(hd : Ops.IExp.evalList ρ.idx ds = some d) (ha : Ops.Operand.evalList ρ args = some as)
(hr : Ops.evalCounted I W τ (Ops.Stmt.frame ds args body) ρ a = some b) :
Ops.evalCounted I W τ body (Ops.Env.frame d as) a = some bImport NLAlib.Ops.Logic.Count.