Cohen–Lenstra Heuristics: How Google Gemini 4’s Proof Unlocks 5-Torsion with Two Cubes

For decades, mathematicians had no proof that the average size of the 5-torsion subgroup of an imaginary quadratic class group stayed bounded. The Cohen–Lenstra heuristics predicted a specific value: two. Carlo Pagano’s manuscript, developed with the Cogentic research system using an internal version of Google Gemini 4, proves that the average converges to exactly that value. The proof begins with a change of algebraic coordinates. Instead of treating an ideal class through a single fifth-power relation, it tracks two related classes through two cubic relations. Two Bhargava cubes make those relations countable, and an argument from homogeneous dynamics controls the cancellations that turn the resulting density calculation into a theorem.

1. What Are the Cohen–Lenstra Heuristics?

In 1984, Henri Cohen and Hendrik Lenstra proposed a probability model for class groups as the discriminant varies. For imaginary quadratic fields and a fixed odd prime, the model assigns each possible primary group a weight inversely proportional to the number of its automorphisms. This rule gives less weight to groups with more symmetries.

Key FactWhat the Paper Establishes
Quantity averagedSize of the subgroup killed by multiplication by five
FamilyImaginary quadratic fields ordered by absolute discriminant
Limiting averageTwo, including the identity
Algebraic constructionTwo partially symmetric Bhargava cubes glued along shared forms

The first moment can be understood through surjections onto the cyclic group of prime order. The model predicts one such surjection on average. For a finite abelian group, the number of homomorphisms to a cyclic group of order prime ℓ\ell equals the size of its ℓ\ell-torsion subgroup, and precisely one of those maps is trivial. Thus the predicted subgroup size averages two.

2. Imaginary Quadratic Fields, Class Groups and 5-Torsion

An imaginary quadratic field is obtained by adjoining the square root of a negative rational number that is not a square. Its ring of integers consists of roots of monic integer polynomials within the field. An ideal is an additive subgroup closed under multiplication by ring elements. A principal ideal consists of all ring multiples of a single generator. Nonzero ideals factor uniquely into prime ideals, while elements of the ring can have inequivalent factorizations. The ideal class group measures this obstruction by identifying fractional ideals that differ by a principal fractional ideal.

Write K−D=Q(−D)K_{-D}=\mathbb Q(\sqrt{-D}) and use −D-D for the field discriminant, with D>0D>0. A fundamental discriminant is the discriminant of the full ring of integers, which selects each field once and excludes its nonmaximal orders. Write Cl(K)[5]\mathrm{Cl}(K)[5] for the classes whose fifth power is the identity. This subgroup is a vector space over the field with five elements. Its size is one, five, twenty-five, or another power of five.

For K=Q(−47)K=\mathbb Q(\sqrt{-47}), the reduced positive definite forms have coefficient triples (1,1,12)(1,1,12), (2,±1,6)(2,\pm1,6) and (3,±1,4)(3,\pm1,4). The reduction inequalities exhaust the possibilities. There are five classes, so the class group is cyclic of order five and its entire group is 5-torsion. No individual field needs to have exactly two such classes for the average to approach two.

3. Why the 5-Torsion Problem Resisted Mathematicians for Decades

Choose an integral ideal a\mathfrak a representing a class killed by five. Its fifth power is principal, with a generator of the form (u+v−D)/2(u+v\sqrt{-D})/2 for integers u,vu,v. Multiplying the generator by its conjugate and using multiplicativity of the ideal norm NN, which counts the residue classes modulo an integral ideal, gives the classical equation.

4𝑵(𝔞)5=𝒖2+𝑫𝒗2\boldsymbol{4N(\mathfrak a)^5=u^2+Dv^2}

Even with a minimal-norm representative, the manuscript explains that vv can reach the scale D3/4D^{3/4}. The resulting Diophantine equation produces too many candidate triples for a straightforward count. Soundararajan’s previous upper bound for the total was Oε(X5/4+ε)O_\varepsilon(X^{5/4+\varepsilon}). Dividing by the number of fields gives an upper bound that still grows with XX. For 3-torsion, Davenport and Heilbronn already had an effective route through counting cubic fields via binary cubic forms. The fifth-power problem required a different parametrization.

4. Google Gemini 4’s Proof and an Intuitive Roadmap

  1. Replace the fifth power. Track a class and its square together. Two conditions involving three class factors each enforce the original order-five constraint.
  1. Build two compatible cubes. Translate each condition into a partially symmetric Bhargava cube, then match the quadratic forms attached to the same classes.
  1. Count geometric representatives. Work on the seven-dimensional space of matched pairs. Choose reduced forms to handle changes of basis and account for generator signs.
  1. Predict the count. Replace congruence counts by their expected densities. Integrate over the real region and impose the prime-by-prime conditions for fundamental discriminants.
  1. Control the discrepancy. Separate exceptional shapes and boundary contributions from the bulk. Transform the remaining error into a correlation that vanishes through measure rigidity.
  1. Restore the identity. Convert the count to nonidentity classes per field and add the one identity class present in every subgroup.

5. Relation Lattices Replace Degree Five With Degree Three

In additive class-group notation, record xx and y=2xy=2x. For a nonzero xx killed by five, the combinations mx+nymx+ny that vanish form the relation lattice

𝚲5={(𝒎,𝒏)∈ℤ2:𝒎+2𝒏≡0(mod5)}.\boldsymbol{\Lambda_5=\{(m,n)\in\mathbb Z^2:m+2n\equiv0\pmod 5\}.}

The two rows below belong to the lattice and have determinant five. As the congruence kernel also has index five, those rows generate every relation.

𝑹5=(2−112)\boldsymbol{R_5=\begin{pmatrix}2&-1\\1&2\end{pmatrix}}

The equations are 2x=y2x=y and 2y=−x2y=-x. Substitution gives 4x=−x4x=-x, so 5x=05x=0. Conversely, assigning y=2xy=2x to any class killed by five satisfies both equations. The sum of the absolute values of the coefficients in each row is three. In ideals, the first relation makes the square of one ideal times the conjugate of the other principal. The second makes the square of the other times the first principal. Conjugating an ideal negates its class because the product with its conjugate is principal. Each cube can encode one of these relations with integral coordinates.

6. Bhargava Cubes Turn Ideal Classes Into Geometry

Cohen–Lenstra heuristics diagram showing two Bhargava cubes matched by quadratic forms q and q′ in reverse order.
Cohen–Lenstra heuristics diagram showing two Bhargava cubes matched by quadratic forms q and q′ in reverse order.

A Bhargava cube arranges eight numbers at the corners of a cube. Slicing it into opposite square faces gives two matrices. The determinant of their linear combination gives a binary quadratic form, a homogeneous degree-two polynomial in two variables. Three slicing directions yield three forms with a common discriminant. Partial symmetry identifies two of the forms and leaves six independent entries per cube.

Matching forms of two Bhargava cubesThe first cube has forms q and q prime. The second has the same forms in reverse order. Lines join matching forms.First cubeSecond cubeFirst form: qSecond form: q′First form: q′Second form: q
Gluing schematic. The same two quadratic forms occur in opposite order in the two cubes.

The first cube FF carries the pair (q,q′)(q,q’) and the second F′F’ carries (q′,q)(q’,q). With qiq_i denoting the two distinct form maps, the gluing equations are

𝒒2(𝑭)=𝒒1(𝑭′),𝒒2(𝑭′)=𝒒1(𝑭).\boldsymbol{q_2(F)=q_1(F’),\qquad q_2(F’)=q_1(F).}

Each equality matches three coefficients, but the equations are dependent through the common discriminant. Pairs of forms of equal discriminant have five parameters, and over the relevant rational locus the two generator choices add two dimensions. The resulting variety VV has dimension seven in twelve-dimensional affine space. For discriminants below minus four, each eligible reduced form pair representing xx and 2x2x yields four integral points, one for each choice of generator signs. Restricting to fundamental discriminants and excluding the identity makes this a weighted count of the required classes.

7. Counting Integral Points and Calculating Local Densities

Fix the imaginary-part coordinates v,v′v,v’ of the two generators. The paper introduces auxiliary coordinates from matrix minors and reexpresses integrality by a congruence in a box. On the relevant scales the modulus can be comparable to the box volume. A residue class can therefore contribute very few points, and replacing each fibre by its expected count can produce an error comparable to its contribution.

The proof first works with smooth weights that approximate sharp cutoffs and make Fourier analysis possible. It then defines an expected count by replacing actual solutions in each fibre with a density-weighted volume. The real integral measures the available coordinate region, including reduction and the smoothing weights. Local densities measure the proportion of viable residue classes at increasing powers of each prime. They enforce integrality and the required discriminant conditions. The analysis isolates finitely many small primes before averaging over the remaining ones, where factors of the form 1−p−21-p^{-2} occur. With cutoffs removed in the order of Corollary 4.17, the real contribution is π4/36\pi^4/36 and the combined local contribution is (27/128)(8/π2)3(27/128)(8/\pi^2)^3. Their product gives 3/π23/\pi^2 in the count normalized for generator signs. The density calculation leaves the discrepancy with the actual count to be estimated.

8. Why the Average 5-Torsion Equals Exactly Two

	Cohen–Lenstra heuristics graphic showing how the identity and one nonidentity element on average give mean 5-torsion size two.
Cohen–Lenstra heuristics graphic showing how the identity and one nonidentity element on average give mean 5-torsion size two.

The sign-normalized density computation predicts 3X/π23X/\pi^2 nonidentity classes in total to leading order. The number of negative fundamental discriminants of absolute value at most XX is 3X/π2+O(X1/2)3X/\pi^2+O(X^{1/2}). Once the discrepancy is shown to be o(X)o(X), meaning its ratio to XX tends to zero, the average nonidentity contribution is one and the identity supplies the other one.

2=1+1\boldsymbol{\boxed{2=1+1}}

Every subgroup of order five has four generators, and each nonidentity element killed by five generates exactly one such subgroup. If N5(K)N_5(K) counts those subgroups in a field, then

|Cl(𝑲)[5]|=1+4𝑵5(𝑲).\boldsymbol{|\mathrm{Cl}(K)[5]|=1+4N_5(K).}

Summing over the family and dividing the nonidentity count by four gives the theorem’s equivalent counting formula.

𝑵5(𝑿)=34𝝅2𝑿+𝒐(𝑿)\boldsymbol{\boxed{N_5(X)=\frac{3}{4\pi^2}X+o(X)}}

The limiting mean subgroup count is one quarter.

9. Controlling the Error Terms in Four Regions

The expected count alone leaves open the possibility of a persistent bias in the occupied residue classes. The proof sorts the discrepancy by which feature of the count needs control.

Counting RegionTechnique and Role
Boundary and cusp windowIncomplete Eisenstein series average over equivalent forms and control the smoothing discrepancy far into the cusp.
Thin exceptional setsElementary counts and an a priori linear bound help control exceptional arithmetic loci and discriminant tails.
Atypical shapesExponential sums and average counts in four-dimensional lattices control fibres whose coordinates lie outside the typical ranges.
Generic bulkPoisson summation and homogeneous dynamics control the signed error left after subtracting the expected count.

The a priori bound controls the total count without yet identifying its coefficient. By taking the discriminant limit with the cutoffs fixed and then releasing the cutoffs in the paper’s prescribed order, the argument makes the regional error bounds arbitrarily small on the scale of XX.

10. Poisson Summation and the Ergodic Theory Breakthrough

-Cohen–Lenstra heuristics diagram showing bulk error cancellation through product and flip-invariant components.
Cohen–Lenstra heuristics diagram showing bulk error cancellation through product and flip-invariant components.

Poisson summation exchanges a weighted lattice sum for a sum over its Fourier frequencies. Successive applications, combined with quadratic reciprocity and Gauss sum identities, turn the generic error into a correlation. For each modulus and invertible residue, one factor counts points in a planar congruence lattice. The other is an oscillating theta sum carrying a quintic Dickson phase. Cancellation in the theta sum by itself would be insufficient if large lattice counts systematically coincided with phases of the same sign.

The proof realizes these factors as functions on two homogeneous spaces, spaces built by quotienting symmetry groups by discrete arithmetic subgroups. The first function is a weighted lattice count. The second lives on a metaplectic cover, which retains a sign that would disappear on the underlying linear space. Auxiliary-prime Hecke symmetries act by multiplying the residue by a prime square and induce commuting transformations on both spaces. Empirical averages become invariant measures for this higher-rank action. Tightness, a mean-square bound and first-factor equidistribution justify passing to limiting measures, even though the theta function need not be bounded.

How the rigidity alternatives remove the correlationThe limiting measure decomposes into product and flip-invariant components. Product terms sum to zero from the theta mean. Flipped terms cancel by sign.Limiting joint measureProduct componentsZero total theta meanFlip-invariant componentsOpposite signs cancel
Cancellation schematic. The product case uses the zero mean across the limit, while the flip case vanishes on each such component.

Appendix E classifies the ergodic components of these joint measures. On a product component, the correlation factors into a fixed lattice mean times a theta mean. On a component invariant under the central flip, the theta function changes sign while the lattice function stays fixed, so both the correlation and the theta mean vanish there. The theta mean of the entire limiting measure is zero by an independent exponential-sum estimate. Consequently the product components also contribute zero in aggregate. The normalized correlation tends to zero, giving the needed bulk saving after the reductions are reversed. The manuscript’s Section 6.6 invokes the classification with three or more auxiliary primes, while Theorem E.24 states it with 511. The auxiliary-prime selection in Section 6.6 allows that larger finite choice.

11. The Connection Between 5-Torsion and Dihedral Quintic Fields

A finite abelian group has equally many subgroups of order five and of index five, by duality. Class field theory sends each index-five subgroup to a cyclic extension L/KL/K of degree five that is unramified everywhere over KK. Complex conjugation acts on ideal classes by inversion, so it preserves the subgroup and acts by inversion on the quotient. The Galois group over the rationals is D5D_5, the group of ten symmetries of a pentagon.

The five reflection subgroups are conjugate and their fixed fields give one quintic field FF up to isomorphism. The conductor-discriminant calculation gives Disc(F)=D2\mathrm{Disc}(F)=D^2. Thus a quintic discriminant bound of YY corresponds to a quadratic bound of Y\sqrt Y and Corollary 1.2 gives

𝑵𝑫5(𝒀)=34𝝅2𝒀+𝒐(𝒀).\boldsymbol{\boxed{N_{D_5}(Y)=\frac{3}{4\pi^2}\sqrt Y+o(\sqrt Y)}.}

The exponent agrees with Malle’s prediction for the broader dihedral quintic family. The asymptotic here counts the family with imaginary quadratic subfield and unramified extension over it.

12. What the Proof Establishes and What Remains Unsolved

Theorem 1.1 gives the first moment for 5-torsion over imaginary quadratic fields. It leaves open the full group distribution and higher 5-torsion moments. Relation lattices extend algebraically to other odd primes, but controlling the integral-point count for each new variety is a separate problem. The manuscript reports a 7-torsion upper bound in companion work, with exponent 6379/50006379/5000 for the sum. It also identifies prime powers and the second moment of 5-torsion as directions requiring further work.

Section 1.5 documents Cogentic’s progression from a logarithmic-power bound to boundedness, then a lower bound strictly above one, and finally the asymptotic using ergodic theory. Pagano steered the research and formulated the general relation-lattice framework around the agent’s strategy, also using the successor to Aletheia in the analysis and rewriting. The manuscript reports an end-to-end Lean 4 formalization of the main theorem. DeepMind’s repository reports verification with standard Lean axioms and says the code is forthcoming, so independent reproduction awaits the public files.

The Cohen–Lenstra heuristics now have an exact 5-torsion average in this family. The cancellation proof carries the prediction from local densities to actual fields. Follow Binary Verse AI for more research explainers that trace how AI-assisted proofs establish their results.

Related Binary Verse AI coverage includes Gemini’s work on integer factorization and Hadwiger’s covering conjecture, as well as proofs involving Diophantine equations, squarefree polynomial values, prime counting and Fermat’s Last Theorem in Lean.

What are the Cohen–Lenstra heuristics?

The Cohen–Lenstra heuristics are statistical predictions about the distribution of ideal class groups of number fields. For imaginary quadratic fields, they predict an average torsion subgroup size of two for each odd prime.

What did Google Gemini 4 prove about 5-torsion?

Carlo Pagano’s manuscript, developed with Cogentic using an internal version of Gemini 4, proves that the average size of the 5-torsion subgroup of imaginary quadratic class groups converges to two as the absolute discriminant bound grows.

Why is the average 5-torsion equal to two?

Every 5-torsion subgroup contains the identity. The proof shows that the average number of nonidentity 5-torsion elements tends to one, giving a total average of two.

Why was the 5-torsion problem so difficult to solve?

The classical fifth-power norm equation leaves too many candidate solutions for a direct count. The proof replaces that relation with two cubic relations encoded by Bhargava cubes. It calculates local densities and controls the counting error through exponential sums and homogeneous dynamics.

Has the entire Cohen–Lenstra conjecture been solved?

No. The paper proves the predicted first moment of 5-torsion for imaginary quadratic fields. The complete class-group distribution, higher moments and corresponding predictions for other primes remain broader challenges.

How was the Gemini 4 proof formally verified?

The manuscript reports that Cogentic formalized the main theorem end to end in Lean 4. The public repository reports verification using Lean’s standard axioms and says the source code is forthcoming. Independent reproduction awaits the public files.

Can this proof be extended to 7-torsion and other primes?

The relation-lattice parametrization extends to odd primes. The associated counting problem requires further analysis. The manuscript reports a stronger upper bound for 7-torsion in companion work, with the exact average still open.

Leave a Comment