Documentation

CslibFrontier.Computability.MCSP.PartialETH

Ilango's reduction to Partial-Function MCSP (PartialMCSP) #

This module formalizes Rahul Ilango's reduction from Bipartite Permutation Independent Set to the partial-function Minimum Circuit Size Problem (MCSP* / PartialMCSP), the reduction behind his lower bound [Ilango2020FOCS, Theorem I.3, pp. 424, 427–428; ECCC TR20-183, Section 1.2.2, Theorem 3, p. 6, and Section 3, Theorem 11 (p. 20) & Lemma 12 (p. 22), construction and proof pp. 21–26]. Ilango's model is PartialMCSP.BinaryGate, which counts binary AND/OR gates on a full partial truth table. The all-gate PartialMCSP and the monotone read-once PartialMCSP.MonotoneReadOnce are library variants to which the same reduction applies. The source concludes, under the Exponential Time Hypothesis (ETH), that the problem on partial Boolean functions of arity $m$ (truth-table size $N = 2^m$) is not decidable in time $2^{o(m \log m)} = N^{o(\log \log N)}$. Cslib.Complexity.CountingNativeEndpoint.not_ETH refutes that hypothesis, so this module proves no lower bound.

It states the transfer of upper bounds along the reduction instead, with the quantifiers of DecidableInSubexpTime. Suppose that for every $\delta > 0$ one of the three problems is decidable within time $2^{\delta m \log_2 m}$ times a polynomial in the length of the encoded instance, where the machine and the polynomial may depend on $\delta$. Then the same holds for BipartitePermutationIndependentSet with $n \log_2 n$ in place of $m \log_2 m$ (Cslib.PartialMCSP.decidableInSubexpTime_bpis_of_ilangoReduction), and hence for ThreeColoring with $|V|$ (Cslib.Complexity.DecidableInSubexpTime.threeColoring_of_bipartitePermutationIndependentSet).

Overview of the reduction and faithfulness #

  1. Source problem (BipartitePermutationIndependentSet): Given an instance $G = (n, E)$ of $2n \times 2n$ Bipartite Permutation Independent Set with parameter $n$ and directed pair-edges $E \subseteq ([n] \times [n])^2$, decide whether there exist permutations $\sigma_1, \sigma_2 \in S_n$ (equivalently, a block-preserving permutation $\pi \in S_{2n}$ on $[0, n) \cup [n, 2n)$) avoiding all conflict edges in $E$. The Lokshtanov–Marx–Saurabh theorem [LokshtanovMarxSaurabh2018, Theorem 2.11]; [Ilango2020FOCS, Section III.B, p. 427; ECCC TR20-183, Section 3, Theorem 10, p. 20] rules out $2^{o(n \log n)}$-time algorithms for it under ETH; this library formalizes the reduction from 3-coloring behind that theorem (Cslib.Complexity.DecidableInSubexpTime.threeColoring_of_bipartitePermutationIndependentSet).

  2. Ilango's partial Boolean function $\gamma_G$ (PartialMCSP.ilangoGamma, [Ilango2020FOCS, Section III.B, p. 428; ECCC TR20-183, Section 3, p. 21]): For $n = G.1$, $\gamma_G : \{0, 1\}^{6n} \to \mathrm{Option\ Bool}$ views a $6n$-bit input as a triple $(x, y, z) \in \{0, 1\}^{2n} \times \{0, 1\}^{2n} \times \{0, 1\}^{2n}$ and is defined by seven clauses:

    • (1) If $x = 0^{2n}$: $\bigvee_{i \in [2n]} (y_i \wedge z_i)$.
    • (2) If $x = 1^{2n}$: $\bigvee_{i \in [2n]} z_i$.
    • (3) If $z = 1^{2n}$: $\bigvee_{i \in [2n]} (x_i \vee y_i)$.
    • (4) If $z = 0^{2n}$: $0$ (false).
    • (5) If $z = 1^n 0^n$ and $y = 0^{2n}$: $\bigvee_{i < n} x_i$.
    • (6) If $z = 0^n 1^n$ and $y = 0^{2n}$: $\bigvee_{n \le i < 2n} x_i$.
    • (7) If $\exists ((j, k), (j', k')) \in E$ with $(x, y, z) = (\overline{e_k}\,\overline{e_{k'}}, 0^{2n}, e_j\,e_{j'})$: $1$ (true).
    • Otherwise: $?$ (none).
  3. Rigidity of read-once formulas for Clauses 1–4 (PosFormula.exists_perm_of_agreesWith_ilango, [ECCC TR20-183, Section 3, Lemma 12, pp. 22, 24–26]): Any read-once positive formula $F$ on $6n$ variables ($n \ge 1$) of leaf size $6n$ (i.e., binary gate size $6n - 1$) that agrees with Clauses (1)–(4) computes $(x, y, z) \mapsto \bigvee_{i \in [2n]} ((x_{\pi(i)} \vee y_i) \wedge z_i)$ for some permutation $\pi \in S_{2n}$.

  4. Equivalence across circuit and formula models ([ECCC TR20-183, Section 3, Theorem 11, p. 20, construction and proof pp. 21–24]): For $n \ge 2$, the instance ilangoInstance G of arity $6n$ and threshold $s = 6n - 1$ has all $6n$ variables positively essential (ilangoInstance_posEssential). By Circuit.exists_posFormula_of_cost_binaryCost_le, any circuit $c$ with at most $6n - 1$ binary (AND/OR) gates agreeing with $\gamma_G$ unfolds into a read-once positive formula of size $6n - 1$. Conversely, any satisfying permutation $\pi \in S_{2n}$ yields an explicit read-once positive formula $\bigvee_{i \in [2n]} ((x_{\pi(i)} \vee y_i) \wedge z_i)$ of gate size $6n - 1$ whose compiled circuit has all-gates size $6n - 1$. Thus for $n \ge 2$: $$G \in \mathrm{BipartitePermutationIndependentSet} \iff \mathrm{ilangoInstance}\, G \in \mathrm{PartialMCSP} \iff \mathrm{ilangoInstance}\, G \in \mathrm{PartialMCSP.BinaryGate} \iff \mathrm{ilangoInstance}\, G \in \mathrm{PartialMCSP.MonotoneReadOnce}.$$

Main definitions #

Main results #

References #

Read-once monotone formula variant of PartialMCSP #

Read-once positive formula variant of PartialMCSP [Ilango2020FOCS, Section III.B; ECCC TR20-183, Section 3, Theorem 11, p. 20]: instances x : PartialMCSP.Instance that agree with some read-once positive Boolean formula F : PosFormula x.arity with at most x.threshold binary gates.

Every yes-instance of PartialMCSP.MonotoneReadOnce is a yes-instance of all-gates PartialMCSP, since F.toCircuit has F.toCircuit.size = F.size.

Block-of-three-$2n$ coordinates (x, y, z) on Fin (6 * n) #

def Cslib.PartialMCSP.xVar {n : ℕ} (i : Fin (2 * n)) :
Fin (6 * n)

Coordinate i : Fin (2 * n) of the first block x in Fin (6 * n).

def Cslib.PartialMCSP.yVar {n : ℕ} (i : Fin (2 * n)) :
Fin (6 * n)

Coordinate i : Fin (2 * n) of the second block y in Fin (6 * n).

def Cslib.PartialMCSP.zVar {n : ℕ} (i : Fin (2 * n)) :
Fin (6 * n)

Coordinate i : Fin (2 * n) of the third block z in Fin (6 * n).

def Cslib.PartialMCSP.unpackX {n : ℕ} (w : BitString (6 * n)) :
BitString (2 * n)

Extract the x-block of a $6n$-bit string.

def Cslib.PartialMCSP.unpackY {n : ℕ} (w : BitString (6 * n)) :
BitString (2 * n)

Extract the y-block of a $6n$-bit string.

def Cslib.PartialMCSP.unpackZ {n : ℕ} (w : BitString (6 * n)) :
BitString (2 * n)

Extract the z-block of a $6n$-bit string.

def Cslib.PartialMCSP.packXYZ {n : ℕ} (x y z : BitString (2 * n)) (v : Fin (6 * n)) :

Pack three $2n$-bit strings (x, y, z) into a single $6n$-bit string.

Special $2n$-bit vectors and Ilango's partial function $\gamma_G$ #

All-zeros vector $0^{2n}$.

All-ones vector $1^{2n}$.

Left-half indicator $1^n 0^n$.

Right-half indicator $0^n 1^n$.

def Cslib.PartialMCSP.unitPair {n : ℕ} (j j' : Fin n) :
BitString (2 * n)

Pair-of-units vector $e_j e_{j'} \in \{0, 1\}^{2n}$ with ones at $j$ and $n + j'$.

def Cslib.PartialMCSP.antiUnitPair {n : ℕ} (k k' : Fin n) :
BitString (2 * n)

Complemented pair-of-units vector $\overline{e_k}\,\overline{e_{k'}} \in \{0, 1\}^{2n}$ with zeros at $k$ and $n + k'$ and ones elsewhere.

Ilango's partial Boolean function $\gamma_G$ [Ilango2020FOCS, Section III.B, p. 428; ECCC TR20-183, Section 3, p. 21] on $6n$ variables for a BipartitePermutationGraph $G = (n, E)$.

Ilango's PartialMCSP instance [Ilango2020FOCS, Section III.B, p. 428; ECCC TR20-183, Section 3, Theorem 11, pp. 20–21]: partial truth table $\gamma_G$ on $6n$ variables with size threshold $s = 6n - 1$.

Evaluation of ilangoGamma on each of the seven clauses #

Positive essentiality of all $6n$ variables (Claim 13) #

Ilango's Lemma 12: Structural characterization of read-once formulas for Clauses 1–4 #

theorem Cslib.Circuits.Boolean.PosFormula.exists_perm_of_agreesWith_ilango {n : ℕ} {F : PosFormula (6 * n)} (hro : F.IsReadOnce) (hleaf : F.leafSize = 6 * n) (hC1 : ∀ (y z : BitString (2 * n)), F.eval (PartialMCSP.packXYZ PartialMCSP.zeros2n y z) = decide (∃ (i : Fin (2 * n)), y i = true ∧ z i = true)) (hC2 : ∀ (y z : BitString (2 * n)), F.eval (PartialMCSP.packXYZ PartialMCSP.ones2n y z) = decide (∃ (i : Fin (2 * n)), z i = true)) (hC3 : ∀ (x y : BitString (2 * n)), F.eval (PartialMCSP.packXYZ x y PartialMCSP.ones2n) = decide (∃ (i : Fin (2 * n)), x i = true ∨ y i = true)) (hC4 : ∀ (x y : BitString (2 * n)), F.eval (PartialMCSP.packXYZ x y PartialMCSP.zeros2n) = false) :
∃ (π : Equiv.Perm (Fin (2 * n))), ∀ (x y z : BitString (2 * n)), F.eval (PartialMCSP.packXYZ x y z) = decide (∃ (i : Fin (2 * n)), ((x (π i) || y i) && z i) = true)

Ilango's Lemma 12 [ECCC TR20-183, Section 3, Lemma 12, pp. 22, 24–26]: if F : PosFormula (6 * n) is a read-once positive formula of leaf size $6n$ that agrees with Clauses (1)–(4) of $\gamma_G$, then there exists a permutation $\pi \in S_{2n}$ such that for all $x, y, z \in \{0, 1\}^{2n}$, $$F.\mathrm{eval}(\mathrm{packXYZ}\, x\, y\, z) = \mathrm{decide}(\exists i \in \mathrm{Fin}\,(2n),\; (x(\pi(i)) \vee y(i)) \wedge z(i)).$$

Section 5: Ilango's Theorem 11 (Exact Equivalence for $n \ge 2$) #

The read-once positive formula $\bigvee_{i=1}^{2n} ((x_{\pi(i)} \vee y_i) \wedge z_i)$ of gate size $6n - 1$ corresponding to a permutation $\pi \in S_{2n}$ [ECCC TR20-183, Section 3, p. 22].

If $\pi \in S_{2n}$ satisfies G.SatisfiesUndirected π, then the read-once positive formula ilangoPosFormula hn π agrees with ilangoInstance G on every defined entry [ECCC TR20-183, Section 3, Theorem 11 (easy direction), pp. 23–24].

Ilango's Theorem 11 (monotone read-once equivalence for $n \ge 2$) [ECCC TR20-183, Section 3, Theorem 11, p. 20, proof pp. 21–24]: for $2 \le G.1$, G ∈ BipartitePermutationIndependentSet ↔ ilangoInstance G ∈ PartialMCSP.MonotoneReadOnce.

Ilango's Theorem 11 (binary-gate equivalence for $n \ge 2$) [ECCC TR20-183, Section 3, Theorem 11, p. 20, proof pp. 21–24]: for $2 \le G.1$, G ∈ BipartitePermutationIndependentSet ↔ ilangoInstance G ∈ PartialMCSP.BinaryGate.

Ilango's Theorem 11 (all-gates equivalence for $n \ge 2$) [ECCC TR20-183, Section 3, Theorem 11, p. 20, proof pp. 21–24]: for $2 \le G.1$, G ∈ BipartitePermutationIndependentSet ↔ ilangoInstance G ∈ PartialMCSP.

Section 6: Total Reduction ilangoReduction and $2^{O(n)}$-Time Computability #

Total reduction from BipartitePermutationIndependentSet to PartialMCSP [Ilango2020FOCS, Section III.B, p. 428; ECCC TR20-183, Section 3, Theorem 11, pp. 20–21]: maps $G$ to ilangoInstance G when $2 \le G.1$, and to trivialYesInstance / trivialNoInstance when $G.1 < 2$.

Bitwise list evaluator and $2^{O(n)}$-time computability of ilangoReduction #

Plain $2^{O(n)}$-time computability of Ilango's reduction under unary threshold encoding (PartialMCSP.enc) [Ilango2020FOCS, Section III.B, p. 428; ECCC TR20-183, Section 3, Theorem 11, pp. 20–21].

Section 7: Truth-Table Size and the Subexponential-Time Transfer #

The truth-table size $N = 2^m$ of a PartialMCSP.Instance of arity $m$ [Ilango2020FOCS, Theorem I.3, p. 424; ECCC TR20-183, Section 1.2.2, Theorem 3, p. 6].

Subexponential-time transfer along Ilango's $2^{O(n)}$-time reduction (unary threshold encoding PartialMCSP.enc): this transfers an upper bound and proves no lower bound. Let ilangoReduction reduce BipartitePermutationIndependentSet to a problem B on PartialMCSP.Instance. If for every $\delta > 0$ the problem B is decidable within time $2^{\delta m \log_2 m}$ times a polynomial in the encoding length, with machine and polynomial allowed to depend on $\delta$, then so is BipartitePermutationIndependentSet with $n \log_2 n$ in place of $m \log_2 m$. The reduction is correct for Ilango's B = PartialMCSP.BinaryGate and for the library variants PartialMCSP and PartialMCSP.MonotoneReadOnce (mem_BipartitePermutationIndependentSet_iff_ilangoReduction_mem and its _binaryGate and _monotoneReadOnce variants). For PartialMCSP.BinaryGate, Ilango's Theorem I.3 [Ilango2020FOCS, pp. 424, 427–428; ECCC TR20-183, Section 1.2.2, Theorem 3, p. 6, and Section 3, Theorem 11, pp. 20–21] uses this reduction, together with the Lokshtanov–Marx–Saurabh lower bound, to prove a lower bound under the exponential time hypothesis, which Cslib.Complexity.CountingNativeEndpoint.not_ETH refutes.