NLAlib.Ops.stmtWeightedCost_matrix_zero_of_allOps
Library · theorem
A syntactically matrix-free dense program has zero matrix weight, for arbitrary matrix weight functions and operand dimensions. Queries have zero weight in this projection.
NLAlib.Ops.stmtWeightedCost_matrix_zero_of_allOps {Tst : Type} (W : Ops.MatrixOp → List ℕ → ℕ)
(s : Ops.Stmt Ops.DenseOp Tst)
(hs :
Ops.Stmt.allOps
(fun o ↦
match o with
| Ops.DenseOp.matrix op => false
| x => true)
s =
true)
(idx : List ℕ) : Ops.stmtWeightedCost (Ops.Dense.matrixWeight W) (fun x x_1 ↦ 0) s idx = 0Import NLAlib.Ops.Profiles.DenseWeight.