Expanded Version of "Exact and Modular Counting Dichotomies for Group-Labeled Perfect Matchings"

A mix of human-written and AI-generated textHuman understanding: some partscs.CC — Computational Complexitymath.CO — Combinatoricsmath.GR — Group Theory

Contributed by Dave Goel ↗

Version 1 / 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 Γ\Gamma and an integer modulus q≥2q \ge 2. Given a simple graph G=(V,E)G = (V, E) with edge labels w:E→Γw : E \to \Gamma, a target g∗∈Γg^* \in \Gamma, and an arbitrary global edge ordering e1<⋯<eme_1 < \dots < e_m (which may interleave edges across distinct components), let #Mg∗Γ(G)\#\mathcal{M}_{g^*}^\Gamma(G) count the perfect matchings MM of GG whose ordered product ∏e∈Mordw(e)\prod_{e \in M}^{\mathrm{ord}} w(e) equals g∗g^*. While Kasteleyn's Pfaffian method solves this problem in polynomial time for abelian groups on planar graphs, the non-abelian case has not been classified. This expanded article proves six main results: the three core counting classifications of the focused article together with three companion structural and algorithmic extensions. First, on planar, bounded-treewidth (tw⁡≤c\operatorname{tw} \le c, c≥2c \ge 2), and O(log⁡n)O(\log n)-genus graphs (given a cellular embedding), modular counting #Mg∗Γ(G) mod q\#\mathcal{M}_{g^*}^\Gamma(G) \bmod q obeys a complete trichotomy: abelian groups lie in deterministic NC2\mathsf{NC}^2 (planar/tw-cc) and P\mathsf{P} (genus); non-abelian groups in Cp\mathcal{C}_p (normal Sylow pp-subgroup, abelian quotient) lie in NC2\mathsf{NC}^2/P\mathsf{P} modulo q=peq = p^e via Galois rings and division-free Pfaffians, and are ModℓP\mathsf{Mod}_\ell\mathsf{P}-hard on planar bipartite treewidth-22 graphs whenever a prime ℓ≠p\ell \neq p divides qq; and every Γ∉⋃pCp\Gamma \notin \bigcup_p \mathcal{C}_p has no tractable modulus (ModℓP\mathsf{Mod}_\ell\mathsf{P}-hard for every q≥2q \ge 2 and prime ℓ∣q\ell \mid q, via Frobenius's normal pp-complement theorem). Second, semidirect products P⋊QP \rtimes Q with odd-pp PP and non-abelian class-22 22-group QQ having Z(Q)≅Z2Z(Q) \cong \mathbb{Z}_2 (starting in Class III at order 2424 with D24,Dic6D_{24}, \mathrm{Dic}_6 and reaching faithful actions at order 7272 with Z32⋊Q8,Z32⋊D8\mathbb{Z}_3^2 \rtimes Q_8, \mathbb{Z}_3^2 \rtimes D_8) separate 22-regular outerplanar bipartite graphs (P\mathsf{P} via Dickson Gauss sums) from planar bipartite treewidth-22 graphs (ModpP\mathsf{Mod}_p\mathsf{P}-hard). Third, on 22-regular outerplanar bipartite graphs (to which maximum degree Δ≤2\Delta \le 2 reduces), exact counting lies in P\mathsf{P} if Γ\Gamma is abelian or a class-22 22-group of exponent ≤4\le 4 and is #P\#\mathsf{P}-hard otherwise, collapsing to abelian groups alone at Δ=3\Delta = 3 via a 1010-vertex chorded cycle; for every non-solvable group we give a linear-size, depth-22 commutator proof of #P\#\mathsf{P}- and all-prime ModℓP\mathsf{Mod}_\ell\mathsf{P}-hardness at Δ=2\Delta = 2. Fourth, we develop a complete all-field theory of planar mimicking rank for general, bipartite, and directed matchgates, pinning down exact small ranks, a k=7k = 7 worst-case vs. generic separation, halved-cube and Johnson clique-cover laws, universal all-field exponential lower bounds, and a sharp topological phase diagram separating characteristic-22 rigidity from characteristic-≠2\neq 2 collapse to rank 11 on bipartite 11-planar and 44-boundary toroidal graphs. Fifth, we lift prime-power Cp\mathcal{C}_p-counting to bounded-apex and ≤K\le K-clique-sum decompositions into O(log⁡n)O(\log n)-genus facial-adhesion and bounded-treewidth pieces with O(log⁡n)O(\log n) non-Kuo adhesions per piece (Θ(n)\Theta(n) total). Sixth, on bounded-treewidth graphs we derandomize Cp\mathcal{C}_p-matching decision and witness search to deterministic NC3\mathsf{NC}^3, placing matching-equivalence in NC3\mathsf{NC}^3 for every nilpotent-by-abelian group while ruling out polynomial time under ETH for every solvable group of Fitting length ≥3\ge 3 (starting at S4S_4).

Author comments: First 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.

Provenance statement

This work was done overwhelmingly by AI models, steered by the author in a continuous critical dialogue, variously with Anthropic's Claude, OpenAI's ChatGPT and Google's Gemini. The author takes full responsibility for the paper.

References

  1. D. Goel, Exact and Modular Counting Dichotomies for Group-Labeled Perfect Matchings , Zenodo (2026), https://doi.org/10.5281/zenodo.24677025DOI
  2. E. Aichinger and S. Grünbacher, On the complexity of solving equations over S4S_4 , preprint (2025), https://arxiv.org/abs/2503.07285link
  3. 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.
  4. D. A. Barrington, Bounded-width polynomial-size branching programs recognize exactly those languages in NC1\mathrm{NC}^1 , J. Comput. System Sci. 38 (1989), no. 1, 150--164.
  5. M. R. Best, Binary codes with a minimum distance of four , IEEE Trans. Inform. Theory 26 (1980), no. 6, 738--742.
  6. 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 2525 , IEEE Trans. Inform. Theory 24 (1978), no. 1, 81--93.
  7. M. Bläser, Noncommutativity makes determinants hard , Inform. and Comput. 243 (2015), 133--144 (preliminary version in ICALP 2013, pp. 172--183).
  8. H. L. Bodlaender and T. Hagerup, Parallel algorithms with optimal speedup for bounded treewidth , SIAM J. Comput. 27 (1998), no. 6, 1725--1746.
  9. 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.
  10. 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.
Show all 54 referencesShow fewer references
  1. J.-Y. Cai, P. Lu, and M. Xia, Computational complexity of Holant problems , SIAM J. Comput. 40 (2011), no. 4, 1101--1132.
  2. C. Chevalley, The Algebraic Theory of Spinors , Columbia University Press, New York, 1954.
  3. 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.
  4. A. Chiu, G. Davida, and B. Litow, Division in logspace-uniform NC1\mathrm{NC}^1 , RAIRO Theor. Inform. Appl. 35 (2001), no. 3, 259--275.
  5. D. Cimasoni and N. Reshetikhin, Dimers on surface graphs and spin structures. I , Comm. Math. Phys. 275 (2007), no. 1, 187--208.
  6. G. Cohen, I. Honkala, S. Litsyn, and A. Lobstein, Covering Codes , North-Holland Mathematical Library 54 , Elsevier, Amsterdam, 1997.
  7. N. Creignou and M. Hermann, Complexity of generalized satisfiability counting problems , Inform. and Comput. 125 (1996), no. 1, 1--12.
  8. 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.
  9. J. Dehaene and B. De Moor, The Clifford group, stabilizer states, and linear and quadratic operations over GF(2)\mathrm{GF}(2) , Phys. Rev. A 68 (2003), 042318, 9 pp.
  10. L. E. Dickson, Linear Groups: With an Exposition of the Galois Field Theory , Teubner, Leipzig, 1901.
  11. A. Ehrenfeucht and M. Karpinski, The computational complexity of (XOR, AND)-counting problems , Technical Report 8543-CS, Universität Bonn, 1990.
  12. 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.
  13. 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.
  14. F. G. Frobenius, Über einen Fundamentalsatz der Gruppentheorie, II , Sitzungsber. Preuss. Akad. Wiss. Berlin (1907), 428--437.
  15. 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.
  16. I. Gessel and G. Viennot, Binomial determinants, paths, and hook length formulae , Adv. Math. 58 (1985), no. 3, 300--321.
  17. D. Goel, Exact Matching in Subexponential Time , Hexagon Math (2026), https://hexagonmath.org/2611.01193hexagon
  18. M. Goldmann and A. Russell, The complexity of solving equations over finite groups , Inform. and Comput. 178 (2002), no. 1, 253--262.
  19. B. Huppert, Endliche Gruppen. I , Grundlehren der mathematischen Wissenschaften 134 , Springer, Berlin, 1967.
  20. T. Huynh, The kk-disjoint paths problem for group-labelled graphs , preprint (2026), https://arxiv.org/abs/2611.34307link
  21. 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.
  22. 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.
  23. M. Jerrum and A. Sinclair, Polynomial-time approximation algorithms for the Ising model , SIAM J. Comput. 22 (1993), no. 5, 1087--1116.
  24. 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.
  25. P. W. Kasteleyn, Graph theory and crystal physics , in Graph Theory and Theoretical Physics , Academic Press, London, 1967, pp. 43--110.
  26. E. H. Kuo, Applications of graphical condensation for enumerating matchings and tilings , Theor. Comput. Sci. 319 (2004), no. 1--3, 29--57.
  27. 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.
  28. L. Manivel, On spinor varieties and their secants , SIGMA 5 (2009), Paper 078, 22 pp.
  29. K. Mulmuley, A fast parallel algorithm to compute the rank of a matrix over an arbitrary field , Combinatorica 7 (1987), no. 1, 101--104.
  30. 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.
  31. P. R. J. Östergå rd, A new binary code of length 1010 and covering radius 11 , IEEE Trans. Inform. Theory 37 (1991), no. 1, 179--180.
  32. P. R. J. Östergå rd, T. Baicheva, and E. Kolev, Optimal binary one-error-correcting codes of length 1010 have 7272 codewords , IEEE Trans. Inform. Theory 45 (1999), no. 4, 1229--1231.
  33. P. R. J. Östergå rd and U. Blass, On the size of optimal binary codes of length 99 and covering radius 11 , IEEE Trans. Inform. Theory 47 (2001), no. 6, 2556--2557.
  34. D. J. S. Robinson, A Course in the Theory of Groups , 2nd ed., Graduate Texts in Mathematics 80 , Springer, New York, 1996.
  35. T. J. Schaefer, The complexity of satisfiability problems , in 10th Annual ACM Symposium on Theory of Computing (STOC 1978), ACM, 1978, pp. 216--226.
  36. O. Yu. Schmidt, Groups all of whose subgroups are special , Mat. Sb. 31 (1924), 366--372.
  37. R. G. Stanton and J. G. Kalbfleisch, Covering problems for dichotomized matchings , Aequationes Math. 1 (1968), 94--103.
  38. K. Talaska, Determinants of weighted path matrices , preprint (2012), https://arxiv.org/abs/1202.3128link
  39. J. G. Thompson, Nonsolvable finite groups all of whose local subgroups are solvable , Bull. Amer. Math. Soc. 74 (1968), no. 3, 383--437.
  40. L. G. Valiant, The complexity of computing the permanent , Theor. Comput. Sci. 8 (1979), no. 2, 189--201.
  41. L. G. Valiant, The complexity of enumeration and reliability problems , SIAM J. Comput. 8 (1979), no. 3, 410--421.
  42. L. G. Valiant, Quantum circuits that can be simulated classically in polynomial time , SIAM J. Comput. 31 (2002), no. 4, 1229--1254.
  43. L. G. Valiant, Accidental algorithms , in 47th Annual IEEE Symposium on Foundations of Computer Science (FOCS 2006), IEEE, 2006, pp. 509--517.
  44. V. V. Vazirani, NC algorithms for computing the number of perfect matchings in K3,3K_{3,3}-free graphs and related problems , Inform. and Comput. 80 (1989), no. 2, 152--164.

Version history

  1. 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.CurrentNov 30, 2026