NLA-lib Explorer

NLAlib.Ops.stmtWeightedCost_eq_zero_of_hasCall

Library · theorem

A tree without a selected call has weighted cost zero under a weight supported on the selected calls, with zero query weight.

NLAlib.Ops.stmtWeightedCost_eq_zero_of_hasCall {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) :
  Ops.Stmt.hasCall sel s = false →
    ∀ (idx : List ℕ), Ops.stmtWeightedCost g (fun x x_1 ↦ 0) s idx = 0

Full source on GitHub

Import NLAlib.Ops.SelectedWork.