Deterministic Exact Matching in Subexponential Time
Dave Goel
cs.DS
Dec 2, 2026 · v1
cs.DM math.CO
TL;DR
Lean 4 verifies PIT test correctness, matching reductions, witness recovery and evaluation counts, taking cited Lean-formalized permanent lower bounds as axioms.
Abstract
In 1982 Papadimitriou and Yannakakis posed the Exact Matching problem: given a graph with red and blue edges and an integer $k$, decide whether it has a perfect matching with exactly $k$ red edges. Mulmuley, Vazirani, and Vazirani (1987) placed Exact Matching in $\mathrm{RNC} \subseteq \mathrm{RP}$, yet on general $n$-vertex graphs no deterministic $2^{o(n)}$-time algorithm was known before the November 2026 permanent lower bounds. On such graphs ($n \ge 2$) we give a deterministic algorithm running in time $2^{2^{K'(\log_2 n)^{3/4}}} = 2^{n^{o(1)}}$ ($K'>0$) for Exact Matching (with witness recovery), and likewise (with $K'$ depending on $C$) for prescribed total weight with edge weights in $[-n^C, n^C]$ or prescribed label sum in any finite abelian group of order at most $n^C$ ($C>0$). For low-degree integer polynomial identity testing (PIT) on arithmetic circuits over $\mathbb{Z}$ of encoding length at most $s \ge 2$ computing polynomials of total degree and coefficient bit-length at most $s$, the same method runs in deterministic time $2^{2^{K(\log_2 s)^{3/4}}} = 2^{s^{o(1)}}$ ($K>0$). These bounds are based on the November 2026 permanent lower bound of Anthropic (formalized in Lean 4), or independently OpenAI; OpenAI's stronger bound sharpens the Exact Matching time to $2^{2^{O((\log_2 n)^{1/2}\log_2\log_2(n+2))}}$. Whereas Kabanets and Impagliazzo (2004) with division-free Pfaffians give deterministic time $2^{n^\varepsilon}$ per fixed $\varepsilon>0$ from any superpolynomial permanent lower bound, our quantitative tradeoff and integral group-ring Pfaffian circuit sharpen this uniformly to $2^{n^{o(1)}}$ and extend it to arbitrary polynomial-order finite abelian groups. Taking the cited permanent lower bounds as input, Lean verifies test correctness, the matching reductions, witness recovery and the evaluation count; the running-time bounds are outside this verification.
Problem
Exact Matching asks whether a red/blue edge-colored graph has a perfect matching with exactly k red edges. It is in RNC, but no deterministic 2^{o(n)}-time algorithm was known for general graphs. Low-degree integer polynomial identity testing (PIT) is a related derandomization problem.
Approach
The method uses a Nisan–Wigderson generator built from the permanent with an explicit finite-field design, following Kabanets–Impagliazzo, and takes as input permanent lower bounds attributed to Anthropic and OpenAI. A division-free Pfaffian circuit over the integral group ring Z[Γ] reduces Exact Matching, exact-weight matching and abelian-group-label matching to PIT. Correctness of the test, the reductions, witness recovery and the evaluation count are proved in Lean 4 from the cited lower bounds. Running-time bounds are not covered by the Lean proofs.
Results
The resulting deterministic algorithm runs in time 2^{2^{K'(log n)^{3/4}}} = 2^{n^{o(1)}} for Exact Matching with witness recovery. The same bound holds for polynomially bounded weights and for polynomial-order finite abelian group labels, and the corresponding bound holds for low-degree integer PIT. The stronger OpenAI bound sharpens the Exact Matching time to 2^{2^{O((log n)^{1/2} log log n)}}.