NLAlib.Ops.Dense.work_le_of_kernelWeight_le
Library · theorem
A full instruction budget and an independently proved actual matrix-kernel bound combine into total work. The matrix bound may be sharper than weighting the count budget.
NLAlib.Ops.Dense.work_le_of_kernelWeight_le (matrixWork matrixWorkspace : Ops.MatrixOp → List ℕ → ℕ)
(T : ℕ → ℕ)
(hWork : ∀ (o : Ops.MatrixOp) (ds : List ℕ), matrixWork o ds ≤ T (List.foldr max 0 ds))
{c budget : Ops.Count (Ops.DenseOp ⊕ Ops.Bookkeeping) (Ops.CmpTst ⊕ Ops.IdxTst)} {kernel : ℕ}
(hCount : c ≤ budget) (hKernel : (Ops.Dense.kernelWeight T) (Ops.Count.original c) ≤ kernel) :
(Ops.Dense.resources matrixWork matrixWorkspace).work c ≤
(Ops.Dense.resources (fun x x_1 ↦ 0) matrixWorkspace).work budget + kernelImport NLAlib.Ops.Profiles.DenseWork.