NLA-lib Explorer

NLAlib.Ops.stmtWeightedCost

Library · def

Scalar weighted cost of the existing statement tree. Branches and bounded query answers take the maximum of their weighted costs. A capped while loop reserves its possible tests and bodies plus the largest continuation cost over the possible stopping rounds.

NLAlib.Ops.stmtWeightedCost {Op Tst : Type} (op : Op → List ℕ → ℕ) (query : Tst → List ℕ → ℕ) :
  Ops.Stmt Op Tst → List ℕ → ℕ

Full source on GitHub

Import NLAlib.Ops.WeightedCost.