NLA-lib Explorer

NLAlib.Ops.Examples.WorkedInstances.lift_one_stmtCost_tally

Library · theorem

With every weight one, a list of structural instructions weighs its length.

NLAlib.Ops.Examples.WorkedInstances.lift_one_stmtCost_tally {Op Tst : Type}
  (ks : List Ops.Bookkeeping) (idx : List ℕ) :
  (Ops.Count.lift fun x x_1 ↦ 1) (Ops.stmtCost (Ops.tally ks) idx) = ks.length

Full source on GitHub

Import NLAlib.Ops.Examples.WorkedInstances.Basic.