While this submission is a draft, it cannot be used by other submissions.

The strong Nemhauser–Trotter theorem

Lax906450.StrongNemhauserTrotter · concepts/Lax906450/StrongNemhauserTrotter.lean · lax-906450

proven

Loading review…

Sign in with ORCID

Community review

Flags

Each flag is tied to a public ORCID identity and explains why this concept may be incorrect.

No flags have been submitted.

    Community review

    Flag this concept

    State precisely what appears incorrect. This explanation will be public under your ORCID name.

    No source line selected.

    Natural 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 0,1,20,1,2 encoding membership in V0,V1/2,V1V_0,V_{1/2},V_1, 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
    5 concepts
    100%
    Proven claimDefinitionThis conceptRelated conceptA → B: B builds on A
    Evidence

    Lean source view on GitHub

    1import Lax906450.Partition
    2import Lax759944.RamPolytime
    3
    4/-!
    5---
    6title: The strong Nemhauser–Trotter theorem
    7type: theorem
    8---
    9A single polynomial-time word-RAM program computes a persistent vertex-cover
    10partition of any finite simple graph. The logical input consists of the vertex count
    11followed by the adjacency matrix in row order. The program writes one word per
    12vertex, in vertex order, with 0,1,20,1,2 encoding membership in V0,V1/2,V1V_0,V_{1/2},V_1,
    13respectively. The instruction count and sufficient word width are polynomial
    14in the binary input size.
    15
    16The conclusion for every minimum vertex cover is the strengthening of the
    17Nemhauser–Trotter theorem due to Chlebík and Chlebíková.
    18
    19# Formalization notes
    20
    21For a graph on nn vertices the logical input has 1+n21+n^2 words. The RAM
    22input convention prepends this length to the physical tape. The algorithm
    23makes one call to the certified rational LP solver from `lax-109476`.
    24-/
    25
    26namespace Lax906450.StrongNemhauserTrotter
    27
    28/-- The adjacency matrix of a numbered graph, preceded by its order. -/
    29def 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. -/
    33def 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. -/
    37axiom 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
    42end Lax906450.StrongNemhauserTrotter
    43
    Show Proof
    Formalization notes

    For a graph on nn vertices the logical input has 1+n21+n^2 words. The RAM input convention prepends this length to the physical tape. The algorithm makes one call to the certified rational LP solver from lax−109476lax-109476.

    Builds on
    Used by

    none

    From Mathlib

    none

    Discussion

    Ask a question or add context. Endorsements and structured flags are kept in the review panel above.

    Loading discussion…