Quadratic Presentational Complexity and Exact Observable Barriers for Class-Two $p$-Groups
Abstract
Let $p$ be an odd prime and let $\mathcal N_{2,p}$ be the variety of finite groups of nilpotency class at most two and exponent $p$. We study coefficient-free word-equation observables on groups in $\mathcal N_{2,p}$, with particular attention to the number of variables required to distinguish nonisomorphic groups. The first result is a quadratic normal form theorem: every word in $k$ variables, when evaluated in $\mathcal N_{2,p}$, is represented by a linear exponent-sum part in $\mathbb F_p^k$ and an alternating commutator part in $\Lambda^2\mathbb F_p^k$. Thus every finite word-equation system is equivalent, in this variety, to a finite system of linear and alternating-quadratic equations. We formalize such systems as quadratic presentations and give an exact solution-counting formula for class-two exponent-$p$ groups associated with alternating maps. For graphical $p$-groups arising from the Baer--Lovasz--Tutte construction, we show that quadratic presentational observables are exactly right homomorphism counts toward finite alternating-orthogonality targets. This gives a semantic core for such observables, a complexity dichotomy for fixed observables on input graphs, and a right-profile completeness theorem. Finally, using Wilson-type subgroup-profile families, we obtain an exact arity barrier: there are nonisomorphic groups $G,H\in\mathcal N_{2,p}$ whose least distinguishing coefficient-free observable arity is $\log_p |G|-2$. Thus arity is an irreducible observational resource in this setting.
1 Introduction
Let (G) be a finite group. A finite system of word equations
defines a numerical invariant
Such invariants include commuting probabilities, higher commuting probabilities, homomorphism counts from finitely presented groups, and many centralizer-type statistics. They are among the most elementary ways to observe a finite group using only its multiplication. This paper studies such observables in the variety
where (p) is an odd prime. Groups in $\mathcal N_{2,p}$ are naturally represented by alternating bilinear maps. If
is alternating over $\mathbb F_p$, then
with multiplication
is a group of class at most $2$ and exponent (p). Conversely, special groups in $\mathcal N_{2,p}$ arise in this way from their commutator maps. The basic observation is that word equations collapse in this variety. Every word in (k) variables has a unique normal form consisting of:
a linear exponent-sum part in $\mathbb F_p^k$;
an alternating quadratic commutator part in $\Lambda^2\mathbb F_p^k$. Thus, from the perspective of $\mathcal N_{2,p}$, every word observable is a quadratic observable. We call the resulting theory quadratic presentational complexity. Its basic objects are quadratic presentations
The map (a) records the linear part of the relations, while (b) records the commutator part. The paper has two main parts. The first part develops the general quadratic formalism and proves an exact solution-counting formula. Given an alternating map
the number of solutions of a quadratic presentation in $G_\beta$ is a linear factor times the number of noncentral assignments whose quadratic obstruction lies in a specified linear image. The second part specializes to graphical (p)-groups. Given a graph $\Gamma$, the Baer--Lovasz--Tutte construction associates a class-two exponent-(p) group $G_\Gamma$. This construction is faithful to graph isomorphism: $G_\Gamma\cong G_{\Gamma'}$ if and only if $\Gamma\cong\Gamma'$. For these groups we prove a transfer theorem:
Here $\Omega(S,K)$ is a reflexive graph with vertex set (S), where
and
Thus, on graphical groups, quadratic presentational observables are exactly right homomorphism counts toward alternating-orthogonality targets. This viewpoint gives:
a canonical semantic normal form for quadratic observables on graphical groups;
a complexity dichotomy for evaluating a fixed observable;
a right-profile completeness theorem;
and an exact arity lower bound using Wilson's examples. The final theorem says that there exist nonisomorphic groups in $\mathcal N_{2,p}$ that cannot be distinguished by any coefficient-free observable in fewer than
variables. The bound is exact. This result shows that arity is a real observational resource. It is not enough to choose more equations or longer equations in too few variables.
2 The variety N2p
Let (p) be an odd prime. Let $\mathcal N_{2,p}$ denote the variety of groups of nilpotency class at most $2$ and exponent (p). For $G\in\mathcal N_{2,p}$,
and every element has order dividing (p). Let $F_k$ be the free group on generators
Let
be the free object in $\mathcal N_{2,p}$ on (k) generators. Equivalently,
where $F_k^{(3)}$ is the third term of the lower central series. Every element of $F_{k,2,p}$ has a unique normal form
where
Thus, as a set and as an $\mathbb F_p$-vector space,
The first summand records the image in the abelianization. The second records the commutator coordinates.
3 Quadratic normal forms for words
Let $w\in F_k$. Its image in $F_{k,2,p}$ has a unique coordinate pair
This pair is the quadratic normal form of (w) in $\mathcal N_{2,p}$. Now let
be alternating bilinear over $\mathbb F_p$, and define
with multiplication
Then
Theorem 3.1 (Quadratic normal form).
For every word $w\in F_k$, there are unique
such that, for every alternating map $\beta:V\times V\to W$ and every
one has
Moreover, (a(w)) and (B(w)) are computable in time linear in the length of (w).
Proof.
The word (w) maps to a unique element of the free class-two exponent-(p) group $F_{k,2,p}$, and therefore has a unique normal form
Evaluation in $G_\beta$ is the unique homomorphism from $F_{k,2,p}$ sending $x_i$ to $g_i$. The image of the abelian component gives the term
in (V), and
in (W). The commutator component contributes
The computational statement follows by scanning the word and updating the pair ((a,B)). $\square$ Thus every word equation in $\mathcal N_{2,p}$ is linear-quadratic.
4 Quadratic presentations
A quadratic presentation over $\mathbb F_p$ is a quadruple
where (X) and (R) are finite-dimensional $\mathbb F_p$-vector spaces and
are linear maps. The space (X) is the variable space. The space (R) is the relation space. The map (a) records the linear exponent-sum part of the relations, while (b) records the alternating commutator part. Let
be alternating. An assignment of the variables of $\mathcal P$ in $G_\beta$ consists of two linear maps
The assignment satisfies $\mathcal P$ if
and
Let
be the set of satisfying assignments.
Proposition 4.1 (Equivalence with word systems).
Every finite system of word equations in $\mathcal N_{2,p}$ defines a quadratic presentation. Conversely, every quadratic presentation is realized by a finite system of word equations in $\mathcal N_{2,p}$.
Proof.
Given a word equation $w=1$, Theorem 3.1 gives a pair
A finite system of equations gives a finite list of such pairs, hence a relation space (R) together with maps
Conversely, if $a\in X$ and $B\in\Lambda^2X$, then, after choosing a basis of (X), the word
has normal form ((a,B)). Applying this to a basis of (R) realizes the presentation. $\square$
5 The counting formula
Let
be a quadratic presentation and let
be alternating. For
define the quadratic obstruction
Let
be the map
Theorem 5.1 (Counting formula).
Let
Then
Proof.
Fix $f:X\to V$. The noncentral equation is
Assume this holds. The central assignments $g:X\to W$ must satisfy
This linear equation is solvable if and only if
When it is solvable, its solution set is a coset of
Since
the number of possible (g) is
Summing over all admissible (f) proves the formula. $\square$ Thus every solution count is a linear factor multiplied by the number of assignments for which a quadratic obstruction vanishes in a quotient.
6 Graphical (p)-groups
Let
be a finite simple graph. Fix an arbitrary orientation of (E). Define
For $x,y\in V_\Gamma$, define
if the oriented edge (e) is $u\to v$. Let
Changing the orientation of an edge changes the sign of the corresponding basis vector of $W_\Gamma$, so the isomorphism type of $G_\Gamma$ does not depend on the orientation. This is the standard graphical class-two exponent-(p) construction, equivalent to the Baer--Lovasz--Tutte graph-to-group construction. We use the following known fact.
Theorem 6.1 (Faithfulness of the graphical construction).
For finite simple graphs $\Gamma,\Gamma'$,
This is a theorem of He and Qiao for the Baer--Lovasz--Tutte construction.
7 From quadratic presentations to alternating targets
Let
be a quadratic presentation. An assignment of the noncentral parts of the variables in $G_\Gamma$ is a linear map
For each vertex $u\in U$, define
The equation
is equivalent to
for every (u). Therefore the allowed spins lie in
The commutator part defines an alternating map
by
Let
be the map induced by $\widetilde q_\mathcal P$. Define
Now define a reflexive graph
with vertex set $S_\mathcal P$ and adjacency
Since $s\wedge s=0$, every vertex has a loop.
8 Protocol-to-target transfer
Theorem 8.1 (Transfer theorem).
For every finite graph $\Gamma$,
Proof.
A noncentral assignment
is the same as a spin assignment
for every vertex $u\in U$. The linear relations are equivalent to
for all (u). Now fix an oriented edge
The central components of the variables along (e) form an element
The central relations along (e) have the form
This equation is solvable precisely when
equivalently when
equivalently when
Thus the spin assignment is valid exactly when it is a graph homomorphism
If the edge equation is solvable, the number of possible $z_e$ is
The choices for different edges are independent. Hence every graph homomorphism contributes
central lifts. This proves the formula. $\square$ Thus, on graphical (p)-groups, every quadratic observable is a right homomorphism count toward a finite alternating-orthogonality target.
9 Realization of all alternating-orthogonality targets
Let (S) be a finite-dimensional $\mathbb F_p$-vector space and let
Define
as before:
Proposition 9.1 (Realization).
For every pair ((S,K)), there exists a quadratic presentation $\mathcal P$ such that
Proof.
Take
Then
Take no linear relations, so $a=0$ and
Let
and let
be the quotient map. Choose a basis of (Y), and represent the coordinate functionals of (q) as elements of
These elements define the commutator part (b). Then the induced kernel is exactly (K). $\square$ Therefore the graphical semantics of QPC is precisely the family
10 The contraction-kernel core
The target $\Omega(S,K)$ may contain many twin vertices. Its semantic content as a graph homomorphism target is captured by a weighted twin-free core. For $s\in S$, define
This is precisely the neighborhood of (s) in $\Omega(S,K)$. Define an equivalence relation on (S) by
Let
For $L\in\mathcal K(S,K)$, define its multiplicity
We define a weighted reflexive graph
as follows:
the vertex set is $\mathcal K(S,K)$;
the vertex weight of $L$ is $\mu(L)$;
vertices (L) and (M) are adjacent if, for some equivalently every $s,t\in S$ with $K_s=L$ and $K_t=M$, one has
Lemma 10.1 (Well-defined adjacency).
The adjacency relation on $\operatorname{Core}(S,K$) is well-defined.
Proof.
Suppose
and
Then
Similarly,
Thus adjacency depends only on the two kernel classes. $\square$
Proposition 10.2 (Weighted-core identity).
For every finite graph $\Gamma$,
Proof.
Every homomorphism
induces a homomorphism
by sending
Conversely, if
is a homomorphism, then it lifts to $\Omega(S,K)$ by choosing, independently for each vertex (u), one of the
spins in the corresponding kernel class. Multiplying over all vertices and summing over $\phi$ gives the formula. $\square$
11 Semantic equivalence of quadratic presentations
Two quadratic presentations may have different variable and relation spaces but produce identical observables on all graphical groups. The weighted core gives the exact criterion.
Theorem 11.1 (Semantic equivalence theorem).
Let $\mathcal P$ and $\mathcal P'$ be quadratic presentations with associated pairs
The following are equivalent:
for every finite graph $\Gamma$,
-
and the weighted reflexive graphs
are isomorphic.
Proof.
By Theorem 8.1 and Proposition 10.2,
where
Evaluating on edgeless graphs forces
hence
After this, the edge factor
is the same for both presentations. Thus equality of solution counts for all $\Gamma$ is equivalent to equality of all weighted homomorphism functions of the two weighted cores. The cores are twin-free by construction. By the weighted form of Lovasz's theorem for graph homomorphism functions, twin-free finite weighted graphs with the same homomorphism function from all finite graphs are isomorphic as weighted graphs. The converse follows immediately from the same formula. $\square$ This gives a canonical semantic representation of a quadratic observable on graphical (p)-groups.
12 Quadratic right-profile completeness
Let
For a graph $\Gamma$, define its quadratic right profile by
Theorem 12.1 (Quadratic right-profile completeness).
For finite graphs $\Gamma,\Gamma'$, the following are equivalent:
$\Gamma\cong\Gamma'$;
$G_\Gamma\cong G_{\Gamma'}$;
all coefficient-free quadratic presentation counts agree on $G_\Gamma$ and $G_{\Gamma'}$;
$\Gamma$ and $\Gamma'$ have the same number of edges and
Proof.
The equivalence of $1$ and $2$ is Theorem 6.1. The implication $2$$\Rightarrow$$3$ is immediate because solution counts of coefficient-free systems are group isomorphism invariants. The implication $3$$\Rightarrow$$4$ follows from Theorem 8.1 and Proposition 9.1. The implication $4$$\Rightarrow$$3$ also follows from Theorem 8.1: every quadratic presentation has an associated target $\Omega(S,K)$, and the only additional factor is
which agrees because the two graphs have the same number of edges. It remains to show that $3$ implies $2$. Let $L\in\mathcal N_{2,p}$ be finite. Choose a finite presentation of (L) inside the variety $\mathcal N_{2,p}$. By the quadratic normal form theorem, this is a quadratic presentation $\mathcal P_L$. For every $X\in\mathcal N_{2,p}$,
Thus $3$ implies
for every finite $L\in\mathcal N_{2,p}$. We now use Hom/Inj inversion inside the finite class $\mathcal N_{2,p}$. If $G_\Gamma$ and $G_{\Gamma'}$ have different orders, then they are already distinguished by homomorphism counts from elementary abelian groups. Thus assume they have the same order. Taking (L) to range over all quotients of $G_\Gamma$, we have
for every normal subgroup $N\trianglelefteq G_\Gamma$. For $X\in\mathcal N_{2,p}$,
Mobius inversion on the finite lattice of normal subgroups of $G_\Gamma$ gives
The left side is
The right side is zero unless
because the groups have the same order. Therefore
This proves $2$, and hence all conditions are equivalent. $\square$
13 Complexity dichotomy
For a fixed graph (H), the problem
is the $\#H$-Coloring problem. Dyer and Greenhill proved a dichotomy for this problem. In the case where $H$ is connected and reflexive, the problem is polynomial-time computable precisely when $H$ is a complete reflexive graph; otherwise it is $\#P$-complete. Every target
is reflexive. It is also connected, because $0\in S$ is adjacent to every vertex.
Theorem 13.1 (QPC dichotomy on graphical groups).
Let $\mathcal P$ be a fixed quadratic presentation with associated pair
The problem
is polynomial-time computable if
and is ($\#P$)-complete otherwise.
Proof.
By Theorem 8.1,
The prefactor is computable in polynomial time. The target $\Omega(S,K)$ is complete reflexive if and only if
which is equivalent to
If $K=\Lambda^2S$, every map
is a homomorphism, so the count is
which is polynomial-time computable. If $K\ne\Lambda^2S$, then $\Omega(S,K)$ is connected, reflexive, and not complete. By the Dyer--Greenhill dichotomy, computing
is ($\#P$)-complete. Hence the QPC count is ($\#P$)-complete as well. $\square$
Example 13.2 (Commuting pairs).
The observable
has
and
Thus
i.e. (s,t) are linearly dependent. The target is not complete. Therefore exact counting of commuting pairs in $G_\Gamma$, with $\Gamma$ as input, is ($\#P$)-complete.
14 Relation to left and right homomorphism profiles
The theory above is a right-profile theory. Lovasz's classical theorem says that the full left profile
determines $\Gamma$. Restrictions of left profiles, for example to bounded-treewidth sources, are closely related to Weisfeiler--Leman equivalence and counting logics. By contrast, QPC on graphical groups produces restricted right profiles:
The expressive behavior of restricted right profiles is different from that of restricted left profiles. In particular, known results of Atserias--Kolaitis--Wu show that several equivalences captured by restrictions of left profiles, including fixed-variable counting logic equivalence, cannot in general be captured by restricting the right profile to a fixed class of targets. Accordingly, we do not interpret QPC as another form of Weisfeiler--Leman refinement. It is a different observational hierarchy, based on finite alternating-orthogonality targets.
15 Coefficient-free observables and arity
We now turn from graphical groups to arbitrary finite groups in $\mathcal N_{2,p}$. A coefficient-free observable in (k) variables is a Boolean combination of word equations and disequations in variables
with no named constants from the ambient group. For such an observable $\Phi$, write
for the number of satisfying (k)-tuples in (G). For finite groups (G,H), define
to be the least (k) such that there exists a coefficient-free observable $\Phi$ in (k) variables with
If no such (k) exists, set
For finite groups, $\operatorname{qvar}(G,H$) is finite whenever $G\not\cong H$.
16 Locality through generated subgroups
Lemma 16.1 (Generated-subgroup decomposition).
Let $\Phi$ be a coefficient-free observable in (k) variables. For every finite group (G),
where
Moreover, $\tau_\Phi(L$) depends only on the isomorphism type of (L).
Proof.
Every tuple
generates a unique subgroup
Since $\Phi$ has no coefficients from (G), whether $\mathbf g$ satisfies $\Phi$ depends only on the marked subgroup generated by the tuple. Partitioning tuples according to their generated subgroup gives the formula. $\square$
Corollary 16.2.
Suppose (G) and (H) have the same multiset of isomorphism types of proper subgroups, counted with multiplicity. If
then every coefficient-free observable in (k) variables has the same number of solutions in (G) and (H).
Proof.
If
then no (k)-tuple generates (G). Hence every (k)-tuple generates a proper subgroup. The same holds for (H). The result follows from Lemma 16.1 and the equality of proper subgroup profiles. $\square$
17 A general arity upper bound
We now prove a complementary upper bound using Hom/Inj inversion.
Lemma 17.1 (Hom-count separation by a quotient).
Let (G,H) be finite groups of the same order with
Then there exists a normal subgroup
such that
Proof.
Assume the contrary. For $N\trianglelefteq G$, put
and
Every homomorphism
has kernel
for some normal subgroup $M\trianglelefteq G$ with $N\le M$. Hence
If
for every (N), then Mobius inversion on the lattice of normal subgroups of (G) gives
for every (N). In particular,
The left side is
The right side is zero, since an injection $G\hookrightarrow H$ between groups of the same order would be an isomorphism. This contradicts $G\not\cong H$. $\square$
Corollary 17.2 (General arity upper bound).
If $G,H\in\mathcal N_{2,p}$ are finite, nonisomorphic, and have the same order, then
Proof.
By Lemma 17.1, some quotient (G/N) has different homomorphism counts into (G) and (H). The group (G/N) can be presented using at most (d(G)) generators. The number of homomorphisms from (G/N) into an ambient group (X) is the number of solutions in (X) of the relators of such a presentation. Since $G/N\in\mathcal N_{2,p}$, these relators are equivalent to a quadratic presentation. Thus (G) and (H) are distinguished by a coefficient-free observable in at most (d(G)) variables. Applying the same argument with (H) gives the stated bound. $\square$
18 Wilson groups and the exact arity barrier
We use the following theorem of Wilson.
Theorem 18.1 (Wilson's subgroup-profile examples).
For primes
and integers
there exists a family $\mathcal W_{p,e}$ of at least
pairwise nonisomorphic (p)-groups such that every $G\in\mathcal W_{p,e}$ satisfies:
$|G|=p^{2e+2}$;
(d(G)=2e);
all groups in $\mathcal W_{p,e}$ have the same multiset of isomorphism types of proper subgroups;
all groups in $\mathcal W_{p,e}$ have the same multiset of isomorphism types of proper quotients. These groups lie in the class of (p)-groups considered by Wilson's logarithmic subgroup-profile construction. We now obtain the exact arity barrier.
Theorem 18.2 (Exact observable arity barrier).
Let (G,H) be two nonisomorphic groups in $\mathcal W_{p,e}$. Then
Equivalently,
Moreover, for every
all groups in $\mathcal W_{p,e}$ have identical values for every coefficient-free observable in (k) variables.
Proof.
First, let $k<2e$. Since
for every $G\in\mathcal W_{p,e}$, no (k)-tuple generates (G). Hence every (k)-tuple generates a proper subgroup. All groups in $\mathcal W_{p,e}$ have the same multiset of isomorphism types of proper subgroups. By Corollary 16.2, every coefficient-free observable in (k) variables has the same number of solutions in all groups in the family. Thus
For the upper bound, Corollary 17.2 gives
Therefore
Since
we have
The final statement follows from the same lower-bound argument. $\square$ This proves that the logarithmic arity bound is both necessary and sufficient in the worst case.
19 Interpretation of the arity barrier
Theorem 18.2 shows that arity is a genuine resource for coefficient-free observables. It is not enough to use:
more relators;
longer relators;
more complicated Boolean combinations; if the number of variables is below the generator rank. For the Wilson families, every such observable is trapped inside proper subgroups, and the proper subgroup profiles are identical. Thus the subgroup-profile obstruction is not merely an obstruction to a particular algorithm or heuristic. It obstructs the entire coefficient-free observable hierarchy below the generator rank.
20 Main conclusions
The paper establishes the following principles.
20.1 Quadratic collapse
In $\mathcal N_{2,p}$, every word observable is quadratic.
20.2 Right-profile semantics
On graphical (p)-groups, every quadratic observable is exactly a right homomorphism count toward an alternating-orthogonality target.
20.3 Canonical semantic core
Every such target has a weighted twin-free core determined by the contraction kernels
Two observables have the same values on all graphical groups if and only if their weighted cores agree.
20.4 Complexity dichotomy
Every fixed nondegenerate observable gives a ($\#P$)-complete counting problem on input graphs.
20.5 Exact arity barrier
There exist nonisomorphic groups in $\mathcal N_{2,p}$ requiring exactly
variables to distinguish by any coefficient-free observable.
21 Further directions
21.1 Budget beyond arity
Theorem 18.2 measures variables. It does not measure:
number of relators;
sparsity;
circuit size;
observable width. A refined theory should study trade-offs between these resources.
21.2 Restricted target families
The full family
is complete for graphical groups. It remains to understand which subfamilies retain significant distinguishing power. Natural candidates include:
symplectic targets;
low-codimension kernels (K);
targets of bounded contraction-kernel diversity;
targets arising from small-rank commutator systems.
21.3 Canonization
This paper studies counting observables, not canonical forms. A natural next goal is to turn right-profile or quadratic-presentational data into canonical decompositions for alternating maps
21.4 Relation to proof complexity
Reducing QPC counts modulo (p) gives polynomial functions in the structure constants of the alternating map. This suggests a connection with low-degree invariant theory and proof complexity for tensor isomorphism.
Declaration of generative AI and AI-assisted technologies in the writing process
During the preparation of this work, ChatGPT, by OpenAI, was used to assist with mathematical drafting, formalization, review, and editing. This work is shared as a preliminary AI-assisted mathematical note. The mathematical content may have been only partially reviewed and may contain errors; it should not be treated as peer-reviewed or as a fully verified manuscript.
References
- [1] Albert Atserias, Phokion G. Kolaitis, and Wei-Lin Wu. On the Expressive Power of Homomorphism Counts. LICS 2021; arXiv:2101.12733.
- [2] Jin-Yi Cai and Artem Govorov. On a Theorem of Lovasz that $\operatorname{hom}(\cdot,H$) Determines the Isomorphism Type of (H). ITCS 2020; arXiv:1909.03693.
- [3] M. Dyer and C. Greenhill. The complexity of counting graph homomorphisms. Random Structures \& Algorithms 17 $2000$, 260--289. See also the corrigendum in Random Structures \& Algorithms 25 $2004$, 346--352.
- [4] Xiaoyu He and Youming Qiao. On the Baer--Lovasz--Tutte construction of groups from graphs: isomorphism types and homomorphism notions. arXiv:2003.07200.
- [5] László Lovasz. Operations with structures. Acta Mathematica Academiae Scientiarum Hungaricae 18 $1967$, 321--328.
- [6] László Lovasz. The rank of connection matrices and the dimension of graph algebras. European Journal of Combinatorics 27 $2006$, 962--970.
- [7] James B. Wilson. The Threshold for Subgroup Profiles to Agree is Logarithmic. Theory of Computing 15 $2019$, Article 19, 1--25.
- [8] Harald Dell, Martin Grohe, and Gaurav Rattan. Lovasz Meets Weisfeiler and Leman. ICALP 2018; arXiv:1802.08876.
- [9] James A. Grochow and Youming Qiao. On the complexity of isomorphism problems for tensors, groups, and polynomials. SIAM Journal on Computing 52 $2023$, 568--617.
- [10] Xiaorui Sun. Faster Isomorphism for (p)-Groups of Class 2 and Exponent (p). arXiv:2303.15412.