Documentation

CslibFrontier.Computability.PCP.Approximation.IndependentSet

Independent Set, Clique and Vertex Cover are NP-hard to approximate #

The values of a graph (Cslib.Complexity.Graph, read on its declared vertices) are its independence number Graph.indepNum, its clique number Graph.cliqueNum and its vertex cover number Graph.vertexCoverNum, the extreme targets of the decision problems IndependentSet, Clique and VertexCover. The gap problems ask, for an instance (G, k):

The yes-instances of the first two are exactly IndependentSet and Clique.

For Independent Set and Clique, the reduction of Feige, Goldwasser, Lovász, Safra and Szegedy [FGL+96] ([Gol07d], Exercise 9.18; Arora and Barak, Chapter 11) maps an instance a of a nonadaptive (1, s)-PCP verifier V to its explicit accepting-view conflict graph V.fglssEdgeList a paired with target 2 ^ V.coins a (Cslib.Complexity.PCPVerifier.fglssToIndependentSet). By PCPVerifier.fglssGraphIso and the independence-number identity PCPVerifier.exists_acceptCount_eq_indepNum_fglssGraph, members have independence number 2 ^ V.coins a and non-members have independence number at most s * 2 ^ V.coins a; when V uses O(log n) coins and O(1) queries, the reduction runs in polynomial time (PCPVerifier.computableInPolyTime_fglssToIndependentSet, polyTimeReducible_GapIndependentSet_of_mem_PCPWith). Combining the PCP theorem NP = PCP(log n, 1) (Cslib.Complexity.NP_eq_PCP_log) with constant-fold independent repetition (Cslib.Complexity.PCPWith_one) and graph complementation (polyTimeReducible_GapIndependentSet_GapClique) shows that for every constant 0 < s < 1, GapIndependentSet s and GapClique s are NP-hard (GapIndependentSet_npHard, GapClique_npHard) and lie outside PromiseP unless P = NP. Size-dependent subconstant gaps are not addressed here.

Karp's graph of a formula (Cslib.Complexity.SAT.toIndependentSet: a vertex for each occurrence of a literal, edges inside clauses and between complementary occurrences) also gives a gap-preserving reduction from MAX-3SAT (Cslib.Complexity.GapThreeSAT) Arora, Lund, Motwani, Sudan and Szegedy: an independent set picks consistent literals in distinct clauses, so it has at most as many vertices as some assignment satisfies clauses (Cslib.Complexity.SAT.exists_card_add_countUnsat_le).

A vertex cover is the complement of an independent set, so vertexCoverNum G = n - indepNum G for the number n of distinct declared vertices (Graph.vertexCoverNum_eq_card_sub_indepNum). For a formula with m clauses of exactly three, not necessarily distinct, literals (Cslib.Complexity.GapExactThreeSAT), Karp's graph has n = 3 m vertices, a satisfiable formula has a cover of 2 m vertices, and if every assignment satisfies at most s * m clauses every cover has at least (3 - s) * m = (1 + (1 - s) / 2) * 2 m vertices Arora and Barak, Chapter 11. From the gap 1 - 1 / (3 * 2 ^ 77) of MAX-E3SAT (Cslib.Complexity.GapExactThreeSAT_npHard), it is NP-hard to approximate the vertex cover number within 1 + 1 / (3 * 2 ^ 78).

With thresholds proportional to the number n of vertices instead of an input target (Cslib.Complexity.GapVertexCoverFraction, Goldreich's gapVC_{s,L}), the same graph has a cover of (2 / 3) n vertices or none of fewer than (1 - s / 3) n vertices, so gapVC_{s,L} is NP-hard for s = 2 / 3 and L = 2 / 3 + 1 / (18 * 2 ^ 77) [Gol07d], Exercise 10.4.

Main definitions #

Main results #

References #

Karp's graph of a formula #

Every occurrence of a formula whose clauses have exactly three literals is a vertex of Karp's graph, and there are 3 m of them for m clauses.

The independence number of Karp's graph is at most the largest number of clauses an assignment satisfies, which is at most (1 - unsatVal φ) * m for m clauses.

Gap problems #

The gap problem of maximum independent set with soundness s: on an instance x, the yes-instances have an independent set of x.m declared vertices, and the no-instances have no independent set of more than s * x.m declared vertices.

The gap problem of maximum clique with soundness s: on an instance x, the yes-instances have a clique of x.m declared vertices, and the no-instances have no clique of more than s * x.m declared vertices.

The gap problem of minimum vertex cover with ratio r: on an instance x, the yes-instances have a vertex cover of at most x.k declared vertices, and the no-instances have no vertex cover of fewer than r * x.k declared vertices.

The gap problem gapVC_{s,L} of minimum vertex cover with thresholds proportional to the number of vertices [Gol07d], Definition 10.4 and Section 10.1.1.2: the yes-instances are the graphs with a vertex cover of at most s * n declared vertices, and the no-instances are the graphs with no vertex cover of at most L * n declared vertices, for the number n of distinct declared vertices. The draft requires s ≤ L; otherwise the no-instances are empty here. Unlike GapVertexCover, the instance carries no target.

The yes-instances of GapIndependentSet are the members of IndependentSet.

The yes-instances of GapClique are the members of Clique.

Reductions #

The independence number of the explicit FGLSS edge-list graph equals that of V.fglssGraph.

Nonadaptive FGLSS reduction map (after [FGL+96], Section 3; [Gol07d], Exercise 9.18) from an instance a of a nonadaptive PCP verifier V to IndependentSetInstance: the explicit accepting-view conflict graph V.fglssEdgeList a paired with target 2 ^ V.coins a.

theorem Cslib.Complexity.PCPVerifier.computableInPolyTime_fglssToIndependentSet {α : Type} (V : PCPVerifier α) {enc : α ↪ List Bool} (hV : PolyTime enc V) {c d : ℕ} (hcoins : ∀ (a : α), V.coins a ≤ c * (Nat.log 2 (enc a).length + 1)) (hq : ∀ (a : α) (ρ : List Bool), ρ.length = V.coins a → (V.queries (a, ρ)).length ≤ d) :

Under a logarithmic coin bound and a constant query bound on valid random strings, the FGLSS reduction V.fglssToIndependentSet is computable in polynomial time.

theorem Cslib.Complexity.polyTimeReducible_GapIndependentSet_of_mem_PCPWith {s : ℝ} {α : Type} {enc : α ↪ List Bool} {A : Set α} {q : ℕ} (hs1 : s < 1) (hA : A ∈ PCPWith 1 s (fun (n : ℕ) => Nat.log 2 n + 1) (fun (x : ℕ) => q) enc) :

Nonadaptive FGLSS gap-reduction step toward [Gol07d], Exercise 9.18 (#4772) and Arora and Barak, Chapter 11 (#4711), after [FGL+96], Section 3: every problem in PCP_{1, s}(log n, q) (for nonadaptive PCPVerifier) with constant query bound q and soundness s < 1 reduces in polynomial time to GapIndependentSet s via PCPVerifier.fglssToIndependentSet.

MAX-3SAT reduces to maximum independent set with the same gap, by Karp's graph: a satisfiable formula has an independent set with a vertex in each clause, and an independent set gives an assignment satisfying as many clauses.

Maximum independent set reduces to maximum clique with the same gap, by complementing the graph on its declared vertices.

MAX-E3SAT reduces to minimum vertex cover: Karp's graph of a formula with m clauses of three, not necessarily distinct, literals has 3 m vertices, so the target m of an independent set becomes the target 2 m of a vertex cover (IndependentSet.toVertexCover), and soundness s for MAX-E3SAT becomes the ratio 1 + (1 - s) / 2 for vertex covers.

MAX-E3SAT reduces to vertex cover with thresholds proportional to the number of vertices: Karp's graph of a formula with m clauses of three, not necessarily distinct, literals has n = 3 m vertices, a satisfiable formula has a cover of 2 m = (2 / 3) n vertices, and if every assignment satisfies at most s * m clauses every cover has at least (3 - s) m = (1 - s / 3) n vertices, more than L * n for L < 1 - s / 3.

Inapproximability #

Constant-factor NP-hardness of maximum independent set ([Gol07d], Exercise 9.18, final claim; constant-factor specialization after [FGL+96], Section 3 and [ALM+98]): for every fixed constant 0 < s < 1, distinguishing graphs with an independent set of k declared vertices from graphs without an independent set of more than s * k declared vertices is NP-hard. The proof amplifies NP = PCP(log n, 1) (Cslib.Complexity.NP_eq_PCP_log) to soundness s by independent verifier repetition (Cslib.Complexity.PCPWith_one) and applies the nonadaptive FGLSS reduction (Cslib.Complexity.polyTimeReducible_GapIndependentSet_of_mem_PCPWith). Size-dependent subconstant gaps (#4772, #4711) remain open.

Constant-factor NP-hardness of maximum clique ([Gol07d], Exercise 9.18, final claim; constant-factor specialization after [FGL+96], Section 3 and [ALM+98]): for every fixed constant 0 < s < 1, distinguishing graphs with a clique of k declared vertices from graphs without a clique of more than s * k declared vertices is NP-hard. The gap of maximum independent set transfers to the complement graph; size-dependent subconstant gaps (#4772, #4711) remain open.

Minimum vertex cover is NP-hard to approximate within 1 + 1 / (3 * 2 ^ 78) [ALM+98]: given a graph and a target k, distinguishing graphs with a vertex cover of at most k vertices from graphs without a vertex cover of fewer than (1 + 1 / (3 * 2 ^ 78)) * k vertices is NP-hard.

Minimum vertex cover is NP-hard to approximate relative to the number of vertices ([Gol07d], Exercise 10.4, a weak version of Theorem 10.7): for the constants s = 2 / 3 < L = 2 / 3 + 1 / (18 * 2 ^ 77) < 1, distinguishing graphs with a vertex cover of at most s * n of their n vertices from graphs with none of at most L * n vertices is NP-hard. As the exercise asks, the proof uses the PCP Theorem (Theorem 9.16, here through the MAX-3SAT gap GapExactThreeSAT_npHard), but it passes through Karp's graph of a formula rather than the FGLSS clique reduction of the draft's guideline.

theorem Cslib.Complexity.GapIndependentSet_notMem_PromiseP {s : ℝ} (hs0 : 0 < s) (hs1 : s < 1) {β : Type} {enc : β ↪ List Bool} (h : P enc ≠ NP enc) :

Unless P = NP, for every 0 < s < 1, no polynomial-time algorithm distinguishes graphs with an independent set of k declared vertices from graphs without one of more than s * k declared vertices.

theorem Cslib.Complexity.GapClique_notMem_PromiseP {s : ℝ} (hs0 : 0 < s) (hs1 : s < 1) {β : Type} {enc : β ↪ List Bool} (h : P enc ≠ NP enc) :

Unless P = NP, for every 0 < s < 1, no polynomial-time algorithm distinguishes graphs with a clique of k declared vertices from graphs without one of more than s * k declared vertices.

Unless P = NP, no polynomial-time algorithm distinguishes graphs with a vertex cover of at most k vertices from graphs without one of fewer than (1 + 1 / (3 * 2 ^ 78)) * k vertices.