NLA-lib Explorer

NLAlib.Ops.ScalarOnly.laws

Library Β· theorem

Scalar arithmetic, conjugation, draws, index literals and comparisons hold jointly.

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

Full source on GitHub

Import NLAlib.Ops.Profiles.ScalarOnly.