The quasipolynomial approximation bound
Lax263307.QPTASRuntime · concepts/Lax263307/QPTASRuntime.lean · lax-263307
No public endorsements yet.
Loading review…
Sign in with ORCIDNatural Language Statement
Definition
For fixed positive integers , the running-time bound is
Here is the graph order, is the requested accuracy, and is the binary length of the rational weights and accuracy.
Concept map
Lean source view on GitHub
| 1 | import Mathlib.Data.Rat.Floor |
| 2 | import Mathlib.Data.Nat.Log |
| 3 | |
| 4 | /-! |
| 5 | --- |
| 6 | title: The quasipolynomial approximation bound |
| 7 | type: definition |
| 8 | --- |
| 9 | For fixed positive integers , the running-time bound is |
| 10 | |
| 11 | |
| 12 | Here is the graph order, is the requested accuracy, and |
| 13 | is the binary length of the rational weights and accuracy. |
| 14 | |
| 15 | # Formalization notes |
| 16 | |
| 17 | The natural-number formula includes small and empty graphs. The constants |
| 18 | are fixed for the graph class before the input is supplied. Polynomial |
| 19 | overheads can be absorbed by increasing them, while preserving the |
| 20 | additive polynomial dependence on . |
| 21 | -/ |
| 22 | |
| 23 | namespace Lax263307.QPTASRuntime |
| 24 | |
| 25 | /-- The explicit time and sufficient word-width bound used by `HasQPTAS`. -/ |
| 26 | def timeBound (c d n ℓ : ℕ) (ε : ℚ) : ℕ := |
| 27 | 2 ^ (c * (⌈ε⁻¹⌉₊ * (Nat.log2 (n + 2) + 1)) ^ d) + c * (ℓ + 1) ^ d |
| 28 | |
| 29 | end Lax263307.QPTASRuntime |
| 30 |
Formalization notes
The natural-number formula includes small and empty graphs. The constants are fixed for the graph class before the input is supplied. Polynomial overheads can be absorbed by increasing them, while preserving the additive polynomial dependence on .
Discussion
Ask a question or add context. Endorsements and structured flags are kept in the review panel above.
0 comments