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:
- Ilango's directed pair formulation [Ilango2020FOCS, Section III.B, p. 427; ECCC TR20-183,
Section 3, Theorem 10, p. 20]: an instance
G : BipartitePermutationGraphconsists 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). - 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):
- Partition the $N$ vertices into $n = \lfloor N / b \rfloor + 1$ blocks of size
$b = \lfloor (\log_2 N) / 4 \rfloor + 1$, so that $n \log_2 n \le 10 N + 5$
(
BipartitePermutationIndependentSet.fst_bpisOfColoring_mul_log_le). - A 3-coloring of a block is encoded by $2b$ bits as a number below $B = 2^{2b} = 4^b$, so a 3-coloring of the graph induces a tuple $a : \mathrm{Fin}\, n \to \mathrm{Fin}\, B$.
- By
Tuple.sort, any tuple $a : \mathrm{Fin}\, n \to \mathrm{Fin}\, B$ factors as $a = \beta \circ \pi$ where $\beta = a \circ \mathrm{Tuple.sort}\, a$ is monotone nondecreasing and $\pi = (\mathrm{Tuple.sort}\, a)^{-1} \in S_n$. - A monotone function $\beta : \mathrm{Fin}\, n \to \mathrm{Fin}\, B$ is uniquely determined by the
$B$ threshold counts $t_v = |\{j < n \mid \beta(j) \le v\}| \in \{0, \ldots, n\}$ via
Tuple.lt_card_le_iff_apply_le_of_monotone, encoded in $B \cdot (\lfloor \log_2 n \rfloor + 1) = o(N)$ bits. - Branching over all $2^{B \cdot (\lfloor \log_2 n \rfloor + 1)} = 2^{o(N)}$ threshold encodings
and querying a decider for
BipartitePermutationIndependentSetwithin time $2^{\delta n \log_2 n}$ times a polynomial decidesThreeColoringwithin time $2^{(1 / M + 10 \delta) N}$ times a polynomial, for every $M \ge 1$ (BipartitePermutationIndependentSet.decidableInExpTime_ThreeColoring_of_bpis).
Main definitions #
Cslib.Complexity.BipartitePermutationGraph: instance $(n, E)$ of parameter $n$ and directed pair-edges $E$.Cslib.Complexity.encBipartitePermutationGraph,Cslib.Complexity.encBipartitePermutationGraphBinary: unary and binary encodings.Cslib.Complexity.BipartitePermutationGraph.Satisfies: Ilango's two-permutation predicate.Cslib.Complexity.BipartitePermutationGraph.IsBlockPreserving,Cslib.Complexity.BipartitePermutationGraph.SatisfiesUndirected: Lokshtanov–Marx–Saurabh's block-preserving single-permutation predicate on $\mathrm{Fin}\,(2n)$.Cslib.Complexity.BipartitePermutationIndependentSet: the language of satisfiable instances.Cslib.Complexity.BipartitePermutationIndependentSet.searchBits,Cslib.Complexity.BipartitePermutationIndependentSet.bpisOfColoring: threshold-table bit length and the block-sorting reduction fromThreeColoring.
Main results #
Cslib.Complexity.BipartitePermutationGraph.exists_satisfies_iff_exists_satisfiesUndirected,Cslib.Complexity.BipartitePermutationIndependentSet.mem_iff_exists_satisfiesUndirected: equivalence of Ilango's and Lokshtanov–Marx–Saurabh's formulations.Cslib.Complexity.BipartitePermutationIndependentSet.mem_ThreeColoring_iff_exists_bpisOfColoring: correctness of the block-sorting reduction fromThreeColoringtoBipartitePermutationIndependentSet.Cslib.Complexity.BipartitePermutationIndependentSet.decidableInExpTime_ThreeColoring_of_bpis,Cslib.Complexity.DecidableInSubexpTime.threeColoring_of_bipartitePermutationIndependentSet: exponential- and subexponential-time transfers fromBipartitePermutationIndependentSetin $n \log_2 n$ toThreeColoringin $|V|$ along the block-sorting reduction ([LokshtanovMarxSaurabh2018, Theorem 2.11]; [Ilango2020FOCS, Section III.B, p. 427; ECCC TR20-183, Section 3, Theorem 10, p. 20]).
References #
Problem definitions and equivalence of formulations #
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].
Binary encoding of a BipartitePermutationGraph.
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)$.
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.
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 #
Computing searchBits is polynomial-time in the plain machine model.
Constructing bpisOfColoring (H, r) is polynomial-time in the plain machine model.
Converting a BipartitePermutationGraph from unary to binary coordinate encoding is
polynomial-time in the plain machine model.
Constructing bpisOfColoring (H, r) under binary coordinate encoding is polynomial-time in the
plain machine model.
Computing searchBits H.vertices.length from a graph H is polynomial-time in the plain
machine model.
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.
Under SH, the same block-size lower bound holds with binary coordinates.
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.