betaFeedback

WorksMathematics

Completing the Kim–Kim–Oh Classification of Minimal-Rank nn-Universal Lattices for 2≤n≤82\le n\le 8

Abstract

A positive-definite integral lattice is nn-universal if it represents every positive-definite integral lattice of rank nn. We complete the classification of minimal-rank nn-universal lattices for 2≤n≤82\le n\le 8 by resolving the three cases left open by Kim, Kim, and Oh. We show that I3⊥A1⊥A2I_3\perp A_1\perp A_2 and I3⊥A2⊥⟨3⟩I_3\perp A_2\perp\langle 3\rangle are 33-universal, whereas I6⊥A2I_6\perp A_2 is not 55-universal.

Introduction

A lattice is a free Z\mathbb{Z}-module of finite rank with a positive-definite symmetric bilinear form ( , )(\ ,\ ) taking values in Z\mathbb{Z}. In a basis e1,…,ene_1,\ldots,e_n of Λ\Lambda, the Gram matrix is G=((ei,ej))G = ((e_i,e_j)) and the determinant is det⁡Λ=det⁡G\det\Lambda= \det G. Write QF(z)=zTFzQ_F(z) = z^{T}Fz for any symmetric matrix FF. The norm Q(u)=(u,u)Q(u) = (u,u) equals QG(z)Q_G(z) for the coordinate column zz of $u.

We say that a lattice LL represents a lattice Λ\Lambda if there exists an isometric embedding Λ↪L\Lambda\hookrightarrow L (not necessarily primitive). We identify a lattice in a chosen basis with its Gram matrix. Thus LL represents GG precisely when LL contains vectors with Gram matrix GG. A lattice is nn-universal if it represents every lattice of rank nn; it then represents every lattice of rank r<nr<n because adjoining n−rn-r orthogonal vectors of norm 1 gives a lattice of rank nn.

We write ⟨a1,…,an⟩\langle a_1,\ldots,a_n\rangle for the lattice with diagonal Gram matrix diag⁡(a1,…,an)\operatorname{diag}(a_1,\ldots,a_n) and ⊥\perp for orthogonal sum. Thus In=⟨1,…,1⟩I_n = \langle1,\ldots,1\rangle is Zn\mathbb{Z}^n with the usual dot product. We use the root lattices AnA_n, E6E_6, E7E_7, and E8E_8, normalized so that their roots have norm 2 (see [1]). In particular, the lattice AnA_n is the sublattice of In+1I_{n+1} comprising the vectors whose coordinates sum to 0.

Kim, Kim, and Oh [7 Theorem 3] recorded the least rank uZ(n)u_{\mathbb{Z}}(n) of an nn-universal lattice for n≤10n \le10. 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 nn-universal lattices for 2≤n≤82 \le n \le8. The question of nn-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 22-universal Z\mathbb{Z}-lattices of rank uZ(2)=5u_{\mathbb{Z}}(2)=5 up to isometry. They are:

⟨1,1,1,1,1⟩\langle1,1,1,1,1\rangle, ⟨1,1,1,1,2⟩\langle1,1,1,1,2\rangle, ⟨1,1,1,1,3⟩\langle1,1,1,1,3\rangle, ⟨1,1,1,2,2⟩\langle1,1,1,2,2\rangle, ⟨1,1,1,2,3⟩\langle1,1,1,2,3\rangle,

⟨1,1,1⟩⊥[2,1,2]\langle1,1,1\rangle\perp[2,1,2], ⟨1,1,1⟩⊥[2,1,3]\langle1,1,1\rangle\perp[2,1,3], ⟨1,1,2⟩⊥[2,1,2]\langle1,1,2\rangle\perp[2,1,2], ⟨1,1,3⟩⊥[2,1,2]\langle1,1,3\rangle\perp[2,1,2],

⟨1,1⟩⊥[2,1,2,1,2]\langle1,1\rangle\perp[2,1,2,1,2], ⟨1,1⟩⊥[2,1,2,1,3]\langle1,1\rangle\perp[2,1,2,1,3],

where [a,b,c][a,b,c] is shorthand for (abbc)\begin{pmatrix}a&b\\b&c\end{pmatrix} and [a,b,c,d,e][a,b,c,d,e] is shorthand for (ab0bcd0de)\begin{pmatrix}a&b&0\\b&c&d\\0&d&e\end{pmatrix}.

(2) There are nine 33-universal Z\mathbb{Z}-lattices of rank uZ(3)=6u_{\mathbb{Z}}(3)=6 found so far, and there can be at most two more [indicated by stars]. They are:

I6I_6, I5⊥A1I_5 \perp A_1, I5⊥⟨3⟩I_5 \perp\langle3\rangle, I4⊥A1⊥A1I_4 \perp A_1 \perp A_1, I4⊥A2I_4 \perp A_2, I4⊥A1[12]I_4 \perp A_1\left[ \frac{1}{2} \right],

I3⊥A3I_3 \perp A_3, I3⊥A2[13]I_3 \perp A_2\left[ \frac{1}{3} \right], I4⊥A1⊥⟨3⟩I_4 \perp A_1 \perp\langle3\rangle, I3⊥A1⊥A2∗I_3 \perp A_1 \perp A_2^{*}, I3⊥A2⊥⟨3⟩∗I_3 \perp A_2 \perp\langle3\rangle^{*},

where the brackets in this list indicate glue-vector parameters (see [1]).

(3) There are exactly three 44-universal Z\mathbb{Z}-lattices of rank uZ(4)=7u_{\mathbb{Z}}(4)=7. They are:

I7I_7, I6⊥A1I_6 \perp A_1, I5⊥A2I_5 \perp A_2.

(4) There are two 55-universal Z\mathbb{Z}-lattices of rank uZ(5)=8u_{\mathbb{Z}}(5)=8 found so far, and there can be at most one more [indicated by a star]. They are:

I8I_8, I7⊥A1I_7 \perp A_1, I6⊥A2∗I_6 \perp A_2^{*}.

(5) There are exactly two 66-universal Z\mathbb{Z}-lattices of rank uZ(6)=13u_{\mathbb{Z}}(6)=13. They are:

I6⊥E7I_6 \perp E_7, I7⊥E6I_7 \perp E_6.

(6) There are exactly three 77-universal Z\mathbb{Z}-lattices of rank uZ(7)=15u_{\mathbb{Z}}(7)=15. They are:

I7⊥E8I_7 \perp E_8, I8⊥E7I_8 \perp E_7, I7⊥E7[12]I_7 \perp E_7\left[ \frac{1}{2} \right].

(7) I8⊥E8I_8 \perp E_8 is the only 88-universal Z\mathbb{Z}-lattice of rank uZ(8)=16u_{\mathbb{Z}}(8)=16.

Each of the starred candidates is locally nn-universal [7], meaning that it represents all nonsingular integral lattices of rank nn over Zp\mathbb{Z}_p for every prime pp. 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) I3⊥A1⊥A2I_3 \perp A_1 \perp A_2 is 33-universal.

(ii) I3⊥A2⊥⟨3⟩I_3 \perp A_2 \perp\langle3\rangle is 33-universal.

(iii) I6⊥A2I_6 \perp A_2 is not 55-universal.

Theorems 1.1 and 1.2 together imply that there are exactly eleven 33-universal lattices of rank 6 and two 55-universal lattices of rank 8, up to isometry.

Strategy of the proof. Let L6=I3⊥A1⊥A2L_6 = I_3 \perp A_1 \perp A_2 and L9=I3⊥A2⊥⟨3⟩L_9 = I_3 \perp A_2 \perp\langle3\rangle. 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 L6=K3⊥⟨2⟩L_6 = K_3 \perp\langle2\rangle and L9=K9⊥⟨1⟩L_9 = K_9 \perp\langle1\rangle, where the quinary lattice KjK_j has determinant jj and class number 1. In either case write L=Kj⊥ZvL = K_j \perp\mathbb{Z}v and put s=Q(v)s = Q(v).

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 ⟨1⟩⊥M\langle1\rangle\perp M with MM binary—and in LL the orthogonal complement of a coordinate vector of I3I_3 is 2-universal by Theorem 1.1(1). It therefore suffices to treat maximal ternary lattices of minimum at least 2.

Let GG be the Gram matrix of such a lattice. We choose the coefficients λ=(x,y,k)T\lambda= (x,y,k)^{\mathsf T} along vv and seek vectors in KjK_j with Gram matrix C=G−sλλTC = G - s\lambda\lambda^{\mathsf T}. It suffices to make CC positive definite and represented by KjK_j over every Zp\mathbb{Z}_p.

For p=2,3p = 2, 3, we certify local representation of CC using three vectors in Kj⊗ZpK_j \otimes\mathbb{Z}_p that are linearly independent modulo pp and whose Gram matrix FF satisfies QF≡QCQ_F \equiv Q_C coefficientwise modulo 8 at 2 or modulo 9 at 3. We use classes of (x,y,k)(x,y,k) modulo pp for which every integral lift admits three such vectors. Certificate 4.1 chooses xx and prescribes, at each prime, a congruence for yy and, once yy is fixed, a congruence for kk. Each congruence has modulus pp or 1; the Chinese remainder theorem then combines the congruences at 2 and 3 into an arithmetic progression y0+hZy_0 + h\mathbb{Z} for yy and, for each such yy, an arithmetic progression k0(y)+mZk_0(y) + m\mathbb{Z} for kk, with h,m∣6h,m \mid6.

In a basis reduced as in § 3, positive definiteness of CC restricts yy to a real interval and, once yy is chosen, kk to another. Taking y∈y0+hZy \in y_0 + h\mathbb{Z} and k∈k0(y)+mZk \in k_0(y) + m\mathbb{Z} ensures that KjK_j represents CC over Z2\mathbb{Z}_2 and Z3\mathbb{Z}_3. If the intervals are sufficiently long, then we can choose terms of these two arithmetic progressions for which Kj⊗ZpK_j \otimes\mathbb{Z}_p also represents CC at every prime p≥5p \ge5. For any such maximal lattice that could still fail to embed in LL over Z\mathbb{Z}, Certificate 4.2 bounds the first diagonal entry and the determinant of the leading 2×22 \times2 block of the Gram matrix GG 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 (x,y)(x,y) such that, for every maximal ternary lattice having that block in a reduced basis, some kk makes CC positive definite and represented by KjK_j over every Zp\mathbb{Z}_p. For the other blocks, bounds on det⁡G\det G in each congruence class of the last column leave finitely many matrices GG. For each, the certificate records a λ\lambda for which CG(λ)=G−sλλTC_G(\lambda) = G - s\lambda\lambda^{\mathsf T} is positive definite and represented by KjK_j over every Zp\mathbb{Z}_p.

Thus for each remaining reduced Gram matrix GG a single λ\lambda gives a matrix CC represented by KjK_j over R\mathbb{R} and every Zp\mathbb{Z}_p. Since KjK_j has class number 1, it represents CC over Z\mathbb{Z} as well, say by vectors u1,u2,u3u_1,u_2,u_3. The vectors ui+λivu_i+\lambda_i v in LL then have Gram matrix GG, 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 I6⊥A2I_6 \perp A_2. In a putative embedding, the prescribed pairings force the first three basis images to occupy four coordinates of I6I_6. The projections of the last two images onto the remaining I2I_2 would then have nonsquare Gram determinant—contradicting the identity det⁡(XTX)=(det⁡X)2\det(X^{\mathsf T}X)=(\det X)^2 for their 2×22 \times2 integer coordinate matrix XX.

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 L∈{L6,L9}L \in\{L_6,L_9\} and let Λ\Lambda denote the ternary lattice we seek to embed in LL. Write L=Kj⊥ZvL = K_j \perp\mathbb{Z}v with s=Q(v)s = Q(v). The index jj is the determinant of the quinary summand KjK_j, and jsjs is the determinant of LL. Explicitly,

L6=K3⊥⟨2⟩,K3=I3⊥A2,L9=K9⊥⟨1⟩,K9=I2⊥A2⊥⟨3⟩.(1)\begin{aligned} L_6 &= K_3 \perp\langle2\rangle, & K_3 &= I_3 \perp A_2,\\ L_9 &= K_9 \perp\langle1\rangle, & K_9 &= I_2 \perp A_2 \perp\langle3\rangle. \tag*{(1)} \end{aligned}

For any lattice NN, put Np=N⊗ZZpN_p=N\otimes_{\mathbb{Z}}\mathbb{Z}_p. In particular Kj,p=(Kj)pK_{j,p}=(K_j)_p. Write Fp=Z/pZ\mathbb{F}_p=\mathbb{Z}/p\mathbb{Z}. For pp-adic entries, congruence modulo pep^e means equality in Zp/peZp\mathbb{Z}_p/p^e\mathbb{Z}_p.

An integral overlattice of Λ\Lambda is a lattice in Λ⊗Q\Lambda\otimes\mathbb{Q} containing Λ\Lambda with finite index and having integral pairings. A lattice is maximal if it has no proper integral overlattice. An overlattice of index dd has determinant det⁡Λ/d2\det\Lambda/d^2, so every ternary lattice Λ\Lambda lies in a maximal integral overlattice, and an embedding of the latter restricts to Λ\Lambda.

Let Λ\Lambda be an arbitrary maximal ternary lattice. Fix a basis e1,e2,e3e_1,e_2,e_3 of Λ\Lambda and let GG be its Gram matrix in this basis. For a proposed embedding Λ↪L\Lambda\hookrightarrow L, the coefficient along vv is a linear form Λ→Z\Lambda\to\mathbb{Z}. Let λ=(x,y,k)T\lambda=(x,y,k)^{\mathsf{T}} be the column of its values on the basis. The proposed images ei↦ui+λive_i\mapsto u_i+\lambda_i v have Gram matrix GG precisely when their components ui∈Kju_i\in K_j have Gram matrix

C=CG(λ):=G−sλλT.(2)C=C_G(\lambda):=G-s\lambda\lambda^{\mathsf{T}}. \tag*{(2)}

The following lemma gives a sufficient condition for LL to represent GG in terms of C=CG(λ)C=C_G(\lambda) for a single λ∈Z3\lambda\in\mathbb{Z}^3. Part (a) is the local–global step; it uses that KjK_j has class number 1. Part (b) makes the local condition at primes p≥5p\geq5 checkable over Fp\mathbb{F}_p: there Kj,pK_{j,p} is unimodular, and it suffices for the reduction of QCQ_C to represent jj. The primes p=2,3p=2,3 are handled by Lemma 2.2 below.

Lemma 2.1. Let λ∈Z3\lambda\in\mathbb{Z}^3 and C=CG(λ)C=C_G(\lambda) as in (2).

(a) If CC is positive definite and Kj,pK_{j,p} represents CC for every prime pp, then LL represents GG.

(b) Let p≥5p\geq5. If C mod pC\bmod p has rank at least 2, then QC mod pQ_C\bmod p represents jj over Fp\mathbb{F}_p. Whenever QC mod pQ_C\bmod p represents jj, the lattice Kj,pK_{j,p} represents $C.

Proof. (a) The genus of KjK_j consists of the lattices NN with N⊗R≅Kj⊗RN\otimes\mathbb{R}\cong K_j\otimes\mathbb{R} and Np≅Kj,pN_p\cong K_{j,p} for every prime pp; 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 K3K_3 and K9K_9 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 CC is positive definite, Kj⊗RK_j\otimes\mathbb{R} represents CC, and by hypothesis Kj,pK_{j,p} represents CC for every prime pp. Hence some lattice in the genus of KjK_j represents CC over Z\mathbb{Z} [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 KjK_j, so there are u1,u2,u3∈Kju_1,u_2,u_3\in K_j with Gram matrix CC. Since L=Kj⊥ZvL=K_j\perp\mathbb{Z}v and Q(v)=sQ(v)=s, the vectors ui+λiv∈Lu_i+\lambda_i v\in L have Gram matrix C+sλλT=GC+s\lambda\lambda^{\mathsf{T}}=G.

(b) Since p≥5p\geq5 and j∈{3,9}j\in\{3,9\}, jj is a unit in Zp\mathbb{Z}_p, so Kj,pK_{j,p} is unimodular, i.e., its determinant is a unit. Let HH be the hyperbolic plane, with Gram matrix (0110)\begin{pmatrix}0&1\\1&0\end{pmatrix}. It represents every d∈Zpd\in\mathbb{Z}_p, since (1,d/2)(1,d/2) has norm dd.

Structure of Kj,pK_{j,p}. For odd pp, a unimodular Zp\mathbb{Z}_p-lattice of rank at least 3 splits off a copy of HH [19 Theorem 5.26]. Applying this twice to the rank-5 lattice Kj,pK_{j,p} gives Kj,p≅H⊥H⊥⟨ε⟩K_{j,p}\cong H\perp H\perp\langle\varepsilon\rangle. Comparing determinants, with det⁡H=−1\det H=-1, gives ε=ju2\varepsilon=ju^2 for some u∈Zp×u\in\mathbb{Z}_p^\times, so ⟨ε⟩\langle\varepsilon\rangle contains a vector of norm jj.

Structure of CC. Choose z∈Zp3z\in\mathbb{Z}_p^3 with QC(z)=j(modp)Q_C(z)=j\pmod p. Then QC(z)/j∈1+pZpQ_C(z)/j\in1+p\mathbb{Z}_p is a square in Zp\mathbb{Z}_p, and rescaling zz gives QC(z)=jQ_C(z)=j. Because jj is a unit, the projection w↦w−wTCzjzw\mapsto w-\frac{w^{\mathsf{T}}Cz}{j}z is integral, so M=(Zp3,C)M=(\mathbb{Z}_p^3,C) splits as Zpz⊥M′\mathbb{Z}_p z\perp M' with M′M' binary. As pp is odd, M′M' has an orthogonal basis f1,f2f_1,f_2, of norms d1,d2d_1,d_2, say. The embedding. Send zz to a vector of norm jj in ⟨ε⟩\langle\varepsilon\rangle, and send fif_i to (1,di/2)(1,d_i/2) in the ii-th copy of HH. The images are pairwise orthogonal of norms j,d1,d2j,d_1,d_2, so this is an isometric embedding of MM into Kj,pK_{j,p}.

Finally, if CC mod pp has rank at least 2, then QCQ_C mod pp contains a nonsingular binary subform, which represents every nonzero element of Fp\mathbb{F}_p [19 Corollary 2.8] (also [9 §1.3]); in particular it represents j≠0j \ne0 (mod pp). □\square

Call Λ\Lambda maximal at pp if Λp\Lambda_p has no proper integral Zp\mathbb{Z}_p-overlattice. To check maximality over Z\mathbb{Z}, it suffices to exclude overlattices of prime index. Over Z\mathbb{Z} or Zp\mathbb{Z}_p, an overlattice of index pp is generated by adjoining z/pz/p in basis coordinates, where z≠0z \ne0 (mod pp). The pairings with the basis vectors and the norm of z/pz/p are integral precisely when

Gz≡0(modp),QG(z)≡0(modp2).(3)Gz \equiv0 \pmod p,\qquad Q_G(z) \equiv0 \pmod{p^2}. \tag*{(3)}

Once the first congruence holds, the second depends only on zz mod pp. An integer representative of a nonzero pp-adic solution modulo pp therefore satisfies both congruences. Thus maximality over Z\mathbb{Z} is equivalent to maximality at every pp. For odd pp, maximality implies G≠0G \ne0 (mod pp). Otherwise (G/p)(G/p) mod pp 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 Fp\mathbb{F}_p. In either case an integral lift satisfies (3).

At 2, an integral overlattice of index 2 implies 4∣det⁡G4 \mid\det G. Conversely, suppose 4∣det⁡G4 \mid\det G. On ker⁡(G mod 2)\ker(G\text{ mod }2), the map z↦QG(z)/2 mod 2z \mapsto Q_G(z)/2\text{ mod }2 is independent of the lift by (3) and linear, since zTGwz^{\mathsf{T}}Gw is even there. If the kernel of GG mod 2 has dimension at least 2, this linear form vanishes on a nonzero vector. If it has dimension 1, lift a generator to zz and take it last in a Z2\mathbb{Z}_2-basis. Modulo 2 the first two vectors span a complement to the radical, so their Gram determinant is odd. Their pairings with zz are even. The full determinant is therefore congruent modulo 4 to that odd determinant times QG(z)Q_G(z), giving 4∣QG(z)4 \mid Q_G(z). In both cases a nonzero class satisfies (3). This proves that maximality over Z2\mathbb{Z}_2 is equivalent to 4∤det⁡G4 \nmid\det G.

Table 1 gives diagonal Gram matrices for Kj,pK_{j,p} at p=2,3p=2,3. Let α1,α2\alpha_1,\alpha_2 be simple roots of A2A_2, with (α1,α2)=−1(\alpha_1,\alpha_2)=-1. The orthogonal vectors α1,α1+2α2\alpha_1,\alpha_1+2\alpha_2 have norms 2, 6 and span a sublattice of index 2. They form a basis over Z3\mathbb{Z}_3. If ee has norm 1 and is orthogonal to A2A_2, e+α1,e+α2,e−α1−α2e+\alpha_1,e+\alpha_2,e-\alpha_1-\alpha_2 are orthogonal of norm 3. They span a sublattice of index 3 in Ze⊥A2\mathbb{Z}e\perp A_2, hence form a basis over Z2\mathbb{Z}_2.

ppK3,pK_{3,p}K9,pK_{9,p}
2diag⁡(1,1,3,3,3)\operatorname{diag}(1,1,3,3,3)diag⁡(1,3,3,3,3)\operatorname{diag}(1,3,3,3,3)
3diag⁡(1,1,1,2,6)\operatorname{diag}(1,1,1,2,6)diag⁡(1,1,2,3,6)\operatorname{diag}(1,1,2,3,6)

Table 1. Diagonal Gram matrices of K3,pK_{3,p} and K9,pK_{9,p} for p=2,3p=2,3

For p=2,3p=2,3 and a symmetric 3×33 \times3 matrix FF over Zp\mathbb{Z}_p, let [F]p[F]_p 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 [G]p[G]_p, the class [G]p[G]_p determines whether the lattice is maximal at pp.

We say that NN primitively represents MM if there exists an isometric embedding ι:M↪N\iota:M\hookrightarrow N for which N/ι(M)N/\iota(M) is torsion-free.

Lemma 2.2. Let p=2p=2 or 3, and let JJ be the Gram matrix of Kj,pK_{j,p} in Table 1. If XX is a $5\times3$ matrix over Zp\mathbb{Z}_p of rank 3 modulo pp and [XTJX]p=[C]p[X^{\mathsf{T}}JX]_p=[C]_p, then Kj,pK_{j,p} primitively represents $C.

Proof. Extend the columns of XX to a basis of Zp5\mathbb{Z}_p^5 and replace the leading Gram block XTJXX^{\mathsf{T}}JX in this basis by CC. In the original basis write the modified Gram matrix as J+EJ+E, so that XT(J+E)X=CX^{T}(J+E)X=C. In the extended basis the coefficients of the change in the quadratic form belong to 8Z28\mathbb{Z}_2 or 9Z39\mathbb{Z}_3, respectively. This divisibility is preserved on returning to the original basis. Thus at 2 the diagonal entries of EE belong to 8Z28\mathbb{Z}_2 and the off-diagonal entries to 4Z24\mathbb{Z}_2. At 3 all entries of EE belong to 9Z39\mathbb{Z}_3.

Starting with M=J+EM=J+E in the original basis, we orthogonalize in the diagonal order of JJ. At step ii, keep the original indices on the remaining block MM, put d=Miid=M_{ii}, and subtract Miℓ/dM_{i\ell}/d times basis vector ii from each vector ℓ>i\ell>i. This changes MkℓM_{k\ell} for k,ℓ>ik,\ell>i by −MkiMiℓ/d-M_{ki}M_{i\ell}/d. At 2, dd is odd and this correction belongs to 16Z216\mathbb{Z}_2. At 3, d≡Jii(mod9)d\equiv J_{ii}\pmod{9} has valuation at most 1 and the correction belongs to 27Z327\mathbb{Z}_3. In each case the basis change is integral and preserves the congruences on the remaining block.

The ratio of the ii-th diagonal entry to JiiJ_{ii} lies in 1+8Z21+8\mathbb{Z}_2 or 1+3Z31+3\mathbb{Z}_3, respectively, so it equals ui2u_i^2 for some ui∈Zp×u_i\in\mathbb{Z}_p^\times. Multiplying the ii-th orthogonal basis vector by ui−1u_i^{-1} gives a basis with Gram matrix JJ. Thus the combined change of basis P∈GL⁡5(Zp)P\in\operatorname{GL}_5(\mathbb{Z}_p) satisfies PT(J+E)P=JP^{T}(J+E)P=J.

In the basis with Gram matrix JJ, the original three columns have coordinates Y=P−1XY=P^{-1}X. Hence YTJY=XT(J+E)X=CY^{T}JY=X^{T}(J+E)X=C. Moreover, P−1P^{-1} takes a Zp\mathbb{Z}_p-basis extending the columns of XX to one extending the columns of YY. Thus YY gives a primitive embedding of the lattice with Gram matrix CC into Kj,pK_{j,p}.

Let Rj,p\mathcal{R}_{j,p} consist of the classes [XTJX]p[X^{T}JX]_p as XX ranges over 5×35\times3 matrices over Zp\mathbb{Z}_p of rank 3 modulo pp. By Lemma 2.2, [C]p∈Rj,p[C]_p\in\mathcal{R}_{j,p} certifies that Kj,pK_{j,p} primitively represents CC. We compute Rj,p\mathcal{R}_{j,p} in Python by enumerating the possible residues of each row of XX in turn, as described in Appendix A.1.

Reduced bases and primes dividing the binary determinant

We take a Hermite–Korkine–Zolotarev reduced basis e1,e2,e3e_1,e_2,e_3 of Λ\Lambda [13 Definition 16] and write its Gram matrix as

G=(abr1bcr2r1r2f)=(BrrTf),δ=det⁡B=ac−b2,D=det⁡G.G=\begin{pmatrix}a&b&r_1\\ b&c&r_2\\ r_1&r_2&f\end{pmatrix}=\begin{pmatrix}B&r\\ r^T&f\end{pmatrix},\qquad\delta=\det B=ac-b^2,\qquad D=\det G.

The Gram–Schmidt vectors of this basis have squared lengths aa, β=δ/a\beta=\delta/a, and γ=D/δ\gamma=D/\delta, respectively. By size reduction and a choice of signs for e2,e3e_2,e_3,

0≤2b≤a,0≤2r1≤a,2∣ar2−br1∣≤δ.0\le2b\le a,\qquad0\le2r_1\le a,\qquad2\lvert ar_2-br_1\rvert\le\delta.

Since e1e_1 is shortest, a≤min⁡(c,f)a\le\min(c,f) and β=c−b2/a≥c−a/4≥3c/4\beta=c-b^2/a\ge c-a/4\ge3c/4. In the lattice projected onto e1⊥e_1^\perp, the projection of e2e_2 is shortest among nonzero vectors. Comparing it with the projection of e3e_3 gives

β≤f−r12/a=γ+β(ar2−br1δ)2≤γ+β/4.\beta\le f-r_1^2/a=\gamma+\beta\left(\frac{ar_2-br_1}{\delta}\right)^2\le\gamma+\beta/4.

Thus we have

a≤c≤4β/3,γ≥3β/4.(4)a\le c\le4\beta/3,\qquad\gamma\ge3\beta/4. \tag*{(4)}

Write λ=(x,y,k)T\lambda=(x,y,k)^T for the coefficients of the linear form in this basis and put α=(x,y)T\alpha=(x,y)^T and μ=αTB−1r\mu=\alpha^TB^{-1}r. Positive definiteness of C=G−sλλTC=G-s\lambda\lambda^T is equivalent to sλTG−1λ<1s\lambda^TG^{-1}\lambda<1. Completing squares gives

sλTG−1λ=s(x2a+(y−bx/a)2β+(k−μ)2γ).(5)s\lambda^TG^{-1}\lambda=s\left(\frac{x^2}{a}+\frac{(y-bx/a)^2}{\beta}+\frac{(k-\mu)^2}{\gamma}\right). \tag*{(5)}

For fixed x,yx,y, the leading block B′=B−sααTB'=B-s\alpha\alpha^{\mathsf T} has determinant Δ=δ(1−sαTB−1α)\Delta=\delta(1-s\alpha^{\mathsf T}B^{-1}\alpha). Thus B′B' is positive definite (written B′>0B'>0) precisely when Δ>0\Delta>0. The determinant of the full matrix is

det⁡C=DΔδ−sδ(k−μ)2.\det C=\frac{D\Delta}{\delta}-s\delta(k-\mu)^2.

By Sylvester’s criterion [5 Theorem 7.2.5(b)], CC is positive definite precisely when B′>0B'>0 and det⁡C>0\det C>0. When Δ>0\Delta>0, the formula for det⁡C\det C shows that det⁡C>0\det C>0 precisely when kk lies in the open interval

I(α)=(μ−θ, μ+θ),θ=DΔsδ2=γΔsδ.I(\alpha)=(\mu-\theta,\ \mu+\theta),\qquad\theta=\sqrt{\frac{D\Delta}{s\delta^2}}=\sqrt{\frac{\gamma\Delta}{s\delta}}.

This yields an upper bound on DD when LL fails to represent Λ\Lambda. Fix α\alpha with Δ>0\Delta>0 and an arithmetic progression k0+mZk_0+m\mathbb{Z} with k0∈Zk_0\in\mathbb{Z} and m∈Z>0m\in\mathbb{Z}_{>0}, and suppose there is an integer g≥1g\geq1 such that any gg consecutive terms of the progression include a kk for which Kj,pK_{j,p} represents CG((x,y,k)T)C_{G}((x,y,k)^{\mathsf T}) at every prime pp. If θ>mg/2\theta>mg/2, then I(α)I(\alpha) contains a closed interval of length mgmg, hence gg consecutive terms of k0+mZk_0+m\mathbb{Z}, hence such a kk. For this kk the matrix CC is positive definite, and Lemma 2.1(a) shows that LL represents GG. Consequently, if LL fails to represent Λ\Lambda, then θ≤mg/2\theta\leq mg/2, that is, γ≤sδ(mg)2/(4Δ)\gamma\leq s\delta(mg)^2/(4\Delta). Since D=δγD=\delta\gamma, we have

D≤sδ2(mg)24Δ(6)D\leq\frac{s\delta^2(mg)^2}{4\Delta} \tag*{(6)}

for every such choice of α\alpha, k0+mZk_0+m\mathbb{Z}, and gg.

Lemma 3.1. Fix p≥5p\geq5 with G≢0(modp)G\not\equiv0\pmod{p}, and fix α=(x,y)T\alpha=(x,y)^{\mathsf T}. If p∤Δp\nmid\Delta, then CC has rank at least 2 modulo pp for every kk. If p∣Δp\mid\Delta and (B,α)≠(0,0)(modp)(B,\alpha)\ne(0,0)\pmod p, the integers kk for which CC mod pp has rank at most 1 lie in at most two residue classes modulo pp. At most one such class occurs if, in addition, p∤δp\nmid\delta, B≡0(modp)B\equiv0\pmod p, or B′≡0(modp)B'\equiv0\pmod p.

Proof. We work over Fp\mathbb{F}_p. If B′B' is nonsingular, then it already gives rank at least 2. Now suppose B′B' is singular and (B,α)≠(0,0)(B,\alpha)\ne(0,0). For z∈Fp2z\in\mathbb{F}_p^2 put α(z)=αTz\alpha(z)=\alpha^{\mathsf T}z and r(z)=rTzr(z)=r^{\mathsf T}z. If CC has rank at most 1, then the Gram determinant of (z1,z2,0)T(z_1,z_2,0)^{\mathsf T} and (0,0,1)T(0,0,1)^{\mathsf T} for the form CC mod pp vanishes. Thus

(QB(z)−sα(z)2)(f−sk2)−(r(z)−skα(z))2=0.\left(Q_B(z)-s\alpha(z)^2\right)(f-sk^2)-\left(r(z)-sk\alpha(z)\right)^2=0.

For B≠0B\ne0 choose zz with QB(z)≠0Q_B(z)\ne0. The coefficient of k2k^2 is −sQB(z)≠0-sQ_B(z)\ne0, giving at most two roots. For B=0B=0 we have α≠0\alpha\ne0. If r≠0r\ne0, choose zz outside the union of ker⁡α\ker\alpha and ker⁡r\ker r, which has at most 2p−1<p22p-1<p^2 elements. The equation is then linear with nonzero coefficient 2sα(z)r(z)2s\alpha(z)r(z). If r=0r=0, then f≠0f\ne0 and any zz with α(z)≠0\alpha(z)\ne0 makes the left side nonzero.

Finally, for z∈ker⁡B′z\in\ker B' the equation reduces to r(z)=skα(z)r(z)=sk\alpha(z). If BB is nonsingular, every nonzero z∈ker⁡B′z\in\ker B' has α(z)≠0\alpha(z)\ne0 because B=B′+sααTB=B'+s\alpha\alpha^{\mathsf T}. If B′=0B'=0, then α≠0\alpha\ne0 and we may again choose zz with α(z)≠0\alpha(z)\ne0. In either case the equation determines kk uniquely in Fp\mathbb{F}_p whenever CC mod pp 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 LL represents every maximal ternary lattice Λ\Lambda. If Λ\Lambda contains a vector ee of norm 1, then Λ=Ze⊥M\Lambda=\mathbb{Z}e\perp M for a binary lattice MM. The orthogonal complement of a coordinate vector of I3I_3 is ⟨1,2⟩⊥A2\langle1,2\rangle\perp A_2 in L6L_6 and ⟨1,1,3⟩⊥A2\langle1,1,3\rangle\perp A_2 in L9L_9. Both complements represent every binary lattice by Theorem 1.1(1), since ⟨2,1,2⟩≅A2\langle2,1,2\rangle\cong A_2. Sending ee to the coordinate vector and embedding MM in its complement shows that LL represents Λ\Lambda. Thus any maximal ternary lattice that LL fails to represent has minimum (least nonzero norm) at least 2. We call such a non-represented lattice an exception for LL.

We may therefore take Λ\Lambda to have minimum a≥2a \ge2. In a Hermite–Korkine–Zolotarev reduced basis with the signs chosen as in § 3, its Gram matrix GG has G11=aG_{11}=a. Prescribing λ=(x,y,k)T\lambda=(x,y,k)^{\mathsf{T}} fixes the coefficients of the three basis images along vv. Their components in KjK_j must then have Gram matrix CG(λ)=G−sλλTC_G(\lambda)=G-s\lambda\lambda^{\mathsf{T}}.

For p=2,3p=2,3, we check whether [CG(λ)]p∈Rj,p[C_G(\lambda)]_p\in\mathcal{R}_{j,p}. Membership means that three vectors of Kj,pK_{j,p}, linearly independent modulo pp, have a Gram matrix FF satisfying the following congruences:

  • At 22, the diagonal entries of FF and CG(λ)C_G(\lambda) agree modulo 88 and the off-diagonal entries agree modulo 44.

  • At 33, all corresponding entries agree modulo 99.

These are the coefficientwise congruences of the norm polynomials modulo 88 and 99, respectively, since each mixed coefficient is twice the corresponding Gram entry. Lemma 2.2 then gives a primitive representation of CG(λ)C_G(\lambda) over Zp\mathbb{Z}_p by Kj,pK_{j,p}.

Different integral lifts of a coefficient class λˉ∈Fp3\bar{\lambda}\in\mathbb{F}_p^3 can give different Gram classes [CG(λ)]p[C_G(\lambda)]_p. To ensure primitive representation for every lift, we use the following set for σ=[G]p\sigma=[G]_p.

Uj,p(σ)={λˉ∈Fp3:[CG(λ)]p∈Rj,p for every integral lift λ of λˉ}.\mathcal{U}_{j,p}(\sigma)=\left\{\bar{\lambda}\in\mathbb{F}_p^3:[C_G(\lambda)]_p\in\mathcal{R}_{j,p}\text{ for every integral lift }\lambda\text{ of }\bar{\lambda}\right\}.

For example, take L=L9L=L_9, G=diag⁡(2,3,5)G=\operatorname{diag}(2,3,5) and x=1x=1. Then (1,y,k)T mod 2(1,y,k)^{\mathsf{T}}\bmod2 belongs to U9,2([G]2)\mathcal{U}_{9,2}([G]_2) exactly when k≡1−y(mod2)k\equiv1-y\pmod2, and (1,y,k)T mod 3(1,y,k)^{\mathsf{T}}\bmod3 belongs to U9,3([G]3)\mathcal{U}_{9,3}([G]_3) for every y,ky,k. We may therefore take any y∈Zy\in\mathbb{Z} and then any k∈1−y+2Zk\in1-y+2\mathbb{Z}. The arithmetic progressions for yy and kk have common differences 11 and 22, respectively.

For p=2,3p=2,3, let σp\sigma_p range over the classes [G]p[G]_p of maximal ternary Zp\mathbb{Z}_p-lattices. Fix (σ2,σ3)(\sigma_2,\sigma_3) and x∈{0,1,2,3,6}x\in\{0,1,2,3,6\}. At each prime pp, we use Uj,p(σp)\mathcal{U}_{j,p}(\sigma_p) to compute congruences for yy and, once yy is fixed, for kk (Appendix A.§ 2). Their moduli hph_p and mpm_p each belong to {1,p}\{1,p\}. The Chinese remainder theorem combines the congruences at 22 and 33, giving h=h2h3h=h_2h_3 and m=m2m3m=m_2m_3. For each resulting triple (x,h,m)(x,h,m) there is an arithmetic progression y0+hZy_0+h\mathbb{Z} for yy and, for each yy in it, an arithmetic progression k0(y)+mZk_0(y)+m\mathbb{Z} for kk such that

(x,y,k)T mod p∈Uj,p(σp)(p=2,3)(7)(x,y,k)^{\mathsf{T}}\bmod p\in\mathcal{U}_{j,p}(\sigma_p)\qquad(p=2,3) \tag*{(7)}

for every k∈k0(y)+mZk\in k_0(y)+m\mathbb{Z}.

We impose two further restrictions on the triples (x,h,m)(x,h,m). First, we require sx2<asx^2<a, so the entry a−sx2a-sx^2 of CC is positive, which is necessary for CC to be positive definite. Second, suppose x=0x=0, so that α=(0,y)T\alpha=(0,y)^{\mathsf{T}}. The argument below needs α≢0(modp)\alpha\not\equiv0\pmod p for every prime p≥5p\ge5, and it is convenient to have ∣y∣≤6|y|\le6. We therefore take yy to be a signed divisor of 6, i.e., y∈{±1,±2,±3,±6}y\in\{\pm1,\pm2,\pm3,\pm6\}. At primes p≥5p\ge5 dividing aa but not cc, we need to control the entry c−sy2c-sy^2 of B′B'. The certificate must choose hh uniformly in the second diagonal entry cc. We say that hh satisfies the signed-divisor condition (for LL and aa) if, for every integer c∗∈Zc_*\in\mathbb{Z}, there is a signed divisor yy of 66 with y≡y0(modh)y\equiv y_0\pmod h such that, for every prime p≥5p\ge5 with p∣ap\mid a and p∤c∗p\nmid c_*,

c∗−sy2≡0(modp)orc∗−sy2 mod p∈j(Fp×)2.c_*-sy^2\equiv0\pmod p\qquad\text{or}\qquad c_*-sy^2\bmod p\in j(\mathbb{F}_p^\times)^2.

Here j(Fp×)2j(\mathbb{F}_p^\times)^2 is the square class of jj in Fp×\mathbb{F}_p^\times. The condition depends on c∗c_* only modulo the product of the primes p≥5p\ge5 dividing aa, so it is a finite check. When x=0x=0, we require that hh satisfy this condition and that a≤72a\le72. For a≥73a\ge73, only x>0x>0 is allowed, and sx2≤72<asx^2\le72<a for every such choice. Thus for a≥73a\ge73 the eligible pairs (σ2,σ3)(\sigma_2,\sigma_3) and the triples available to each pair depend on aa only through a mod 12a\bmod12 (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 L∈{L6,L9}L \in\{L_6,L_9\} and an integer a≥2a \ge2, the prescribed first diagonal entry G11=Q(e1)G_{11}=Q(e_1) in the reduced basis of § 3. For p=2,3p=2,3, let σp\sigma_p be the Gram class of a maximal ternary Zp\mathbb{Z}_p-lattice. Assume that the first diagonal entries of σ2\sigma_2 and σ3\sigma_3 are congruent to aa modulo 44 and 33, respectively. For each such pair (σ2,σ3)(\sigma_2,\sigma_3) there are x∈{0,1,2,3,6}x \in\{0,1,2,3,6\} and positive divisors h,mh,m of 66 with the following property:

There is an arithmetic progression y0+hZy_0+h\mathbb{Z} such that, for each yy in it, (7) holds for every kk in an arithmetic progression k0(y)+mZk_0(y)+m\mathbb{Z}.

Moreover, sx2<asx^2<a and, if x=0x=0, then a≤72a\le72 and hh satisfies the signed-divisor condition.

For every maximal ternary lattice with Gram matrix GG and G11=aG_{11}=a, the pair ([G]2,[G]3)([G]_2,[G]_3) satisfies these congruences. Other pairs may satisfy them as well.

Choosing yy. Fix a triple (x,h,m)(x,h,m) for ([G]2,[G]3)([G]_2,[G]_3) from Certificate 4.1. We seek y∈y0+hZy \in y_0+h\mathbb{Z} near bx/abx/a to keep the second term of (5) small enough for the leading block B′B' to be positive definite. The choice of yy must also ensure that, at each prime p≥5p\ge5 dividing det⁡B′\det B', the form C mod pC \bmod p represents jj for all kk outside at most one residue class modulo pp.

Let q1<q2<⋯q_1<q_2<\cdots be the primes at least 55, put Pt=q1⋯qtP_t=q_1\cdots q_t with P0=1P_0=1, and choose tt by Pt≤δ<Pt+1P_t\le\delta<P_{t+1}. Every positive integer at most δ\delta has at most tt distinct prime divisors at least 55. The gap bound gtg_t of Appendix A.§ 2 applies to both arithmetic progressions y0+hZy_0+h\mathbb{Z} and k0(y)+mZk_0(y)+m\mathbb{Z}. Given one forbidden residue class modulo each of at most tt primes p≥5p\ge5, any gtg_t consecutive terms of either arithmetic progression contain a term avoiding all the forbidden classes, since h,m∣6h,m\mid6.

To see when a prime p≥5p\ge5 dividing δ=det⁡B\delta=\det B can also divide Δ=det⁡B′\Delta=\det B', use the identity

aΔ=(a−sx2)δ−s(ay−bx)2.(8)a\Delta=(a-sx^2)\delta-s(ay-bx)^2. \tag*{(8)}

For x>0x>0 and each p≥5p\ge5 dividing δ\delta but not aa, exclude y≡bxa−1(modp)y\equiv bxa^{-1}\pmod p. This makes p∤Δp\nmid\Delta. Since h∣6h\mid6, one of the gtg_t terms of y0+hZy_0+h\mathbb{Z} nearest bx/abx/a avoids all these classes. For x=0x=0 apply the signed-divisor condition with c∗=cc_*=c to choose yy in y0+hZy_0+h\mathbb{Z}. Thus ∣y−bx/a∣≤w/2|y-bx/a|\le w/2, where w=hgtw=hg_t for x>0x>0 and w=12w=12 for x=0x=0.

Choosing kk. With x,yx,y fixed, every k∈k0(y)+mZk\in k_0(y)+m\mathbb{Z} gives a matrix CC primitively represented by Kj,2K_{j,2} and Kj,3K_{j,3}, by (7) and Lemma 2.2. We seek a kk in this progression for which CC is positive definite and C mod pC\bmod p represents jj at every prime p≥5p\ge5. Once B′>0B'>0, positive definiteness restricts kk to the interval I(α)I(\alpha) of § 3, centered at μ\mu. Such a kk exists whenever

β>s1−sx2/a(w24+m2gt23).(9)\beta>\frac{s}{1-sx^2/a}\left(\frac{w^2}{4}+\frac{m^2g_t^2}{3}\right). \tag*{(9)}

Since ∣y−bx/a∣≤w/2|y-bx/a|\le w/2, the first two terms in parentheses in (5) sum to less than 1/s1/s. Hence B′>0B'>0 and 0<Δ≤δ0<\Delta\le\delta. For p≥5p\ge5 with p∤Δp\nmid\Delta, the nonsingular block B′B' mod pp already represents jj. For each p≥5p\ge5 dividing Δ\Delta, we shall exclude at most one residue class modulo pp from the choice of kk; for every integer kk outside that class, if any, C mod pC\bmod p represents jj over Fp\mathbb{F}_p.

One of x,yx,y is a signed divisor of 66, so α≢0(modp)\alpha\not\equiv0\pmod p. If p∤δp\nmid\delta, Lemma 3.1 shows that C mod pC\bmod p has rank at least 22 outside at most one residue class modulo pp, and Lemma 2.1(b) gives representation of jj.

If pp divides both δ\delta and Δ\Delta, then (8) gives ay≡bx(modp)ay\equiv bx\pmod p. For x>0x>0 the choice of yy forces p∣ap\mid a. For x=0x=0 the same follows since p∣yp\mid y. Then p∣bp\mid b and Δ≡−sx2c(modp)\Delta\equiv-sx^2c\pmod p. For x>0x>0 this forces p∣cp\mid c. Whenever p∣cp\mid c, we have B≡0(modp)B\equiv0\pmod p, so Lemma 3.1 gives rank at least 22 for C mod pC\bmod p except possibly when kk lies in a single residue class modulo pp.

It remains to consider x=0x=0 and p∤cp\nmid c. Here B′≡diag⁡(0,c−sy2)(modp)B'\equiv\operatorname{diag}(0,c-sy^2)\pmod p. Since p∣ap\mid a and p∤cp\nmid c, the signed-divisor condition with c∗=cc_*=c gives two possibilities for c−sy2c-sy^2 modulo pp. If c−sy2≡0(modp)c-sy^2\equiv0\pmod p, then B′≡0(modp)B'\equiv0\pmod p and Lemma 3.1 gives rank⁡(C mod p)≥2\operatorname{rank}(C\bmod p)\ge2 for all $k outside at most one residue class modulo pp. Otherwise c−sy2=ju2c-sy^2=ju^2 in Fp\mathbb{F}_p for some u∈Fp×u\in\mathbb{F}_p^\times. For every kk, the vector (0,u−1,0)T(0,u^{-1},0)^{\mathsf T} then has norm jj for CC mod pp, so no residue class is excluded.

Since 0<Δ≤δ0<\Delta\le\delta, at most tt primes p≥5p\ge5 divide Δ\Delta. Among the gtg_t terms of k0(y)+mZk_0(y)+m\mathbb{Z} nearest μ\mu, the gap bound gives a kk outside every excluded class. Thus CC mod pp represents jj at every p≥5p\ge5. Moreover, ∣k−μ∣≤mgt/2|k-\mu|\le mg_t/2. Using γ≥3β/4\gamma\ge3\beta/4, we obtain s(k−μ)2/γ≤sm2gt2/(3β)s(k-\mu)^2/\gamma\le sm^2g_t^2/(3\beta). Together with ∣y−bx/a∣≤w/2|y-bx/a|\le w/2, inequality (9) now gives sλTG−1λ<1s\lambda^{\mathsf T}G^{-1}\lambda<1 in (5). Thus CC is positive definite. Lemma 2.1(b) gives representation of CC by Kj,pK_{j,p} at every p≥5p\ge5, and (7) gives it at 2 and 3. Lemma 2.1(a) now gives an embedding Λ↪L\Lambda\hookrightarrow L.

Fix LL, aa, and tt. For each pair (σ2,σ3)(\sigma_2,\sigma_3) 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 Hj(a,t)H_j(a,t) be the largest of these minima. An exception satisfies 3a/4≤β=δ/a≤Hj(a,t)3a/4\le\beta=\delta/a\le H_j(a,t) by (4). Hence Hj(a,t)2≥3δ/4≥3Pt/4H_j(a,t)^2\ge3\delta/4\ge3P_t/4. The estimate in Appendix A.2 rules this out for t≥27t\ge27. For t<27t<27 we compute the endpoints of the determinant intervals in the following certificate.

Certificate 4.2 (Determinant ranges). For a≥2a\ge2 and 0≤t<270\le t<27, the interval

max⁡(Pt,3a2/4)≤δ≤min⁡(Pt+1−1,aHj(a,t))\max(P_t,3a^2/4)\le\delta\le\min(P_{t+1}-1,aH_j(a,t))

contains an integer for 536 pairs (a,t)(a,t) for L6L_6 and 1,136 for L9L_9. The largest aa values in the respective lists of pairs are 494 and 855.

The remaining binary blocks

For the fixed LL, write

Bj=⋃(a,t)Bj(a,t),\mathcal{B}_j=\bigcup_{(a,t)}\mathcal{B}_j(a,t),

where (a,t)(a,t) ranges over the pairs in Certificate 4.2 and Bj(a,t)\mathcal{B}_j(a,t) comprises the integral matrices

B=(abbc)B=\begin{pmatrix}a&b\\b&c\end{pmatrix}

with

0≤2b≤a,c≥a,δ=ac−b20\le2b\le a,\qquad c\ge a,\qquad\delta=ac-b^2

in the corresponding determinant interval.

To enumerate Bj(a,t)\mathcal{B}_j(a,t), we take each integer δ\delta in the interval and each bb with 0≤2b≤a0\le2b\le a, and keep c=(δ+b2)/ac=(\delta+b^2)/a when it is an integer with c≥ac\ge a.

Every exception has its leading block in Bj\mathcal{B}_j: in the reduced basis of Section 3 we have 0≤2b≤a≤c0\le2b\le a\le c, and Section 4.1 places δ\delta in the determinant interval for a=G11a=G_{11} and the tt with Pt≤δ<Pt+1P_t\le\delta<P_{t+1}.

Fix B∈BjB\in\mathcal{B}_j and let tt be the unique index with Pt≤det⁡B<Pt+1P_t\le\det B<P_{t+1}. Write

[B]2=(a mod 8,b mod 4,c mod 8),[B]3=B mod 9.[B]_2=(a\bmod8,b\bmod4,c\bmod8),\qquad[B]_3=B\bmod9.

In the maximum defining Hj(a,t)H_j(a,t), we restrict to pairs of maximal Gram classes (σ2,σ3)(\sigma_2,\sigma_3) with leading blocks [B]2,[B]3[B]_2,[B]_3, respectively. If there is no such pair, then BB cannot occur in a maximal ternary lattice. Otherwise let Hj(B,t)H_j(B,t) be the restricted maximum, so Hj(B,t)≤Hj(a,t)H_j(B,t)\le H_j(a,t). We define Bj∘⊆Bj\mathcal{B}_j^\circ\subseteq\mathcal{B}_j to include BB precisely when Hj(B,t)H_j(B,t) is defined and det⁡B≤aHj(B,t)\det B\le aH_j(B,t). Every exception has its leading block in Bj∘\mathcal{B}_j^\circ by the argument in Section 4.1, since its pair ([G]2,[G]3)([G]_2,[G]_3) is among those in the restricted maximum. Enumerating Bj\mathcal{B}_j and retaining the blocks in Bj∘\mathcal{B}_j^\circ gives 534,827 blocks for L6L_6 and 8,521,181 for L9L_9 (Appendix A.3, Table 4, first row).

L6L_{6}L9L_{9}
Binary blocks in Bj∘\mathcal{B}_{j}^{\circ} of § 4.2534,8278,521,181
Blocks with DD bounded by last-column class8365,147
Blocks with a last-column class of bound ≥D0\ge D_{0}99162
Bounded integral lifts in the surviving classes29,83110,407
Gram matrices tested10,9057,556

Table 4. Counts of binary blocks and ternary completions for L6L_{6} and L9L_{9}

Representing every maximal completion with one pair. Fix B=(abbc)∈Bj∘B=\begin{pmatrix}a&b\\b&c\end{pmatrix}\in\mathcal{B}_j^\circ and write δ=det⁡B=ac−b2\delta=\det B=ac-b^2. A completion of BB is a ternary Gram matrix GG with leading block BB. It is determined by its last column (r1,r2,f)T(r_1,r_2,f)^{\mathsf T}. We seek one pair (x,y)(x,y) such that, for every maximal ternary lattice with a reduced Gram matrix GG completing BB, some integer kk makes CG(λ)C_G(\lambda) positive definite and represented by Kj,pK_{j,p} at every prime, where λ=(x,y,k)T\lambda=(x,y,k)^{\mathsf T}. By Lemma 2.1(a) such a pair rules out BB as the leading block of any exception.

Take α=(x,y)\alpha=(x,y) up to sign with $0\le x\le6$, ∣y∣≤6|y|\le6 and α≠0(modp)\alpha\ne0\pmod p for every p≥5p\ge5. Require Δ=δ−s(cx2−2bxy+ay2)>0\Delta=\delta-s(cx^2-2bxy+ay^2)>0. For p=2,3p=2,3 and each maximal Gram class $\sigma_p=[G]_p with leading block [B]p[B]_p, we seek an arithmetic progression for kk on which Kj,pK_{j,p} primitively represents CG(λ)C_G(\lambda). For this purpose we use the following sufficient local representation conditions, at 2 and 3, respectively,

[CG(λ)]2∈Rj,2,λ mod 3∈Uj,3(σ3).(10)[C_G(\lambda)]_2 \in R_{j,2}, \qquad\lambda\bmod3 \in U_{j,3}(\sigma_3). \tag*{(10)}

At 2, the first inclusion asks whether three vectors of Kj,2K_{j,2} independent modulo 2 have Gram class [CG(λ)]2[C_G(\lambda)]_2. For fixed σ2,x,y\sigma_2,x,y this depends only on kk mod 4. At 3, we prescribe kk only modulo 3, although [CG(λ)]3[C_G(\lambda)]_3 can depend on kk mod 9. The second inclusion therefore requires [CG(λ′)]3∈Rj,3[C_G(\lambda')]_3 \in R_{j,3} for every integral column λ′≡λ(mod3)\lambda' \equiv\lambda\pmod3. By Lemma 2.2, each inclusion in (10) gives the claimed primitive representation over the corresponding Zp\mathbb{Z}_p.

For each σp\sigma_p, take the least positive step of an arithmetic progression all of whose terms satisfy the inclusion at pp. Discard α\alpha if any σp\sigma_p admits no such progression. Otherwise the least steps divide 4 at 2 and 3 at 3, so their maximum mpm_p at each prime is a multiple of every step there. By the Chinese remainder theorem, for each completion GG maximal at both primes there is an arithmetic progression k0+mZk_0+m\mathbb{Z}, with m=m2m3m=m_2m_3, on which both inclusions in (10) hold. Here k0k_0 may depend on GG.

At p≥5p\geq5 dividing Δ\Delta, put νp=2\nu_p=2 if p∣δp\mid\delta and B≢0(modp)B\not\equiv0\pmod p, and νp=1\nu_p=1 otherwise. Maximality gives G≢0(modp)G\not\equiv0\pmod p, so Lemma 3.1 shows that, for each fixed GG, the integers kk for which C mod pC\bmod p has rank at most 1 lie in at most νp\nu_p residue classes modulo pp. Thus LL represents every maximal ternary lattice with leading block

B=(abbc)B=\begin{pmatrix}a&b\\b&c\end{pmatrix}

in a reduced basis if a positive integer gg satisfies

∑p∣Δp≥5νp⌈g/p⌉<g,sa(mg)2<3Δ.(11)\sum_{\substack{p\mid\Delta\\p\geq5}}\nu_p\lceil g/p\rceil< g,\qquad sa(mg)^2<3\Delta. \tag*{(11)}

Indeed, p∤mp\nmid m, so each excluded class removes at most ⌈g/p⌉\lceil g/p\rceil of any gg consecutive terms. The first inequality therefore guarantees a kk among these terms for which C mod pC\bmod p has rank at least 2 at every p≥5p\geq5 dividing Δ\Delta. At the other primes p≥5p\geq5, B′B' mod pp is nonsingular. Together with (10), Lemma 2.1(b) and Lemma 2.2 give representation by Kj,pK_{j,p} at every prime. By (4), D=δγ≥3δβ/4=3δ2/(4a)D=\delta\gamma\geq3\delta\beta/4=3\delta^2/(4a). Write D0=⌈3δ2/(4a)⌉D_0=\lceil3\delta^2/(4a)\rceil. The second inequality in (11) puts the upper bound (6) strictly below D0D_0. Thus no completion of BB 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 BB by one pair (x,y)(x,y), we group its completions by the class ρ=(r1,r2,f)\rho=(r_1,r_2,f) mod 24, using the reduced bases and signs of Appendix A.§ 3. We allow (x,y)(x,y) to depend on ρ\rho and bound D=det⁡GD=\det G for any exception in that class. A bound below D0D_0 rules out the class. If the bound is at least D0D_0, the reduction inequalities leave only finitely many integral last columns to examine.

At 2 the mixed entries r1,r2r_1,r_2 modulo 4 and ff modulo 8 determine [G]2[G]_2 together with BB. At 3 we fix all three entries modulo 3 and consider their lifts modulo 9. Thus it suffices to distinguish r1,r2r_1,r_2 modulo 12 and ff modulo 24. Maximality requires 4∤D4\nmid D and G≢0(mod3)G\not\equiv0\pmod3, both determined by BB and ρ\rho. A class with no maximal lift at 3 contains no exception.

For a fixed ρ\rho, we seek one pair (x,y)(x,y) and one arithmetic progression k0+mZk_0+m\mathbb{Z} for all completions in that class. For every k∈k0+mZk\in k_0+m\mathbb{Z} the first inclusion in (10) must hold for the single class [G]2[G]_2 determined by BB and ρ\rho. The second must hold for every maximal class [G]3[G]_3 with leading block [B]3[B]_3 and last column congruent to ρ\rho modulo 3. Thus the same pair and progression give local representations for every integral last column in ρ\rho whose completion is maximal at 2 and 3. At primes p≥5p\geq5 the residue classes modulo pp excluded from the choice of kk may still depend on GG. We try the integral pairs with B′>0B'>0 up to simultaneous sign, since CG(−λ)=CG(λ)C_G(-\lambda)=C_G(\lambda). For each pair, factor Δ\Delta and omit primes p≥5p\geq5 dividing Δ\Delta at which a diagonal entry of B′B' lies in j(Fp)2j(\mathbb{F}_p)^2, since then C mod pC\bmod p represents jj for every kk. Discard the pair if both BB and α\alpha vanish modulo any remaining prime. Take the least g≥1g \ge1, if it exists, for which the sum in (11) over just the remaining primes is less than gg. Equation (6) then bounds DD 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 D0D_0. If any class is retained, let U(B)U(B) be the largest of the retained bounds. This argument by last-column class applies directly to every block in BjB_j, 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 GG allowed by D0≤det⁡G≤U(B)D_0 \le\det G \le U(B) and the reduction conditions of Appendix A.§ 3. For each such GG that is maximal at 3 and has relatively prime entries, we may now choose the covector λ\lambda separately.

Certificate 4.3 (Coverage and representations). Fix L∈{L6,L9}L \in\{L_6,L_9\} with the decomposition given in (1).

(a) For all but 836 blocks for L6L_6 and 5,147 for L9L_9 in BjB_j, there is a recorded pair (x,y)(x,y) with integers m,g≥1m,g \ge1 satisfying (11). For each maximal completion GG of such a block there is a k0k_0 for which the local representation conditions (10) hold throughout k0+mZk_0+m\mathbb{Z}. Hence every maximal ternary lattice with this leading block in a reduced basis embeds in LL.

(b) For each block without a recorded pair in (a), every last-column class ρ\rho 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 L6L_6 and 162 for L9L_9 have a class whose least bound is at least D0D_0. For each such block BB, the certificate identifies those classes and their common upper bound U(B)U(B).

(c) In the classes specified in (b), exactly 10,905 Gram matrices for L6L_6 and 7,556 for L9L_9 satisfy D0≤D≤U(B)D_0 \le D \le U(B), the reduced-basis inequalities and sign conventions of Appendix A.§ 3, maximality at 3, and coprimality of the entries. For every such GG, the recorded λ\lambda gives a positive-definite CG(λ)C_G(\lambda) represented by Kj,pK_{j,p} at every prime pp.

For L=L9L=L_9, consider again G=diag⁡(2,3,5)G=\operatorname{diag}(2,3,5) from § 4.1. Its leading block B=diag⁡(2,3)B=\operatorname{diag}(2,3) passes to the last-column test in part (b), with D0=14D_0=14 and U(B)=81U(B)=81. This test rules out an exception in the class of the original last column (0,0,5)(0,0,5) modulo 24. The only completions of BB requiring individual witnesses in part (c) have last column (1,1,f)(1,1,f) with f∈{4,5,8,9,12,13}f \in\{4,5,8,9,12,13\}.

At p=2,3p=2,3, part (c) requires only an isometric embedding of M=(Zp3,C)M=(\mathbb{Z}_p^3,C) into Kj,pK_{j,p}. When [C]p∉Rj,p[C]_p \notin\mathcal{R}_{j,p}, the certificate specifies an integral index-pp overlattice M′M' of MM whose Gram matrix FF satisfies [F]p∈Rj,p[F]_p \in\mathcal{R}_{j,p}. Lemma 2.2 then gives a primitive embedding of M′M' into Kj,pK_{j,p}; its restriction to MM 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 GG enumerated in part (c). For each such GG, the recorded λ\lambda gives a positive-definite CG(λ)C_G(\lambda) represented by Kj,pK_{j,p} at every prime, so Lemma 2.1(a) shows that LL represents GG over Z\mathbb{Z}. Thus neither L6L_6 nor L9L_9 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 I6⊥A2I_6 \perp A_2 does not represent the quinary lattice Λ117\Lambda_{117} with Gram matrix

(2−1010−12−1010−12001006−1010−17)(12)\begin{pmatrix} 2 & -1 & 0 & 1 & 0 \\ -1 & 2 & -1 & 0 & 1 \\ 0 & -1 & 2 & 0 & 0 \\ 1 & 0 & 0 & 6 & -1 \\ 0 & 1 & 0 & -1 & 7 \tag*{(12)} \end{pmatrix}

Proof. The leading principal minors are 2,3,4,21,1172, 3, 4, 21, 117, so Λ117\Lambda_{117} is positive definite of determinant 117117. Suppose the basis in which (12) is written maps to w1,w2,w3,w4,w5w_1,w_2,w_3,w_4,w_5 in I6⊥A2I_6 \perp A_2. For 1≤i≤31 \leq i \leq3, the vector wiw_i has norm 22. A nonzero A2A_2 component already has norm at least 22, so wiw_i lies in one summand. The pairings (w1,w2)=(w2,w3)=−1(w_1,w_2)=(w_2,w_3)=-1 put all three vectors in the same summand. They are independent, so this summand is I6I_6. Each of these three vectors has exactly two nonzero coordinates, both ±1\pm1. The support of w2w_2 meets each of the other two supports in one coordinate. Since (w1,w3)=0(w_1,w_3)=0, the supports of w1w_1 and w3w_3 are disjoint or equal. Equal supports would give w1≡w3(mod2)w_1 \equiv w_3 \pmod{2}, contrary to their pairings 11 and 00 with w4w_4. Thus after permuting the coordinate vectors εi\varepsilon_i of I6I_6, the support of wiw_i is {i,i+1}\{i,i+1\} for 1≤i≤31 \leq i \leq3. Changing the signs of the coordinate vectors then gives wi=εi−εi+1w_i=\varepsilon_i-\varepsilon_{i+1} for 1≤i≤31 \leq i \leq3.

Write w4=(u0,u)w_4=(u_0,u) and w5=(v0,v)w_5=(v_0,v) in I4⊥(I2⊥A2)I_4 \perp(I_2 \perp A_2). The pairings with wi=εi−εi+1w_i=\varepsilon_i-\varepsilon_{i+1} give

u0=(ξ+1,ξ,ξ,ξ),v0=(η+1,η+1,η,η).u_0=(\xi+1,\xi,\xi,\xi), \qquad v_0=(\eta+1,\eta+1,\eta,\eta).

The bounds Q(u0)≤6Q(u_0)\leq6 and Q(v0)≤7Q(v_0)\leq7 force ξ,η∈{−1,0}\xi,\eta\in\{-1,0\}. Both values of η\eta give Q(v)=5Q(v)=5. If ξ=0\xi=0, then Q(u)=5Q(u)=5 and ∣(u,v)∣=∣−1−(u0,v0)∣∈{1,2}\lvert(u,v)\rvert=\lvert-1-(u_0,v_0)\rvert\in\{1,2\}. If ξ=−1\xi=-1, then Q(u)=3Q(u)=3 and ∣(u,v)∣∈{0,3}\lvert(u,v)\rvert\in\{0,3\}.

Now 22 is the only positive norm below 66 in A2A_2. Indeed, its norm form is 2(h2−hℓ+ℓ2)2(h^2-h\ell+\ell^2), and h2−hℓ+ℓ2≡(h+ℓ)2(mod3)h^2-h\ell+\ell^2 \equiv(h+\ell)^2 \pmod{3} excludes norm 44. Since 33 is not a sum of two squares, a norm-55 vector of I2⊥A2I_2 \perp A_2 lies in I2I_2, and a norm-33 vector projects to a vector of norm 11 in I2I_2. In particular v∈I2v \in I_2. Let u′u' be the projection of uu to I2I_2. Since (u′,v)=(u,v)(u',v)=(u,v), the Gram determinant of u′,vu',v equals 5Q(u′)−(u,v)25Q(u')-(u,v)^2. If XX is their coordinate matrix in the basis ε5,ε6\varepsilon_5,\varepsilon_6, this determinant is det⁡(XTX)=(det⁡X)2\det(X^{\mathsf T}X)=(\det X)^2. For ξ=0\xi=0 its possible values are 24,2124,21, and for ξ=−1\xi=-1 they are 5,−45,-4. 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 L∈{L6,L9}L \in\{L_6,L_9\}, our Python search computes the local representation tables at 22 and 33 and uses them to bound the leading binary block BB of a possible exception. For each B∈Bj∘B \in\mathcal{B}^{\circ}_j it seeks one pair (x,y)(x,y) that proves LL represents every maximal ternary lattice with leading block BB in a reduced basis. For the remaining blocks it bounds det⁡G\det G in each last-column class and enumerates the ternary Gram matrices GG still requiring individual verification; for each such GG it tries covectors λ∈{−2,−1,0,1,2}3\lambda\in\{-2,-1,0,1,2\}^3 until CG(λ)C_G(\lambda) is positive definite and represented by Kj,pK_{j,p} 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.

CommandReference transcript in expected_output/
python3 reproduce_ternary_search.py --workers 4ternary_search.txt
python3 verify_ternary_certificates.py --workers 4certificate_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 Kj,pK_{j,p} at p=2,3p=2,3. In the verification/ directory, local_representation.py constructs Rj,p\mathcal{R}_{j,p} and counts the classes [G]p[G]_p of maximal ternary Zp\mathbb{Z}_p-lattices in Table 3. The module residue_census.py then determines the coefficient classes Uj,p([G]p)U_{j,p}([G]_p) used in Section 4.1.

ppAll Gram residuesClasses of maximal lattices∣R3,p∣|\mathcal{R}_{3,p}|∣R9,p∣|\mathcal{R}_{9,p}|
232,76821,50428,42022,624
3531,441459,108451,386355,485

Table 3. Counts of ternary Gram matrix classes at p=2,3p=2,3

Fix p∈{2,3}p\in\{2,3\} and let J=diag⁡(d1,…,d5)J=\operatorname{diag}(d_1,\ldots,d_5) be the Gram matrix of Kj,pK_{j,p} in Table 1. Writing ziTz_i^{\mathsf T} for row ii of XX gives XTJX=∑idiziziTX^{\mathsf T} J X=\sum_i d_i z_i z_i^{\mathsf T}. To construct Rj,p\mathcal{R}_{j,p}, suppose the first i−1i-1 rows contribute the matrix MM to this sum and their reductions span V⊆Fp3V\subseteq\mathbb{F}_p^3. Appending row zTz^{\mathsf T} in position ii gives the update

([M]p,V)⟼([M+dizzT]p,V+Fp(z mod p)).([M]_p,V)\longmapsto\left([M+d_i z z^{\mathsf T}]_p,V+\mathbb{F}_p(z\bmod p)\right).

Start with M=0M=0 and V={0}V=\{0\}. Enumerate zz modulo 4 at 2 and modulo 9 at 3 (modulo 3 suffices if 3∣di3\mid d_i). These residues determine both entries on the right. After five rows, [M]p∈Rj,p[M]_p\in\mathcal{R}_{j,p} precisely when the pair ([M]p,Fp3)([M]_p,\mathbb{F}_p^3) occurs. The maximal classes in Table 3 are determined by 4∤det⁡G4\nmid\det G 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 Uj,p([G]p)U_{j,p}([G]_p), we test the lifts of each λˉ∈Fp3\bar{\lambda}\in\mathbb{F}_p^3 for membership of [CG(λ)]p[C_G(\lambda)]_p in Rj,p\mathcal{R}_{j,p}. The class [sλλT]p[s\lambda\lambda^{\mathsf T}]_p depends only on λ mod 2\lambda\bmod2 for (p,s)=(2,2)(p,s)=(2,2), on λ mod 4\lambda\bmod4 for (2,1)(2,1), and on λ mod 9\lambda\bmod9 at 3.

Arithmetic progressions and the uniform bound

For each triple (x,h,m)(x,h,m) in Certificate 4.1, hh is the common difference of the arithmetic progression y0+hZy_0+h\mathbb{Z}. Once yy is chosen, mm is the common difference of k0(y)+mZk_0(y)+m\mathbb{Z}. These common differences enter the bound Hj(a,t)H_j(a,t) 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 (h,m)(h,m) and checks the interval endpoints.

Local choices. For fixed σ\sigma and x mod px\bmod p, list the pairs (y,k) mod p(y,k)\bmod p with (x,y,k)T mod p∈Uj,p(σ)(x,y,k)^{\mathsf T}\bmod p\in U_{j,p}(\sigma). In the pair of local moduli (hp,mp)(h_p,m_p), a modulus of 1 allows all residues modulo pp, and a modulus of pp selects one residue. The residue selected for kk may depend on yy. Thus (1,1)(1,1) is available if all pairs occur, (1,p)(1,p) if every y mod py\bmod p admits some k mod pk\bmod p, (p,1)(p,1) if some y mod py\bmod p admits every k mod pk\bmod p, and (p,p)(p,p) 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 x=0x=0, the signed-divisor condition also holds for each divisor h′h' of hh, since every residue class modulo h′h' contains a residue class modulo hh. The 176 records in local_progression_steps.tsv group maximal Gram matrix classes by KjK_j, pp, the retained lists for each x mod px\bmod p, 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 aa take the groups whose first entries agree with aa modulo 4 at 2 and modulo 3 at 3. For each xx, the Chinese remainder theorem combines a choice of (h2,m2)(h_2,m_2) and (h3,m3)(h_3,m_3) into the triple (x,h2h3,m2m3)(x,h_2h_3,m_2m_3). For x=0x=0 test every y0y_0 mod hh and every c∗c_\ast mod ∏p∣ap≥5p\prod_{\substack{p\mid a\\p\ge5}}p as in Section 4.1.

For 2≤a≤842\le a\le84 the checker verifies that at least one triple remains for each pair after imposing the restrictions on xx. For a≥73a\ge73 only x>0x>0 is used, and then sx2≤72<asx^2\le72<a. Hence the available triples depend only on aa mod 12, so the checks for 73≤a≤8473\le a\le84 complete Certificate 4.1.

The gap bound. For 0≤t<270\le t<27, let gtg_t be the least g≥1g\ge1 satisfying ∑i=1t⌈g/qi⌉<g\sum_{i=1}^{t}\lceil g/q_i\rceil<g. In either arithmetic progression y0+hZy_0+h\mathbb{Z} or k0(y)+mZk_0(y)+m\mathbb{Z} of Section 4.1, a forbidden class modulo p≥5p\ge5 excludes at most ⌈g/p⌉\lceil g/p\rceil of any gg consecutive terms, since pp divides neither step. The sum bounds all exclusions, since the ii-th smallest prime used is at least qiq_i. Such a gg exists since ∑i=1261/qi<1\sum_{i=1}^{26}1/q_i<1.

For t≥27t\ge27, 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 gg consecutive indices differs from gg divided by that product by less than 1. Inclusion–exclusion therefore counts the surviving indices with error less than 2t2^t from gg times their density. This density is at least ∏i=1t(1−1/qi)≥4/(t+4)\prod_{i=1}^{t}(1-1/q_i)\ge4/(t+4), since qi≥i+4q_i\ge i+4. Thus gt=(t+4)2t−2g_t=(t+4)2^{t-2} guarantees a surviving index.

In this range w≤6gtw\le6g_t and (1−sx2/a)−1≤73(1-sx^2/a)^{-1}\le73, since sx2<asx^2<a and sx2≤72sx^2\le72. Hence (9) has right-hand side at most 2⋅73(36/4+36/3)gt2=3066gt22\cdot73(36/4+36/3)g_t^2=3066g_t^2. At t=27t=27 direct integer comparison gives 3Pt>4(3066gt2)3P_t>4(3066g_t^2). As tt increases, Pt\sqrt{P_t} grows by qt+1\sqrt{q_{t+1}}, while gt2g_t^2 grows by 4((t+5)/(t+4))24((t+5)/(t+4))^2. The former factor exceeds the latter at t=27t=27 and the inequality persists by monotonicity. This rules out 3Pt/4≤Hj(a,t)\sqrt{3P_t/4}\le H_j(a,t) for all t≥27t\ge27.

Determinant ranges. For t<27t<27 evaluate Hj(a,t)H_j(a,t) in rational arithmetic. Test 2≤a≤722\le a\le72 individually. For a≥73a\ge73 choose a0∈[73,84]a_0\in[73,84] with a0≡a(mod12)a_0\equiv a\pmod{12}. The same triples are available for aa and a0a_0, though their bounds in (9) use the actual first entry. For each triple the bound decreases as aa increases. Thus Hj(a,t)≤Hj(a0,t)H_j(a,t)\le H_j(a_0,t). If 3Pt>4Hj(a0,t)23P_t>4H_j(a_0,t)^2, discard the class. Otherwise 3a/4≤β≤Hj(a,t)3a/4\le\beta\le H_j(a,t) gives a≤4Hj(a0,t)/3a\le4H_j(a_0,t)/3. 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 Bj(a,t)\mathcal{B}_j(a,t) (Section 4.2) in (b,c)(b,c) order for each pair (a,t)(a,t) of Certificate 4.2. For each bb it takes the integers c≥ac\ge a for which ac−b2ac-b^2 lies in the corresponding determinant interval. It retains BB in Bj∘\mathcal{B}_j^\circ when Hj(B,t)H_j(B,t) is defined and ac−b2≤aHj(B,t)ac-b^2\le aH_j(B,t).

Pairs recorded for entire blocks. The file binary_block_pairs.json.gz either gives one pair (x,y)(x,y) for BB or records that DD must be bounded separately for each last-column class. To check a recorded pair at pp, range over the classes σ=[G]p\sigma=[G]_p of maximal Zp\mathbb{Z}_p-lattices with leading block [B]p[B]_p. At 2, keep the kk mod 4 for which [C]2∈Rj,2[C]_2\in\mathcal{R}_{j,2}. At 3, keep the kk mod 3 with (x,y,k)T(x,y,k)^{\mathsf T} mod 3 ∈Uj,3(σ)\in\mathcal{U}_{j,3}(\sigma). An empty set rules out the pair. Otherwise the least step is 1 for the full set, 2 at p=2p=2 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 mm the checker verifies (11) for the recorded pair. The search uses the following sufficient estimate for the sum in (11).

Lemma A.1. Let dd be the product of the primes from 5 through 47 dividing Δ>0\Delta> 0. Let ℓ,ℓ2\ell,\ell_{2} be the largest nonnegative integers with 53ℓ≤Δ/d53^{\ell} \le\Delta/d and 53ℓ2≤gcd⁡(Δ,δ)53^{\ell_{2}} \le\gcd(\Delta,\delta), respectively. The first inequality in (11) holds if

∑p∣dνp⌈g/p⌉+(ℓ+ℓ2)⌈g/53⌉<g.\sum_{p\mid d} \nu_p\lceil g/p\rceil+ (\ell+\ell_{2})\lceil g/53\rceil< g.

If d<35d < 35 and gcd⁡(Δ,δ)<5\gcd(\Delta,\delta) < 5, take g=1+ℓg = 1+\ell for d=1d=1 or g=2+ℓg = 2+\ell for d>1d>1, provided g≤5g \le5.

Proof. The distinct primes p≥53p \ge53 dividing Δ\Delta have product dividing Δ/d\Delta/d, so there are at most ℓ\ell. Those with weight 2 also divide gcd⁡(Δ,δ)\gcd(\Delta,\delta), so at most ℓ2\ell_{2} contribute twice. In the last case all weights are 1, at most one prime divides dd, and ⌈g/p⌉=1\lceil g/p\rceil= 1 for every p≥5p \ge5.

Last-column classes. For each remaining block take ρ=(r1,r2,f)\rho= (r_{1},r_{2},f) mod 24 with 4∤D4 \nmid D and G≢0G \not\equiv0 mod 3. For each ρ\rho try the pairs (x,y)(x,y) with B′>0B' > 0 up to simultaneous sign. They lie in the finite box sx2<asx^{2} < a, sy2<csy^{2} < c. At 2, the block and ρ\rho determine [G]2[G]_{2}. Keep each kk modulo 2 if s=2s=2, or modulo 4 if s=1s=1, for which [CG((x,y,k)T)]2∈Rj,2[C_{G}((x,y,k)^{\mathsf T})]_{2} \in\mathcal{R}_{j,2}. At 3, consider the classes σ=[G]3\sigma= [G]_{3} of maximal Z3\mathbb{Z}_{3}-lattices with leading block BB mod 9 and last column congruent to ρ\rho mod 3. Keep kk mod 3 if (x,y,k)T(x,y,k)^{\mathsf T} mod 3 ∈Uj,3(σ)\in\mathcal{U}_{j,3}(\sigma) for every such σ\sigma. If there is no such σ\sigma, then ρ\rho has no maximal lift at 3. The Python checker includes these ρ\rho 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 mm. The checker reconstructs the surviving classes and U(B)U(B) by § 4.2 and compares them with last_column_bounds.json.gz. The record uses one bit per (r1(r_{1} mod 12, r2r_{2} mod 12, ff mod 24), so four nominal classes modulo 24 share each bit.

Integral lifts. Write RB(r)=cr12−2br1r2+ar22R_{B}(r) = cr_{1}^{2} - 2br_{1}r_{2} + ar_{2}^{2}, so D=δf−RB(r)D = \delta f - R_{B}(r). Combining D0≤D≤U(B)D_{0} \le D \le U(B) with the bounds on the reduced Gram entries from § 3 gives

0≤2r1≤a,2∣ar2−br1∣≤δ,0 \le2r_{1} \le a,\qquad2\lvert ar_{2} - br_{1}\rvert\le\delta,
max⁡(a,⌈δ+r12a⌉,⌈D0+RB(r)δ⌉)≤f≤⌊U(B)+RB(r)δ⌋.\max\left(a,\left\lceil\frac{\delta+r_{1}^{2}}{a}\right\rceil,\left\lceil\frac{D_{0}+R_{B}(r)}{\delta}\right\rceil\right) \le f \le \left\lfloor\frac{U(B)+R_{B}(r)}{\delta}\right\rfloor.

The enumeration uses two further choices of signs. If r1=0r_{1}=0, negating e3e_{3} if necessary gives r2≥0r_{2} \ge0. If b=0b=0 or 2b=a2b=a, we may also take ar2−br1≥0ar_{2}-br_{1} \ge0. Indeed, replacing e2e_{2} by −e2-e_{2} or e1−e2e_{1}-e_{2}, respectively, preserves BB and r1r_{1} and negates ar2−br1ar_{2}-br_{1}. Both substitutions preserve the reduction bounds, and when r1=0r_{1}=0 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 8∣D8 \mid D. 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 GG, representation_witnesses.jsonl.gz gives λ\lambda and two 5×35 \times3 matrices X2,X3X_{2},X_{3}. Check positivity of the leading principal minors of C=CG(λ)C = C_{G}(\lambda). At p=2,3p=2,3, take F=CF=C unless the record gives a column zz defining an index-pp overlattice. Its first nonzero entry is 1. Replace the corresponding basis vector by z/pz/p and check that the resulting Gram matrix FF has entries in Zp\mathbb{Z}_p. For JJ as in Table 1, verify [XpTJXp]p=[F]p[X_p^{\mathsf{T}} J X_p]_p = [F]_p and rank⁡(Xp mod p)=3\operatorname{rank}(X_p \bmod p) = 3. Lemma 2.2 gives an exact local embedding, which in the overlattice case restricts to the lattice with Gram matrix CC.

At each p≥5p \ge5 dividing the gcd of the 2×22 \times2 minors of CC, check that a diagonal entry modulo pp lies in j(Fp)j(\mathbb{F}_p). At all other p≥5p \ge5 the rank is at least 2, so Lemma 2.1(b) gives local representation in both cases. All recorded λ\lambda for L6L_6 lie in {−1,0,1}3\{-1,0,1\}^3. For L9L_9 the search first succeeds outside this box for 56 matrices, each with max⁡(∣x∣,∣y∣,∣k∣)=2\max(|x|,|y|,|k|) = 2.

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 ⟨1,1,2⟩⊥A2\langle1,1,2\rangle\perp A_2 and ⟨1,1,3⟩⊥A2\langle1,1,3\rangle\perp A_2. For Lemma 2.1(a), it uses Jonathan Hanke’s QuadFormsKB [4] to show that if KjK_j represents CC locally everywhere, then some lattice in its genus represents CC over Z\mathbb{Z}. The mass formula from the same library, together with the orders of the automorphism groups, gives class number 1 for both K3K_3 and K9K_9. In Lean, local representation at pp means solvability of the Gram matrix equation modulo pep^e for every e≥1e \ge1. Compactness gives the equivalent formulation over Zp\mathbb{Z}_p. For the quinary case, KimKimOh/Quinary.lean proves that the lattice of determinant 117 in Proposition 5.1 does not embed in I6⊥A2I_6 \perp A_2.

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 h,mh,m. For Certificate 4.2, it verifies that the lists of pairs (a,t)(a,t) cover every possible exception. For Certificate 4.3, it verifies that every block in Bj\mathcal{B}_j 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 GG, both verifications use the recorded λ\lambda and check positive definiteness of CG(λ)C_G(\lambda) and local representation at every prime. At 2 and 3 the Python checker verifies the supplied matrices XpX_p directly. Lean checks the Gram class of CG(λ)C_G(\lambda), or of its specified index-pp 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. [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. [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. [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. [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. [5]Roger A. Horn and Charles R. Johnson. Matrix Analysis. Cambridge University Press, Cambridge, second edition, 2013. 10.1017/CBO97811390920411.
  6. [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. [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. [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. [9]Yoshiyuki Kitaoka. Arithmetic of Quadratic Forms, volume 106 of Cambridge Tracts in Mathematics. Cambridge University Press, Cambridge, 1993. 10.1017/CBO9780511666155.
  10. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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.

Paper details

vlnc:W_79r4cdyc
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY-SA 4.0
Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Mathematics

OpenAI ChatGPT 6.2 Astra, OpenAI ChatGPT 5.* Pro, Anthropic Claude Fable 5, Anthropic Claude Opus 5.5, Anthropic Claude Opus 4.*, Google Gemini 3 Pro

View statement
Looking for related papers…
Contents