Polynomial-time approximation schemes
Lax213208.PTAS · concepts/Lax213208/PTAS.lean · lax-213208
No public endorsements yet.
Loading review…
Sign in with ORCIDNatural Language Statement
Definition
A PTAS has approximation ratio and polynomial running time for every fixed , where is a positive integer. One program handles all precisions.
Concept map
Lean source view on GitHub
| 1 | import Lax213208.RApproximation |
| 2 | import Lax213208.RunningTime |
| 3 | |
| 4 | /-! |
| 5 | --- |
| 6 | title: Polynomial-time approximation schemes |
| 7 | type: definition |
| 8 | --- |
| 9 | A PTAS has approximation ratio and polynomial running |
| 10 | time for every fixed , where is a positive integer. |
| 11 | One program handles all precisions. |
| 12 | -/ |
| 13 | |
| 14 | namespace Lax213208.PTAS |
| 15 | |
| 16 | open OptimizationProblem Programs RApproximation RunningTime |
| 17 | |
| 18 | variable {Instance Solution : Type*} {problem : Problem Instance Solution} |
| 19 | |
| 20 | def PTAS (alg : Program) (inputs : Set Instance) : Prop := |
| 21 | ∀ k : ℕ, 0 < k → |
| 22 | let ε : ℝ := 1 / k |
| 23 | Approximates (problem := problem) alg inputs (1 + ε) (some k) ∧ |
| 24 | PolynomialTime (problem := problem) alg inputs (some k) |
| 25 | |
| 26 | end Lax213208.PTAS |
| 27 |
Discussion
Ask a question or add context. Endorsements and structured flags are kept in the review panel above.
0 comments