Documentation

CslibFrontier.Algorithms.Lean.SteinerTree.Hardness

Combinatorial reduction from Vertex Cover to unit-weight Steiner tree #

This module formalizes the standard combinatorial reduction from Vertex Cover to the unit-weight graph Steiner tree problem (in the tradition of Karp's NP-completeness reduction [Kar72]).

Given a finite simple graph G on V, construct the unit-weight graph vcReductionGraph G on VCVertex G (isomorphic to V ⊕ G.edgeFinset ⊕ Unit):

The edges of vcReductionGraph G connect root to orig v for every v : V, and connect edge e to orig v whenever v ∈ (e : Sym2 V). The terminal set consists of root and all edge vertices edge e.

Main results #

Scope and limitations #

This module proves the combinatorial equivalence between Vertex Cover and unit-weight Steiner tree instances. It does not formalize bit-string encodings or a Turing-machine polynomial-time Karp-reduction certificate (tracked separately within #2904).

References #

Vertex set of the unit-weight Steiner tree reduction from Vertex Cover on G: original vertices orig v, edge-gadget terminals edge e, and a single root terminal root.

Instances For
    def Cslib.Algorithms.Lean.SteinerTree.instDecidableEqVCVertex.decEq {V✝ : Type u_2} {inst✝ : Fintype V✝} {G✝ : SimpleGraph V✝} {inst✝¹ : DecidableRel G✝.Adj} [DecidableEq V✝] (x✝ x✝¹ : VCVertex G✝) :
    Decidable (x✝ = x✝¹)
    @[instance_reducible]
    instance Cslib.Algorithms.Lean.SteinerTree.instDecidableEqVCVertex {V✝ : Type u_2} {inst✝ : Fintype V✝} {G✝ : SimpleGraph V✝} {inst✝¹ : DecidableRel G✝.Adj} [DecidableEq V✝] :

    Equivalence VCVertex G ≃ V ⊕ G.edgeFinset ⊕ Unit.

    Adjacency relation of the Vertex Cover → Steiner tree reduction graph H(G): root is adjacent to every orig v, and each edge e is adjacent to orig v for both endpoints v ∈ (e : Sym2 V).

    Instances For

      The unit-weight reduction graph H(G) for Vertex Cover → Steiner tree.

      Predicate characterizing a terminal list R enumerating {root} ∪ {edge e | e ∈ E(G)}.

      Every finite graph has a terminal list enumerating {root} ∪ E(G).

      vcReductionGraph G is preconnected: every orig v is adjacent to root, and every edge e is adjacent to its endpoints in V.

      Forward direction: a vertex cover S of G produces a Steiner subgraph of vcReductionGraph G of size |E(G)| + |S|.

      Backward direction: a Steiner subgraph F of vcReductionGraph G yields a vertex cover S of G with |E(G)| + |S| ≤ |F|.

      Exact combinatorial equivalence for Vertex Cover → unit-weight Steiner tree: G has a vertex cover of size ≤ k if and only if vcReductionGraph G has a Steiner subgraph connecting R = {root} ∪ E(G) of cardinality ≤ |E(G)| + k.

      Optimum equivalence: G.vertexCoverNum ≤ k if and only if the unit-weight graph Steiner optimum of vcReductionGraph G on R = {root} ∪ E(G) is at most |E(G)| + k.