NLAlib.Ops.stmtWeightedCost_zero_of_allOps
Library · theorem
If a syntactic operation check permits only zero-weight operations, the statement's weighted cost is zero at every index environment when query weights are also zero.
NLAlib.Ops.stmtWeightedCost_zero_of_allOps {Op Tst : Type} (op : Op → List ℕ → ℕ) (p : Op → Bool)
(hp : ∀ (o : Op), p o = true → ∀ (ds : List ℕ), op o ds = 0) (s : Ops.Stmt Op Tst)
(hs : Ops.Stmt.allOps p s = true) (idx : List ℕ) :
Ops.stmtWeightedCost op (fun x x_1 ↦ 0) s idx = 0Import NLAlib.Ops.WeightedCost.