Matching works

2 works

cs.CC — Computational Complexity

Exact and Modular Counting Dichotomies for Group-Labeled Perfect Matchings

Contributed by Dave Goel

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 a global edge ordering e1<⋯<eme_1 < \dots < e_m, 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^*. The order is arbitrary and may interleave edges across distinct components. 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. We establish two complete complexity classifications across every finite group Γ\Gamma and every modulus q≥2q \ge 2. 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: (I) for abelian Γ\Gamma, exact and modular counting lie in deterministic NC2\mathsf{NC}^2 (planar and bounded treewidth) and P\mathsf{P} (genus O(log⁡n)O(\log n)); (II) for non-abelian Γ∈Cp\Gamma \in \mathcal{C}_p (having a normal Sylow pp-subgroup with abelian quotient), counting modulo q=peq = p^e lies in deterministic NC2\mathsf{NC}^2 (planar and bounded treewidth) and P\mathsf{P} (genus O(log⁡n)O(\log n)) via Galois rings and division-free Pfaffians, whereas any qq divisible by a prime ℓ≠p\ell \neq p is ModℓP\mathsf{Mod}_\ell\mathsf{P}-hard even on simple planar bipartite treewidth-22 graphs; and (III) for every Γ∉⋃pCp\Gamma \notin \bigcup_p \mathcal{C}_p, there is no tractable modulus: counting modulo every q≥2q \ge 2 is ModℓP\mathsf{Mod}_\ell\mathsf{P}-hard for every prime ℓ∣q\ell \mid q, already on simple planar bipartite treewidth-22 graphs, via Frobenius's (1907) normal pp-complement theorem. Second, on 22-regular outerplanar bipartite graphs (to which maximum degree Δ≤2\Delta \le 2 reduces), exact integer counting lies in P\mathsf{P} if Γ\Gamma is abelian or a nilpotency-class-22 22-group of exponent at most 44, and is #P\#\mathsf{P}-hard for every other finite group; at maximum degree Δ=3\Delta = 3, every non-abelian group becomes #P\#\mathsf{P}-hard via disjoint copies of a 1010-vertex chorded cycle.

Author comments: First version: November 29, 2026. An expanded version, with further results on all-field planar mimicking rank laws, bounded-apex and clique-sum algorithmic lifts, and bounded-treewidth derandomization, is posted on Hexagon (https://hexagonmath.org/2611.01449) and Zenodo (https://doi.org/10.5281/zenodo.24677022).

A mix of human-written and AI-generated textHuman understanding: some partsGalois ringsKasteleyn Pfaffiancounting complexitygroup-labeled graphsmodular countingperfect matchingsplanar graphs
Nov 30, 202622 pages
PDFView work

cs.CC — Computational Complexity

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

Contributed by Dave Goel

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.

A mix of human-written and AI-generated textHuman understanding: some partsGalois ringsKasteleyn Pfaffiancounting complexitygroup-labeled graphsmatchgatesmodular countingperfect matchingsplanar graphs
Nov 30, 202639 pages
PDFView work

Advanced search

Text
Human understanding
Linked formalizations