Deterministic Exact Matching in Subexponential Time
Version 3 / Nov 27, 2026 / CC BY-SA 4.0
Abstract
In 1982 Papadimitriou and Yannakakis posed the Exact Matching problem: given a graph whose edges are colored red and blue and an integer k, decide whether the graph contains a perfect matching with exactly k red edges. Mulmuley, Vazirani, and Vazirani placed Exact Matching in randomized parallel and polynomial time (RNC ⊆ RP) in 1987, yet on general n-vertex graphs no deterministic subexponential (2^{o(n)}) algorithm was known before the November 2026 permanent lower bounds. Writing exp_2(t) := 2^t, on general n-vertex graphs (n ≥ 2) we give a deterministic algorithm running in time exp_2(exp_2(K'(log_2 n)^{3/4})) = 2^{n^{o(1)}} (for a constant K' > 0) for Exact Matching, including witness recovery (outputting a matching), and likewise (with K' depending on C) for finding a perfect matching of prescribed integer weight when edge weights lie 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 Z of encoding length at most s ≥ 2 computing polynomials of total degree and coefficient bit-length at most s, the same method runs in deterministic time exp_2(exp_2(K(log_2 s)^{3/4})) = 2^{s^{o(1)}} (for a constant K > 0). These bounds are based on the November 2026 permanent lower bound of Anthropic (formalized in Lean 4), or independently that of OpenAI; the stronger OpenAI bound further sharpens the Exact Matching time to exp_2(exp_2(O((log_2 n)^{1/2} log_2 log_2(n+2)))). Whereas Kabanets and Impagliazzo (2004) with division-free Pfaffians already convert any superpolynomial permanent lower bound into deterministic time 2^{n^ε} for each fixed ε > 0, our explicit quantitative hardness–randomness tradeoff and unified division-free Pfaffian circuit over integral group rings sharpen this uniformly into 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.
Provenance statement
Formalizations
References
- S. Artmann, R. Weismantel, and R. Zenklusen, A strongly polynomial algorithm for bimodular integer linear programming , Proc.\ 49th ACM Symposium on Theory of Computing (STOC), 2017, 1206--1219, https://doi.org/10.1145/3055399.3055473DOI
- P. M. Camerini, G. Galbiati, and F. Maffioli, Random pseudo-polynomial algorithms for exact matroid problems , J.\ Algorithms 13 (1992), 258--273, https://doi.org/10.1016/0196-6774(92)90018-8DOI
- Claude (Anthropic), over every field , preprint and Lean 4 formalization, November 23, 2026, https://hexagonmath.org/2611.00954 and https://github.com/anthropics/formal-math/tree/main/vp-vnphexagon
- N. El Maalouly, R. Steiner, and L. Wulf, Exact matching: correct parity and FPT parameterized by independence number , 34th International Symposium on Algorithms and Computation (ISAAC 2023), LIPIcs 283 , 28:1--28:18, https://doi.org/10.4230/LIPIcs.ISAAC.2023.28DOI
- S. Fenner, R. Gurjar, and T. Thierauf, Bipartite perfect matching is in quasi-NC , Proc.\ 48th ACM Symposium on Theory of Computing (STOC), 2016, 754--763; journal version in SIAM J.\ Comput.\ 50 (2021), STOC16-218--STOC16-235, https://doi.org/10.1137/16M1097870DOI
- F. Hörsch, A. Imolay, R. Mizutani, T. Oki, and T. Schwarcz, Problems on group-labeled matroid bases , 51st International Colloquium on Automata, Languages, and Programming (ICALP 2024), LIPIcs 297 , 86:1--86:20, https://doi.org/10.4230/LIPIcs.ICALP.2024.86DOI
- V. Kabanets and R. Impagliazzo, Derandomizing polynomial identity tests means proving circuit lower bounds , Comput.\ Complexity 13 (2004), 1--46, https://doi.org/10.1007/s00037-004-0182-6DOI
- E. Kaltofen, Factorization of polynomials given by straight-line programs , in Randomness and Computation (S. Micali, ed.), Adv.\ Comput.\ Res.\ 5 , JAI Press, 1989, 375--412.
- M. Mahajan, P. R. Subramanya, and V. Vinay, The combinatorial approach yields an NC algorithm for computing Pfaffians , Discrete Appl.\ Math.\ 143 (2004), 1--16, https://doi.org/10.1016/j.dam.2003.12.001DOI
- K. Mulmuley, U. V. Vazirani, and V. V. Vazirani, Matching is as easy as matrix inversion , Combinatorica 7 (1987), 105--113, https://doi.org/10.1007/BF02579206DOI
Show all 19 referencesShow fewer references
- OpenAI, Circuit lower bounds for Hamiltonian cycle and the permanent , preprint and Lean 4 formalization, November 24, 2026, https://github.com/openai/math/tree/main/preprints/Circuit-lower-bounds-for-Hamiltonian-cycle-and-the-permanent-November-24-2026link
- C. H. Papadimitriou and M. Yannakakis, The complexity of restricted spanning tree problems , J.\ Assoc.\ Comput.\ Mach.\ 29 (1982), 285--309, https://doi.org/10.1145/322307.322309DOI
- H. J. Ryser, Combinatorial Mathematics , Carus Mathematical Monographs 14 , Mathematical Association of America, 1963.
- N. Saxena, Progress on polynomial identity testing---II , in Perspectives in Computational Complexity (M. Agrawal and V. Arvind, eds.), Progr.\ Comput.\ Sci.\ Appl.\ Logic 26 , Birkhäuser/Springer, 2014, 131--146, https://doi.org/10.1007/978-3-319-05446-9_7DOI
- A. Shpilka and A. Yehudayoff, Arithmetic circuits: a survey of recent results and open questions , Found.\ Trends Theor.\ Comput.\ Sci.\ 5 (2010), 207--388, https://doi.org/10.1561/0400000039DOI
- O. Silina, A polyhedral perspective on the perfect matching lattice , preprint, November 2025, https://arxiv.org/abs/2511.03863link
- V. Strassen, Vermeidung von Divisionen , J.\ Reine Angew.\ Math.\ 264 (1973), 184--202, https://doi.org/10.1515/crll.1973.264.184DOI
- O. Svensson and J. Tarnawski, The matching problem in general graphs is in quasi-NC , Proc.\ 58th IEEE Symposium on Foundations of Computer Science (FOCS), 2017, 696--707, https://doi.org/10.1109/FOCS.2017.70DOI
- A. Wigderson, Mathematics and Computation: A Theory Revolutionizing Technology and Science , Princeton University Press, 2019.
Version history
- v1 · 9 pagesSubmitted by Dave GoelFirst version: November 26, 2026. This version (2.00): November 26, 2026. Zenodo deposit: https://doi.org/10.5281/zenodo.24587196 . Lean 4 formalization: https://github.com/david44hello/paper_papadimitriou-yannakakis-1982-exact-matching/tree/v2.00/leanSupersededNov 27, 2026
- v2 · 9 pagesSubmitted by Dave GoelFirst version: November 26, 2026. This version (2.10): November 27, 2026. Title shortened from v2.00 (no mathematical changes). Zenodo deposit: https://doi.org/10.5281/zenodo.24587196 . Lean 4 formalization: https://github.com/david44hello/paper_papadimitriou-yannakakis-1982-exact-matching/tree/v2.00/leanSupersededNov 27, 2026
- v3 · 13 pagesSubmitted by Dave GoelFirst version: November 26, 2026. This version (2.20): December 1, 2026. Addresses the 1982 Papadimitriou-Yannakakis Exact Matching problem. Zenodo deposit: https://doi.org/10.5281/zenodo.24587196CurrentDec 02, 2026