NLA-lib Explorer

NLAlib.Ops.stmtPeak_zero_of_allocationFree

Library · theorem

With zero primitive workspace, a structurally allocation-free body has exactly zero scratch, for every index environment, including environments where an expression fails.

NLAlib.Ops.stmtPeak_zero_of_allocationFree {Op Tst : Type} {s : Ops.Stmt Op Tst}
  (h : s.allocationFree = true) (idx : List ℕ) : Ops.stmtPeak (fun x x_1 ↦ 0) s idx = 0

Full source on GitHub

Import NLAlib.Ops.AllocationFree.