REVIEW 7 minor 52 references
Finding all cospectral mates over a number field
T0 review · 0 major / 7 minor · reviewed 2026-08-15 · deepseek-v4-flash
Pith's one-line read This paper proves that, for an integer symmetric matrix with distinct eigenvalues, all cospectral mates over any totally real number field can be listed by an explicit finite algorithm.
desk verdict A genuinely new number-field parameterization of cospectrality with a complete algorithm and released code; the main theorem checks out and the paper deserves refereeing. read the letter →
The pith
A machine-rendered reading of the paper's core claim, the machinery that carries it, and where it could break.
The reading
What carries the argument
The load-bearing objects are the discriminant ideal $\Delta_X\mathcal{O}_K$, the level ideal $L = \{r \in \mathcal{O}_K : rQ \in \mathcal{O}_K^{n\times n}\}$ of a candidate $Q$, and Krylov spaces $\mathcal{K}_X(w) = \mathrm{span}\{X^i w\}$. The paper proves that every prime ideal $P$ dividing $L$ must have $P^2 \mid \Delta_X\mathcal{O}_K$; and if $P^e \mid L$ then some reduction of $LQ$ is a Krylov space that is $\Gamma$-contractive up to level $P^e$ and isotropic up to level $P^{2e}$, where $\Gamma$ is the approximate square root of $\phi_X$ mod $P$ coming from the square-free factorization. These constraints become linear equations when lifting a candidate vector modulo $P^e$ to $P^{e+1}$. Finiteness of the exponent $e$ comes from a Hilbert Nullstellensatz argument: for $\Delta_X \neq 0$, the only common zero of the quadratic forms $w^\top X^k w$ for $k \le n-1$ is $w = 0$, giving a uniform $P$-adic bound. The algorithm then enumerates the finite set of possible columns subject to the norm equation $V^\top V = \ell^2$ and orthogonality.
What would settle it
Take the $5\times5$ matrix in Example 1.3 and independently verify, by a second implementation, that the only rational orthogonal matrices with denominator at most 31 that conjugate it to an integral symmetric matrix are exactly those returned by Algorithm 1 up to signed column permutation; a single missed $Q$ would disprove Theorem 2.19.
Extended reading notes
Core claim
The paper's central claim is that cospectrality over a number field is a finite, searchable phenomenon. For a symmetric integer matrix $X$ with $\Delta_X = \det(\phi_X'(X)) \neq 0$ and a totally real number field $K$, the set of orthogonal matrices $Q \in K^{n\times n}$ with $Q^\top Q = I$ and $Q^\top X Q \in \mathcal{O}_K^{n\times n}$ is finite up to signed permutation, and can be found by Algorithm 1, which terminates in finite time and is complete. This includes, but is not limited to, the classical question of cospectral mates over $\mathbb{Q}$: any orthogonal matrix conjugating $X$ to a symmetric integer matrix can be taken to have entries in some number field, and the algorithm decides which fields admit nontrivial examples. The theoretical sufficient condition says that if the discriminant ideal is square-free and no prime divisor of $\Delta_X$ ramifies in $K$, then no such nontrivial $Q$ exists.
Load-bearing premise
The argument assumes the matrix has no repeated eigenvalue, so the characteristic polynomial has nonzero discriminant; without this, eigenspace rotations can make the list of conjugating matrices infinite.
Editorial extensions
If this is right
- If $\Delta_X \neq 0$ and every prime divisor of $\Delta_X$ is unramified in $K$ with exponent one, then the only orthogonal $Q \in K^{n\times n}$ with $Q^\top X Q \in \mathcal{O}_K^{n\times n}$ are signed permutations; $X$ is determined by its spectrum over $K$.
- In all other cases, any such $Q$ has a level ideal whose prime divisors all lie above primes dividing $\Delta_X$, and Theorem 2.8 gives an explicit finite bound on the exponent of each such prime, turning the search into a finite enumeration.
- Algorithm 1 terminates for every totally real $K$ and every symmetric integer $X$ with $\Delta_X \neq 0$, so the cospectral-mate problem over a small number field is decidable rather than heuristic.
- For $K = \mathbb{Q}$, the algorithm finds rational cospectral mates that are invisible to generalized cospectrality, as in Example 1.3, so it answers a strictly broader question.
Reading between the lines
- Beyond the paper, if the conjectured positive frequency of square-free discriminants holds, the sufficient condition would make spectral determination over a fixed small $K$ a property that holds and is certifiable for a positive proportion of random integer matrices.
- Beyond the paper, the repeated-eigenvalue case is left open; the paper's trace bound shows only finitely many cospectral mates exist, so one could quotient by eigenspace rotations and still enumerate the finite set of conjugacy classes.
- Beyond the paper, the reported dimension sensitivity for quadratic fields (e.g., integer cospectrality over $\mathbb{Q}(\sqrt{2})$ appearing mainly in even dimensions) suggests an arithmetic explanation via the norm equation $V^\top V = \ell^2$, which could be tested by deriving congruence conditions on $\ell$ from the field discriminant.
Signed reviews
Editorial analysis
A structured set of objections, weighed in public.
Referee Report
Summary. The paper introduces and studies a number-field-parameterized notion of cospectrality for symmetric integer matrices: X and Y are cospectral over K if Y = Q^T X Q for an orthogonal matrix Q with entries in K. The theoretical core is developed over Dedekind domains. Theorem 2.1 shows that any prime ideal divisor of the level ideal L of Q must have square dividing the discriminant ideal ΔX R, and Theorems 2.8 and 2.9 show that the image module Im_R(LQ) is a Γ-contractive and isotropic Krylov space, where Γ is an approximate square root of the characteristic polynomial modulo P. Over number fields these yield sufficient conditions for spectral determination (Corollaries 2.11 and 2.12) and finiteness of orthogonal matrices with a fixed level when K is totally real (Proposition 2.13). Section 5 presents Algorithm 1, which, under the assumptions ΔX ≠ 0 and K totally real, terminates in finite time and outputs all orthogonal matrices Q in K^{n×n} with Q^T X Q in O_K^{n×n} (Theorem 2.19). Section 6 reports numerical experiments over Q and quadratic fields, and the implementation is made publicly available.
Significance. This is a strong paper. Theorem 2.19, if correct, gives the first complete finite algorithm for finding all cospectral mates over a fixed number field in the simple-spectrum case, and the structural results Theorems 2.8 and 2.9 are new even for K = Q. The proofs are detailed and self-contained, with no fitted parameters; the termination argument via Hilbert's Nullstellensatz (Lemmas 5.7–5.10) is particularly clean and shows exactly where ΔX ≠ 0 enters. The paper also ships an implementation, reports exhaustive 3×3 validation and random-matrix statistics, and gives concrete falsifiable predictions about rational and quadratic-field cospectrality frequencies. The main limitation—repeated eigenvalues—is openly acknowledged in Remark 2.20 and is genuinely necessary for finite output.
minor comments (7)
- [§5.2.5] The deduction that a column residue ℓq mod P^{e_P} lies in 𝕎_P(e_P) is stated without proof. It is correct, but a reader has to fill in the scaling argument: choose ℓ' ∈ L with v_P(ℓ') ≥ e_P; then ℓ'q lies in Im(LQ), whose Krylov space is contractive and isotropic by Theorem 2.9, and scaling by ℓ/ℓ' transfers these properties down from level v_P(ℓ') to level e_P. Please add this clarification.
- [§5.2.2, Remark 5.1] The proposed linearization for p = 2 is incorrect in the stated generality. In characteristic 2 the identity v^T M v = Σ M_{ii} v_i^2 holds for any symmetric M, but the second congruence Σ D_i v_i^2 ≡ (Σ D_i v_i)^2 holds only when each D_i lies in the prime field F_2; the diagonal entries D_i^{(j)} = k_i^T X^j k_i need not lie in F_2 when F_P is a proper extension of F_2. Unless additional conditions are supplied, this remark should be corrected or removed.
- [§5.1–§5.2 and Algorithm 1] The notation for the search sets is inconsistent: Step 2b defines 𝒲_P(e), Step 2c defines 𝕎_P(e) ⊆ 𝒲_P(e), while Algorithm 1's lines 4–9 use 𝕎(e) for both, and line 9 incorporates the P^{2e} isotropy condition that Step 2c assigns to the subset 𝕎_P(e). Please harmonize the notation.
- [Algorithm 1, line 16] The pseudocode's line 16 refers to 𝕎_P(e_P) for exponent sequences with all e_P = 0, but 𝕎_P(0) is never defined; Step 3a handles this case separately via Lemma 4.1. The pseudocode should state this case explicitly.
- [References] References [39] and [40] are duplicate entries for the same arXiv preprint 'Exact cospectrality probabilities for uniform random matrices' (arXiv:2602.00233); one duplicate should be removed or the text should point to different items.
- [§2.3.2 and Table 1] There are several typos and infelicities: 'Algorithm 1 can be applied to to integer matrices' in §2.3.2, and the caption of Table 1 reads 'as well as average the blocksizes and levels'. These should be corrected.
- [Introduction, p. 3] The sentence that 'the only assumption that is strictly required for our theory is that X should not have repeated eigenvalues' is imprecise, because the algorithmic results also require K to be totally real and, in practice, the additional assumptions in §2.3.2. Please qualify this statement.
Circularity Check
No significant circularity: the central theorems are self-contained derivations from standard Dedekind-domain and linear-algebra arguments, with self-citations confined to motivation and heuristics.
full rationale
The central claim, Theorem 2.19, is not derived from any fitted parameter or from the author's prior work. Termination is proved directly: Lemma 5.7 uses the Vandermonde determinant of the distinct eigenvalues, justified by the hypothesis Δ_X ≠ 0; Lemma 5.8 applies Hilbert's Nullstellensatz to express monomials in the ideal generated by the quadratic forms w^T X^k w; and Lemmas 5.9–5.11 convert this into a uniform p-adic bound, making the level exponents E_P finite. Completeness is proved from Theorems 2.8 and 2.9, which are themselves derived from the ideal arithmetic of Dedekind domains and the structure of the module Im_R(LQ); neither theorem is imported from elsewhere. The self-citations [24], [37], and [39] are used only for probabilistic heuristics, for the origin of the question, and for numerical conjecture context, and none of these citations carries a load-bearing step in the proofs of Theorem 2.19 or of the constraints in Section 2.2. The implementation and exhaustive 3x3 tests are external checks rather than inputs. The assumption Δ_X ≠ 0 is explicitly stated in the theorem, and its necessity is acknowledged in Remark 2.20; it is a hypothesis of the result, not a disguised circularity.
Assumptions & free parameters
assumptions (11)
- standard math Fractional ideals in a Dedekind domain admit unique prime factorization and satisfy the lattice laws of Proposition 3.3.
- standard math Every nontrivial quotient of a Dedekind domain is a principal ideal ring.
- standard math Matrices over principal ideal rings admit Smith normal form.
- standard math Cayley-Hamilton theorem.
- standard math Hilbert's Nullstellensatz over Q and C.
- standard math Kronecker's theorem on algebraic integers whose embeddings all have modulus one.
- standard math The Minkowski embedding maps O_K into a lattice, so its intersection with a compact box is finite.
- standard math The ring of integers O_K of a number field is a Dedekind domain; primes ramify only finitely often and are the prime divisors of disc(O_K).
- domain assumption The discriminant Delta_X is nonzero, meaning X has no repeated eigenvalues.
- domain assumption The number field K is totally real.
- domain assumption Assumptions 2.16, 2.17, and 2.18: practical computation over O_K, a known bound M on critical primes, and low degree of the polynomial Gamma.
Cite this review
Pith. "Pith review of Finding all cospectral mates over a number field." pith.science (2026). https://pith.science/paper/S3QOGOWA
@misc{pith2026260812410,
author = {Pith},
title = {Pith review of: Finding all cospectral mates over a number field},
year = {2026},
howpublished = {\url{https://pith.science/paper/S3QOGOWA}},
note = {Machine review of arXiv:2608.12410}
}
read the original abstract
We investigate a notion of cospectrality for integer matrices that is parameterized by algebraic number fields. Given a number field and a symmetric integer matrix, we wonder when conjugating the integer matrix by an orthogonal matrix with entries in the given field can produce new integer matrices. Our results concern sufficient conditions for the associated notion of spectral determination, and we give constraints on the orthogonal matrices when the conditions are not applicable. The results use the discriminant of the characteristic polynomial and properties of Krylov subspaces. We leverage the theory to develop an algorithm to find all cospectral mates over a given (small) field. An implementation of the algorithm is made available.
Figures
Reference graph
Works this paper leans on
-
[40]
A. Van Werde. Exact cospectrality probabilities for uniform random matrices. arXiv preprint arXiv:2602.00233, 2026. doi: 10.48550/arXiv.2602.00233
- [1]
-
[2]
F. Belardo, S. M. Cioabă, J. H. Koolen, and J. Wang. Open problems in the spectral theory of signed graphs.arXiv preprint arXiv:1907.04349, 2019. doi: 10.48550/arXiv.1907.04349
-
[3]
M. Bhargava, B. Gross, and X. Wang. A positive proportion of locally soluble hyperelliptic curves overℚ have no point over any odd degree extension.Journal of the American Mathematical Society, 2017. doi: 10.1090/jams/863
-
[4]
A. Brouwer and E. Spence. Cospectral graphs on 12 vertices.The Electronic Journal of Combinatorics, 2009. doi: 10.37236/258
doi:10.37236/258 2009
-
[5]
A. E. Brouwer and W. H. Haemers.Spectra of graphs. Springer Science & Business Media, 2011. doi: 10.1007/978-1-4614-1939-6. 29
-
[6]
Brown.Matrices over Commutative Rings
W. Brown.Matrices over Commutative Rings. Monographs and Textbooks in Pure and Applied Mathematics. Marcel Dekker, 1992
work page 1992
-
[7]
J. Ding, J. Gower, and D. Schmidt.Multivariate public key cryptosystems. Springer,
Show all 52 references
-
[8]
Dummit and R
D. Dummit and R. Foote.Abstract Algebra. John Wiley & Sons, third edition, 2004
2004
-
[9]
C. Godsil. Controllable subsets in graphs.Annals of Combinatorics, 2012. doi: 10.1007/s00026-012-0156-3
2012 doi
-
[10]
Godsil and B
C. Godsil and B. McKay. Some computational results on the spectra of graphs. In Combinatorial Mathematics IV: Proceedings of the Fourth Australian Conference Held at the University of Adelaide, pages 73–92. Springer, 1976. doi: 10.1007/BF b0097370
1976 doi
-
[11]
Godsil and B
C. Godsil and B. McKay. Constructing cospectral graphs.Aequationes Mathe- maticae, 1982. doi: 10.1007/BF02189621
1982 doi
-
[12]
Godsil and G
C. Godsil and G. Royle.Algebraic graph theory. Springer Science & Business Media, 2013. doi: 10.1007/978-1-4613-0163-9
2013 doi
-
[13]
G. Greiter. A simple proof for a theorem of Kronecker.The American Mathemat- ical Monthly, 1978. doi: 10.1080/00029890.1978.11994694
1978
-
[14]
Günthard and H
H. Günthard and H. Primas. Zusammenhang von Graphentheorie und MO- theorie von Molekeln mit Systemen konjugierter Bindungen.Helvetica Chimica Acta, 1956. doi: 10.1002/hlca.19560390623
1956 doi
-
[15]
Guo and W
S. Guo and W. Wang. Primary decomposition theorem and generalized spectral characterization of graphs.Advances in Applied Mathematics, 2025. doi: 10.101 6/j.aam.2025.102927
2025
-
[16]
Haemers and E
W. Haemers and E. Spence. Enumeration of cospectral graphs.European Journal of Combinatorics, 2004. doi: 10.1016/S0195-6698(03)00100-8
2004 doi
-
[17]
W. H. Haemers. Are almost all graphs determined by their spectrum?Notices of the South African Mathematical Society, 2016
2016
-
[18]
Hartshorne.Algebraic geometry
R. Hartshorne.Algebraic geometry. Springer Science & Business Media, 1997. doi: 10.1007/978-1-4757-3849-0
1997 doi
-
[19]
Hoffmann and R
K. Hoffmann and R. Kunze.Linear algebra. Prentice-Hall New Jersey, second edition, 1971
1971
-
[20]
Y. Ji, W. Wang, and H. Zhang. Mixed graphs determined by their generalized Hermitian adjacency spectrum based on Eisenstein integers.The Electronic Journal of Combinatorics, 2025. doi: 10.37236/13156
2025 doi
-
[21]
Johnson and M
C. Johnson and M. Newman. A note on cospectral graphs.Journal of Combina- torial Theory, Series B, 1980. doi: 10.1016/0095-8956(80)90058-1
1980 doi
-
[22]
M. Kac. Can one hear the shape of a drum?The American Mathematical Monthly,
-
[23]
Lang.Algebra
S. Lang.Algebra. Springer Science & Business Media, revised third edition, 2012. doi: 10.1007/978-1-4613-0041-0
2012 doi
-
[24]
Lvov and A
N. Lvov and A. Van Werde. On the satisfaction frequency of spectral characteri- zation conditions.arXiv preprint arXiv:2603.26932, 2026. doi: 10.48550/arXiv.2 603.26932. 30
2026 doi
-
[25]
Marcus and E
D. Marcus and E. Sacco.Number fields. Springer, second edition, 1977. doi: 10.1007/978-3-319-90233-3
1977 doi
-
[26]
Mohar and S
B. Mohar and S. Poljak. Eigenvalues in combinatorial optimization. InCom- binatorial and graph-theoretical problems in linear algebra. Springer, 1993. doi: 10.1007/978-1-4613-8354-3_5
1993 doi
-
[27]
D. Musser. Algorithms for polynomial factorization. Technical report, University of Wisconsin-Madison Department of Computer Sciences, 1971. http://digital.li brary.wisc.edu/1793/57716
1971
-
[28]
Neukirch.Algebraic number theory
J. Neukirch.Algebraic number theory. Springer Science & Business Media, first edition, 1999. doi: 10.1007/978-3-662-03983-0
1999 doi
-
[29]
O’Rourke and B
S. O’Rourke and B. Touri. On a conjecture of Godsil concerning controllable random graphs.SIAM Journal on Control and Optimization, 2016. doi: 10.1137/ 15M1049622
2016
-
[30]
Bordeaux.PARI/GP version 2.15.4, 2023
The PARI Group, Univ. Bordeaux.PARI/GP version 2.15.4, 2023. http://pari .math.u-bordeaux.fr/
2023
-
[31]
L. Qiu, Y. Ji, L. Mao, and W. Wang. Generalized spectral characterizations of regular graphs based on graph-vectors.Linear Algebra and its Applications, 2023. doi: 10.1016/j.laa.2023.01.006
2023 doi
-
[32]
A. Schwenk. Almost all trees are cospectral.New directions in the theory of graphs, 1973
1973
-
[33]
Simoens and S
R. Simoens and S. Van Overberghe. An algorithm to find cospectral mates. Announced at the 2026 Discrete Mathematics Days: https://dam- network.github.io/dmd2026/submissions.html
2026
-
[34]
Tao and V
T. Tao and V. Vu. Random matrices have simple spectrum.Combinatorica, 2017. doi: 10.1007/s00493-016-3363-4
2017 doi
-
[35]
https://www.sagemath.org
The Sage Developers.SageMath, the Sage Mathematics Software System (Version 10.9), 2026. https://www.sagemath.org
2026
-
[36]
Van Dam and W
E. Van Dam and W. Haemers. Which graphs are determined by their spectrum? Linear Algebra and its Applications, 2003. doi: 10.1016/S0024-3795(03)00483-X
2003 doi
-
[37]
Van Werde
A. Van Werde. Cokernel statistics for walk matrices of directed and weighted random graphs.Combinatorics, Probability and Computing, 2025. doi: 10.1017/ S0963548324000312
2025
-
[38]
Van Werde
A. Van Werde. A sufficient condition for generalized spectral characterization of graphs with loops.arXiv preprint arXiv:2511.19625, 2025. doi: 10.48550/arXiv .2511.19625
2025 doi
-
[41]
W. Wang. Generalized spectral characterization of graphs: revisited.The Elec- tronic Journal of Combinatorics, 2013. doi: 10.37236/3748
2013 doi
-
[42]
W. Wang. A simple arithmetic criterion for graphs being determined by their generalized spectra.Journal of Combinatorial Theory, Series B, 2017. doi: 10.101 6/j.jctb.2016.07.004. 31
2017
-
[43]
W. Wang, L. Qiu, and J. Qian. Generalized spectral characterization of mixed graphs.The Electronic Journal of Combinatorics, 2020. doi: 10.37236/9588
2020 doi
-
[44]
Wang and W
W. Wang and W. Wang. Haemers’ conjecture: an algorithmic perspective.Ex- perimental Mathematics, 2025. doi: 10.1080/10586458.2024.2337229
2025
-
[45]
Wang and C.-X
W. Wang and C.-X. Xu. A sufficient condition for a family of graphs being determined by their generalized spectra.European Journal of Combinatorics,
-
[46]
W. Wang, J. Yang, and H. Zhang. Rational orthogonal matrices and isomorphism of graphs.Discrete Mathematics, 2024. doi: 10.1016/j.disc.2024.114002
2024
- [47]
-
[48]
doi: 10.1016/j.ejc.2005.05.004
2005 doi
-
[49]
D. Yun. On square-free decomposition algorithms. InProceedings of the third ACM symposium on Symbolic and algebraic computation, pages 26–35, 1976. doi: 10.1145/800205.806320
1976
-
[50]
Inconclusive
O. Zariski and P. Samuel.Commutative algebra: Volume I. Springer Science & Business Media, 1958. https://archive.org/details/commutativealgeb0001zari. AppendixA.Matrices with discriminant±1— Proof of Proposition 2.15 Recall from Remark 2.3 that the discriminant of a monic poly...
1958
-
[51]
Wang and D
W. Wang and D. Zhao. Graph isomorphism and multivariate graph spectrum. Advances in Applied Mathematics, 2026. doi: 10.1016/j.aam.2025.102994
2026
-
[1966]
doi: 10.1080/00029890.1966.11970915
1966
-
[2006]
doi: 10.1007/978-1-0716-0987-3
Reviewed August 15, 2026 · model on record in the stance chip above.
Discussion (0). Continue with ORCID to comment.