NLAlib.Ops.Dense.work_eq_nonmatrix_add_matrix
Library · theorem
The dense profile's full work splits into its nonmatrix instruction charges and the actual supplied matrix costs. Structural work is retained in the first summand.
NLAlib.Ops.Dense.work_eq_nonmatrix_add_matrix
(matrixWork matrixWorkspace : Ops.MatrixOp → List ℕ → ℕ)
(c : Ops.Count (Ops.DenseOp ⊕ Ops.Bookkeeping) (Ops.CmpTst ⊕ Ops.IdxTst)) :
(Ops.Dense.resources matrixWork matrixWorkspace).work c =
(Ops.Dense.resources (fun x x_1 ↦ 0) matrixWorkspace).work c +
(Ops.Count.weight (Ops.Dense.matrixWeight matrixWork)) (Ops.Count.original c)Import NLAlib.Ops.Profiles.DenseWork.