NLAlib.Ops.StoredScalar.full_laws
Library Β· theorem
The composed lowering supplies every higher primitive law from a scalar-only model and a leaf tree that, as a matrix-vector routine (NLAlib.Ops.StoredOperator.matvecRoutine), meets the specification read off the stored-operator contract. No whole-program execution is a premise.
NLAlib.Ops.StoredScalar.full_laws {π : Type} [RCLike π]
{I : Ops.Interp Ops.ScalarOnly.Operation Ops.CmpTst π} {dataLength : β β β β β}
{matrix : (m n : β) β List π β Matrix (Fin m) (Fin n) π}
(body : Ops.Stmt Ops.ScalarOnly.Operation Ops.CmpTst) (hS : Ops.IsScalar Ops.RCLikeBlas.machine I)
(hStar : Ops.RCLikeStar.IsExact I) (hDraw : Ops.IsSample I)
(hIndex : Ops.IsIndexLit Ops.RCLikeBlas.machine I) (hCmp : Ops.IsCmp (βRCLike.re) I)
(hLeaf :
(Ops.StoredOperator.matvecRoutine dataLength body).Meets I
(Ops.Routine.Spec.ofRel
(Ops.StoredOperator.functions dataLength matrix Ops.StoredOperatorOp.matvec).rel fun x β¦
True)) :
have J :=
I.link
(Ops.ExactLinearScalar.table.comp
(Ops.StoredScalar.table (Ops.StoredOperator.matvecRoutine dataLength body)));
Ops.IsScalar Ops.RCLikeBlas.machine J β§
Ops.RCLikeBlas.IsExact J β§
Ops.StoredOperator.IsExact dataLength matrix J β§
Ops.IsSample J β§ Ops.IsIndexLit Ops.RCLikeBlas.machine J β§ Ops.IsCmp (βRCLike.re) JImport NLAlib.Ops.Profiles.StoredScalar.