NLA-lib Explorer

NLAlib.Ops.ExactLinearScalar.laws

Library Β· theorem

The scalar implementation preserves every other declared group and supplies all vector contracts through actual scalar executions. Matrix representation remains a local choice.

NLAlib.Ops.ExactLinearScalar.laws {π•œ : Type} [RCLike π•œ]
  {I : Ops.Interp Ops.ExactScalarLinear.Operation Ops.CmpTst π•œ} {dataLength : β„• β†’ β„• β†’ β„•}
  {matrix : (m n : β„•) β†’ List π•œ β†’ Matrix (Fin m) (Fin n) π•œ}
  (hS : Ops.IsScalar Ops.RCLikeBlas.machine I) (hStar : Ops.RCLikeStar.IsExact I)
  (hA : Ops.StoredOperator.IsExact dataLength matrix I) (hDraw : Ops.IsSample I)
  (hIndex : Ops.IsIndexLit Ops.RCLikeBlas.machine I) (hCmp : Ops.IsCmp (⇑RCLike.re) I) :
  Ops.IsScalar Ops.RCLikeBlas.machine (I.link Ops.ExactLinearScalar.table) ∧
    Ops.RCLikeBlas.IsExact (I.link Ops.ExactLinearScalar.table) ∧
      Ops.StoredOperator.IsExact dataLength matrix (I.link Ops.ExactLinearScalar.table) ∧
        Ops.IsSample (I.link Ops.ExactLinearScalar.table) ∧
          Ops.IsIndexLit Ops.RCLikeBlas.machine (I.link Ops.ExactLinearScalar.table) ∧
            Ops.IsCmp (⇑RCLike.re) (I.link Ops.ExactLinearScalar.table)

Full source on GitHub

Import NLAlib.Ops.Profiles.ExactLinearScalar.