NLA-lib Explorer

NLAlib.Ops.stmtPeak_frame_le_of_length

Library · theorem

A frame body may also use the known number of operand offsets, for example to locate a newly bound loop or query index after its dimensions and operands.

NLAlib.Ops.stmtPeak_frame_le_of_length {Op Tst : Type} {W : Op → List ℕ → ℕ} {ds : List Ops.IExp}
  {args : List Ops.Operand} {body : Ops.Stmt Op Tst} {idx d : List ℕ} {p : ℕ}
  (hd : Ops.IExp.evalList idx ds = some d)
  (hb : ∀ (offs : List ℕ), offs.length = args.length → Ops.stmtPeak W body (d ++ offs) ≤ p) :
  Ops.stmtPeak W (Ops.Stmt.frame ds args body) idx ≤ p

Full source on GitHub

Import NLAlib.Ops.AllocationFree.