The strong Nemhauser–Trotter theorem
Lax906450.StrongNemhauserTrotter · concepts/Lax906450/StrongNemhauserTrotter.lean · lax-906450
No public endorsements yet.
Loading review…
Sign in with ORCIDNatural Language Statement
Theorem
A single polynomial-time word-RAM program computes a persistent vertex-cover partition of any finite simple graph. The logical input consists of the vertex count followed by the adjacency matrix in row order. The program writes one word per vertex, in vertex order, with encoding membership in , respectively. The instruction count and sufficient word width are polynomial in the binary input size.
The conclusion for every minimum vertex cover is the strengthening of the Nemhauser–Trotter theorem due to Chlebík and Chlebíková.
Concept map
Evidence
Each proof establishes this claim relative to its assumptions.
Lean source view on GitHub
| 1 | import Lax906450.Partition |
| 2 | import Lax759944.RamPolytime |
| 3 | |
| 4 | /-! |
| 5 | --- |
| 6 | title: The strong Nemhauser–Trotter theorem |
| 7 | type: theorem |
| 8 | --- |
| 9 | A single polynomial-time word-RAM program computes a persistent vertex-cover |
| 10 | partition of any finite simple graph. The logical input consists of the vertex count |
| 11 | followed by the adjacency matrix in row order. The program writes one word per |
| 12 | vertex, in vertex order, with encoding membership in , |
| 13 | respectively. The instruction count and sufficient word width are polynomial |
| 14 | in the binary input size. |
| 15 | |
| 16 | The conclusion for every minimum vertex cover is the strengthening of the |
| 17 | Nemhauser–Trotter theorem due to Chlebík and Chlebíková. |
| 18 | |
| 19 | # Formalization notes |
| 20 | |
| 21 | For a graph on vertices the logical input has words. The RAM |
| 22 | input convention prepends this length to the physical tape. The algorithm |
| 23 | makes one call to the certified rational LP solver from `lax-109476`. |
| 24 | -/ |
| 25 | |
| 26 | namespace Lax906450.StrongNemhauserTrotter |
| 27 | |
| 28 | /-- The adjacency matrix of a numbered graph, preceded by its order. -/ |
| 29 | def encodeGraph {n : ℕ} (G : SimpleGraph (Fin n)) [DecidableRel G.Adj] : List ℕ := |
| 30 | n :: (List.ofFn fun u => List.ofFn fun v => if G.Adj u v then 1 else 0).flatten |
| 31 | |
| 32 | /-- Output labels in vertex order. -/ |
| 33 | def labels {n : ℕ} (Z O : Finset (Fin n)) : List ℕ := |
| 34 | List.ofFn fun v => if v ∈ Z then 0 else if v ∈ O then 2 else 1 |
| 35 | |
| 36 | /-- One uniform RAM computes all three parts on every graph, including the empty graph. -/ |
| 37 | axiom polynomial_partition : |
| 38 | ∃ solve : List ℕ → List ℕ, Lax759944.RamPolytime.RamPolytime solve ∧ |
| 39 | ∀ (n : ℕ) (G : SimpleGraph (Fin n)) [DecidableRel G.Adj], |
| 40 | ∃ Z O : Finset (Fin n), solve (encodeGraph G) = labels Z O ∧ Partition.IsPartition G Z O |
| 41 | |
| 42 | end Lax906450.StrongNemhauserTrotter |
| 43 |
Formalization notes
For a graph on vertices the logical input has words. The RAM input convention prepends this length to the physical tape. The algorithm makes one call to the certified rational LP solver from .
Discussion
Ask a question or add context. Endorsements and structured flags are kept in the review panel above.
0 comments