WorksMathematics
Completing the Kim–Kim–Oh Classification of Minimal-Rank -Universal Lattices for
Abstract
A positive-definite integral lattice is -universal if it represents every positive-definite integral lattice of rank . We complete the classification of minimal-rank -universal lattices for by resolving the three cases left open by Kim, Kim, and Oh. We show that and are -universal, whereas is not -universal.
Introduction
A lattice is a free -module of finite rank with a positive-definite symmetric bilinear form taking values in . In a basis of , the Gram matrix is and the determinant is . Write for any symmetric matrix . The norm equals for the coordinate column of $u.
We say that a lattice represents a lattice if there exists an isometric embedding (not necessarily primitive). We identify a lattice in a chosen basis with its Gram matrix. Thus represents precisely when contains vectors with Gram matrix . A lattice is -universal if it represents every lattice of rank ; it then represents every lattice of rank because adjoining orthogonal vectors of norm 1 gives a lattice of rank .
We write for the lattice with diagonal Gram matrix and for orthogonal sum. Thus is with the usual dot product. We use the root lattices , , , and , normalized so that their roots have norm 2 (see [1]). In particular, the lattice is the sublattice of comprising the vectors whose coordinates sum to 0.
Kim, Kim, and Oh [7 Theorem 3] recorded the least rank of an -universal lattice for . Synthesizing and building upon earlier work [12, 10, 3, 8, 6, 15] (see also [17, 18]), they classified, up to isometry, all possible minimal-rank -universal lattices for . The question of -universality remained open for just three candidates, indicated by stars in the following theorem.
2020 Mathematics Subject Classification. Primary 11E12, 11E25; Secondary 11E08, 11E20.
I thank Aaron Tievsky, who introduced me to quadratic forms and the work of Kim, Kim, and Oh [7] more than twenty years ago. I appreciate comments at that time from Ellen Dickstein Kominers, Paul Kominers, William Kominers, Chris Mihelich, Antoni Rangachev, John Rickert, Jenny Sendova, Chris Skinner, Larry Washington, Susan Schwartz Wildstrom, and many others; and more recently from Glenn Bruda, Noam D. Elkies, Ben Golub, Vita Kala, Steven J. Miller, Joachim Neu, Byeong-Kweon Oh, Ken Ono, Igor Rapinchuk, Tim Roughgarden, and Jesse Shapiro. This work was conducted while I was visiting the Technological Innovation, Entrepreneurship, and Strategic Management (TIES) Group at the MIT Sloan School of Management; I greatly appreciate their hospitality. My earliest thinking about this problem was supported by a Research Science Institute summer scholarship.
Theorem 1.1 (Kim–Kim–Oh [7 Theorem 1 and Proposition 3]).
(1) There are exactly eleven -universal -lattices of rank up to isometry. They are:
, , , , ,
, , , ,
, ,
where is shorthand for and is shorthand for .
(2) There are nine -universal -lattices of rank found so far, and there can be at most two more [indicated by stars]. They are:
, , , , , ,
, , , , ,
where the brackets in this list indicate glue-vector parameters (see [1]).
(3) There are exactly three -universal -lattices of rank . They are:
, , .
(4) There are two -universal -lattices of rank found so far, and there can be at most one more [indicated by a star]. They are:
, , .
(5) There are exactly two -universal -lattices of rank . They are:
, .
(6) There are exactly three -universal -lattices of rank . They are:
, , .
(7) is the only -universal -lattice of rank .
Each of the starred candidates is locally -universal [7], meaning that it represents all nonsingular integral lattices of rank over for every prime . But the genus of each candidate comprises multiple isometry classes, so global universality does not immediately follow from local universality.
Main result. We resolve the three remaining cases in Theorem 1.1.
Theorem 1.2.
(i) is -universal.
(ii) is -universal.
(iii) is not -universal.
Theorems 1.1 and 1.2 together imply that there are exactly eleven -universal lattices of rank 6 and two -universal lattices of rank 8, up to isometry.
Strategy of the proof. Let and . Kim, Kim, and Oh prove 2-universality by prescribing one coordinate of an embedding and representing the remaining binary form by a quaternary lattice of class number 1 [7 §4]. We use and , where the quinary lattice has determinant and class number 1. In either case write and put .
Every ternary lattice lies in a maximal integral overlattice, and an embedding of the latter restricts to the original lattice. A ternary lattice containing a vector of norm 1 splits as with binary—and in the orthogonal complement of a coordinate vector of is 2-universal by Theorem 1.1(1). It therefore suffices to treat maximal ternary lattices of minimum at least 2.
Let be the Gram matrix of such a lattice. We choose the coefficients along and seek vectors in with Gram matrix . It suffices to make positive definite and represented by over every .
For , we certify local representation of using three vectors in that are linearly independent modulo and whose Gram matrix satisfies coefficientwise modulo 8 at 2 or modulo 9 at 3. We use classes of modulo for which every integral lift admits three such vectors. Certificate 4.1 chooses and prescribes, at each prime, a congruence for and, once is fixed, a congruence for . Each congruence has modulus or 1; the Chinese remainder theorem then combines the congruences at 2 and 3 into an arithmetic progression for and, for each such , an arithmetic progression for , with .
In a basis reduced as in § 3, positive definiteness of restricts to a real interval and, once is chosen, to another. Taking and ensures that represents over and . If the intervals are sufficiently long, then we can choose terms of these two arithmetic progressions for which also represents at every prime . For any such maximal lattice that could still fail to embed in over , Certificate 4.2 bounds the first diagonal entry and the determinant of the leading block of the Gram matrix in a reduced basis; these bounds leave finitely many blocks to consider.
Certificate 4.3 treats the remaining blocks. For most blocks it gives a pair such that, for every maximal ternary lattice having that block in a reduced basis, some makes positive definite and represented by over every . For the other blocks, bounds on in each congruence class of the last column leave finitely many matrices . For each, the certificate records a for which is positive definite and represented by over every .
Thus for each remaining reduced Gram matrix a single gives a matrix represented by over and every . Since has class number 1, it represents over as well, say by vectors . The vectors in then have Gram matrix , as desired. Together with the norm-1 case and restriction to sublattices, this proves Theorem 1.2(i) and (ii).
Section 5 proves Theorem 1.2(iii) by exhibiting a quinary lattice of determinant 117 that does not embed in . In a putative embedding, the prescribed pairings force the first three basis images to occupy four coordinates of . The projections of the last two images onto the remaining would then have nonsquare Gram determinant—contradicting the identity for their integer coordinate matrix .
Computational supplement and formalization. The Python supplement provides search programs and a separate exact-arithmetic checker for Certificates 4.1–4.3 (Appendix A). The Lean 4 formalization proves all three assertions of Theorem 1.2, including verifying the arithmetic inputs and finite computations in the 3-universality proofs (Appendix § 8).
The local embedding tests
Throughout Sections 2–4, we fix and let denote the ternary lattice we seek to embed in . Write with . The index is the determinant of the quinary summand , and is the determinant of . Explicitly,
For any lattice , put . In particular . Write . For -adic entries, congruence modulo means equality in .
An integral overlattice of is a lattice in containing with finite index and having integral pairings. A lattice is maximal if it has no proper integral overlattice. An overlattice of index has determinant , so every ternary lattice lies in a maximal integral overlattice, and an embedding of the latter restricts to .
Let be an arbitrary maximal ternary lattice. Fix a basis of and let be its Gram matrix in this basis. For a proposed embedding , the coefficient along is a linear form . Let be the column of its values on the basis. The proposed images have Gram matrix precisely when their components have Gram matrix
The following lemma gives a sufficient condition for to represent in terms of for a single . Part (a) is the local–global step; it uses that has class number 1. Part (b) makes the local condition at primes checkable over : there is unimodular, and it suffices for the reduction of to represent . The primes are handled by Lemma 2.2 below.
Lemma 2.1. Let and as in (2).
(a) If is positive definite and represents for every prime , then represents .
(b) Let . If has rank at least 2, then represents over . Whenever represents , the lattice represents $C.
Proof. (a) The genus of consists of the lattices with and for every prime ; its class number is the number of isometry classes in the genus. In Nipp’s tables of positive-definite quinary forms the discriminant is 16 times the lattice determinant. The genera of and appear as genus 8 of discriminant 48 and genus 21 of discriminant 144, respectively; each contains only one isometry class [14] (see also [11 Appendix A.7]). Since is positive definite, represents , and by hypothesis represents for every prime . Hence some lattice in the genus of represents over [16 Example 102:5] (see also [19 Theorem 6.15 and Corollary 6.16]). As the class number is 1, that lattice is isometric to , so there are with Gram matrix . Since and , the vectors have Gram matrix .
(b) Since and , is a unit in , so is unimodular, i.e., its determinant is a unit. Let be the hyperbolic plane, with Gram matrix . It represents every , since has norm .
Structure of . For odd , a unimodular -lattice of rank at least 3 splits off a copy of [19 Theorem 5.26]. Applying this twice to the rank-5 lattice gives . Comparing determinants, with , gives for some , so contains a vector of norm .
Structure of . Choose with . Then is a square in , and rescaling gives . Because is a unit, the projection is integral, so splits as with binary. As is odd, has an orthogonal basis , of norms , say. The embedding. Send to a vector of norm in , and send to in the -th copy of . The images are pairwise orthogonal of norms , so this is an isometric embedding of into .
Finally, if mod has rank at least 2, then mod contains a nonsingular binary subform, which represents every nonzero element of [19 Corollary 2.8] (also [9 §1.3]); in particular it represents (mod ).
Call maximal at if has no proper integral -overlattice. To check maximality over , it suffices to exclude overlattices of prime index. Over or , an overlattice of index is generated by adjoining in basis coordinates, where (mod ). The pairings with the basis vectors and the norm of are integral precisely when
Once the first congruence holds, the second depends only on mod . An integer representative of a nonzero -adic solution modulo therefore satisfies both congruences. Thus maximality over is equivalent to maximality at every . For odd , maximality implies (mod ). Otherwise mod has a nonzero vector of norm 0. If the form is singular, take a nonzero vector in its radical. In a nonsingular diagonal form, the leading binary form represents the negative of the third diagonal entry over . In either case an integral lift satisfies (3).
At 2, an integral overlattice of index 2 implies . Conversely, suppose . On , the map is independent of the lift by (3) and linear, since is even there. If the kernel of mod 2 has dimension at least 2, this linear form vanishes on a nonzero vector. If it has dimension 1, lift a generator to and take it last in a -basis. Modulo 2 the first two vectors span a complement to the radical, so their Gram determinant is odd. Their pairings with are even. The full determinant is therefore congruent modulo 4 to that odd determinant times , giving . In both cases a nonzero class satisfies (3). This proves that maximality over is equivalent to .
Table 1 gives diagonal Gram matrices for at . Let be simple roots of , with . The orthogonal vectors have norms 2, 6 and span a sublattice of index 2. They form a basis over . If has norm 1 and is orthogonal to , are orthogonal of norm 3. They span a sublattice of index 3 in , hence form a basis over .
| 2 | ||
| 3 |
Table 1. Diagonal Gram matrices of and for
For and a symmetric matrix over , let denote its congruence class in the given basis. At 2 we reduce the diagonal entries modulo 8 and the off-diagonal entries modulo 4. At 3 we reduce every entry modulo 9. Thus equality of two such classes means coefficientwise equality of the quadratic forms modulo 8 or 9, respectively. Since (3) depends only on , the class determines whether the lattice is maximal at .
We say that primitively represents if there exists an isometric embedding for which is torsion-free.
Lemma 2.2. Let or 3, and let be the Gram matrix of in Table 1. If is a $5\times3$ matrix over of rank 3 modulo and , then primitively represents $C.
Proof. Extend the columns of to a basis of and replace the leading Gram block in this basis by . In the original basis write the modified Gram matrix as , so that . In the extended basis the coefficients of the change in the quadratic form belong to or , respectively. This divisibility is preserved on returning to the original basis. Thus at 2 the diagonal entries of belong to and the off-diagonal entries to . At 3 all entries of belong to .
Starting with in the original basis, we orthogonalize in the diagonal order of . At step , keep the original indices on the remaining block , put , and subtract times basis vector from each vector . This changes for by . At 2, is odd and this correction belongs to . At 3, has valuation at most 1 and the correction belongs to . In each case the basis change is integral and preserves the congruences on the remaining block.
The ratio of the -th diagonal entry to lies in or , respectively, so it equals for some . Multiplying the -th orthogonal basis vector by gives a basis with Gram matrix . Thus the combined change of basis satisfies .
In the basis with Gram matrix , the original three columns have coordinates . Hence . Moreover, takes a -basis extending the columns of to one extending the columns of . Thus gives a primitive embedding of the lattice with Gram matrix into .
Let consist of the classes as ranges over matrices over of rank 3 modulo . By Lemma 2.2, certifies that primitively represents . We compute in Python by enumerating the possible residues of each row of in turn, as described in Appendix A.1.
Reduced bases and primes dividing the binary determinant
We take a Hermite–Korkine–Zolotarev reduced basis of [13 Definition 16] and write its Gram matrix as
The Gram–Schmidt vectors of this basis have squared lengths , , and , respectively. By size reduction and a choice of signs for ,
Since is shortest, and . In the lattice projected onto , the projection of is shortest among nonzero vectors. Comparing it with the projection of gives
Thus we have
Write for the coefficients of the linear form in this basis and put and . Positive definiteness of is equivalent to . Completing squares gives
For fixed , the leading block has determinant . Thus is positive definite (written ) precisely when . The determinant of the full matrix is
By Sylvester’s criterion [5 Theorem 7.2.5(b)], is positive definite precisely when and . When , the formula for shows that precisely when lies in the open interval
This yields an upper bound on when fails to represent . Fix with and an arithmetic progression with and , and suppose there is an integer such that any consecutive terms of the progression include a for which represents at every prime . If , then contains a closed interval of length , hence consecutive terms of , hence such a . For this the matrix is positive definite, and Lemma 2.1(a) shows that represents . Consequently, if fails to represent , then , that is, . Since , we have
for every such choice of , , and .
Lemma 3.1. Fix with , and fix . If , then has rank at least 2 modulo for every . If and , the integers for which mod has rank at most 1 lie in at most two residue classes modulo . At most one such class occurs if, in addition, , , or .
Proof. We work over . If is nonsingular, then it already gives rank at least 2. Now suppose is singular and . For put and . If has rank at most 1, then the Gram determinant of and for the form mod vanishes. Thus
For choose with . The coefficient of is , giving at most two roots. For we have . If , choose outside the union of and , which has at most elements. The equation is then linear with nonzero coefficient . If , then and any with makes the left side nonzero.
Finally, for the equation reduces to . If is nonsingular, every nonzero has because . If , then and we may again choose with . In either case the equation determines uniquely in whenever mod has rank at most 1. □
Proof of 3-universality
A uniform bound for the leading binary block
Since every ternary lattice lies in a maximal integral overlattice (§ 2), it suffices to show that represents every maximal ternary lattice . If contains a vector of norm 1, then for a binary lattice . The orthogonal complement of a coordinate vector of is in and in . Both complements represent every binary lattice by Theorem 1.1(1), since . Sending to the coordinate vector and embedding in its complement shows that represents . Thus any maximal ternary lattice that fails to represent has minimum (least nonzero norm) at least 2. We call such a non-represented lattice an exception for .
We may therefore take to have minimum . In a Hermite–Korkine–Zolotarev reduced basis with the signs chosen as in § 3, its Gram matrix has . Prescribing fixes the coefficients of the three basis images along . Their components in must then have Gram matrix .
For , we check whether . Membership means that three vectors of , linearly independent modulo , have a Gram matrix satisfying the following congruences:
At , the diagonal entries of and agree modulo and the off-diagonal entries agree modulo .
At , all corresponding entries agree modulo .
These are the coefficientwise congruences of the norm polynomials modulo and , respectively, since each mixed coefficient is twice the corresponding Gram entry. Lemma 2.2 then gives a primitive representation of over by .
Different integral lifts of a coefficient class can give different Gram classes . To ensure primitive representation for every lift, we use the following set for .
For example, take , and . Then belongs to exactly when , and belongs to for every . We may therefore take any and then any . The arithmetic progressions for and have common differences and , respectively.
For , let range over the classes of maximal ternary -lattices. Fix and . At each prime , we use to compute congruences for and, once is fixed, for (Appendix A.§ 2). Their moduli and each belong to . The Chinese remainder theorem combines the congruences at and , giving and . For each resulting triple there is an arithmetic progression for and, for each in it, an arithmetic progression for such that
for every .
We impose two further restrictions on the triples . First, we require , so the entry of is positive, which is necessary for to be positive definite. Second, suppose , so that . The argument below needs for every prime , and it is convenient to have . We therefore take to be a signed divisor of 6, i.e., . At primes dividing but not , we need to control the entry of . The certificate must choose uniformly in the second diagonal entry . We say that satisfies the signed-divisor condition (for and ) if, for every integer , there is a signed divisor of with such that, for every prime with and ,
Here is the square class of in . The condition depends on only modulo the product of the primes dividing , so it is a finite check. When , we require that satisfy this condition and that . For , only is allowed, and for every such choice. Thus for the eligible pairs and the triples available to each pair depend on only through (Appendix A.§ 2).
We state the outcomes of the finite computations as certificates. Appendix A describes how the accompanying Python programs check them, and Appendix § 8 describes their verification in Lean.
Certificate 4.1 (Local choices). Fix and an integer , the prescribed first diagonal entry in the reduced basis of § 3. For , let be the Gram class of a maximal ternary -lattice. Assume that the first diagonal entries of and are congruent to modulo and , respectively. For each such pair there are and positive divisors of with the following property:
There is an arithmetic progression such that, for each in it, (7) holds for every in an arithmetic progression .
Moreover, and, if , then and satisfies the signed-divisor condition.
For every maximal ternary lattice with Gram matrix and , the pair satisfies these congruences. Other pairs may satisfy them as well.
Choosing . Fix a triple for from Certificate 4.1. We seek near to keep the second term of (5) small enough for the leading block to be positive definite. The choice of must also ensure that, at each prime dividing , the form represents for all outside at most one residue class modulo .
Let be the primes at least , put with , and choose by . Every positive integer at most has at most distinct prime divisors at least . The gap bound of Appendix A.§ 2 applies to both arithmetic progressions and . Given one forbidden residue class modulo each of at most primes , any consecutive terms of either arithmetic progression contain a term avoiding all the forbidden classes, since .
To see when a prime dividing can also divide , use the identity
For and each dividing but not , exclude . This makes . Since , one of the terms of nearest avoids all these classes. For apply the signed-divisor condition with to choose in . Thus , where for and for .
Choosing . With fixed, every gives a matrix primitively represented by and , by (7) and Lemma 2.2. We seek a in this progression for which is positive definite and represents at every prime . Once , positive definiteness restricts to the interval of § 3, centered at . Such a exists whenever
Since , the first two terms in parentheses in (5) sum to less than . Hence and . For with , the nonsingular block mod already represents . For each dividing , we shall exclude at most one residue class modulo from the choice of ; for every integer outside that class, if any, represents over .
One of is a signed divisor of , so . If , Lemma 3.1 shows that has rank at least outside at most one residue class modulo , and Lemma 2.1(b) gives representation of .
If divides both and , then (8) gives . For the choice of forces . For the same follows since . Then and . For this forces . Whenever , we have , so Lemma 3.1 gives rank at least for except possibly when lies in a single residue class modulo .
It remains to consider and . Here . Since and , the signed-divisor condition with gives two possibilities for modulo . If , then and Lemma 3.1 gives for all $k outside at most one residue class modulo . Otherwise in for some . For every , the vector then has norm for mod , so no residue class is excluded.
Since , at most primes divide . Among the terms of nearest , the gap bound gives a outside every excluded class. Thus mod represents at every . Moreover, . Using , we obtain . Together with , inequality (9) now gives in (5). Thus is positive definite. Lemma 2.1(b) gives representation of by at every , and (7) gives it at 2 and 3. Lemma 2.1(a) now gives an embedding .
Fix , , and . For each pair in Certificate 4.1, minimize the right-hand side of (9) over its valid triples. The certificate supplies at least one, so the minimum is finite. Let be the largest of these minima. An exception satisfies by (4). Hence . The estimate in Appendix A.2 rules this out for . For we compute the endpoints of the determinant intervals in the following certificate.
Certificate 4.2 (Determinant ranges). For and , the interval
contains an integer for 536 pairs for and 1,136 for . The largest values in the respective lists of pairs are 494 and 855.
The remaining binary blocks
For the fixed , write
where ranges over the pairs in Certificate 4.2 and comprises the integral matrices
with
in the corresponding determinant interval.
To enumerate , we take each integer in the interval and each with , and keep when it is an integer with .
Every exception has its leading block in : in the reduced basis of Section 3 we have , and Section 4.1 places in the determinant interval for and the with .
Fix and let be the unique index with . Write
In the maximum defining , we restrict to pairs of maximal Gram classes with leading blocks , respectively. If there is no such pair, then cannot occur in a maximal ternary lattice. Otherwise let be the restricted maximum, so . We define to include precisely when is defined and . Every exception has its leading block in by the argument in Section 4.1, since its pair is among those in the restricted maximum. Enumerating and retaining the blocks in gives 534,827 blocks for and 8,521,181 for (Appendix A.3, Table 4, first row).
| Binary blocks in of § 4.2 | 534,827 | 8,521,181 |
| Blocks with bounded by last-column class | 836 | 5,147 |
| Blocks with a last-column class of bound | 99 | 162 |
| Bounded integral lifts in the surviving classes | 29,831 | 10,407 |
| Gram matrices tested | 10,905 | 7,556 |
Table 4. Counts of binary blocks and ternary completions for and
Representing every maximal completion with one pair. Fix and write . A completion of is a ternary Gram matrix with leading block . It is determined by its last column . We seek one pair such that, for every maximal ternary lattice with a reduced Gram matrix completing , some integer makes positive definite and represented by at every prime, where . By Lemma 2.1(a) such a pair rules out as the leading block of any exception.
Take up to sign with $0\le x\le6$, and for every . Require . For and each maximal Gram class $\sigma_p=[G]_p with leading block , we seek an arithmetic progression for on which primitively represents . For this purpose we use the following sufficient local representation conditions, at 2 and 3, respectively,
At 2, the first inclusion asks whether three vectors of independent modulo 2 have Gram class . For fixed this depends only on mod 4. At 3, we prescribe only modulo 3, although can depend on mod 9. The second inclusion therefore requires for every integral column . By Lemma 2.2, each inclusion in (10) gives the claimed primitive representation over the corresponding .
For each , take the least positive step of an arithmetic progression all of whose terms satisfy the inclusion at . Discard if any admits no such progression. Otherwise the least steps divide 4 at 2 and 3 at 3, so their maximum at each prime is a multiple of every step there. By the Chinese remainder theorem, for each completion maximal at both primes there is an arithmetic progression , with , on which both inclusions in (10) hold. Here may depend on .
At dividing , put if and , and otherwise. Maximality gives , so Lemma 3.1 shows that, for each fixed , the integers for which has rank at most 1 lie in at most residue classes modulo . Thus represents every maximal ternary lattice with leading block
in a reduced basis if a positive integer satisfies
Indeed, , so each excluded class removes at most of any consecutive terms. The first inequality therefore guarantees a among these terms for which has rank at least 2 at every dividing . At the other primes , mod is nonsingular. Together with (10), Lemma 2.1(b) and Lemma 2.2 give representation by at every prime. By (4), . Write . The second inequality in (11) puts the upper bound (6) strictly below . Thus no completion of in a reduced basis can be an exception.
The last-column test. If the computation thus far has not certified representation of every maximal completion of by one pair , we group its completions by the class mod 24, using the reduced bases and signs of Appendix A.§ 3. We allow to depend on and bound for any exception in that class. A bound below rules out the class. If the bound is at least , the reduction inequalities leave only finitely many integral last columns to examine.
At 2 the mixed entries modulo 4 and modulo 8 determine together with . At 3 we fix all three entries modulo 3 and consider their lifts modulo 9. Thus it suffices to distinguish modulo 12 and modulo 24. Maximality requires and , both determined by and . A class with no maximal lift at 3 contains no exception.
For a fixed , we seek one pair and one arithmetic progression for all completions in that class. For every the first inclusion in (10) must hold for the single class determined by and . The second must hold for every maximal class with leading block and last column congruent to modulo 3. Thus the same pair and progression give local representations for every integral last column in whose completion is maximal at 2 and 3. At primes the residue classes modulo excluded from the choice of may still depend on . We try the integral pairs with up to simultaneous sign, since . For each pair, factor and omit primes dividing at which a diagonal entry of lies in , since then represents for every . Discard the pair if both and vanish modulo any remaining prime. Take the least , if it exists, for which the sum in (11) over just the remaining primes is less than . Equation (6) then bounds for every exception in this class. For each class take the least bound obtained from these pairs and round it down to an integer. Retain the class if this bound is at least . If any class is retained, let be the largest of the retained bounds. This argument by last-column class applies directly to every block in , whether or not one first seeks a single pair for the entire block.
Enumeration and witnesses. For each retained last-column class, we use a program to enumerate the integral completions allowed by and the reduction conditions of Appendix A.§ 3. For each such that is maximal at 3 and has relatively prime entries, we may now choose the covector separately.
Certificate 4.3 (Coverage and representations). Fix with the decomposition given in (1).
(a) For all but 836 blocks for and 5,147 for in , there is a recorded pair with integers satisfying (11). For each maximal completion of such a block there is a for which the local representation conditions (10) hold throughout . Hence every maximal ternary lattice with this leading block in a reduced basis embeds in .
(b) For each block without a recorded pair in (a), every last-column class compatible with maximality at 2 and 3 has a finite upper bound (6) on the determinant of an exception in that class. Exactly 99 blocks for and 162 for have a class whose least bound is at least . For each such block , the certificate identifies those classes and their common upper bound .
(c) In the classes specified in (b), exactly 10,905 Gram matrices for and 7,556 for satisfy , the reduced-basis inequalities and sign conventions of Appendix A.§ 3, maximality at 3, and coprimality of the entries. For every such , the recorded gives a positive-definite represented by at every prime .
For , consider again from § 4.1. Its leading block passes to the last-column test in part (b), with and . This test rules out an exception in the class of the original last column modulo 24. The only completions of requiring individual witnesses in part (c) have last column with .
At , part (c) requires only an isometric embedding of into . When , the certificate specifies an integral index- overlattice of whose Gram matrix satisfies . Lemma 2.2 then gives a primitive embedding of into ; its restriction to gives the required local embedding.
The bounds in § 4.1 and parts (a) and (b) of Certificate 4.3 reduce the proof to the ternary Gram matrices enumerated in part (c). For each such , the recorded gives a positive-definite represented by at every prime, so Lemma 2.1(a) shows that represents over . Thus neither nor has an exception. Since every ternary lattice embeds in a maximal integral overlattice (§ 2), both lattices are 3-universal, proving Theorem 1.2(i) and (ii).
The quinary counterexample
Proposition 5.1. The lattice does not represent the quinary lattice with Gram matrix
Proof. The leading principal minors are , so is positive definite of determinant . Suppose the basis in which (12) is written maps to in . For , the vector has norm . A nonzero component already has norm at least , so lies in one summand. The pairings put all three vectors in the same summand. They are independent, so this summand is . Each of these three vectors has exactly two nonzero coordinates, both . The support of meets each of the other two supports in one coordinate. Since , the supports of and are disjoint or equal. Equal supports would give , contrary to their pairings and with . Thus after permuting the coordinate vectors of , the support of is for . Changing the signs of the coordinate vectors then gives for .
Write and in . The pairings with give
The bounds and force . Both values of give . If , then and . If , then and .
Now is the only positive norm below in . Indeed, its norm form is , and excludes norm . Since is not a sum of two squares, a norm- vector of lies in , and a norm- vector projects to a vector of norm in . In particular . Let be the projection of to . Since , the Gram determinant of equals . If is their coordinate matrix in the basis , this determinant is . For its possible values are , and for they are . None is an integer square. □
Proposition 5.1 proves Theorem 1.2(iii).
Use of generative AI
I used LLMs to assist with computations, coding, and synthesis in the preparation of this article, including GPT-6.2 Astra, GPT-5.* Pro, Claude Fable 5, Claude Opus 5.5, Claude Opus 4.*, and Gemini 3 Pro (all accessed in part via Poe with the support of Quora, where I am an advisor). Additionally, I used Refine.ink to review the draft for consistency, completeness, and clarity. The choice of problem, the methods, and the final written form are my own. Any errors remain my responsibility.
Appendix A. Finite verification
For each , our Python search computes the local representation tables at and and uses them to bound the leading binary block of a possible exception. For each it seeks one pair that proves represents every maximal ternary lattice with leading block in a reduced basis. For the remaining blocks it bounds in each last-column class and enumerates the ternary Gram matrices still requiring individual verification; for each such it tries covectors until is positive definite and represented by at every prime.
Table 2 gives the commands to run from python/ in release v4 of the accompanying repository.1 Both run on Python 3.10 or later and use only the standard library for exact integer and rational arithmetic. The checker starts from the same primitive representation tables and maximality tests as the search. It reconstructs the local choices and determinant ranges, checks that the block and last-column bounds cover every possible exception, and verifies a witness for each remaining Gram matrix. Below, program paths are relative to python/. The five certificate files are in its certificates/ subdirectory.
| Command | Reference transcript in expected_output/ |
python3 reproduce_ternary_search.py --workers 4 | ternary_search.txt |
python3 verify_ternary_certificates.py --workers 4 | certificate_verification.txt |
Table 2. Commands for reproducing the search and checking the certificates
Local representation tables
The local tables identify which Gram classes admit a primitive representation by at . In the verification/ directory, local_representation.py constructs and counts the classes of maximal ternary -lattices in Table 3. The module residue_census.py then determines the coefficient classes used in Section 4.1.
| All Gram residues | Classes of maximal lattices | |||
| 2 | 32,768 | 21,504 | 28,420 | 22,624 |
| 3 | 531,441 | 459,108 | 451,386 | 355,485 |
Table 3. Counts of ternary Gram matrix classes at
Fix and let be the Gram matrix of in Table 1. Writing for row of gives . To construct , suppose the first rows contribute the matrix to this sum and their reductions span . Appending row in position gives the update
Start with and . Enumerate modulo 4 at 2 and modulo 9 at 3 (modulo 3 suffices if ). These residues determine both entries on the right. After five rows, precisely when the pair occurs. The maximal classes in Table 3 are determined by at 2 and (3) at 3. The last two columns count primitively represented classes among all Gram residues, including those of nonmaximal lattices.
To construct , we test the lifts of each for membership of in . The class depends only on for , on for , and on at 3.
Arithmetic progressions and the uniform bound
For each triple in Certificate 4.1, is the common difference of the arithmetic progression . Once is chosen, is the common difference of . These common differences enter the bound that gives the determinant intervals in Certificate 4.2; the module verification/scalar_sieve.py computes these intervals. With --verify-tables, audit/verify_steps_and_ranges.py reconstructs the pairs and checks the interval endpoints.
Local choices. For fixed and , list the pairs with . In the pair of local moduli , a modulus of 1 allows all residues modulo , and a modulus of selects one residue. The residue selected for may depend on . Thus is available if all pairs occur, if every admits some , if some admits every , and if at least one pair occurs. If one pair divides another in both coordinates, keep the smaller pair, whose contribution to (9) is no larger. When , the signed-divisor condition also holds for each divisor of , since every residue class modulo contains a residue class modulo . The 176 records in local_progression_steps.tsv group maximal Gram matrix classes by , , the retained lists for each , and the first diagonal entry (modulo 8 at 2 or 9 at 3). The checker reconstructs each list and the number of classes in each group.
For fixed take the groups whose first entries agree with modulo 4 at 2 and modulo 3 at 3. For each , the Chinese remainder theorem combines a choice of and into the triple . For test every mod and every mod as in Section 4.1.
For the checker verifies that at least one triple remains for each pair after imposing the restrictions on . For only is used, and then . Hence the available triples depend only on mod 12, so the checks for complete Certificate 4.1.
The gap bound. For , let be the least satisfying . In either arithmetic progression or of Section 4.1, a forbidden class modulo excludes at most of any consecutive terms, since divides neither step. The sum bounds all exclusions, since the -th smallest prime used is at least . Such a exists since .
For , index the terms of either arithmetic progression by consecutive integers. Its step is coprime to the chosen primes, so each forbidden class excludes one class of indices. For any subset of these primes, the Chinese remainder theorem gives one class of indices modulo their product satisfying all the forbidden congruences in that subset. Its count among consecutive indices differs from divided by that product by less than 1. Inclusion–exclusion therefore counts the surviving indices with error less than from times their density. This density is at least , since . Thus guarantees a surviving index.
In this range and , since and . Hence (9) has right-hand side at most . At direct integer comparison gives . As increases, grows by , while grows by . The former factor exceeds the latter at and the inequality persists by monotonicity. This rules out for all .
Determinant ranges. For evaluate in rational arithmetic. Test individually. For choose with . The same triples are available for and , though their bounds in (9) use the actual first entry. For each triple the bound decreases as increases. Thus . If , discard the class. Otherwise gives . Within these limits the checker computes the integer endpoints in Certificate 4.2 and compares them with the intervals used to enumerate the blocks.
Enumeration of bounded matrices
Certificate 4.3 reduces the candidate binary blocks to a finite list of ternary Gram matrices and gives a representation for each. The programs audit/verify_block_coverage.py and audit/verify_representation_witnesses.py verify the completeness of this list and the representations, respectively.
The checker enumerates the blocks of (Section 4.2) in order for each pair of Certificate 4.2. For each it takes the integers for which lies in the corresponding determinant interval. It retains in when is defined and .
Pairs recorded for entire blocks. The file binary_block_pairs.json.gz either gives one pair for or records that must be bounded separately for each last-column class. To check a recorded pair at , range over the classes of maximal -lattices with leading block . At 2, keep the mod 4 for which . At 3, keep the mod 3 with mod 3 . An empty set rules out the pair. Otherwise the least step is 1 for the full set, 2 at if the proper set contains an entire parity class, and the modulus (4 or 3) in the other cases. Take the largest step over these matrix classes at each prime. With their product the checker verifies (11) for the recorded pair. The search uses the following sufficient estimate for the sum in (11).
Lemma A.1. Let be the product of the primes from 5 through 47 dividing . Let be the largest nonnegative integers with and , respectively. The first inequality in (11) holds if
If and , take for or for , provided .
Proof. The distinct primes dividing have product dividing , so there are at most . Those with weight 2 also divide , so at most contribute twice. In the last case all weights are 1, at most one prime divides , and for every .
Last-column classes. For each remaining block take mod 24 with and mod 3. For each try the pairs with up to simultaneous sign. They lie in the finite box , . At 2, the block and determine . Keep each modulo 2 if , or modulo 4 if , for which . At 3, consider the classes of maximal -lattices with leading block mod 9 and last column congruent to mod 3. Keep mod 3 if mod 3 for every such . If there is no such , then has no maximal lift at 3. The Python checker includes these in its initial count and verifies that none contributes a matrix to the enumeration. For nonempty sets at both primes, the least permissible local steps have product . The checker reconstructs the surviving classes and by § 4.2 and compares them with last_column_bounds.json.gz. The record uses one bit per mod 12, mod 12, mod 24), so four nominal classes modulo 24 share each bit.
Integral lifts. Write , so . Combining with the bounds on the reduced Gram entries from § 3 gives
The enumeration uses two further choices of signs. If , negating if necessary gives . If or , we may also take . Indeed, replacing by or , respectively, preserves and and negates . Both substitutions preserve the reduction bounds, and when the two sign conditions agree. The fourth row of Table 4 counts the lifts satisfying these bounds and sign conditions. The last row counts those that are maximal at 3 and have relatively prime entries. Maximality excludes an odd prime dividing all entries, and all entries even would give . These necessary conditions can include Gram matrices in nonreduced bases and lattices nonmaximal at larger primes. The checker compares the list of Gram matrices entry by entry with bounded_gram_matrices.txt.gz.
Checking the representations. For each , representation_witnesses.jsonl.gz gives and two matrices . Check positivity of the leading principal minors of . At , take unless the record gives a column defining an index- overlattice. Its first nonzero entry is 1. Replace the corresponding basis vector by and check that the resulting Gram matrix has entries in . For as in Table 1, verify and . Lemma 2.2 gives an exact local embedding, which in the overlattice case restricts to the lattice with Gram matrix .
At each dividing the gcd of the minors of , check that a diagonal entry modulo lies in . At all other the rank is at least 2, so Lemma 2.1(b) gives local representation in both cases. All recorded for lie in . For the search first succeeds outside this box for 56 matrices, each with .
Formal verification in Lean
We have formalized the argument, including the certificate verification, in Lean 4 [2] with Mathlib [20]. The declaration KimKimOh.mainTheorem proves the three assertions of Theorem 1.2 without hypotheses. Within the repository’s lean/ directory, KimKimOh/Statement.lean gives the statement and KimKimOh/Main.lean assembles its proof. The counts of isometry classes following Theorem 1.2 combine these three assertions with the candidate lists in Theorem 1.1.
For the norm-1 reduction, the formalization proves the 2-universality of and . For Lemma 2.1(a), it uses Jonathan Hanke’s QuadFormsKB [4] to show that if represents locally everywhere, then some lattice in its genus represents over . The mass formula from the same library, together with the orders of the automorphism groups, gives class number 1 for both and . In Lean, local representation at means solvability of the Gram matrix equation modulo for every . Compactness gives the equivalent formulation over . For the quinary case, KimKimOh/Quinary.lean proves that the lattice of determinant 117 in Proposition 5.1 does not embed in .
Lean evaluates the finite tests on the certificate data in its kernel (decide +kernel). For Certificate 4.1, it checks witnesses for the local representation tables at 2 and 3 and the residue choices giving the steps . For Certificate 4.2, it verifies that the lists of pairs cover every possible exception. For Certificate 4.3, it verifies that every block in either satisfies the whole-block inequality or occurs on the list for the last-column test. For each listed block it checks the bounds and enumerates the remaining integral lifts. The proof requires these lists to cover every remaining case. The enumeration in Appendix A.3 gives the exact counts in Table 4.
For each remaining , both verifications use the recorded and check positive definiteness of and local representation at every prime. At 2 and 3 the Python checker verifies the supplied matrices directly. Lean checks the Gram class of , or of its specified index- overlattice, against its verified local table.
To build the proof with the pinned Lean 4.36.0 toolchain, run lake exe cache get and then lake build from lean/. The axiom audit (lake env lean scripts/CheckAxiomsMain.lean) follows the dependencies of the main theorem, including the proofs imported from QuadFormsKB, and finds only propext, Classical.choice and Quot.sound. For the Lean declarations corresponding to each step, see docs/PAPER_CORRESPONDENCE.md. The verification record in docs/STATUS.md reports the full build, the axiom audits, and a second kernel check of all project modules, one module at a time.
Harvard Business School; Department of Economics and Center of Mathematical Sciences and Applications, Harvard University; and A16z Frontier Research
Email address: komin...
References
- [1]J. H. Conway and N. J. A. Sloane. Sphere Packings, Lattices and Groups, volume 290 of Grundlehren der mathematischen Wissenschaften. Springer-Verlag, New York, third edition, 1999. 10.1007/978–1–4757–6568–7.
- [2]Leonardo de Moura and Sebastian Ullrich. The Lean 4 theorem prover and programming language. In André Platzer and Geoff Sutcliffe, editors, Automated Deduction – CADE 28, volume 12699 of Lecture Notes in Computer Science, pages 625–635, Cham, 2021. Springer. 10.1007/978–3–030–79876–5_37.DOI
- [3]A. G. Earnest. The representation of binary quadratic forms by positive definite quaternary quadratic forms. Transactions of the American Mathematical Society, 345(2):853–863, 1994.DOI
- [4]Jonathan Hanke. Quadratic forms over number fields in Lean 4 (QuadFormsKB). Software, version 0.6.1, 2026. URL https://doi.org/10.5281/zenodo.23509792.
- [5]Roger A. Horn and Charles R. Johnson. Matrix Analysis. Cambridge University Press, Cambridge, second edition, 2013. 10.1017/CBO97811390920411.
- [6]B. M. Kim, M.-H. Kim, and S. Raghavan. 2-universal positive definite integral quinary diagonal quadratic forms. The Ramanujan Journal, 1(4):333–337, 1997. 10.1023/A:1009797524602.DOI
- [7]Byeong Moon Kim, Myung-Hwan Kim, and Byeong-Kweon Oh. 2-universal positive definite integral quinary quadratic forms. In Myung-Hwan Kim, John S. Hsia, Yoshiyuki Kitaoka, and Rainer Schulze-Pillot, editors, Integral Quadratic Forms and Lattices, volume 249 of Contemporary Mathematics, pages 51–62. American Mathematical Society, Providence, RI, 1999. 10.1090/conm/249/03747.
- [8]Myung-Hwan Kim and Byeong-Kweon Oh. Representations of positive definite senary integral quadratic forms by a sum of squares. Journal of Number Theory, 63(1):89–100, 1997. 10.1006/jnth.1997.2069.DOI
- [9]Yoshiyuki Kitaoka. Arithmetic of Quadratic Forms, volume 106 of Cambridge Tracts in Mathematics. Cambridge University Press, Cambridge, 1993. 10.1017/CBO9780511666155.
- [10]Chao Ko. On the representation of a quadratic form as a sum of squares of linear forms. Quarterly Journal of Mathematics, os-8(1):81–98, 1937. 10.1093/qmath/os-8.1.81.
- [11]David Lorch and Markus Kirschmer. Single-class genera of positive integral lattices. LMS Journal of Computation and Mathematics, 16:172–186, 2013. 10.1112/S1461157103000107.
- [12]L. J. Mordell. A new Waring’s problem with squares of linear forms. Quarterly Journal of Mathematics, os-1(1):276–288, 1930. 10.1093/qmath/os-1.1.276.DOI
- [13]Phong Q. Nguyen. Hermite’s constant and lattice algorithms. In Phong Q. Nguyen and Brigitte Vallée, editors, The LLL Algorithm: Survey and Applications, Information Security and Cryptography, pages 19–69. Springer, Berlin, Heidelberg, 2009. 10.1007/978–3–642–02295–1_2.DOI
- [14]Gordon L. Nipp. Tables of quinary quadratic forms. In A Catalogue of Lattices, maintained by Gabriele Nebe and Neil Sloane, accessed November 2026. URL https://www.math.rwth-aachen.de/~Gabriele.Nebe/LATTICES/nipp5.html.
- [15]Byeong-Kweon Oh. Universal ℤ-lattices of minimal rank. Proceedings of the American Mathematical Society, 128(3):683–689, 2000. 10.1090/S0002-9939-99-05254-5.
- [16]O. Timothy O’Meara. Introduction to Quadratic Forms. Classics in Mathematics. Springer-Verlag, Berlin, Heidelberg, 2000. 10.1007/978–3–642–62031–7. Reprint of the 1973 edition.
- [17]A. Schinzel. A positive definite binary quadratic form as a sum of five squares of linear forms (completion of Mordell’s proof). Bulletin of the Polish Academy of Sciences. Mathematics, 61(1):23–26, 2013. 10.4064/ba61–1–3.DOI
- [18]A. Schinzel. Note to the paper “A positive definite binary quadratic form as a sum of five squares of linear forms (completion of Mordell’s proof)” (Bull. Polish Acad. Sci. Math. 61 (2013), 23–26). Bulletin of the Polish Academy of Sciences. Mathematics, 61(2):107, 2013. 10.4064/ba61–2–2.DOI
- [19]Rainer Schulze-Pillot. Lecture notes on quadratic forms and their arithmetic. arXiv:2008.12847v2 [math.NT], 2021. URL https://arxiv.org/abs/2008.12847v2.
- [20]The mathlib Community. The Lean mathematical library. In Jasmin Blanchette and Cătălin Hritcu, editors, Proceedings of the 9th ACM SIGPLAN International Conference on Certified Programs and Proofs, CPP ’20, pages 367–381, New York, NY, USA, 2020. Association for Computing Machinery. 10.1145/3372885.3373824.