NLAlib.Ops.stmtWeightedCost_frame_le
Library · theorem
A frame's scalar weighted bound follows from the evaluated dimensions and a body bound uniform in its operand offsets. Failed operand evaluation contributes zero weighted cost.
NLAlib.Ops.stmtWeightedCost_frame_le {Op Tst : Type} (op : Op → List ℕ → ℕ)
(query : Tst → List ℕ → ℕ) {ds : List Ops.IExp} {args : List Ops.Operand} {s : Ops.Stmt Op Tst}
{idx d : List ℕ} {b : ℕ} (hd : Ops.IExp.evalList idx ds = some d)
(h : ∀ (os : List ℕ), Ops.stmtWeightedCost op query s (d ++ os) ≤ b) :
Ops.stmtWeightedCost op query (Ops.Stmt.frame ds args s) idx ≤ bImport NLAlib.Ops.WeightedCost.