NLA-lib Explorer

NLAlib.Ops.stmtPeak_le_zero_add

Library · theorem

A uniform primitive-workspace ceiling contributes only once above the stored allocation peak. The premise bounds the workspace function on all operations and dimension lists; establishing a smaller dimension-specific ceiling requires a separate shape invariant.

NLAlib.Ops.stmtPeak_le_zero_add {Op Tst : Type} (W : Op → List ℕ → ℕ) (w : ℕ)
  (hW : ∀ (o : Op) (ds : List ℕ), W o ds ≤ w) (s : Ops.Stmt Op Tst) (idx : List ℕ) :
  Ops.stmtPeak W s idx ≤ Ops.stmtPeak (fun x x_1 ↦ 0) s idx + w

Full source on GitHub

Import NLAlib.Ops.Workspace.