NLA-lib Explorer

NLAlib.Ops.lift_stmtCost_tally

Library · theorem

Structural instructions weigh one each, so the bookkeeping list of a tree weighs its length.

NLAlib.Ops.lift_stmtCost_tally {Op Tst : Type} (f : Op → List ℕ → ℕ) (g : Tst → List ℕ → ℕ)
  (ks : List Ops.Bookkeeping) (idx : List ℕ) :
  (Ops.Count.lift ((f ⊕ᵥ fun x x_1 ↦ 1) ⊕ᵥ g)) (Ops.stmtCost (Ops.tally ks) idx) = ks.length

Full source on GitHub

Import NLAlib.Ops.Certification.