Abstract resource accounting for the v5 hierarchical policy #
This module formalizes the manuscript's real-arithmetic accounting model. One primitive arithmetic operation, comparison, or constant-time tree access costs one unit. A period visits one root-to-leaf path. Memory consists of one word for each labeled supply and a constant number of words per tree leaf.
These are mathematical accounting functions, not runtime measurements of Lean's noncomputable definitions.
Abstract primitive-operation count for one period.
Equations
- FD1D.V5.hierarchicalOperationCount m = 20 * (FD1D.V5.treeDepth m + 1)
Instances For
Abstract memory count for labeled supplies and complete-tree data.
Equations
Instances For
Operations are bounded by a constant times the base-two ceiling logarithm.
The abstract memory budget is at most 5m words.
Explicit natural-log bound for the real-valued operation count.
Per-period operations are O(log m) in the accounting model.
Memory is O(m) in the accounting model.
Public bundle of the manuscript's operation and memory guarantees.
- memoryExplicit {m : ℕ} : 1 ≤ m → hierarchicalMemoryCount m ≤ 5 * m
- operationsAsymptotic : (fun (m : ℕ) => ↑(hierarchicalOperationCount m)) =O[Filter.atTop] fun (m : ℕ) => Real.log ↑m