NLA-lib Explorer

NLAlib.Ops.ExactLinear.laws

Library Β· theorem

Every interpreter of the generated model meets the scalar, Hermitian BLAS, explicit matvec, sampling, dimension-literal and comparison contracts jointly.

NLAlib.Ops.ExactLinear.laws {π•œ : Type} [RCLike π•œ] [Inhabited π•œ] {r b : β„•} {P : Ops.Problem π•œ r b}
  {dataLength : β„• β†’ β„• β†’ β„•} {matrix : (m n : β„•) β†’ List π•œ β†’ Matrix (Fin m) (Fin n) π•œ}
  {work workspace : Ops.ExactLinear.Operation β†’ List β„• β†’ β„•} {d : Fin r β†’ β„•} {x : P.Input d}
  {I : Ops.Interp Ops.ExactLinear.Operation Ops.CmpTst π•œ}
  (h : (Ops.ExactLinear.model P dataLength matrix work workspace).contracts d x I) :
  Ops.IsScalar Ops.RCLikeBlas.machine I ∧
    Ops.RCLikeBlas.IsExact I ∧
      Ops.StoredOperator.IsExact dataLength matrix I ∧
        Ops.IsSample I ∧ Ops.IsIndexLit Ops.RCLikeBlas.machine I ∧ Ops.IsCmp (⇑RCLike.re) I

Full source on GitHub

Import NLAlib.Ops.Profiles.ExactLinear.