NLAlib.Ops.stmtWeightedCost_frame_le_of_length
Library · theorem
A frame also fixes the offset-list length, including when a body locates a newly bound index after its dimensions and operands.
NLAlib.Ops.stmtWeightedCost_frame_le_of_length {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 ℕ), os.length = args.length → Ops.stmtWeightedCost op query s (d ++ os) ≤ b) :
Ops.stmtWeightedCost op query (Ops.Stmt.frame ds args s) idx ≤ bImport NLAlib.Ops.WeightedCost.