Documentation

CslibFrontier.Computability.Complexity.FineGrained.PermutationIndependentSet

Bipartite Permutation Independent Set and the block-sorting reduction from 3-coloring #

This module defines the $2n \times 2n$ Bipartite Permutation Independent Set problem and formalizes the reduction from 3-coloring behind the Lokshtanov–Marx–Saurabh lower bound [LokshtanovMarxSaurabh2018, Theorem 2.11], as used in Ilango's reduction to partial-function MCSP [Ilango2020FOCS, Section III.B, p. 427; ECCC TR20-183, Section 3, Theorem 10, p. 20]: if for every $\delta > 0$ BipartitePermutationIndependentSet is decidable within time $2^{\delta n \log_2 n}$ times a polynomial, then for every $\delta > 0$ ThreeColoring is decidable within time $2^{\delta |V|}$ times a polynomial (DecidableInSubexpTime.threeColoring_of_bipartitePermutationIndependentSet). As in DecidableInSubexpTime, the machine and the polynomial may depend on $\delta$. The source uses this transfer under the exponential time hypothesis, which Cslib.Complexity.CountingNativeEndpoint.not_ETH refutes in this model.

Under the Satisfiability Hypothesis (Cslib.Complexity.SH), the threshold-table reduction rules out fixed powers below one in the exponent of the running time for both encodings. On a 3-coloring input with |V| vertices, its threshold tables use O((|V| + 1) ^ (3/4)) bits.

Formulations and faithfulness #

Two equivalent presentations appear in the literature:

  1. Ilango's directed pair formulation [Ilango2020FOCS, Section III.B, p. 427; ECCC TR20-183, Section 3, Theorem 10, p. 20]: an instance G : BipartitePermutationGraph consists of a parameter $n = G.1$ and a list $G.2$ of directed edges $((u_1, u_2), (v_1, v_2))$ on $[n] \times [n]$. It is a yes-instance (G ∈ BipartitePermutationIndependentSet) when there exist two permutations $\pi_1, \pi_2 \in S_n$ (Equiv.Perm (Fin G.1)) such that for no edge $((u_1, u_2), (v_1, v_2)) \in G.2$ do we simultaneously have $\pi_1(u_1) = u_2$ and $\pi_2(v_1) = v_2$ (BipartitePermutationGraph.Satisfies).
  2. Lokshtanov–Marx–Saurabh's undirected bipartite permutation formulation [LokshtanovMarxSaurabh2018, Section 2.2, Theorem 2.11]: a single permutation $\pi \in S_{2n}$ (Equiv.Perm (Fin (2 * G.1))) preserves the two blocks $[0, n)$ and $[n, 2n)$ (BipartitePermutationGraph.IsBlockPreserving) and avoids every undirected conflict between $(u_1, u_2)$ in the first half and $(n + v_1, n + v_2)$ in the second half (BipartitePermutationGraph.SatisfiesUndirected).

BipartitePermutationGraph.exists_satisfies_iff_exists_satisfiesUndirected and BipartitePermutationIndependentSet.mem_iff_exists_satisfiesUndirected prove that the two formulations define the exact same language.

Proof of the subexponential transfer #

To prove the transfer behind [LokshtanovMarxSaurabh2018, Theorem 2.11], this library gives a direct Turing reduction from ThreeColoring on $N$-vertex graphs to subexponentially many instances of BipartitePermutationIndependentSet of parameter $n = \Theta(N / \log N)$, for which $n \log_2 n \le 10 N + 5$ (BipartitePermutationIndependentSet.fst_bpisOfColoring_mul_log_le), using a library proof based on monotone threshold enumeration (Tuple.sort and Tuple.lt_card_le_iff_apply_le_of_monotone):

Main definitions #

Main results #

References #

Problem definitions and equivalence of formulations #

@[reducible, inline]

An instance of $2n \times 2n$ Bipartite Permutation Independent Set [Ilango2020FOCS, Section III.B, p. 427; ECCC TR20-183, Section 3, Theorem 10, p. 20]: a parameter $n$ together with a list of directed edges $((u_1, u_2), (v_1, v_2))$ between vertex pairs in $[n] \times [n]$.

Unary encoding of a BipartitePermutationGraph, matching Ilango's presentation in which the graph has $O(n^2)$ vertices and coordinates are bounded by $n$ [Ilango2020FOCS, Section III.B, p. 427; ECCC TR20-183, Section 3, p. 20].

Ilango's directed satisfaction predicate [Ilango2020FOCS, Section III.B, p. 427; ECCC TR20-183, Section 3, Theorem 10, p. 20]: two permutations $\pi_1, \pi_2 \in S_n$ satisfy $G$ when for no edge $((u_1, u_2), (v_1, v_2)) \in G.2$ with coordinates below $n = G.1$ do we have both $\pi_1(u_1) = u_2$ and $\pi_2(v_1) = v_2$.

A permutation of $\mathrm{Fin}\,(2n)$ is block-preserving when it maps the first half $[0, n)$ to $[0, n)$ (and hence the second half $[n, 2n)$ to $[n, 2n)$) [LokshtanovMarxSaurabh2018, Theorem 2.11].

Lokshtanov–Marx–Saurabh's undirected bipartite satisfaction predicate [LokshtanovMarxSaurabh2018, Section 2.2, Theorem 2.11]: a single permutation $\pi \in S_{2n}$ preserves the two blocks $[0, n)$ and $[n, 2n)$ and for no conflict edge $((u_1, u_2), (v_1, v_2)) \in G.2$ between the two blocks do we have both $\pi(u_1) = u_2$ and $\pi(n + v_1) = n + v_2$.

Combining two permutations $\pi_1, \pi_2 \in S_n$ on the two halves of $\mathrm{Fin}\,(2n)$.

@[simp]
theorem Cslib.Complexity.BipartitePermutationGraph.combinePerm_inl {n : ℕ} (π₁ π₂ : Equiv.Perm (Fin n)) (i : Fin n) :
↑((combinePerm π₁ π₂) ⟨↑i, ⋯⟩) = ↑(π₁ i)
@[simp]
theorem Cslib.Complexity.BipartitePermutationGraph.combinePerm_inr {n : ℕ} (π₁ π₂ : Equiv.Perm (Fin n)) (i : Fin n) :
↑((combinePerm π₁ π₂) ⟨n + ↑i, ⋯⟩) = n + ↑(π₂ i)

Extracting the first-half permutation on $\mathrm{Fin}\, n$ from a block-preserving permutation of $\mathrm{Fin}\,(2n)$.

Extracting the second-half permutation on $\mathrm{Fin}\, n$ from a block-preserving permutation of $\mathrm{Fin}\,(2n)$.

Equivalence of Ilango's and Lokshtanov–Marx–Saurabh's formulations: an instance $G$ is satisfied by a pair of permutations $\pi_1, \pi_2 \in S_n$ if and only if it is satisfied by a block-preserving permutation $\pi \in S_{2n}$.

$2n \times 2n$ Bipartite Permutation Independent Set [Ilango2020FOCS, Section III.B, p. 427; ECCC TR20-183, Section 3, Theorem 10, p. 20] [LokshtanovMarxSaurabh2018, Section 2.2, Theorem 2.11]: the set of instances $G = (n, E)$ admitting permutations $\pi_1, \pi_2 \in S_n$ that avoid all conflict edges in $E$.

Equivalence between the two-permutation bipartite formulation of the Bipartite Permutation Independent Set problem and the single-permutation undirected formulation of [LokshtanovMarxSaurabh2018, Section 2.2].

Three-coloring indexed by vertex positions #

Membership in ThreeColoring is equivalent to a proper 3-coloring of the vertex positions Fin G.1.length with respect to G.adjBool.

Block parameters and arithmetic bounds for the LMS reduction #

Total number of bits $K = B \cdot L$ in a threshold table.

Sublinear search-exponent bound: for every $M \ge 1$, the number of threshold bits is at most $N / M + 48 \cdot (48 M)^3$.

Block-coloring extraction, threshold decoding, and bpisOfColoring #

The instance of BipartitePermutationIndependentSet corresponding to a graph $H$ and a threshold-table number $r$.

Parameter bound: the output parameter $n = (\mathrm{bpisOfColoring}\,(H, r)).1$ satisfies $n \log_2 n \le 10 |V| + 5$.

Correctness of the reduction #

Equivalence of ThreeColoring and the bpisOfColoring search: a graph $H$ is 3-colorable if and only if some $r < 2^{\mathrm{searchBits}\, |V|}$ yields a satisfiable instance bpisOfColoring (H, r).

Polynomial-time computability of the reduction #

Exhaustive search over threshold tables #

Transfer of exponential-time deciders along the block-sorting reduction: for every $M \ge 1$ and $\delta \ge 0$, a decider for BipartitePermutationIndependentSet within time $2^{\delta n \log_2 n} \cdot \mathrm{poly}(|G|)$ yields a decider for ThreeColoring within time $2^{(1 / M + 10 \delta) |V|} \cdot \mathrm{poly}(|H|)$.

Under SH, the unary-encoded Bipartite Permutation Independent Set problem admits no fixed power saving in the exponent measured in the size of one permutation block. The reduction from 3-coloring enumerates threshold tables with O((|V| + 1) ^ (3/4)) bits.

Subexponential-time transfer from BipartitePermutationIndependentSet to ThreeColoring, along the block-sorting reduction behind [LokshtanovMarxSaurabh2018, Theorem 2.11]: if for every $\delta > 0$ BipartitePermutationIndependentSet is decidable within time $2^{\delta n \log_2 n}$ times a polynomial, then for every $\delta > 0$ ThreeColoring is decidable within time $2^{\delta |V|}$ times a polynomial; the machine and the polynomial may depend on $\delta$. This transfers an upper bound and proves no lower bound; the source uses the reduction to prove a lower bound under the exponential time hypothesis.