NLAlib.Ops.stmtWeightedCost_keepCalls
Library · theorem
Removing unselected subtrees keeps the weighted cost of a weight supported on the selected calls, with zero query weight.
NLAlib.Ops.stmtWeightedCost_keepCalls {Op Tst : Type} {sel : Op → Bool} {g : Op → List ℕ → ℕ}
(hg : ∀ (o : Op) (ds : List ℕ), sel o = false → g o ds = 0) (s : Ops.Stmt Op Tst) (idx : List ℕ) :
Ops.stmtWeightedCost g (fun x x_1 ↦ 0) (Ops.Stmt.keepCalls sel s) idx =
Ops.stmtWeightedCost g (fun x x_1 ↦ 0) s idxImport NLAlib.Ops.SelectedWork.