NLA-lib Explorer

NLAlib.Ops.callsSatisfy_stmtCost_frame

Library · theorem

Framing preserves a support property when it holds for the evaluated dimensions and all operand offsets. Invalid index evaluation contributes no call support.

NLAlib.Ops.callsSatisfy_stmtCost_frame {Op Tst : Type} {ds : List Ops.IExp}
  {args : List Ops.Operand} {s : Ops.Stmt Op Tst} {idx d : List ℕ} {P : Op → List ℕ → Prop}
  (hd : Ops.IExp.evalList idx ds = some d)
  (h : ∀ (os : List ℕ), (Ops.stmtCost s (d ++ os)).CallsSatisfy P) :
  (Ops.stmtCost (Ops.Stmt.frame ds args s) idx).CallsSatisfy P

Full source on GitHub

Import NLAlib.Ops.CallSupport.