Expanded Version of "Exact and Modular Counting Dichotomies for Group-Labeled Perfect Matchings"
Version 2 / Nov 30, 2026 / CC BY-SA 4.0
Abstract
We introduce and classify the counting complexity of edge-ordered group-labeled perfect matchings. Fix a finite group and modulus . Given a simple graph with edge labels , target , and arbitrary global edge ordering (which may interleave components), let count the perfect matchings whose ordered product equals . While Kasteleyn's Pfaffian method solves this in polynomial time for abelian groups on planar graphs, the non-abelian case has not been classified.
This expanded version proves six main results: the three core counting theorems of the focused article together with three companion extensions. First, on planar graphs, bounded-treewidth graphs (, ), and cellularly embedded orientable -genus graphs, counting is tractable precisely when is abelian (for all , and exactly over ) or when has a normal Sylow -subgroup with abelian quotient () and . Both tractable regimes lie in deterministic (planar/bounded treewidth) and (genus ); every other is -hard for every prime (other than when ) already on planar bipartite treewidth- graphs. Second, for odd primes , finite -groups , and non-abelian class- -groups with center , semidirect products (starting at order with , , and , and with faithful -action at order ) separate mod- counting on disjoint unions of even cycles () from treewidth- graphs (-hard). Third, on -regular outerplanar bipartite graphs (to which all graphs reduce parsimoniously), exact counting is in iff is abelian or a class- -group of exponent , and -hard otherwise; at , only abelian groups stay tractable, and every non-solvable group is - and all-prime -hard at by a linear-size reduction.
Fourth, we introduce planar mimicking rank---the fewest planar gadgets whose boundary signatures sum to a given -boundary target---and build its all-field theory for general, bipartite, and directed matchgates: exact small ranks (including worst-case vs. complex generic separation at and a universal lower bound of at ), coordinate-linear clique-cover laws, exponential lower bounds, and a sharp characteristic- vs. characteristic- dichotomy (full rank- collapse for -planar and for -boundary toroidal bipartite graphs, versus complete rigidity in characteristic ). Fifth, these rank laws lift prime-power -counting to bounded-apex graphs and to -clique-sums of orientable -genus and bounded-treewidth pieces having at most non-Kuo facial adhesions per piece (up to non-Kuo adhesions in total). Sixth, on bounded-treewidth graphs we give a deterministic algorithm for -matching decision and witness search---derandomizing the algorithm of Idziak, Kawałek, Krzaczkowski, and Weiß (2022) for and and resolving the abelian-quotient case of their Problem 1---and lift matching-equivalence (whether all perfect matchings share the same ordered product) to for nilpotent-by-abelian groups while ruling out polynomial time under ETH for solvable groups of Fitting length (starting at ). The core group classification and reduction identities of the three main counting theorems are verified in Lean.
Provenance statement
References
- D. Goel, Exact and Modular Counting Dichotomies for Group-Labeled Perfect Matchings , Zenodo (2026), https://doi.org/10.5281/zenodo.24677025DOI
- E. Aichinger and S. Grünbacher, On the complexity of solving equations over the symmetric group , preprint (2025), https://arxiv.org/abs/2503.07285link
- E. Allender and M. Mahajan, The complexity of planarity testing , Inform. and Comput. 189 (2004), no. 1, 117--134.
- E. Angelini, Higher secants of spinor varieties , Boll. Unione Mat. Ital. (9) 4 (2011), no. 2, 213--235, https://arxiv.org/abs/1011.2337link
- V. Arvind and S. Srinivasan, On the hardness of the noncommutative determinant , in 42nd Annual ACM Symposium on Theory of Computing (STOC 2010), ACM, 2010, pp. 677--686.
- D. A. Barrington, Bounded-width polynomial-size branching programs recognize exactly those languages in , J. Comput. System Sci. 38 (1989), no. 1, 150--164.
- R. Bertolo, P. R. J. Östergå rd, and W. D. Weakley, An updated table of binary/ternary mixed covering codes , J. Combin. Des. 12 (2004), no. 3, 157--176.
- M. R. Best, Binary codes with a minimum distance of four , IEEE Trans. Inform. Theory 26 (1980), no. 6, 738--742.
- M. R. Best, A. E. Brouwer, F. J. MacWilliams, A. M. Odlyzko, and N. J. A. Sloane, Bounds for binary codes of length less than , IEEE Trans. Inform. Theory 24 (1978), no. 1, 81--93.
- M. Bläser, Noncommutativity makes determinants hard , Inform. and Comput. 243 (2015), 133--144 (preliminary version in ICALP 2013, pp. 172--183).
Show all 68 referencesShow fewer references
- H. L. Bodlaender and T. Hagerup, Parallel algorithms with optimal speedup for bounded treewidth , SIAM J. Comput. 27 (1998), no. 6, 1725--1746.
- J.-Y. Cai and X. Chen, Complexity of counting CSP with complex weights , J. ACM 64 (2017), no. 3, Art. 19, 19:1--19:39.
- J.-Y. Cai, X. Chen, R. J. Lipton, and P. Lu, On tractable exponential sums , in 4th International Workshop on Frontiers in Algorithmics (FAW 2010), LNCS 6213 , Springer, 2010, pp. 148--159.
- J.-Y. Cai and A. Gorenstein, Matchgates revisited , Theory Comput. 10 (2014), Art. 7, 167--197, https://doi.org/10.4086/toc.2014.v010a007DOI
- J.-Y. Cai, P. Lu, and M. Xia, Computational complexity of Holant problems , SIAM J. Comput. 40 (2011), no. 4, 1101--1132.
- C. Chevalley, The Algebraic Theory of Spinors , Columbia University Press, New York, 1954.
- S. Chien, P. Harsha, A. Sinclair, and S. Srinivasan, Almost settling the hardness of noncommutative determinant , in 43rd Annual ACM Symposium on Theory of Computing (STOC 2011), ACM, 2011, pp. 499--508.
- A. Chiu, G. Davida, and B. Litow, Division in logspace-uniform , RAIRO Theor. Inform. Appl. 35 (2001), no. 3, 259--275.
- D. Cimasoni and N. Reshetikhin, Dimers on surface graphs and spin structures. I , Comm. Math. Phys. 275 (2007), no. 1, 187--208.
- N. Creignou and M. Hermann, Complexity of generalized satisfiability counting problems , Inform. and Comput. 125 (1996), no. 1, 1--12.
- J. Cudby and S. Strelchuk, Gaussian decomposition of magic states for matchgate computations , preprint (2023; rev. 2025), https://arxiv.org/abs/2307.12654link
- R. Curticapean, H. Dell, and T. Husfeldt, Modular counting of subgraphs: Matchings, matching-splittable graphs, and paths , in 29th Annual European Symposium on Algorithms (ESA 2021), LIPIcs 204 , Schloss Dagstuhl, 2021, pp. 34:1--34:17.
- J. Dehaene and B. De Moor, Clifford group, stabilizer states, and linear and quadratic operations over , Phys. Rev. A 68 (2003), 042318, 9 pp.
- L. E. Dickson, Linear Groups: With an Exposition of the Galois Field Theory , Teubner, Leipzig, 1901.
- A. Ehrenfeucht and M. Karpinski, The computational complexity of (XOR, AND)-counting problems , Technical Report 8543-CS, Universität Bonn, 1990.
- M. Elberfeld, A. Jakoby, and T. Tantau, Logspace versions of the theorems of Bodlaender and Courcelle , in 51st Annual IEEE Symposium on Foundations of Computer Science (FOCS 2010), IEEE, 2010, pp. 143--152.
- W. Feit and J. G. Thompson, Solvability of groups of odd order , Pacific J. Math. 13 (1963), no. 3, 775--1029.
- A. Földvári and G. Horváth, The complexity of the equation solvability and equivalence problems over finite groups , Internat. J. Algebra Comput. 30 (2020), no. 3, 607--623.
- F. G. Frobenius, Über auflösbare Gruppen. V , Sitzungsber. Preuss. Akad. Wiss. Berlin (1901), 1324--1329.
- A. Galluccio and M. Loebl, On the theory of Pfaffian orientations. I. Perfect matchings and permanents , Electron. J. Combin. 6 (1999), Research Paper R6, 18 pp.
- I. Gessel and G. Viennot, Binomial determinants, paths, and hook length formulae , Adv. Math. 58 (1985), no. 3, 300--321.
- D. Goel, Exact Matching in Subexponential Time , Zenodo (2026), https://doi.org/10.5281/zenodo.24587196DOI
- M. Goldmann and A. Russell, The complexity of solving equations over finite groups , Inform. and Comput. 178 (2002), no. 1, 253--262.
- B. Huppert, Endliche Gruppen. I , Grundlehren der mathematischen Wissenschaften 134 , Springer, Berlin, 1967.
- T. Huynh, The -disjoint paths problem for group-labelled graphs , preprint (2026), https://arxiv.org/abs/2611.34307link
- P. M. Idziak, P. Kawał ek, and J. Krzaczkowski, Nonuniform deterministic finite automata over finite algebraic structures , preprint (2025), https://arxiv.org/abs/2501.12260link
- P. M. Idziak, P. Kawał ek, J. Krzaczkowski, and A. Weiß, Satisfiability problems for finite groups , in 49th International Colloquium on Automata, Languages, and Programming (ICALP 2022), LIPIcs 229 , Schloss Dagstuhl, 2022, Art. 127, pp. 127:1--127:20, https://doi.org/10.4230/LIPIcs.ICALP.2022.127DOI
- P. M. Idziak, P. Kawał ek, J. Krzaczkowski, and A. Weiß, Equation satisfiability in solvable groups , Theory Comput. Syst. 68 (2024), no. 4, 740--757.
- F. Jaeger, D. L. Vertigan, and D. J. A. Welsh, On the computational complexity of the Jones and Tutte polynomials , Math. Proc. Cambridge Philos. Soc. 108 (1990), no. 1, 35--53.
- M. Jerrum and A. Sinclair, Polynomial-time approximation algorithms for the Ising model , SIAM J. Comput. 22 (1993), no. 5, 1087--1116.
- G. A. Kabatyanskii and V. I. Panchenko, Unit sphere packings and coverings of the Hamming space , Probl. Inf. Transm. 24 (1988), no. 4, 261--272.
- J. G. Kalbfleisch and R. G. Stanton, A combinatorial problem in matching , J. London Math. Soc. 44 (1969), 60--64; Corrigendum, J. London Math. Soc. (2) 1 (1969), 398.
- P. W. Kasteleyn, Graph theory and crystal physics , in Graph Theory and Theoretical Physics , Academic Press, London, 1967, pp. 43--110.
- R. Kulkarni, M. Mahajan, and K. R. Varadarajan, Some perfect matchings and perfect half-integral matchings in NC , Chicago J. Theoret. Comput. Sci. 2008 , Art. 4, 26 pp. (preliminary versions in STOC 2000, pp. 351--357, and ESA 2004, pp. 472--483).
- E. H. Kuo, Applications of graphical condensation for enumerating matchings and tilings , Theor. Comput. Sci. 319 (2004), no. 1--3, 29--57.
- M. Mahajan, P. R. Subramanya, and V. Vinay, The combinatorial approach yields an NC algorithm for computing Pfaffians , Discrete Appl. Math. 143 (2004), no. 1--3, 1--16.
- L. Manivel, On spinor varieties and their secants , SIGMA 5 (2009), Paper 078, 22 pp.
- K. Mulmuley, A fast parallel algorithm to compute the rank of a matrix over an arbitrary field , Combinatorica 7 (1987), no. 1, 101--104.
- G. Nordh and P. Jonsson, The complexity of counting solutions to systems of equations over finite semigroups , in 10th Annual International Computing and Combinatorics Conference (COCOON 2004), LNCS 3106 , Springer, 2004, pp. 370--379.
- P. R. J. Östergå rd, A new binary code of length and covering radius , IEEE Trans. Inform. Theory 37 (1991), no. 1, 179--180.
- P. R. J. Östergå rd, T. Baicheva, and E. Kolev, Optimal binary one-error-correcting codes of length have codewords , IEEE Trans. Inform. Theory 45 (1999), no. 4, 1229--1231.
- P. R. J. Östergå rd and U. Blass, On the size of optimal binary codes of length and covering radius , IEEE Trans. Inform. Theory 47 (2001), no. 6, 2556--2557.
- O. Reardon-Smith, Exponential lower bounds on the fermionic Gaussian rank of magic states and the bosonic coherent state rank of Fock states , preprint (2026), https://arxiv.org/abs/2610.03699link
- O. Reingold, Undirected connectivity in log-space , J. ACM 55 (2008), no. 4, Art. 17, 24 pp.
- D. J. S. Robinson, A Course in the Theory of Groups , 2nd ed., Graduate Texts in Mathematics 80 , Springer, New York, 1996.
- E. Samperton and A. Weiß, Obstruction theory and the complexity of counting group homomorphisms , preprint (2026), https://arxiv.org/abs/2602.02885link
- T. J. Schaefer, The complexity of satisfiability problems , in 10th Annual ACM Symposium on Theory of Computing (STOC 1978), ACM, 1978, pp. 216--226.
- O. Yu. Schmidt, Über Gruppen, deren sämtliche Teiler spezielle Gruppen sind , Mat. Sb. 31 (1924), no. 3--4, 366--372.
- R. G. Stanton and J. G. Kalbfleisch, Covering problems for dichotomized matchings , Aequationes Math. 1 (1968), 94--103.
- M. Suzuki, On a class of doubly transitive groups , Ann. of Math. (2) 75 (1962), no. 1, 105--145.
- K. Talaska, Determinants of weighted path matrices , preprint (2012), https://arxiv.org/abs/1202.3128link
- J. G. Thompson, Nonsolvable finite groups all of whose local subgroups are solvable , Bull. Amer. Math. Soc. 74 (1968), no. 3, 383--437.
- L. G. Valiant, The complexity of computing the permanent , Theor. Comput. Sci. 8 (1979), no. 2, 189--201.
- L. G. Valiant, The complexity of enumeration and reliability problems , SIAM J. Comput. 8 (1979), no. 3, 410--421.
- L. G. Valiant, Quantum circuits that can be simulated classically in polynomial time , SIAM J. Comput. 31 (2002), no. 4, 1229--1254.
- L. G. Valiant, Accidental algorithms , in 47th Annual IEEE Symposium on Foundations of Computer Science (FOCS 2006), IEEE, 2006, pp. 509--517.
- V. V. Vazirani, NC algorithms for computing the number of perfect matchings in -free graphs and related problems , Inform. and Comput. 80 (1989), no. 2, 152--164.
- F. Wei, K.-W. Wu, Z. Liu, and Z.-W. Liu, Robust exponential lower bounds for fermionic and bosonic Gaussian ranks , preprint (2026), https://arxiv.org/abs/2610.02172link
Version history
- v1 · 39 pagesSubmitted by Dave GoelFirst version: November 29, 2026. This is the expanded version of the focused article "Exact and Modular Counting Dichotomies for Group-Labeled Perfect Matchings", posted on Zenodo (https://doi.org/10.5281/zenodo.24677025) and submitted concurrently to Hexagon. Sections 2-5 reproduce the complete modular and exact counting dichotomies of the focused article; Sections 6-8 develop all-field planar mimicking rank laws, bounded-apex and clique-sum algorithmic lifts, and bounded-treewidth NC^3 derandomization.SupersededNov 30, 2026
- v2 · 44 pagesSubmitted by Dave GoelFirst version: November 29, 2026. This version (2.53): December 1, 2026. Expanded version of the focused article "Exact and Modular Counting Dichotomies for Group-Labeled Perfect Matchings" (https://hexagonmath.org/2611.01450; Zenodo: https://doi.org/10.5281/zenodo.24677025). Sections 2-5 prove the three core counting theorems of the focused article; Sections 6-8 develop all-field planar mimicking rank laws, bounded-apex and clique-sum algorithmic lifts, and bounded-treewidth NC^3 derandomization.CurrentDec 01, 2026