cs.CC — Computational Complexity
Contributed by Dave Goel
We introduce and classify the counting complexity of edge-ordered group-labeled perfect matchings. Fix a finite group Γ and an integer modulus q≥2. Given a simple graph G=(V,E) with edge labels w:E→Γ, a target g∗∈Γ, and an arbitrary global edge ordering e1<⋯<em (which may interleave edges across distinct components), let #Mg∗Γ(G) count the perfect matchings M of G whose ordered product ∏e∈Mordw(e) equals 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, c≥2), and O(logn)-genus graphs (given a cellular embedding), modular counting #Mg∗Γ(G)modq obeys a complete trichotomy: abelian groups lie in deterministic NC2 (planar/tw-c) and P (genus); non-abelian groups in Cp (normal Sylow p-subgroup, abelian quotient) lie in NC2/P modulo q=pe via Galois rings and division-free Pfaffians, and are ModℓP-hard on planar bipartite treewidth-2 graphs whenever a prime ℓ=p divides q; and every Γ∈/⋃pCp has no tractable modulus (ModℓP-hard for every q≥2 and prime ℓ∣q, via Frobenius's normal p-complement theorem). Second, semidirect products P⋊Q with odd-p P and non-abelian class-2 2-group Q having Z(Q)≅Z2 (starting in Class III at order 24 with D24,Dic6 and reaching faithful actions at order 72 with Z32⋊Q8,Z32⋊D8) separate 2-regular outerplanar bipartite graphs (P via Dickson Gauss sums) from planar bipartite treewidth-2 graphs (ModpP-hard). Third, on 2-regular outerplanar bipartite graphs (to which maximum degree Δ≤2 reduces), exact counting lies in P if Γ is abelian or a class-2 2-group of exponent ≤4 and is #P-hard otherwise, collapsing to abelian groups alone at Δ=3 via a 10-vertex chorded cycle; for every non-solvable group we give a linear-size, depth-2 commutator proof of #P- and all-prime ModℓP-hardness at Δ=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=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-2 rigidity from characteristic-=2 collapse to rank 1 on bipartite 1-planar and 4-boundary toroidal graphs. Fifth, we lift prime-power Cp-counting to bounded-apex and ≤K-clique-sum decompositions into O(logn)-genus facial-adhesion and bounded-treewidth pieces with O(logn) non-Kuo adhesions per piece (Θ(n) total). Sixth, on bounded-treewidth graphs we derandomize Cp-matching decision and witness search to deterministic NC3, placing matching-equivalence in NC3 for every nilpotent-by-abelian group while ruling out polynomial time under ETH for every solvable group of Fitting length ≥3 (starting at S4).
A mix of human-written and AI-generated textHuman understanding: some partsGalois ringsKasteleyn Pfaffiancounting complexitygroup-labeled graphsmatchgatesmodular countingperfect matchingsplanar graphs