Manuscript Offprint
arXiv:2611.01838Integral saturation of adjacency-degree lattices
Abstract
Let be the adjacency matrix of , let , and let . We prove
Thus two dependent graph operators generate the entire vertex lattice from the constant vector, simultaneously over every prime field. Adjacency alone has a modulo-two rank obstruction for every simple graph of order greater than one, even though its rational word span is typically full.
The proof first constructs words containing at most two adjacency operations whose integer span contains , where is the product of the pairwise differences between distinct degree values. This confines all possible arithmetic obstructions to a finite prime range on a single event. We then remove the remaining obstructions using conditional alternating forms, symmetric random-matrix code estimates, and uniform counts of degree-graded invariant subspaces.
We connect the integer lattice to graph reconstruction through pointed moments. Saturation forces every pointed orthogonal AD intertwiner to be a vertex permutation. The short-word construction also shows that a fixed polynomial-size family of ordinary caterpillars, of diameter at most seven and order , identifies almost every graph among all finite simple graphs. For nonsaturated full-rank lattices, we give an exact description of the moment fibre by admissible unimodular overlattices; at index two, the only possible ambiguity is a specified four-vertex Godsil–McKay switch.
1 Introduction
Starting from the constant function on a graph, one can repeatedly sum over neighbours or multiply by the vertex degree. Over a field, these operations produce a cyclic linear representation. Over the integers, they pose a stronger question: can every individual vertex indicator be generated without division?
Let be the adjacency matrix of a finite simple graph , , and . The adjacency-degree word lattice is
The algebra is unital, and its two generators need not commute. Equivalently, is the smallest subgroup containing and stable under . We call -full if , and integrally -saturated if .
The distinction is substantial even for random graphs. The ordinary walk matrix
is nonsingular with probability tending to one in [OT16]. But its rank modulo two is at most for every simple graph (Proposition S1.8). For , adjacency powers can therefore never generate . Typically, adding the degree operator removes this obstruction together with every other prime obstruction.
Theorem 1.1 (Random integral AD-saturation). Let . Then
In particular, with probability tending to one.
On the AD-full locus, the theorem asserts that the entire finite defect group vanishes, not just its component at a prescribed prime. Indeed, Smith normal form gives the equivalence
The order of these quantifiers matters: all fields are handled on the same random-graph event. The second generator is determined by the first, so the theorem is also a statement about how a local operation derived from an operator changes its integral reachability.
This arithmetic form of generation provides more information than a basis over . It eliminates denominators in the expressions for all vertex indicators, makes the same seed cyclic in every characteristic, and gives a concrete obstruction theory for reconstructing vertex coordinates from scalar observations. The proof has a corresponding structure: construct the coordinates with controlled denominators, then remove the finitely many possible prime factors. This separates a global integer construction from local invariant-subspace estimates. The exponent 3/20 comes from degree thresholds and is not asserted to be optimal.
The construction and its consequences. Write for the distinct degrees, , and
The main constructive step proves, with the same failure exponent,
Integer-surjective adjacency cuts propagate coordinates from singleton degree classes through two rounds of recovery. This handles every prime not dividing at once. All remaining primes are at most the degree width, hence at most ; characteristic two, fixed odd primes, and growing primes require different treatments.
For a word , the principal moment is a scalar observation of this representation. On the AD-full locus these moments determine the pointed representation up to rational orthogonal equivalence. Integral saturation makes that equivalence a permutation. The integer construction yields the following more economical set of observations.
Theorem 1.2 (Small-diameter identification; Corollary C.2). Let be the family of all ordinary caterpillars with diameter at most seven and at most vertices, including . It has isomorphism types. With probability at least , is determined among all finite simple graphs by .
The family is fixed before is drawn, its tests are unlabelled and unweighted, and each test has sublinear order. This is an identification theorem: no polynomial-time decoder from this profile is claimed. Its proof uses the integer cut construction but does not need the local-prime estimates. Those estimates establish the stronger integral-generation theorem. At the other extreme, even all caterpillars of diameter at most four fail to identify almost every graph. This qualitative lower bound also follows from the switching argument in Pikhurko–Verbitsky [PV11, Lemma 6.2]; Proposition C.3 supplies an entropy proof. The gap between diameters five and seven remains open.
Related work. Our starting point is the difference between rational controllability and integer generation. O'Rourke–Touri [OT16] establish the former for random graphs. Van Werde [VW25] studies walk cokernels for independent-entry random matrices, whereas here symmetry and impose dependencies. Wood's random-sandpile work [Woo17] provides a symmetric random-matrix estimate used directly in our fixed-prime argument. Smith invariants also have an algorithmic role in exact linear algebra [KB79, EGV00]. Here the issue is the typical disappearance of all invariant factors for a word-generated lattice.
The passage from algebraic obstructions to algorithmic structure has a broader precedent in noncommutative rank and operator scaling [GGOW16, AZGL+18]. Those works concern rank and invariant-theoretic obstructions over fields; they do not imply integer saturation of a cyclic module. Our local invariant-subspace arguments and global denominator construction address the additional arithmetic problem.
For graph reconstruction, walk-lattice and denominator methods appear in [Wan17, WWZ23]; unimodular overlattices also appear in Xiang's recent preprint [Xia26, Section 5]. That preprint announces determination of almost all graphs by their generalized spectrum. Our proof is independent, and generalized cospectrality does not require intertwining . The search for finite adjacency-degree descriptions of trees appeared earlier in the setting of hyperbolic set comparison [LWG+25, Sections D.2 and E.1]. Lu-Li [LL26] develop principal AD moments and their caterpillar interpretation, while [Lu26] constructs uniform probes for real cyclic modules. The distinction here is integral generation and its random-graph saturation. The caterpillar/degree-coloured-walk correspondence also appears in [Čer25]; all tree homomorphism counts characterize colour-refinement equivalence [DGR18]. Neither correspondence supplies the fixed diameter and sublinear test order of Theorem 1.2. Degree information also enters spectral reconstruction through matrix pencils and multivariate spectra [WLLX11, LS21, WZ26]; simultaneous similarity of is studied in [GS25, FXZW26, ZF26]. Bounds for generalized cospectral fibres appear in [RSA25, RASA26]. The integer word lattice and its random saturation are the additional objects studied here. Our coordinate propagation uses the separated-degree mechanism of Babai-Erdős-Selkow [BES80], with integer surjectivity replacing distinct combinatorial signatures.
Outline. The proof follows the arithmetic obstruction rather than the list of prime estimates. Section 2 first produces vertex coordinates with a common explicit denominator, reducing an unbounded problem to a bounded prime range. Section 3 then removes that denominator prime by prime while respecting the dependence between adjacency and degrees. Section 4 explains why integer coordinates force graph rigidity, how the short construction yields bounded-diameter tests, and what remains between identification and decoding. The appendices give all complete proofs, including the local-prime estimates, nonsaturated fibre theory, index-two classification, and exact computational certificates.
2.1 The arithmetic obstructions
To see exactly what must be proved, let and choose any finite integer generating matrix for . Such a matrix exists because subgroups of are finitely generated. Its nonzero Smith entries give
The free part records missing rational directions; the torsion part records divisibility within the visible space. Reduction modulo is surjective exactly when and no is divisible by . This proves (1.1). In particular, rational generation alone leaves every nontrivial Smith entry unresolved.
The obstruction for adjacency alone is especially concrete. Over , put . For , alternation gives
Repeatedly dividing a positive even index by two shows for all . Consequently all positive-degree walk vectors are pairwise orthogonal and orthogonal to . For even , the entire walk module is totally isotropic, of dimension at most . For odd , the positive-degree part is totally isotropic in the nondegenerate symplectic space , of dimension ; adding gives the bound . Thus this is an obstruction present in every graph, rather than a rare failure of random rational controllability.
For each prime write
For two symmetric operators, the relevant obstruction has an exact linear-algebraic form. Over any field, the orthogonal complement of is invariant under , and is proper precisely when there is a nonzero common invariant subspace . Indeed, symmetry implies , and similarly for . Conversely every word vector is orthogonal to such a . The ambient dot product is nondegenerate in every characteristic, even when its restriction to is degenerate. The dimensions of these restricted radicals will matter in the local counts. If all degrees are congruent to a scalar modulo , then and , so ; no unconditional saturation statement can hold for all graphs.
There is also a useful finite-length certificate. For a graph on vertices,
Over a field, the spaces generated by words of length at most satisfy . An equality is permanent, so a full cyclic module reaches dimension by step . When , apply this argument over every prime field and use the Smith criterion on the same finite integer generating matrix. This proves the forward implication; the reverse is immediate. The statement bounds the length of a saturation certificate, not the stabilization length of an arbitrary word lattice. It also does not bound the number of words by a polynomial.
2.2 One construction for the unbounded prime range
The first difficulty in (1.1) is the unbounded set of primes. Proving a high-probability statement for each fixed prime would not resolve it. Instead we construct a sublattice of explicit finite index using words with only two occurrences of .
For a degree , let be the diagonal projector onto its degree class. Lagrange interpolation gives
Each cleared projector has degree at most . Consequently a singleton degree vertex is accessible as . To reach nonsingleton classes, the construction needs integer surjectivity, not merely full rank of a cut matrix.
Lemma 2.1 (Integer-surjective cuts; Lemma B.2). For a matrix of independent uniform entries, , and ,
Here is the reason a finite random matrix can control every prime. Over any field, a fair Bernoulli column lies in a fixed proper subspace with probability at most : condition on all but a coordinate with a nonzero coefficient in a separating linear form. The first columns therefore have rational rank except with probability . Select a nonzero minor from them. Hadamard gives , so only primes can divide it. Every other prime is already settled. Conditional on the first half, the second half is independent and supplies full rank at each prime on this finite list with the same exponential failure bound. Smith normal form finishes the argument. This two-stage exposure avoids a union bound over infinitely many primes.
Why two propagation rounds suffice. The random graph supplies three scales of degree classes: many vertices with isolated extreme degrees, a large population in small low-degree classes, and arbitrary classes of size . The parameters in the full proof are
There are usable extreme-degree seeds, each in a singleton class. Low-degree classes have fewer than vertices, while there are at least vertices below a slightly lower degree threshold. All degree classes have fewer than vertices. The useful inequalities are
They allow the exponentially small cut failure probabilities to be union-bounded over all possible target sets.
If coordinates on a seed set are already available and is a target degree class with
then every , is an integer combination of . Using (2.2) gives the following progression:
at singleton seeds in small low-degree classes at every vertex.
The first round uses columns. The second uses columns among the recovered low-degree vertices. Each round adds one and one cleared degree projector. The resulting vectors therefore lie in the span of , with .
Preserving independence. Conditioning on the final degree classes and then treating their cut edges as independent would be invalid. The proof reverses that order. Fix a target row set , expose the graph outside , and choose candidate columns from this exposed graph. The edges between and these columns are still independent Bernoulli variables. Prove integer surjectivity simultaneously for every eligible , then substitute the actual degree classes of the full graph.
For the first round, the largest degrees are separated by more than . Since , deleting a target set disjoint from the seed set , with , leaves the seed choice stable. A degree class meeting is already a recovered singleton. For the second round, the selected columns have degree at most in the exposed graph, where
There are at least eligible vertices outside . Adding back at most vertices keeps their full degrees at most , so they belong to classes already recovered in the first round. The uniform cut statements can now be applied without conditioning on the cut entries themselves.
The degree separation and count estimates, together with these uniform cut events, fail with probability at most . This proves the integer inclusion (1.2); the complete argument is in Appendix B. It has two consequences to carry forward. First, has full rational rank and the exponent of divides . Second, every possible bad prime divides a difference of graph degrees and hence is at most . What remains is to remove these prime obstructions without assuming independence between and its degree operator.
3 Local mechanisms for integral generation
The integer inclusion confines every possible prime divisor of the defect to the degree differences. We must still exclude these primes without treating the degree diagonal as independent of the adjacency matrix. The common obstruction is a nonzero subspace invariant under both and : symmetry identifies such a space with a failure of cyclicity. The way we count these obstructions changes with the characteristic. Full proofs are in Appendices S1, S2, and S3.
3.1 Parity: count inside the actual degree fibre
Theorem (Prime two; Theorem S1.1). Let . For every ,
Consequently with probability .
Over , adjacency matrices are uniform alternating matrices. The map is onto , since a single edge maps to the sum of its endpoint vectors. Thus is uniform on , and conditioning on leaves a uniform affine space, not an independent-edge model. Except with probability , both parity classes have sizes .
Fix such a balanced fibre. Let be the all-ones vector on . Since projects onto , an invisible invariant subspace decomposes as , with . Write , let be the radical dimension of its restricted dot product, and put , , and . The invariance constraints are the bivectors , whereas the prescribed degree vector fixes . Their dimensions and intersection give
For these graded invisible spaces the compatibility conditions are automatic. The conditional probability of invariance is exactly .
The count must retain the same radical information. In a block of size , the even-weight hyperplane is symplectic when is odd and has radical when is even. Counting through its symplectic quotient gives at most candidates in a fixed parameter stratum, where
The last term is needed near full dimension. Set and . The exact formulas imply
Here balance gives , and . Summing over at most parameter strata proves the conditional bound uniformly in ; averaging over the fibres proves the theorem. This argument excludes invisible subspaces of all dimensions, including those larger than .
3.2 Fixed odd primes: keep the seed in the code
Theorem (Fixed odd primes; Theorem S2.1). For every fixed odd prime , there are constants such that
Consequently with probability tending to one.
The conclusion is irreducibility over , which is stronger than the required cyclicity. Symmetry reduces the possible dimensions to . Degree-residue classes have sizes except with probability . We enumerate deterministic balanced assignments , and estimate each event under the original edge distribution.
For a fixed -space with radical dimension , invariance has codimension in the symmetric matrices. Removing the diagonal costs at most constraints, so its Bernoulli probability is at most . Counting degree-graded subspaces together with their block radicals then gives, for sufficiently small fixed , an exponent
Thus dimensions , for a sufficiently large constant , are excluded exponentially. The remaining bounded dimensions require more than this coarse constraint bound.
Let the rows of span a small candidate . If , adjoin to form ; if , choose a basis matrix whose last row is . In either case every column has final coordinate one. Degree grading puts its other coordinates in prescribed eigenspaces. The equations for adjacency invariance, together with , prescribe a target for . Keeping this seed row is what makes the target estimate compensate for enumerating the degree assignments.
A full-row-rank matrix is a code of distance if deleting fewer than columns preserves its rank. For a code with rows, Wood's arbitrary-target bound [Woo17, Lemma 4.1], applied after adding an independent Bernoulli diagonal, gives
The factor is the cost of conditioning that diagonal to zero. Degree grading allows at most choices of for each assignment and fixed auxiliary matrices. Including the assignments gives
This decreases exponentially: , and for every odd prime.
For a non-code, choose a maximal depth witness: deleting a small set , of size , leaves columns spanning a proper space of dimension , and the remaining matrix is a code, where . Maximality supplies the code property. The equations projected modulo use only cut edges between and . A nonzero quotient coefficient forces their probability to be at most . After those edges are exposed, the internal matrix on is independent, so the code estimate gives
The quotient equations pay for the zero-diagonal cost. For , the degree-graded affine slices have total direction dimension at most ; counting them makes this estimate summable over all small exceptional sets. If , every surviving column is the same. Every residue class still occurs, forcing to be supported on (and making the encoding with impossible). Independent outside rows then give , which dominates the number of small-support spaces. This completes the bounded-dimensional part without assuming that the degree partition is independent of the edges.
3.3 Growing primes: split by support and dimension
Theorem (Growing primes; Theorem S3.1). There is an absolute integer such that, for , with probability the pair has no nonzero proper common invariant subspace over , simultaneously for every prime .
The fixed-prime constants are not used in this growing interval. Uniformly for integer moduli , every degree-residue class has size less than
except on one event of probability . For a deterministic proposed class, expose its internal edges. The external degrees are independent binomials; unimodality bounds each residue mass by . A union bound over the proposed classes and all moduli gives the simultaneous statement.
Put and . Choose the absolute first and then take sufficiently large that, uniformly for ,
This order is possible because and .
A degree-graded space of dimension is supported on at most coordinates. Any nonzero vector in it is annihilated by the outside cut. Taking a union over all supports and vectors, without enumerating degree assignments, bounds this probability by
For larger dimensions, symmetry lets us replace an invariant space by its orthogonal complement, so it suffices to consider . Enumerate at most assignments and graded subspaces for each assignment. The joint event that an assignment is the actual one and that is contained in the latter event alone. The unconditional invariance bound therefore applies, giving binary exponent at most
Summing over dimensions and at most primes preserves the claimed failure bound. This is uniform control of an entire interval, not a union of estimates whose constants depend on a growing prime.
The absolute cutoff leaves only finitely many fixed odd primes. Combining their bounds with the parity theorem, the growing interval, and the integer inclusion gives
The local criterion applies on this single intersection event and eliminates every Smith factor simultaneously.
4 From integer generation to graph reconstruction
The arithmetic theorem also explains when scalar observations recover a graph's vertex coordinates. For noncommuting words w in two letters, put
The moments give inner products of word vectors: . Thus they determine the Euclidean representation generated by . The remaining issue is its integer coordinate lattice.
The deterministic bridge. If is AD-full of order , choose a word basis
with empty and . Matching moments through length give
The empty-word moment fixes the order of . The Gram identity makes invertible, and the unique satisfies
Conversely these identities give every moment equality. This proves the finite pointed reconstruction theorem (Theorem A.8).
If , the last identity makes every column of integral. An integral unit vector is a signed coordinate vector; orthogonality makes the supports distinct, and makes the signs positive. Hence is a permutation matrix, and . Only needs to satisfy the saturation hypothesis.
Why short words give short test trees. Let be a path with edges and additional leaves at its th vertex. Summing the images of its leaves gives the established dictionary [LL26, Čer25]
A word with occurrences of and length therefore uses a tree of diameter at most and order .
On the integer-construction event, take from the words in (1.2). Each basis word has at most two 's and length at most . The Gram and inserted operator matrices above use at most five 's and length at most . All required counts thus come from caterpillars of diameter at most seven and order at most . Degree concentration gives , except with probability . The number of caterpillar types of order at most and diameter at most seven is at most . These observations give the quantitative bounds of Theorem 1.2.
There is one further point in that argument: to turn this short Gram reconstruction into a permutation, one need not invoke the local-prime estimates. An orthogonal pointed AD intertwiner already maps singleton degree vertices to corresponding positive unit vectors. Suppose it has done so for a set , and . Each in is an integer combination of , . Its image is therefore an integer combination of the integer vectors . Orthogonality and pointedness again make it a positive coordinate unit vector. The two cut rounds propagate this conclusion to every vertex (Remark C.1).
This uses the actual integer-surjective cuts, not just the inclusion . It explains the logical division of the results: the global construction already gives typical moment rigidity, whereas the local analysis proves the stronger assertion that the original word lattice itself has no arithmetic defect.
What a nonzero defect permits. For an AD-full graph, let . Theorem S5.4 identifies the graph isomorphism classes with moments with the -stable integral unimodular lattices
that admit an orthonormal basis satisfying , in which is diagonal and is a zero-diagonal symmetric matrix. These are exact graph-realization conditions. The identity then ensures that records the degrees. Each admissible lattice gives exactly one graph isomorphism class.
This description is finite but is not itself a polynomial-time classification algorithm: finding a suitable unit frame remains part of admissibility. At index two it becomes explicit. Let be the unique nonzero binary vector orthogonal to all word vectors and . The fibre has at most two classes. It has two exactly when , is regular, every outside vertex has zero, two, or four neighbours in , and the four vertices of have the same total degree. The other graph is obtained by the Godsil–McKay switch on (Theorem S6.5). We give both a rigid nonsaturated example and an example attaining the bound of two.
Computation and the remaining decoding problem. When is given, one can compute and its Smith invariants in deterministic polynomial time by repeatedly replacing a Hermite basis by one for . After rational rank stabilizes, each strict enlargement reduces the finite saturation index by a factor of at least two. Hadamard bounds the initial index and hence the number of rounds; Appendix S8 gives the bit bounds. Saturation also has a shorter certificate: words of length at most generate whenever all words do (Proposition A.7).
More precisely, with , , and
Theorem A.6 gives
Choose rationally independent words in nondecreasing length. The th has length at most , since an earlier stabilization would be permanent. Their entries have absolute value at most , giving the displayed index bound by Hadamard. Thereafter every strict lattice enlargement divides the remaining index by an integer at least two. Each Hermite step uses at most columns, and the appendix bounds their bit lengths by a polynomial in . Thus the algorithm does not enumerate the exponentially many words in (2.1).
Starting only with the count profile is a different input problem. Gram matrices and operator insertions recover an abstract rational representation, but an arbitrary lattice basis need not be its orthonormal vertex basis. The proof of uniqueness does not by itself find that basis in polynomial time. Exploiting the special random cut structure to do so is a further algorithmic question. Likewise, diameter four is insufficient, while the present construction reaches seven; in this construction, improving the upper bound requires a spanning frame with fewer adjacency occurrences, not merely a smaller interpolation denominator.
Reading and proof guide. Sections 1–4 present the main results and proof framework in the first 10 numbered pages. Appendices A–C give the finite framework, the full integer construction and final saturation argument, and the caterpillar proof. The longer local-prime proofs and the remaining arithmetic theory are collected in the supplementary proofs beginning on page 23. All proofs and references are contained in this PDF.
A Principal modules and integral saturation
All graphs in this paper are finite, simple, and undirected, with at least one vertex. Write , , and ; a subscript on specifies the graph when needed. A word means a word in the two noncommuting letters ; the empty word evaluates to the identity. Its length is denoted by , and is the reversed word. Since are symmetric, . Define
Here the integral algebra is unital. Equivalently, is the smallest subgroup of containing and stable under . Its saturation and relative defect group are
The group is finite. In particular,
as abelian groups, without a preferred splitting. Both operators preserve the saturation, since they preserve its rational span and ; hence they induce endomorphisms of . For a regular graph and , so a vanishing relative defect need not mean full rank.
Definition A.1. The graph is -full if , equivalently if . The lattice is primitive (or saturated in its rational span) if . The graph is integrally -saturated if . For a prime , put
The graph is -AD-saturated if . Bars denote reduction modulo ; when working over we usually suppress them.
AD-fullness and primitivity describe the two obstructions separately: missing rational directions and integral divisibility. For an AD-full graph write
with exponent 1 for the trivial group.
Proposition A.2 (Local criterion). For every graph and prime , the following are equivalent:
-
is -AD-saturated;
-
;
-
;
-
and .
Consequently integral AD-saturation is equivalent to p-AD-saturation for every prime.
Proof. The reduction of is the cyclic module over . Take a Smith normal form of a finite integer generating matrix for , with nonzero diagonal entries . Its reduction is surjective precisely when and all are units modulo . The same condition makes its columns span . Finally in full rank. A finite generating matrix exists because every subgroup of is finitely generated.
Corollary A.3 (A degree-congruence obstruction). If every degree is congruent to modulo , then . If the graph is AD-full, then .
Proof. Modulo , and , so every word preserves the line through . The quotient statement follows by reducing a Smith normal form.
Proposition A.4 (Invariant obstruction). Over any field , the module is proper if and only if there is a nonzero subspace
Proof. The orthogonal complement of the cyclic module is invariant because both operators are symmetric, and is nonzero if that module is proper. Conversely, invariance and symmetry imply that every vector in is orthogonal to every word vector . The ambient dot product is nondegenerate over every field, including characteristic two; its restriction to a subspace need not be.
Proposition A.5 (Complement invariance). With the same vertex coordinates, .
Proof. Every subgroup of containing is stable under , since . Use and , first in one direction and then in the other. No connectivity assumption is needed.
A.1 Position relative to equitable partitions
Let be the matrix whose columns are the indicators of the cells of an equitable partition. Its column space contains and is -invariant. Degrees are constant on each cell, so this space is also -invariant. Therefore is contained in the cell-constant space for the stable partition of color refinement. In particular, AD-fullness forces that partition to be discrete. It also forces asymmetry: an automorphism fixes , commutes with , and hence fixes every vector in .
Consequently color refinement identifies every AD-full graph among all graphs: on a disjoint union, equality of the stable color data gives a unique matching of singleton cells and their adjacencies. The arithmetic questions studied here concern the finer distinction between rational span and integer generation, and reconstruction from the principal moments defined below. For a regular graph, , so the full-rank theory applies only when .
A.2 Finite word bounds and exact computation
Put
Theorem A.6 (Finite integral closure). Let and . Then is finite and
In particular, all word vectors of length at most
generate . A lattice basis and its Smith invariants can be computed in deterministic polynomial time in the graph order.
Proof. The rational filtration reaches its final dimension by step . Thereafter, every strict lattice enlargement reduces its finite saturation index by a factor of at least two. Hadamard's inequality bounds the initial index, and Hermite normal form implements the successive closures. The details, including bit bounds, are given in Appendix S8.
Proposition A.7 (A bounded-length certificate). For every graph on vertices, integral AD-saturation is equivalent to
Proof. Only the forward implication needs proof. Over any field, let be the span of word vectors of length at most . Then and
Once , the space is invariant under both operators, and the sequence stabilizes. Thus a full word module reaches dimension by step .
If , this argument applies modulo every prime. The integer lattice generated by the displayed finite word set therefore has full image modulo every prime. Its Smith invariants are all one, so it equals .
The proposition bounds the word length needed to certify full integral generation. It does not assert that an arbitrary integer word lattice stabilizes by length .
A.3 Moments and their finite certificate
The principal AD-moment function is
Write when these values agree for every word, including the empty word. The latter value records the graph order.
Theorem A.8 (Finite pointed reconstruction). Suppose is AD-full of order . The following are equivalent:
-
;
-
the principal moments agree for all words of length at most ;
-
there is a rational orthogonal matrix Q such that
For fixed labelled graphs this matrix is unique, and H is AD-full.
Proof. The empty-word moment gives . Choose a word basis , containing the empty word, with , and form the corresponding matrix . Equality of the moments of length at most gives
because the entry is . Hence is nonsingular and is rational orthogonal and fixes . The additional insertion identities
use words of length at most and give both interwinings. Conversely the interwinings transport every word vector and every moment. They also force , proving uniqueness.
Thus a recorded word basis and the three by matrices , , and suffice to certify pointed orthogonal equivalence. Whether that equivalence is a vertex permutation is the arithmetic question addressed in Section S4.
B Simultaneous saturation away from degree differences
We first confine the possible prime divisors of the integer defect to a finite set determined by the degrees. Let be the set of distinct degrees of , put , and define
An empty product is 1. In particular, is always a positive integer. Let be the integer span of
Every generating word has at most two occurrences of and length at most .
Theorem B.1 (Integer generation with controlled denominators). If , then
In particular, with probability . On this event, is finite and its exponent divides . Consequently, on one event of probability ,
In particular, this holds simultaneously for every prime .
The proof constructs the inclusion over the integers, so the conclusion for all follows on a single graph event. Degree interpolation first produces at vertices whose degrees are unique. Two rounds of integer linear combinations then produce throughout a large collection of small degree classes, and finally at every vertex.
The probabilistic input is integer surjectivity of rectangular adjacency blocks. To preserve independence, we choose the columns after exposing the graph outside a fixed row set, prove the required property simultaneously for every eligible row set, and only then apply it to the degree classes of the full graph. The remaining sections will remove the possible prime divisors of .
B.1 An integer-surjectivity estimate for rectangular matrices
Lemma B.2. Let be a -by- matrix with independent uniform entries, where and , and put . Then
Proof. Let be either or a prime field, let be a proper linear subspace of , and let be a uniform column. Choose a nonzero linear functional vanishing on and a coordinate whose coefficient in this functional is nonzero. Conditional on all other coordinates, at most one of the two possible values of the chosen coordinate makes the functional vanish. Therefore
In a sequence of independent columns, every rank increment before full rank is reached thus has conditional probability at least 1/2. Coupling with independent fair bits, and using dummy increments after full rank, gives
Here , so the last estimate follows from Chernoff's inequality.
Suppose the first columns have rational rank . Select independent columns by a deterministic rule and denote their nonzero integer determinant by . Hadamard's inequality gives , so the number of distinct primes dividing is at most . Conditional on the first columns, this list of primes is fixed. For every prime not on the list, the first columns already have full rank modulo that prime. For each prime on the list, the remaining columns, independently of the first block, have full rank modulo that prime except with probability at most , by the preceding argument.
A union bound therefore proves that has full rank modulo every prime except with the stated probability. An integer matrix has image precisely when it has full rank modulo every prime: this follows immediately from its Smith normal form. This proves the claim.
B.2 Degree classes and isolated extreme degrees
All logarithms below, unless a base is indicated, are natural.
Lemma B.3. Fix . Suppose and
Then
The error is uniform when the constants in the two terms are bounded. The analogous upper-tail estimates hold by symmetry.
Proof. Put . Stirling's formula, followed by expansion of the binomial entropy at , gives, in the present range,
Here uniformly, proving the local estimate. Hoeffding's inequality gives the required tail upper bound. For the lower bound, sum the local probabilities at the consecutive integers ending at . Each summand has the stated local exponent, uniformly, and the number of summands is .
Lemma B.4. For an integer , let
Then
whenever . An analogous bound holds for upper-tail vertex counts, with the corresponding boundary point probability.
Proof. For distinct vertices , write
The variables are independent variables and are independent of . Conditional on , the two degree events are independent. The two possible conditional probabilities differ by exactly . Their covariance is therefore . Since , summing variances and covariances proves the bound. The same argument applies to upper tails.
For the remainder of the proof, set
(B.1)
All subsequent assertions involving these parameters are for sufficiently large . The two size bounds and apply, respectively, to low-degree classes and to arbitrary degree classes. The vertices of largest degree will supply the initial coordinates; the second round will use low-degree vertices. The inequalities
allow union bounds over the row sets and ensure that the initial vertices remain identifiable after deleting at most k vertices. The threshold t gives low-degree vertices, more than the needed in the second round.
Lemma B.5. With probability , all three assertions hold:
-
every degree class has fewer than K vertices;
-
every degree class of degree at most t has fewer than k vertices;
-
at least 2s vertices have degree at most t - K.
Proof. Fix a set of vertices and an integer . Conditional on the edges internal to , the external degrees of its vertices are independent variables. Each required external degree has probability at most . Thus
Taking a union bound over the possible degrees and all -sets gives
For assertion 2, fix a k-set and again condition on its internal edges. If the common full degree is , the required external degree of each vertex is at most . The external degree has distribution . Since , Lemma B.3 and monotonicity of the binomial point probabilities to the left of the mode give the uniform bound for every required external degree. The external degrees of the vertices of are independent. Consequently,
For assertion 3, put in Lemma B.4. Lemma B.3 gives and . Hence
Since , Chebyshev's inequality gives except with probability at most . The uniform estimate includes the shift by .
Lemma B.6. With failure probability at most , the largest degrees are pairwise separated by more than g. Let consist of the vertices of largest degree on this event. Then each vertex of is a singleton degree class. Moreover, if and , the vertices of largest degree in are exactly .
Proof. Set
Lemmas B.3 and B.4 show that the number of vertices with degree at least has expectation and relative variance at most . By Chebyshev's inequality it is at least , except with probability .
For a fixed pair of distinct vertices , condition on their mutual edge. The remaining parts of their degrees are independent variables. Their upper-tail probabilities at the relevant threshold are at most , and their largest point probabilities above that threshold are at most . Conditional on the first remaining degree, at most values of the second remaining degree are within distance . It follows that
A union bound over all pairs gives failure probability for the required separation above H. Together with the preceding count, this proves the first assertion.
The separation includes the st largest degree, so no vertex of shares its degree with a vertex outside . Deleting a disjoint set of size at most lowers every remaining degree by an integer between 0 and . Since , every vertex of still has degree greater than every vertex outside in the induced graph. This proves the deletion assertion.
Remark B.7. The use of separated extreme degrees goes back to Babai, Erdős, and Selkow [BES80, Theorem 3.6], who prove separation of the largest degrees on the scale . We included the tail and pair estimates to record the failure probability and the stability under deletion needed for the integer construction.
B.3 Selecting independent adjacency blocks
The next two lemmas are proved for all small row sets, without requiring them to be degree classes. This order of quantifiers permits their later use for the random degree partition.
Lemma B.8. For every fixed nonempty with , let be the highest-degree vertices of , using vertex labels to break ties. With probability ,
Proof. Fix and condition only on . Then is fixed, and the entries of are independent fair Bernoulli variables: they concern edges with one endpoint in , none of which has been exposed. Lemma B.2 applies because for sufficiently large .
There are at most eligible sets . The lemma's polynomial prefactor is absorbed into the following estimate, and a union bound gives total failure probability
Lemma B.9. For every fixed nonempty with , define
If , let be its first vertices in label order. With probability , simultaneously for every such with ,
On assertion 3 of Lemma B.5, for every eligible . Every vertex of has full degree at most .
Proof. Fix and condition on . The event and, when it exists, the set , are determined by this conditioning. The entries of remain independent fair Bernoulli variables. Since for sufficiently large , Lemma B.2 and a union bound over at most sets give total failure probability
Indeed .
If a vertex outside has full degree at most , deleting cannot increase its degree, so that vertex belongs to . On the stated degree-count event,
Conversely, for , restoring the edges to increases its degree by at most , and therefore .
After averaging over the exposed induced graph, both bounds are unconditional. We may therefore intersect these uniform events with the degree and seed events and then specialize C to an actual degree class.
B.4 The integer bootstrap
Proof of Theorem B.1. Intersect the events in Lemmas B.5–B.9. The degree-count event fails with probability at most ; the seed event fails with probability at most ; and the other failure probabilities decrease faster than any fixed inverse power of . Thus the intersection has failure probability at most . We prove the claimed integer inclusion for every graph in it.
For , let be the coordinate projector onto the vertices of degree . Lagrange interpolation gives
The denominator product divides up to sign, so
Thus this operator preserves . For a degree class , we also write for its projector.
Each is a singleton degree class, so
Now let be an actual degree class of size at most . If it meets , it is a singleton already covered. Otherwise, Lemma B.6 gives , and Lemma B.8 gives . For every ,
Integer combinations of these columns therefore give for every . For classes meeting , the same assertion follows by multiplying the already available vector by . By assertion 2 of Lemma B.5, we have proved
Finally let be any actual degree class. Its size is less than . Lemma B.9 supplies a set of vertices, each of full degree at most , such that . By (B.3) and (B.2), for every ,
Integer combinations give for all . The degree classes partition , proving .
Each operator is an integer polynomial in of degree at most , so we can also track the words used. The initial seed vectors use no , the first round adds one , and the second adds one more. Thus the entire construction uses integer combinations of
It therefore gives the stronger inclusion asserted in the theorem. The argument also covers initially seeded vertices used in the first round by merely multiplying their available vectors by the integer .
This inclusion implies that the cokernel is finite and is annihilated by . For any prime , reducing the inclusion modulo gives full span over . Every prime divisor of divides a nonzero degree difference, and is therefore at most . These conclusions hold on the same graph event.
Corollary B.10. With probability , the AD word module of is full over simultaneously for every prime .
Proof. Hoeffding's inequality and a union bound imply
Hence with probability , and Theorem B.1 applies.
Remark B.11. Theorem B.1 reduces integral saturation to finitely many primes: every possible prime divisor of the defect is at most . We next treat the prime two, each fixed odd prime, and a uniform interval of growing primes. These estimates complete the proof of Theorem 1.1.
B.5 Completion of the proof of Theorem 1.1
Fix the absolute cutoff in Theorem S3.1. Theorem B.1 gives
except with probability at most . Every prime divisor of divides a nonzero difference between two degrees in , and is therefore at most . On this event, simultaneously for every prime .
It remains to treat primes at most . At the prime two, Theorem S1.1 gives failure probability . For the finitely many odd primes below , Theorem S2.1 and a finite union bound give total failure probability . Finally, Theorem S3.1 covers all primes with failure probability . The cutoff was fixed before taking , so the constants in the fixed-prime estimates remain fixed.
On the intersection of these events, has full image over every prime field. Proposition A.2 therefore gives , and
This proves Theorem 1.1. The exponent records the degree thresholds used in Section B; we have not attempted to optimize it.
C Reconstruction from small-diameter caterpillars
The principal-moment interpretation of Lu and Li [LL26, Section 7] gives a combinatorial form of our rigidity result. For nonnegative integers , let be the tree obtained by attaching leaves at vertex of a k-edge path. Then
Here homomorphisms need not be injective, and the test trees carry no labels or weights. Every AD word has this form, allowing zero exponents. A word of length with occurrences of gives a caterpillar with vertices and diameter at most . The identity and the finite Gram-matrix reconstruction method are established ingredients. The extra conclusion here is that a fixed family of test trees of bounded diameter and sublinear order suffices for almost every graph.
We first record the rigidity property of the integer construction. It explains why this reconstruction consequence does not require the local-prime arguments.
Remark C.1 (Rigidity uses less than integral saturation). Let be the intersection of the events in Lemmas B.5–B.9. The proof of Theorem B.1 gives . Every real orthogonal pointed AD intertwiner from a graph in to any graph is a permutation matrix.
Indeed, such an intertwiner maps each degree block of to the corresponding block of . A singleton degree vertex therefore satisfies : orthogonality gives a sign, and makes it positive. Suppose a set of vertices has already been recovered in this sense, and for a degree block . Each , , is an integer combination of the vectors . Their images are , which are integer vectors. Hence is integral; orthogonality and pointedness make it a positive coordinate unit vector. The two rounds of the construction recover every vertex.
On the same event, the inclusion gives AD-fullness, so Theorem A.8 supplies when the principal moments agree. The rigidity argument uses the actual cut conditions defining , not merely that inclusion. It also does not prove integral saturation: the degree projectors need not lie in . The local-prime arguments remove these remaining interpolation denominators.
Corollary C.2 (A fixed family of small-diameter tests). Put
including . If , then with probability at least , every finite simple graph satisfies
The family has isomorphism types.
Proof. Fix , and let be its number of distinct degrees. The construction in Theorem B.1 shows that the vectors obtained from the words
span . Choose a basis among them, with the empty word first, as the columns of a matrix . Evaluate the same words on to obtain . Every chosen word has length at most 3q - 1 and at most two occurrences of .
Suppose first that have equal principal moments for all words of length at most containing at most five 's. The empty word gives . As in the finite reconstruction argument of Theorem A.8, the stated moments give
The Gram matrix is positive definite, so is invertible. These identities show that is orthogonal and intertwines both and . The first columns give . Remark C.1 makes a permutation, proving . No good-event assumption on is needed.
By (C.1), all the required moments are counts from caterpillars with at most 6q vertices and diameter at most seven. Hoeffding's inequality and a union bound give
On the complementary event, , so . Combining the two exceptional probabilities proves the claimed bound.
Every caterpillar of diameter at most seven admits a spine with at most six vertices. For a spine with vertices, the number of nonnegative leaf-multiplicity sequences giving at most vertices is . Thus the number of isomorphism types is at most , as required.
The next result shows that reducing the test diameter is a substantive restriction, even when arbitrarily large test trees are allowed.
Proposition C.3 (Diameter four does not suffice). The probability that is determined among finite simple graphs by its homomorphism counts from all caterpillars of diameter at most four tends to zero.
Proof. Let be the integer interval centred at with radius , intersected with . Except with probability at most , all degrees belong to . Put . For and , record , the number of ordered walks with . There are such entries, each an integer between zero and .
Every caterpillar of diameter at most four admits a spine of at most two edges. Its homomorphism count is therefore a sum of the entries of the corresponding , weighted by products of degree powers. Thus the entire infinite family of counts is determined by these tensors. Among graphs with degrees in , the number of possible count profiles is at most
A profile that determines a graph up to isomorphism can occur on at most labelled graphs. Since is uniform on the labelled graphs, the desired probability is at most
Supplementary proofs
The main exposition and Appendices A–C can be read independently of the order of the following technical proofs. Sections S1–S3 prove the local estimates used to complete Theorem 1.1. Sections S4–S6 give the full moment-fibre theory and the index-two classification. Sections S7–S9 contain further directions, exact computation, and the integer certificates.
S1 Saturation at the prime two
In this section we work over and write
Thus the degree-parity diagonal is determined by . The principal module is
All orthogonal complements below refer to the standard nondegenerate bilinear form . For a subspace , its radical is .
Theorem S1.1. Let . For every ,
Consequently with probability .
We prove the theorem by conditioning on the degree-parity vector. Failure of cyclicity then gives an invariant subspace orthogonal to , split between the two parity classes. Counting these subspaces by dimension and radical makes it possible to compare their number with the exact cost of invariance in the conditional matrix space. The numerical constants are not optimized.
S1.1 The degree-parity fibre and invariant obstructions
Let be the space of symmetric matrices with zero diagonal. These are precisely the matrices of alternating bilinear forms in characteristic two. The adjacency matrix of is uniform on this space.
Lemma S1.2. The vector is uniform on . Conditional on any , the matrix is uniform on the nonempty affine space
For , put and . Then
Proof. For every alternating , , so . The image of the edge matrix under is . For these vectors span ; for both the domain and the target image are zero. Thus the linear map is surjective onto , and all its fibres have the same size.
The uniform distribution on is the distribution of n independent fair bits conditioned on having even sum. The conditioning event has probability 1/2 for every . Hence has the distribution of a variable conditioned to be even. The usual Hoeffding bound
and division by the conditioning probability give (S1.2).
Fix for now a vector such that . In particular both blocks are nonempty. Let denote the all-ones vector on the coordinate space , and set
When necessary, is also viewed as a vector in by extension by zero. With this convention and .
Lemma S1.3. The equality holds if and only if there is a nonzero subspace with
Every such D-invariant subspace has a unique decomposition
Write
where the perpendicular in is taken in . Then
(S1.3)
Moreover, if and only if .
Proof. The space is invariant under the symmetric matrices . Therefore its orthogonal complement is invariant under both matrices, is contained in , and is nonzero exactly when is proper. Conversely, if such a nonzero exists, its orthogonal complement is invariant under and contains . It therefore contains , which is consequently proper.
The matrices and are the coordinate projections onto and , respectively. Their invariance gives the asserted direct sum. Each , embedded in the full coordinate space, is itself contained in , so . The two coordinate spaces are orthogonal and nondegenerate; hence radicals add, and . Since and both blocks are nonempty, . Finally, the uniqueness of the block decomposition gives the claim about .
S1.2 Counting subspaces with a prescribed radical
On an even-dimensional coordinate block, the dot product restricted to the even-weight hyperplane has a one-dimensional radical. We retain this radical in the count; its contribution is needed for subspaces close to full dimension.
Put
Indeed, , and the tail product is at least . The Gaussian binomial coefficient satisfies
Lemma S1.4. Let be a nondegenerate symplectic space of dimension over . The number of subspaces of dimension and radical dimension is at most
Impossible parameter choices contribute zero. More explicitly, for feasible parameters,
where
Empty products and the order of are one.
Proof. A radical of dimension is a totally isotropic subspace. After an ordered isotropic independent -tuple has been chosen, its perpendicular space has vectors, of which lie in its span. Counting ordered isotropic bases and dividing by the number of ordered bases of gives (S1.7). In particular,
For fixed , any subspace with radical exactly satisfies . Its image is a nondegenerate subspace of dimension in the nondegenerate symplectic space of dimension . Conversely every such image has a unique inverse image with radical . The symplectic group is transitive on nondegenerate subspaces of a fixed dimension: a symplectic basis of the subspace extends by a symplectic basis of its perpendicular complement. The stabilizer is the product of the symplectic groups on those two summands. This proves (S1.6); the group order in (S1.7) follows by counting symplectic bases.
For the upper bound, it is enough to discard the nondegeneracy condition on and use (S1.4). Combining it with (S1.8) gives an exponent
which proves (S1.5).
Lemma S1.5. Let , let be its all-ones vector, and let , with . For , write
The number of such W for fixed is at most
The exact counts, using the notation of Lemma S1.4, are
Proof. For , , so the restriction of the dot product to is alternating. Its radical is .
If is odd, then , and is nondegenerate symplectic of dimension . The first and fourth cases follow.
Suppose is even. Then the radical of is , and is nondegenerate symplectic of dimension . If , the projection of into is injective, preserving the restricted bilinear form. Its image has dimension and radical dimension . For each fixed image, choose any linear splitting of its inverse image in . The subspaces projecting isomorphically onto it are exactly the graphs of linear maps from a -dimensional space to . There are such maps. This proves the second exact formula. Its exponent in (S1.5), after adding , is .
If , then . Its image has dimension and radical dimension , and is its unique full inverse image. The resulting exponent is
This proves the last remaining case and the bound.
Apply Lemma S1.5 independently in the two degree-parity blocks. For a fixed choice of the six parameters , the number of candidate subspaces is at most
S1.3 Invariance inside a fixed degree-parity fibre
Lemma S1.6. Let , let , and . Let have dimension and radical dimension . For a matrix chosen uniformly from , put
If , the conditions and are compatible if and only if . When compatible,
If , they are compatible if and only if . When compatible,
In an incompatible case the probability is zero.
Proof. The dual space of alternating forms identifies with : the bivector evaluates the form as . This is valid also in characteristic two, where . Since the dot product is nondegenerate, is equivalent to
Thus its homogeneous constraint space is .
Write , and choose a direct sum
Here , , and . The independent wedge types in U are
Their dimensions give
The degree condition has dual constraint space , of dimension . It prescribes the value on ; the assumption makes this well-defined. Because , we have . If , choose to contain . An adapted wedge basis then gives
Indeed the wedges of with and are present, whereas wedges with the remaining basis vectors in or are absent. If , then , and the same basis argument yields
The affine degree conditions and the zero conditions on are compatible precisely when their prescribed values agree on this intersection. In the first case this is . In the second case it is , equivalently . When compatible, the additional independent constraints on the degree fibre number . A uniform point of an affine space over satisfies that many independent affine constraints with probability . This proves the two formulas.
For the graded subspaces of Lemma S1.3, compatibility is automatic. If , then is orthogonal to because . If , both are one, so as well, and . In particular, this second case can occur only when both are even.
S1.4 Balancing entropy and codimension
Proof of Theorem S1.1. Fix a balanced degree-parity vector . For any feasible nonzero candidate , set
Let be its conditional invariance codimension from Lemma S1.6. Substitution of (S1.10) gives, if ,
The added terms are nonnegative by (S1.3). If , then both , and the exact expression is
Each summand in is at least , since and . Consequently
Put . We have and . Simultaneously replacing by does not change . Thus there are , either for both or for both , such that and
Using balance, , and , we obtain
Together with (S1.13), this gives, for ,
The replacement by is only an algebraic estimate for ; it does not assume that the complementary dimensions define another feasible candidate. In particular, the argument covers subspaces of dimension greater than .
There are at most choices of and at most four choices of . Within each feasible nonzero stratum, the union bound, (S1.10), and (S1.14) give
Therefore, uniformly over every balanced ,
The bound is uniform in the balanced vector , so averaging over and adding (S1.2) proves (S1.1).
Remark S1.7. One extreme case illustrates the role of the correction. If both are even and , then , , and . This candidate is unique, both counting exponents vanish, and its conditional invariance codimension is . Omitting the terms would lose the required control of precisely such large subspaces.
S1.5 Comparison with the adjacency walk module
The prime-two result cannot be deduced from ordinary adjacency controllability over , which has a universal parity obstruction.
Proposition S1.8. For every simple graph on vertices,
Proof. Put . For odd ,
because is alternating. For even , the identity over gives
Repeated division of a positive even index by two shows that for all . The positive-degree walk vectors are therefore pairwise orthogonal and orthogonal to .
If is even, also , so the entire walk module is totally isotropic and has dimension at most . If is odd, then is nondegenerate symplectic of dimension . The positive-degree walk vectors span a totally isotropic subspace of dimension at most ; adding proves the bound.
Thus the degree-parity diagonal removes, with exponentially high probability, an arithmetic rank obstruction present for adjacency walks in every graph. The conclusion is cyclicity of ; it does not assert that is the full matrix algebra.
S1.6 The arithmetic interpretation
The local criterion of Proposition A.2 translates the theorem into an odd-index statement.
Corollary S1.9. For any simple graph , the following conditions are equivalent:
-
;
-
has rank and is odd;
-
, where .
Hence each condition holds for with the probability lower bound supplied by Theorem S1.1. On this event is AD-full over and , and the finite group has odd order.
Proof. Proposition A.2 gives the equivalence of the first two conditions. In the same Smith form, odd invariant factors are precisely the units of , giving the third. Apply Theorem S1.1 for the probabilistic statement.
Recall that a pointed intertwiner from to is an orthogonal matrix satisfying
Its level , when is rational, is the least positive integer for which is integral.
Proposition S1.10. Suppose has rank , and let be a real orthogonal matrix satisfying (S1.15) for a simple graph . Then is rational, has rank , and
In fact . In particular, if , every such intertwiner has odd level.
Proof. The given intertwiner preserves every principal moment. Since is AD-full, Theorem A.8 identifies with the unique rational pointed intertwiner. Lemma S4.1 gives full rank and lattice transport, and Theorem S4.2 gives equal indices and the stronger divisibility . Each exponent divides the corresponding index. The last assertion follows from Corollary S1.9.
Corollary S1.11. With probability , a graph has no pointed intertwiner of even rational level to any simple graph on vertices. The assertion is simultaneous over all competitors and intertwiners.
Proof. On the event in Theorem S1.1, Proposition S1.10 excludes every even level.
Remark S1.12 (Switching). The four-vertex Godsil–McKay switching matrix [GM82] is , up to simultaneous coordinate permutation. It is orthogonal, fixes 1, and has level two. The preceding corollary therefore excludes such switches when they also satisfy ; adjacency cospectrality and equality of degree multisets alone do not imply this identity.
The absence of four-vertex switching sets in a random graph also follows directly: for a fixed four-set, each outside vertex must have zero, two, or four neighbours in the set, an event of probability . A union bound gives . Corollary S1.11 instead controls every pointed AD intertwiner of even level.
S2 Fixed odd primes
In this section is a fixed odd prime. All vector spaces and matrices are over . Let , let be its adjacency matrix, put , and set . We prove a statement stronger than cyclicity of the principal module.
Theorem S2.1. For every fixed odd prime , there are constants such that
Consequently with probability tending to one.
The constants depend on ; uniformity for growing primes is supplied by Theorem S3.1. Symmetry allows us to restrict attention to invariant subspaces of dimension at most . Above a fixed dimension threshold, the cost of invariance outweighs the number of subspaces respecting the degree residues. Below that threshold, we use Wood's code estimate [Woo17, Lemma 4.1]. Its application requires a separate treatment of subspaces concentrated on a small set of coordinates.
S2.1 Degree residues and linear constraints
For , write .
Lemma S2.2. For every fixed ,
Proof. Set
Fourier inversion shows that the probability of any residue of a variable differs from by at most . For two distinct vertices, condition on the edge joining them. Their remaining degree sums are independent variables. Thus
Chebyshev's inequality and a union bound over the fixed p residues give the result.
Call a residue assignment balanced if every cell has size in . We will sum over deterministic balanced assignments , while estimating each event under the original independent-edge distribution.
Lemma S2.3. Let have dimension and radical dimension for the standard dot product. Then , as a condition on symmetric matrices, has codimension
For the adjacency matrix of ,
Proof. The constraint functionals are the symmetric products of with . Split off their common subspace . The dimension of these products is
Here odd characteristic identifies symmetric tensors with the dual of symmetric matrices. Restricting to zero-diagonal matrices reduces the rank of the constraints by at most . A rank- system of linear equations in independent Bernoulli variables has probability at most : after fixing the free variables, each of pivot variables has a prescribed value, of probability at most . This also proves the displayed bound when its right side exceeds one.
S2.2 Subspaces above a fixed dimension threshold
Put
Lemma S2.4. In a nondegenerate symmetric space of dimension over , the number of -dimensional subspaces of radical dimension is at most
Proof. First choose a totally isotropic -space . After choosing independent mutually orthogonal isotropic vectors, the next vector lies in their orthogonal complement, of dimension . The quadratic form factors through a nondegenerate space of dimension . At the relevant steps this dimension is at least two, and the elementary polynomial zero bound gives at most choices. Dividing the product of these bounds by the number of ordered bases of an -space gives
For fixed , the space has dimension in , whose dimension is . Discarding its required nondegeneracy, the Gaussian-binomial bound gives at most choices. Multiplication proves the claim.
Write and . Choose such that
These conditions are compatible: the last numerator is positive at and increases with . Fix a deterministic balanced degree assignment . Every subspace invariant under decomposes as . Put
Lemma S2.4 bounds the number in this stratum by , where
(S2.2)
The last inequality uses Cauchy-Schwarz separately for the and . Combining this with Lemma S2.3 and at most choices of , the binary logarithm of the union bound, apart from a constant depending on , is at most
For and , we have , while . Our choice of makes the exponent at most
Choose a fixed integer
There are at most dimension-and-radical strata. Thus the probability, on the balanced event, of a common invariant subspace with is exponentially small in n.
S2.3 Codes with a prescribed target
A matrix is a code of distance if deleting fewer than columns leaves a matrix of row rank . Equivalently, has row rank and every nonzero vector in its row space has support at least .
Lemma S2.5. Fix an odd prime , an integer , and . Let be a code of distance and let be a zero-diagonal symmetric Bernoulli matrix. For every fixed target ,
where K depends only on p, k, .
Proof. Add an independent Bernoulli diagonal to . Wood's arbitrary-target estimate [Woo17, Lemma 4.1] applies to , with coefficient modulus , target group , and balance parameter . Indeed, the upper-triangular entries of , including the diagonal, are independent and have maximum atom modulo . The code condition is precisely surjectivity after the allowed column deletions. Hence , uniformly over . Independence of gives
as required.
We now consider . Fix the code-distance parameter once for all remaining cases. Put , and write for the binary entropy with natural logarithms. Choose so that
(S2.4) and set . Such a choice exists because as .
Fix a deterministic balanced degree assignment and a -space invariant under . Encode in one of two ways.
If , let the rows of be a basis of and put , of rank . There is a matrix with , and . Its eigenspaces form a direct sum, and the th column belongs to . The event of interest implies
for some matrix C. Thus FA has a fixed target once F, g, C are chosen.
If , take a basis matrix of whose last row is , and put . Again with , and . Invariance under gives . For an upper bound we may retain its first target rows and prescribe the last row to be . Every actual instance satisfies one of these target equations. In both encodings every column of has final coordinate one. The numbers of choices of , and of auxiliary subspaces of , are bounded in terms of . We count all such encodings, allowing a subspace to be represented more than once.
Suppose first that is a code of distance . For fixed , there are at most
possible matrices . In the first encoding this follows from . In the second, the allowed columns in each lie in the affine slice of final coordinate one. The directions of these slices are , whose direct sum has dimension at most . Lemma S2.5 and the degree assignments therefore give exponential factor
In the first encoding . In the second, every residue cell is nonempty on the balanced event; its nonzero columns show that all eigenspaces are nonzero. Hence , which also excludes . Equation (S2.1) makes (S2.5) exponentially small.
S2.4 Depth and the zero-diagonal cost
Suppose is not a code of distance . Choose the largest such that deleting fewer than columns leaves a span of codimension . Such a exists because is not a code. Fix one witness and let
The columns indexed by span : they contain every column left by the witness deletion, and all lie in . Thus . Since , at least one column remains. Its final coordinate is one, so .
Lemma S2.6. The restricted matrix , valued in H, is a code of distance . For every fixed target Y,
where K depends only on p, T, .
Proof. If fewer than additional deletions lowered the rank in , the total number of deletions would be less than and their codimension would be some . It would also be less than , contradicting maximality of . This proves the code assertion.
Let be the quotient map. The target equations on the columns in are
Their images under give an event involving only the edges between and . At least one coefficient , is nonzero. Conditioning all other summands, a Bernoulli sum with such a coefficient hits a prescribed target with probability at most . Different use disjoint sets of edges, so these quotient conditions satisfy .
Let be the information obtained by exposing all edges meeting . Conditional on , the matrix is still a zero-diagonal symmetric Bernoulli matrix. On , the residual target lies in . Choose a basis of and apply Lemma S2.5; the code distance is at least . Its bound is uniform over the exposed values and the resulting target. Therefore
The quotient equations exactly pay for the zero-diagonal cost.
We next count these depth strata while preserving the degree grading. Fix , and put , of dimension . The allowed columns outside in a residue cell are
according to the encoding. Each nonempty set is affine. Its direction is contained in , and the direction spaces for different form a direct sum. Their dimensions satisfy . Thus there are at most
choices of : the last term allows arbitrary columns on . The choices of cost , and the remaining choices have bounded multiplicity. After Lemma S2.6 and the assignments , the exponent to base , apart from and a fixed constant, is at most
For , use , , and . Equations (S2.6) and (S2.4) bound the total, up to a constant depending on , by
S2.5 The one-dimensional residual image
It remains to treat . All columns , are equal to the unique vector of final coordinate one. Since and each residue cell has size greater than , every cell meets . In the encoding , write . The vector then belongs to two distinct eigenspaces of , so . Thus is supported on . In the encoding where , the same argument would force , contradicting its last coordinate. That case is impossible.
For fixed of size and a fixed -space , invariance under forces every row of to annihilate . These are independent rank- Bernoulli systems. Therefore
There are at most possible inside . For each fixed dimension , the total sparse contribution is therefore bounded by
Discarding the favourable term and applying the same entropy bound, its logarithm, apart from , is at most
by (S2.4). The sum over is exponentially small. This estimate counts all small-support subspaces directly and incurs no factor for degree assignments.
Proof of Theorem S2.1. Fix as above, in that order. Degree balance fails with probability . On balance, (S2.3) excludes , while the code, depth, and sparse estimates exclude , with exponentially small total probability. Because are symmetric, the orthogonal complement of every common invariant subspace is again invariant. Thus every nonzero proper invariant subspace would yield one of dimension at most . Enlarging covers the finitely many small values of and proves the first assertion. The principal module contains and is invariant, so it must be the entire space.
S3 Uniform control of growing primes
The fixed-prime argument leaves an interval whose upper endpoint grows with . We treat it by combining uniform bounds on degree-residue classes with a dimension split. A small invariant subspace is supported on few residue classes, which forces a sparse vector in a rectangular kernel. For larger subspaces, the probability of invariance dominates the number of candidates. Both estimates use absolute constants.
Theorem S3.1 (Simultaneous irreducibility in a growing interval). There is an absolute integer such that, for , with probability the pair has no nonzero proper common invariant subspace over , simultaneously for every prime . Consequently
on that same event.
As in the fixed-prime theorem, irreducibility here is over the base field .
S3.1 Uniform sizes of degree-residue classes
We give the required estimate for integer moduli, although only prime moduli will be used. All logarithms with a subscript 2 are binary.
Lemma S3.2. Let be a finitely supported nonnegative unimodal sequence of sum 1, with maximum . For every integer and every residue ,
Proof. After translating the support, assume it lies in . Set and . The discrepancy in any initial interval has absolute value at most 1, so . Summation by parts, with , gives
□
Lemma S3.3. For and , put
Then
Proof. Fix and a set of vertices. The stated constants imply . Condition on all edges internal to . For , its external degree is an independent random variable; different vertices of use disjoint unordered edges.
The maximum atom of this binomial distribution is at most . Lemma S3.2, applied separately after each fixed internal-degree shift, gives
Thus the probability that every vertex of has a specified common residue is at most . Union-bounding over the residue and the set yields
Sum over all integer moduli , and use . The bound was obtained for deterministic sets ; averaging over before the union bound preserves its unconditional form.
S3.2 Counting subspaces and excluding sparse vectors
Lemma S3.4. Let a diagonal matrix over have coordinate eigenspaces of sizes at most . For , the number of its -dimensional invariant subspaces is at most
Proof. Write the coordinate eigenspaces as , with . Every invariant subspace decomposes as , where . For fixed dimensions summing to , the Gaussian-binomial bound gives
Here , and at most of the 's are nonzero. There are at most possible dimension vectors: each such vector is realized by at least one ordered allocation of units to the classes.
Lemma S3.5. Let be odd, and let have dimension . For the zero-diagonal Bernoulli adjacency matrix ,
Proof. Put . Lemma S2.3 gives
This estimate is valid for every odd , with no constants depending on . Since ,
Lemma S3.6. For any prime and any integer , the probability that there exist , and such that
is at most
Proof. For fixed , every row outside contains independent Bernoulli edge variables. A nonzero coordinate of implies that its scalar product with such a row is zero with probability at most . Different outside rows use disjoint edges. The event therefore has probability at most . Union-bounding gives
Write , and let be binary entropy. Then , so
Summing over j proves the assertion.
S3.3 Proof of the simultaneous theorem
Proof of Theorem S3.1. For , write
Choose sufficiently large, and then sufficiently large, that the following inequalities hold uniformly throughout this interval:
To justify this order of choices explicitly, use
The supremum of for tends to zero as tends to infinity. Also . These facts establish the first inequality uniformly after the specified choices. It implies the second since ; the third holds for all sufficiently large .
Let for every . By Lemma S3.3,
Fix a prime in the interval. Since both and are symmetric and the ambient dot product is nondegenerate, the orthogonal complement of a common invariant subspace is again common invariant. This remains true when the subspace itself has a radical. It therefore suffices to exclude dimensions .
First consider , on the event . Any -invariant is graded by the degree-residue classes. At most of those components are nonzero, so is supported on a set of size at most
If , any nonzero vector satisfies . Lemma S3.6 bounds the probability of any such obstruction by . The sparse-vector estimate already takes the union over all supports and vectors, so it bounds this case without enumerating degree assignments.
Now consider . Enumerate the at most possible degree-residue assignments, retaining only those with class sizes less than . For each assignment, Lemma S3.4 gives at most graded -subspaces. For a fixed such , the joint event that the assignment is the actual degree assignment and is contained in the event . Thus the unconditional estimate in Lemma S3.5 bounds each term, even though the degree assignment depends on the adjacency matrix.
The binary logarithm of the resulting union bound is at most
using (S3.1) and . Summing over t costs at most a factor n.
Finally sum over at most n primes. The total failure probability is bounded by
which is . On the complementary event the only common invariant subspaces are 0 and . The cyclic module generated by the nonzero vector is common invariant and nonzero, hence equals .
Remark S3.7. The cutoff is absolute. The fixed-prime estimates therefore handle only finitely many remaining primes, while Theorem B.1 already handles all p > n.
S4 Moment fibres and arithmetic intertwiners
We now turn from random generation to the arithmetic information contained in a principal moment function. The principal moment fibre of consists of all graphs with . On the AD-full locus, Theorem A.8 identifies this relation with pointed rational orthogonal equivalence. The word lattice then controls the denominators of the intertwiner.
Lemma S4.1 (The unique full pointed isometry). Suppose is AD-full and . Then is AD-full, and there is a unique linear isometry
such that
In vertex coordinates, is a rational orthogonal matrix, and .
Proof. Theorem A.8 supplies the unique rational orthogonal intertwiner. For every word,
These vectors generate the two integer lattices, proving the last assertion.
The following is the AD version of the standard walk-matrix denominator argument. Bounds using the largest Smith factors on both sides appear, for example, in [RSA25].
Theorem S4.2 (Index and denominator constraints). Under the hypotheses of Lemma S4.1,
If is the least positive integer such that is integral, then
Consequently, if , then is integral over and over .
Proof. An orthogonal map preserves covolume, so gives equality of their indices in the respective standard vertex lattices. By the definition of exponent, . Hence
Thus . Applying the same argument to gives , since transposition does not change the level. The last assertion follows because every prime dividing divides .
Remark S4.3. The index is constant on a full principal moment fibre. The isometry identifies with , but need not identify their standard integer ambient lattices. Thus the argument gives equality of , without identifying the abstract defect groups .
Corollary S4.4 (One-sided saturation determines the graph). If and , then . No saturation assumption on and no connectedness assumption is required.
Proof. Lemma S4.1 supplies , and . Thus is an integral orthogonal matrix, hence a signed permutation matrix. Since , all its signs are positive.
Corollary S4.5 (Random principal-moment rigidity). With probability tending to one, a graph has the following property: every finite simple graph whose principal AD moments agree with those of through word length is isomorphic to . On the same event, every real orthogonal pointed AD intertwiner from to a simple graph is a permutation matrix.
Proof. On the event of Theorem 1.1, is integrally AD-saturated and hence AD-full. Theorem A.8 and Corollary S4.4 give the first assertion. The empty-word moment ensures that also has vertices. For any real pointed AD intertwiner , transport of integer word combinations gives . Orthogonality and then make a permutation matrix.
The conclusion holds simultaneously for all comparison graphs. Remark C.1 gives a direct proof from the integer cut matrices used in the large-prime argument. The full saturation theorem establishes the stronger integer-generation property.
Corollary S4.6 (Localized switching exclusion). Suppose is AD-full and . There is no rational orthogonal matrix of level divisible by that fixes and transforms into the adjacency and degree matrices of a graph. In particular, saturation at 2 excludes every such switching matrix of even level.
Proof. The transformed graph belongs to the same principal moment fibre, so Theorem S4.2 applies.
For a Godsil–McKay reflection [GM82] on a switching set of even size , the nontrivial block is , whose level is . Consequently, when this switching also intertwines the degree diagonals, the preceding corollary excludes all sets with on a graph saturated at 2. Degree preservation is essential here: the principal AD moments retain the degree operator as well as the adjacency operator.
S5 Vertex lattices in a principal moment fibre
Fix an AD-full graph and abbreviate
The space carries its usual positive definite inner product. All lattices below have full rank in this fixed rational space. For an integral lattice , write
The finite discriminant group of is
It has order and a nondegenerate symmetric bilinear pairing into . We use the bilinear pairing, not the discriminant quadratic form of an even lattice; the vertex lattice need not be even.
Integral unimodular overlattices are described by isotropic subgroups of the discriminant group. A walk-lattice application to graph reconstruction appears in [Xia26, Section 5]. For the two-operator problem, we must also identify the vertex frame and require that become adjacency and degree matrices in that frame. These conditions give an exact description of the fibre.
Lemma S5.1 (Invariant overlattices and the discriminant module). The operators preserve and induce endomorphisms of . Integral unimodular lattices satisfying
correspond bijectively to subgroups satisfying
by . Moreover, is stable under if and only if is stable under their induced endomorphisms.
Proof. For and , ; the same argument applies to . This proves preservation of the dual. The inverse image of a subgroup under is an intermediate lattice, and all intermediate lattices arise uniquely in this way. Its inner products are integral exactly when . Since , one has
An integral lattice is unimodular exactly when its covolume is 1. This gives the stated cardinality condition. Stability is equivalent on the quotient because both operators already preserve .
Lemma S5.2 (The unit frame is unique). Let be a positive definite integral lattice of rank . If its vectors of squared norm 1 span its ambient real space, then there is an orthonormal basis such that
The basis is unique up to signs and ordering. If a vector has inner product of absolute value 1 with each unit vector, exactly one choice of sign on each line satisfies , and then .
Proof. The inner product of two unit vectors is an integer of absolute value at most 1. Equality in Cauchy–Schwarz occurs only when the vectors are equal up to sign. Thus distinct unit directions are orthogonal. The spanning assumption gives exactly such directions. Let . Integrality gives , whereas the reverse inclusion is immediate. The remaining assertions follow by expressing in this orthonormal basis.
Definition S5.3 (Graph-admissible overlattices). An -stable integral unimodular overlattice is graph-admissible if the following conditions hold.
-
Its unit vectors span .
-
Every unit vector satisfies .
-
On the seed-oriented unit frame
every vector is an eigenvector of , and
The graph associated with has vertex set , with adjacent when .
The eigenvector condition on cannot in general be omitted merely because is stable under . It requires the degree operator to be diagonal in the prospective vertex frame. Its diagonal entries then have the correct degree values automatically: the fixed identity , together with , gives the row sums.
Theorem S5.4 (Exact classification of a full principal moment fibre). The isomorphism classes in the principal moment fibre of are in bijection with its graph-admissible overlattices . Equivalently, they are the graph-admissible members of the finite set of -stable isotropic subgroups of of order . In particular, each such overlattice contributes at most one graph isomorphism class.
Proof. Let satisfy . Apply Lemma S4.1 with the isometry directed from to , and denote that map by . Set
It is integral and unimodular, contains , and is stable under . Every pairs integrally with , so . The images under of the standard unit vectors form an orthonormal basis of , each with inner product 1 with . In that basis, are exactly . Thus is graph-admissible.
If is relabelled, composition with the corresponding permutation gives a pointed intertwiner into . Uniqueness in Lemma S4.1 shows that the resulting lattice is unchanged. Hence the construction depends only on the isomorphism class of .
Conversely, let be graph-admissible. By Lemma S5.2, its seed-oriented unit frame has exactly elements and sums to . Choose an ordering of this frame and let have its elements as columns. Then is rational orthogonal and . By admissibility, is the adjacency matrix of a simple graph and is diagonal. Because ,
so the latter diagonal is precisely the degree diagonal of . Every principal moment of therefore equals that of . Different orderings of the frame give isomorphic graphs.
The constructions are inverse. Starting with recovers its vertex frame under and hence its graph up to isomorphism. Starting with gives . The uniqueness of the unit frame is the reason no further multiplicity of graph classes must be counted within one lattice. Lemma S5.1 gives the subgroup formulation.
Corollary S5.5 (A finite index bound for moment mates). Let be the set of graph isomorphism classes in the principal moment fibre of an AD-full graph . If , then
For I = 1 the fibre has one member.
Proof. The group has order . Every subgroup of order can be generated by at most elements: successively adjoining an element outside the subgroup already generated at least doubles its order. Pad a shorter generating tuple with zeros. The number of such subgroups is therefore at most the number of ordered -tuples in . The graph-admissibility, isotropy, and stability conditions only decrease the number. Apply Theorem S5.4. When , the standard vertex lattice is the sole intermediate unimodular lattice.
Remark S5.6 (Effective scope). The classification is finite and decidable: enumerate the candidate subgroups and test the corresponding positive definite lattices for their unit frames and graph admissibility. The bound counts graph isomorphism classes; it supplies no running-time bound of the form for those tests.
S6 Small defect and the index-two classification
The fibre description also applies when . We first record the elementary restrictions at prime and squarefree index, then classify the graph realizations completely at index two.
Corollary S6.1 (Unique invariant gluing). If has only one , -stable isotropic subgroup of order , then is determined by its principal moments. More generally, it suffices that only one such subgroup be graph-admissible.
Proof. The standard vertex lattice is always one graph-admissible member. Theorem S5.4 gives the conclusion.
Proposition S6.2 (Prime-index fibres). Suppose is prime.
-
If is cyclic, then is determined by its principal moments.
-
If is odd, then .
-
If , then . If the induced nondegenerate bilinear form on is nonalternating, then is determined by its principal moments.
Proof. The discriminant group has order . If it is cyclic, it has a unique subgroup of order , proving the first assertion. Otherwise it is elementary abelian of rank two. Identifying the value group with by turns the discriminant pairing into a nondegenerate symmetric bilinear form over . There is at least one isotropic line, namely .
For odd , choose a nonzero vector on that line and a vector with . Replacing by makes isotropic. In the resulting basis, the self-pairing of is . The only isotropic lines are therefore the two coordinate lines. There are at most two integral unimodular overlattices, and hence at most two graph classes.
Over , there are only three lines in a two-dimensional space, giving the stated bound. If the form is nonalternating, the function is a nonzero linear functional. Its kernel is the unique isotropic line. The first assertion's uniqueness argument applies again.
Corollary S6.3 (Squarefree index). Suppose is squarefree and has odd prime factors. Then
Proof. The primary components of the discriminant group are mutually orthogonal: a pairing between elements of coprime orders is zero. For each , the -primary component has order , and a unimodular overlattice selects an isotropic subgroup of order there. Apply the local counts in Proposition S6.2 and multiply. Operator stability and graph admissibility can only reduce the count.
Theorem S6.4 (A binary obstruction that certifies rigidity). Suppose , and let represent the unique nonzero vector orthogonal modulo 2 to all word vectors. Then has even Hamming weight. If
the graph is determined by its principal moments, although it is not integrally -saturated.
Proof. An index-two subgroup is the kernel of its unique nonzero character to , so
Since belongs to , the weight of v is even. Choose a coordinate j in the support of v. One has
Indeed, the right side pairs integrally with , contains with index two, and hence has the same covolume as . The discriminant group is generated by and . Both have order two, and they are independent since is not an integer vector. In this basis, using the identification from the preceding proof, the bilinear form has matrix
For weight congruent to 2 modulo 4, this form is nonalternating. It has a unique isotropic line, so Proposition S6.2 proves the result.
Theorem S6.5 (Complete classification at index two). Suppose , let v be its unique nonzero binary obstruction, and put . The principal moment fibre has at most two graph isomorphism classes. It has exactly two if and only if all of the following hold:
-
-
the induced graph is regular;
-
every vertex outside S has zero, two, or four neighbours in S;
-
the four vertices in S have the same total degree in G.
In that case the unique other member is the Godsil-McKay switch on : replace the two neighbours in of each outside vertex having two neighbours by the other two vertices. If any condition fails, is determined by its principal moments.
Proof. Write , which is positive and even, and retain the notation , from the preceding proof. If , that proof already gives a unique integral unimodular overlattice. If , the discriminant form is alternating, and its three isotropic lines give
In the last two lattices, every noninteger vector has half-integer coordinates at all positions of , and integer coordinates outside . Its squared norm is at least . When , neither lattice has a noninteger unit vector; its integer unit vectors are only for . They do not span the space, so both lattices fail graph admissibility.
It remains to consider . A noninteger unit vector has coordinates on and zero elsewhere. In it has an even number of minus signs, and therefore its inner product with is 2, 0, or -2. Thus fails the seed-orientation condition. In the number of minus signs is odd. Its four seed-positive unit vectors on have exactly one minus sign each. Together with for , they are the columns of the symmetric orthogonal matrix
after putting the vertices of S first. Consequently this is the only possible other graph realization.
For completeness, graph admissibility here has the asserted combinatorial form. Put and let be its row sums. The th diagonal entry of equals . All these entries vanish exactly when is regular; in that case the conjugation leaves unchanged. An outside adjacency column with coordinate sum transforms into . This is a zero-one column exactly when . Finally, if are the four total degrees, the off-diagonal entries of the conjugated degree block are
They vanish for all exactly when all four degrees are equal. In that case the degree block is unchanged. These checks are necessary and sufficient for the sole candidate lattice to be graph-admissible, and the outside-column formula is precisely the stated switch.
When the conditions hold, the resulting graph cannot be isomorphic to . Otherwise a permutation matrix and the nonintegral matrix would both be pointed AD intertwiners from to that graph, contradicting uniqueness in Lemma S4.1. The exact fibre theorem now proves all assertions.
Remark S6.6. Under the index-two hypothesis, the outside-neighbour condition in the theorem follows automatically from . Indeed the one-dimensional binary obstruction is A-invariant, so Av is a multiple of v; every outside neighbour count is therefore even. We retained the condition to make the connection with the usual switching construction explicit. The stronger bound of two in this theorem concerns global index two. It is not a replacement for the factor three in the squarefree-index bound with additional odd prime factors.
Example S6.7 (An explicit nonsaturated rigid graph). Let have vertex set and edge set
Here denotes the unordered pair . This graph is connected. Let be the indicator of . Direct reduction modulo 2 gives
Thus every AD word vector lies in the parity kernel of v.
Appendix S9.1 gives three square word matrices whose determinants have gcd 2. Their nonzero determinants prove AD-fullness, and their gcd bounds the lattice index by 2. The parity-kernel inclusion forces that index to be even, so . Since , Theorem S6.4 shows that G is determined by all its principal AD moments.
Example S6.8 (The index-two bound is attained). Let have vertex set , let , and take the edge set
The set is independent, its four vertices have total degree three, and every outside vertex has two neighbours in . Let be the indicator of . Then , , and modulo two, so .
The two word matrices in Appendix S9.2 have determinants with gcd 2. Together with the parity obstruction, they certify . Theorem S6.5 now shows that the fibre has exactly two members. Its other graph keeps the eleven edges among and replaces the neighbours in of each of these six vertices by the complementary pair. In particular, rational AD-fullness alone does not imply principal-moment rigidity, and the index-two upper bound is sharp.
Remark S6.9 (Two kinds of rigidity). Example S6.7 separates integral saturation from principal-moment rigidity, while Example S6.8 shows that rational AD-fullness alone does not force rigidity. Together they locate the graph-realization question between rational generation and full integer generation. Theorem 1.1 shows that a random graph satisfies the strongest of these conditions.
S7 Further directions
The ordinary walk lattice provides a useful comparison with the invariant studied here. By Cayley–Hamilton,
If has full rank, inclusion induces a surjection . Consequently,
Closing under can therefore remove obstructions retained by the ordinary walk lattice. The binary theorem makes this distinction particularly visible: adjacency powers have a modulo-two rank defect for every , whereas the AD word lattice has none with exponentially high probability. The all-prime theorem removes the remaining defect as well.
The proofs suggest the following arithmetic and reconstruction questions.
Other densities and quantitative bounds. Determine the range of for which with high probability in . The present proof treats . For other densities one must control both the degree classes and integer surjectivity of the relevant cuts; in sparse graphs, repeated local configurations create additional obstructions. Even at density , the exponent reflects the chosen degree thresholds. Determining the principal causes of failure would be more informative than optimizing those thresholds alone.
Smaller certificates. Proposition A.7 bounds the necessary word length by , but the set of all such words is exponential. The integer construction uses at most two occurrences of , at the cost of a common denominator . Can one prescribe, independently of the sampled graph, a polynomial-size family of words whose evaluations generate with high probability? Can integral generation be achieved with a bounded number of occurrences of ? Uniform real spanning families such as those in [Lu26] provide a useful comparison; integer generation additionally requires the gcd of the maximal minors to be one.
The least caterpillar diameter. Let be the least fixed integer for which the counts from all caterpillars of diameter at most determine among finite simple graphs with probability tending to one. Section C proves
Is ? A sufficient strengthening of our construction would be
where is the number of distinct degrees. Such a basis, together with the existing rigidity event, would require moments containing at most three occurrences of , and hence test diameter at most five. This spanning condition is equivalent to full row rank for the neighbour-degree count matrix
in every degree class , where are all degree classes. The dependence between these classes and the edge entries is not resolved by the cut estimates proved here.
Realization beyond index two. Theorem S5.4 reduces the principal-moment fibre of an AD-full graph to a finite realization problem. The index-two classification solves its first nontrivial case. For larger defects, one can ask which operator-stable isotropic subgroups admit the required oriented unit basis, and which graph structures exclude all but the original vertex lattice. Natural infinite families with nonzero and a unique admissible realization would extend the rigidity example of Section S6. A useful next step is a classification at a fixed small odd prime index, where the unit-vector constraints remain accessible.
For graphs that are not AD-full, the relative torsion group records only the arithmetic within the visible module. Additional boundary seeds may enlarge that module, but a graph reconstruction theorem must specify how those seeds are chosen and how the resulting local realizations agree. This is a separate extension of the one-seed theory developed here.
S8 Exact computation of the word lattice
We prove Theorem A.6, retaining the notation of Section A.2. The argument separates rational stabilization, index descent, and the size of an exact lattice computation.
Proof of Theorem A.6. The recurrence implies that an equality is permanent. Since has dimension one, . Choose independent word vectors in nondecreasing order of length, obtaining an by matrix . The th chosen word has length : otherwise the filtration would have stabilized before acquiring its required dimension. The lattice is contained in . The index of in its saturation is the gcd of the nonzero by minors of , so it bounds from above.
Each entry of a length- word vector has absolute value at most . Hadamard's inequality applied to any nonzero r by r minor gives
For , all have the same rational span. Every strict enlargement divides their finite saturation index by an integer at least two. There can be at most such enlargements. An equality makes the lattice stable under , and hence final. This proves the stopping bound, including the case .
To compute the lattice, start with the column e and replace a column Hermite basis by a column Hermite basis of
until it no longer changes. This matrix has at most 3n columns. One additional round after the generation bound certifies stability.
For completeness, the following size bound is independent of the number of words. Suppose the word entries at round are bounded by and the current rank is . Choose independent word columns and pivot rows on which is nonsingular. Put , so . Projection onto these rows is injective on the current rational span. The full-rank projected lattice contains , so its index in is at most . Its Hermite basis entries have that same bound. The inverse projection is ; Cramer's rule bounds its entries in absolute value by . Lifting the projected Hermite basis gives an integral lattice basis with entries at most . Using the pivot rows of the usual Hermite procedure gives the same bound for a maintained Hermite basis. For , take . Since in (A.1) is polynomial in , all these bit lengths are polynomial in . Polynomial-time Hermite and Smith algorithms [KB79] therefore complete the computation in polynomially many rounds.
Rational rank can remain constant while the integer lattice strictly increases. The index descent is what makes the integral stopping bound valid; it is separate from the shorter certificate for equality with in Proposition A.7.
S9 Integer certificates for the index-two examples
The following determinants make both examples independently checkable. In each list, a word is evaluated on the all-ones vector , with the rightmost letter acting first. Rows follow increasing vertex labels, and columns follow the displayed order.
S9.1 The nonsaturated rigid graph
For the graph in Example S6.7, take the ten common columns
Appending respectively , , and gives the three 11 by 11 matrices with determinants
Their greatest common divisor is 2. Thus has full rank and its index divides 2. The binary obstruction displayed in the example proves the reverse divisibility.
S9.2 The graph attaining the index-two bound
For the graph in Example S6.8, use the two ordered word lists
The corresponding 10 by 10 matrices have determinants
Again . The word matrices and the binary obstruction therefore certify , as required for the complete classification.
References
[AZGL 18] Zeyuan Allen-Zhu, Ankit Garg, Yuanzhi Li, Rafael Oliveira, and Avi Wigderson. Operator scaling via geodesically convex optimization, invariant theory and polynomial identity testing. In Proceedings of the 50th Annual ACM SIGACT Symposium on Theory of Computing, pages 172–181. ACM, 2018.
[BES80] László Babai, Paul Erdős, and Stanley M. Selkow. Random graph isomorphism. SIAM Journal on Computing, 9(3):628–635, 1980.
[Čer25] Marek Černý. Caterpillar GNN: Replacing message passing with efficient aggregation, 2025. arXiv:2506.06784, version 2, 26 September 2025.
[DGR18] Holger Dell, Martin Grohe, and Gaurav Rattan. Lovász meets weisfeiler and leman. In 45th International Colloquium on Automata, Languages, and Programming, volume 107 of Leibniz International Proceedings in Informatics, pages 40:1–40:14. Schloss Dagstuhl-Leibniz-Zentrum für Informatik, 2018.
[EGV00] Wayne Eberly, Mark Giesbrecht, and Gilles Villard. On computing the determinant and Smith form of an integer matrix. In Proceedings 41st Annual Symposium on Foundations of Computer Science, pages 675–685. IEEE, 2000.
[FXZW26] Yi-Zheng Fan, Ruo-Jie Xing, Yi-Liu Zhang, and Wei Wang. Degree-similar graphs and cospectral graphs. Electronic Journal of Combinatorics, 33(2):P2.62, 2026.
[GGOW16] Ankit Garg, Leonid Gurvits, Rafael Oliveira, and Avi Wigderson. A deterministic polynomial time algorithm for non-commutative rational identity testing. In 2016 IEEE 57th Annual Symposium on Foundations of Computer Science (FOCS), pages 109–117. IEEE, 2016.
[GM82] C. D. Godsil and B. D. McKay. Constructing cospectral graphs. Aequationes Mathematicae, 25:257–268, 1982.
[GS25] Chris Godsil and Wanting Sun. Degree-similar graphs. Electronic Journal of Combinatorics, 32(4):P4.12, 2025.
[KB79] Ravindran Kannan and Achim Bachem. Polynomial algorithms for computing the Smith and Hermite normal forms of an integer matrix. SIAM Journal on Computing, 8(4):499–507, 1979.
[LL26] Zhipeng Lu and Pengxiang Li. Adjacency-degree algebras and spectral determination of graphs, 2026. arXiv:2607.21494.
[LS21] Shuchao Li and Wanting Sun. An arithmetic criterion for graphs being determined by their generalized -spectra. Discrete Mathematics, 344(8):112469, 2021.
[Lu26] Zhipeng Lu. Uniform adjacency-degree probes from differential rigidity, 2026. arXiv:2610.18901.
[LWG 25] Pengxiang Li, Wei Wu, Zhi Gao, Xiaomeng Fan, Peilin Yu, Yuwei Wu, Zhipeng Lu, Yunde Jia, and Mehrtash Harandi. A Set-to-Set Distance Measure in Hyperbolic Space, 2025. arXiv:2506.18529, version 1.
[OT16] Sean O'Rourke and Behrouz Touri. On a conjecture of Godsil concerning controllable random graphs. SIAM Journal on Control and Optimization, 54(6):3347–3378, 2016.
[PV11] Oleg Pikhurko and Oleg Verbitsky. Logical complexity of graphs: A survey. In Martin Grohe and Johann A. Makowsky, editors, Model Theoretic Methods in Finite Combinatorics, volume 558 of Contemporary Mathematics, pages 129–179. American Mathematical Society, 2011.
[RASA26] Muhammad Raza, Obaid Ullah Ahmad, Mudassir Shabbir, and Waseem Abbas. On the number of generalized cospectral mates of graphs, 2026. arXiv:2601.07373, version 3, 22 March 2026.
[RSA25] Muhammad Raza, Mudassir Shabbir, and Waseem Abbas. Walk matrix-based upper bounds on generalized cospectral mates, 2025. arXiv:2507.06927.
[VW25] Alexander Van Werde. Cokernel statistics for walk matrices of directed and weighted random graphs. Combinatorics, Probability and Computing, 34(1):131–150, 2025.
[Wan17] Wei Wang. A simple arithmetic criterion for graphs being determined by their generalized spectra. Journal of Combinatorial Theory, Series B, 122:438–451, 2017.
[WLLX11] Wei Wang, Feng Li, Hongliang Lu, and Zongben Xu. Graphs determined by their generalized characteristic polynomials. Linear Algebra and its Applications, 434(5):1378–1387, 2011.
[Woo17] Melanie Matchett Wood. The distribution of sandpile groups of random graphs. Journal of the American Mathematical Society, 30(4):915–958, 2017.
[WWZ23] Wei Wang, Wei Wang, and Fuhai Zhu. An improved condition for a graph to be determined by its generalized spectrum. European Journal of Combinatorics, 108:103638, 2023.
[WZ26] Wei Wang and Da Zhao. Graph isomorphism and multivariate graph spectrum. Advances in Applied Mathematics, 173:102994, 2026.
[Xia26] Ziqing Xiang. Almost all graphs are determined by their generalized spectrum, 2026. arXiv:2610.11047, version 1, 8 October 2026.
[ZF26] Yi-Liu Zhang and Yi-Zheng Fan. Degree-similar unicyclic graphs are isomorphic, 2026. arXiv:2607.16737.
AI methodology. ChatGPT and OpenAI Codex assisted with the literature review, the organization and drafting of the exposition, and checks of mathematical arguments and supporting verification code. The author takes full responsibility for the statements, proofs, and references. The finite computational checks support the exposition; they are not formal verification of the probabilistic arguments.