NLA-lib Explorer

NLAlib.Ops.staticPeak_eq

Library · theorem

The allocation/primitive part of the byte bound is unchanged by structural elaboration.

NLAlib.Ops.staticPeak_eq {Op Tst : Type} {r b : ℕ} (R : Ops.ResourceModel Op Tst)
  (p : Ops.Program Op Tst r b) (d : Fin r → ℕ) :
  Ops.staticPeak R p d =
    Ops.stmtPeak R.workspace p.body (Ops.Program.environment d).idx +
      R.queryReserve (Ops.staticCost p d)

Full source on GitHub

Import NLAlib.Ops.Static.