NLA-lib Explorer

NLAlib.SpectralBisection.stmtPeak_downNodes_zero_le

Library · theorem

The actual size query is bounded by the unused root slots. Every possible returned size therefore fits the same peak reservation, independently of the number of occupied slots.

NLAlib.SpectralBisection.stmtPeak_downNodes_zero_le {Op Tst : Type} [Ops.Has Ops.ScalarOp Op]
  [Ops.Has Ops.IndexOp Op] [Ops.Has Ops.MatrixOp Op] [Ops.Has Ops.CmpTst Tst]
  [Ops.Has Ops.IdxTst Tst] (n L cap d : ℕ) (offs : List ℕ) (hlen : offs.length = 13) (hn : 2 ≤ n) :
  Ops.stmtPeak (fun x x_1 ↦ 0) (SpectralBisection.downNodes SpectralBisection.node)
      ([n, L, cap, d] ++ offs) ≤
    18 * (n * n) + 9

Full source on GitHub

Import NLAlib.Eigensolvers.SpectralBisection.LevelWorkspace.