NLAlib.Ops.Program.exec_work_le_countPoly
Library · theorem
The work of a canonical run is at most the instruction polynomial of the program at its sizes, when every primitive, query and structural weight is at most one.
NLAlib.Ops.Program.exec_work_le_countPoly {Op Tst K : Type} {r b : ℕ} (p : Ops.Program Op Tst r b)
(R : Ops.ResourceModel Op Tst) (hop : ∀ (o : Op) (d : List ℕ), R.operationWork o d ≤ 1)
(hcore : ∀ (k : Ops.Bookkeeping) (d : List ℕ), R.coreWork k d ≤ 1)
(hq : ∀ (q : Tst) (d : List ℕ), R.queryWork q d ≤ 1) {I : Ops.Interp Op Tst K} {τ : Ops.Tape K}
{formats : Fin b → Ops.StorageFormat} {d : Fin r → ℕ} {m : Ops.Mem K}
{st : Ops.St (Op ⊕ Ops.Bookkeeping) Tst K} (hr : Ops.exec p I R formats τ d m = some st) :
R.work st.cost ≤ Ops.CountPoly.eval (List.ofFn d) p.countPolyImport NLAlib.Ops.OperationCount.