Documentation

CslibFrontier.Computability.Complexity.FineGrained.CliqueGrouping

Clause-Grouping Reduction from 3-SAT to Parameterized Clique #

This file formalizes the clause-grouping reduction from ThreeSAT to Clique of Cygan et al., Parameterized Algorithms (2016-05-30 companion PDF, https://parameterized-algorithms.mimuw.edu.pl/parameterized-algorithms.pdf). The proof of Theorem 14.21 (printed pp. 485–487) groups 3-Coloring vertices. Here the reduction groups 3-CNF clauses. Given a grouping parameter r ≥ 1 and a 3-CNF formula φ with m = φ.length clauses, partitioning φ into r blocks of at most ⌈m / r⌉ = (m + r - 1) / r clauses yields a graph G with at most r * 2 ^ (3 * ⌈m / r⌉) vertices (one vertex per satisfying partial assignment to a block, with edges between compatible assignments in distinct blocks) such that ⟨G, r⟩ ∈ Clique ↔ φ ∈ ThreeSAT.

Uniformity of the padded polynomial-time reduction over (r, φ) gives an O(2 ^ (O(m / r)) * poly) construction whose polynomial exponent D is independent of r. The source chooses r large to turn an f(k) * n ^ o(k) algorithm for Clique into a subexponential-time algorithm for 3-SAT, and so rules out such algorithms under the exponential time hypothesis. That hypothesis is refuted (CountingNativeEndpoint.not_ETH), and ThreeSAT is already decidable in subexponential time in φ.length (ETH_iff_not_decidableInSubexpTime_length), so this module states no such transfer. A transfer to a quantitative rate below the known one is tracked in #5342. Under SH, an input-dependent block count rules out a fixed power saving in the target exponent when the prefactor is exponential in a fixed power of the target clique size.

Main definitions #

Main results #

References #

Upper bound on the number of clauses in each of r contiguous blocks of φ.

The i-th contiguous block of at most blockSize φ r clauses of φ.

def Cslib.Complexity.SAT.GroupClique.compat (vs₁ vs₂ : List ℕ) (a₁ a₂ : ℕ) :

Compatibility check between partial assignments a₁ on vs₁ and a₂ on vs₂.

Encodes (i, a) as a vertex i * bound + a.

Vertices for block assignments satisfying each block within bound codes per block.

Edges between compatible satisfying assignments in distinct blocks.

Clique instance with graph and target r, using an explicit code bound bound.

Clause-grouping reduction from ThreeSAT to Clique with block count r.

Block cover and variable-count bounds #

Vertex and edge characterization #

Correctness and vertex-count bounds #

theorem Cslib.Complexity.SAT.groupClique_snd {r : ℕ} (hr : 1 ≤ r) (φ : Logic.PL.CNF ℕ) :
(groupClique r φ).m = r

For every r ≥ 1 and φ : CNF ℕ, SAT.groupClique r φ sets target clique size r.

theorem Cslib.Complexity.SAT.length_groupClique_vertices_le (r : ℕ) (φ : Logic.PL.CNF ℕ) :
have graph := (groupClique r φ).graph; have verts := graph.vertices; verts.length ≤ r * 2 ^ (3 * ((List.length φ + r - 1) / r))

Vertex list length bound: |V(SAT.groupClique r φ)| ≤ r * 2 ^ (3 * ⌈|φ| / r⌉).

theorem Cslib.Complexity.SAT.card_groupClique_vertices_le (r : ℕ) (φ : Logic.PL.CNF ℕ) :
have graph := (groupClique r φ).graph; have verts := graph.vertices; verts.toFinset.card ≤ r * 2 ^ (3 * ((List.length φ + r - 1) / r))

Vertex finset cardinality bound for SAT.groupClique r φ.

Soundness and completeness of SAT.groupClique: for every r ≥ 1 and φ : CNF ℕ, SAT.groupClique r φ ∈ Clique ↔ φ ∈ ThreeSAT.

Polynomial-time computability of the bounded builder #

Uniform runtime and output-size bound for (r, φ) ↦ SAT.groupClique r φ: the exponential exponent scales linearly in 3 * ((φ.length + r - 1) / r) with polynomial degree D independent of r.

Fixed-power bounds for parameterized Clique under SH #

theorem Cslib.Complexity.SH.not_clique_powerEnc (hSH : SH) {a p : ℝ} (ha : 0 < a) (hp : 0 < p) (hp1 : p < 1) (C D : ℕ) :
¬DecidableInTimeO Clique encCliqueInstance fun (x : CliqueInstance) => 2 ^ (↑C * (↑x.m + 1) ^ a) * (↑(encCliqueInstance x).length + 1) ^ (↑D * (↑x.m + 1) ^ p)

Under SH, parameterized Clique admits no deterministic multitape algorithm in time 2 ^ O((k + 1) ^ a) * (L + 1) ^ O((k + 1) ^ p) for fixed a > 0 and 0 < p < 1, where L is the length of the binary graph and target-size encoding. The clause grouping chooses k within a constant factor of a small fixed power of the clause count.

theorem Cslib.Complexity.SH.not_clique_powerVertex (hSH : SH) {a p : ℝ} (ha : 0 < a) (hp : 0 < p) (hp1 : p < 1) (C D e : ℕ) :
¬DecidableInTimeO Clique encCliqueInstance fun (x : CliqueInstance) => 2 ^ (↑C * (↑x.m + 1) ^ a) * (↑x.graph.vertices.length + 1) ^ (↑D * (↑x.m + 1) ^ p) * (↑(encCliqueInstance x).length + 1) ^ e

Under SH, parameterized Clique admits no deterministic multitape algorithm in time 2 ^ O((k + 1) ^ a) * (|V| + 1) ^ O((k + 1) ^ p) * (L + 1) ^ O(1) for fixed a > 0 and 0 < p < 1. The vertex-count factor uses the length of the declared vertex list, and L is the length of the binary graph and target-size encoding.