A PTAS returning an independent set
Lax956329.SolutionScheme · concepts/Lax956329/SolutionScheme.lean · lax-956329
No public endorsements yet.
Loading review…
Sign in with ORCIDNatural Language Statement
Corollary
For every fixed integer , a deterministic polynomial-time machine returns an independent set of size at least on subcubic inputs with a supplied -sequence. The output contains a membership bit for each vertex and a copy of the input threshold. A scheme with this guarantee would imply . With unrestricted degree, the same implication holds for any one fixed approximation factor .
Concept map
Evidence
Lean source view on GitHub
| 1 | import Lax956329.Approximation |
| 2 | |
| 3 | /-! |
| 4 | --- |
| 5 | title: A PTAS returning an independent set |
| 6 | type: corollary |
| 7 | --- |
| 8 | For every fixed integer , a deterministic polynomial-time machine |
| 9 | returns an independent set of size at least on subcubic |
| 10 | inputs with a supplied -sequence. The output contains a membership bit for |
| 11 | each vertex and a copy of the input threshold. A scheme with this guarantee |
| 12 | would imply . With unrestricted degree, the same implication |
| 13 | holds for any one fixed approximation factor . |
| 14 | -/ |
| 15 | |
| 16 | namespace Lax956329.SolutionScheme |
| 17 | |
| 18 | open Instances Lax434930.PolynomialTime Lax434930.NondeterministicPolynomialTime |
| 19 | |
| 20 | def outputBits (z : ℕ × Word) : Word := numeral z.1 ++ z.2 |
| 21 | |
| 22 | def mask {n : ℕ} (T : Finset (Fin n)) : Word := |
| 23 | (List.finRange n).map fun v => decide (v ∈ T) |
| 24 | |
| 25 | /-- The fixed-accuracy machine must produce an actual feasible solution. -/ |
| 26 | def HasPTAS : Prop := |
| 27 | ∀ t : ℕ, 2 ≤ t → ∃ solve : Word → ℕ × Word, |
| 28 | Nonempty (Turing.TM2ComputableInPolyTime id outputBits solve) ∧ |
| 29 | ∀ I : Instance, DegreeLE I.graph 3 → ∃ T : Finset (Fin I.n), I.graph.IsIndepSet T ∧ |
| 30 | solve I.bits = (I.k,mask T) ∧ (t-1)*I.graph.indepNum ≤ t*T.card |
| 31 | |
| 32 | axiom ptas_implies_p_eq_np : HasPTAS → P = NP |
| 33 | |
| 34 | /-- A fixed-factor approximation on all inputs with a supplied 4-sequence. -/ |
| 35 | def HasFactor (r : ℝ) : Prop := |
| 36 | ∃ solve : Word → ℕ × Word, Nonempty (Turing.TM2ComputableInPolyTime id outputBits solve) ∧ |
| 37 | ∀ I : Instance, ∃ T : Finset (Fin I.n), I.graph.IsIndepSet T ∧ |
| 38 | solve I.bits = (I.k,mask T) ∧ (I.graph.indepNum : ℝ) ≤ r*T.card |
| 39 | |
| 40 | axiom fixed_factor_implies_p_eq_np (r : ℝ) (hr : 1 < r) : HasFactor r → P = NP |
| 41 | |
| 42 | end Lax956329.SolutionScheme |
| 43 |
Discussion
Ask a question or add context. Endorsements and structured flags are kept in the review panel above.
0 comments