NLA-lib Explorer

NLAlib.Ops.Functional.isFn

Library · theorem

A model interpreter meets each generated primitive's exact local functional contract.

NLAlib.Ops.Functional.isFn {K Op : Type} [Inhabited K] {r b : ℕ} {P : Ops.Problem K r b}
  {dec : K → ℝ} {functions : (d : Fin r → ℕ) → P.Input d → Op → Ops.BlockFn K}
  {resources : Ops.ResourceModel Op Ops.CmpTst} {d : Fin r → ℕ} {x : P.Input d}
  {I : Ops.Interp Op Ops.CmpTst K}
  (h : (Ops.Functional.model P dec functions resources).contracts d x I) (o : Op) :
  I.IsFn Ops.Mode.total o (functions d x o) Ops.AnyOperands

Full source on GitHub

Import NLAlib.Ops.Catalog.Functional.