In a significant development for lattice-based cryptography and the mathematical analysis of subset-sum problems, researcher Attia Ahmed has released a preprint resolving the "almost no" half of a famous conjecture first posed over forty years ago. The new paper, designated as Paper 2026/3090 on the Cryptology ePrint Archive, focuses on the Lagarias–Odlyzko sharpness conjecture, settling a vital theoretical threshold regarding planted vectors, lattice reduction attacks, and critical densities.
The work not only establishes the long-sought theoretical boundary for the behavior of subset-sum algorithms above a specific density threshold, but it also features a complete formalization of the main theorem and its quantitative bounds using the Lean 4 interactive theorem prover and its Mathlib library. This combination of advanced asymptotic probability, lattice theory, and modern formal verification marks a milestone for both cryptographic theory and computer-aided mathematics.
The Lagarias–Odlyzko Framework and the Subset-Sum Problem
To understand the weight of Ahmed’s new proof, one must look back to foundational work published in 1985 by Jeffrey C. Lagarias and Andrew M. Odlyzko. They introduced a classic algorithmic approach to attacking subset-sum instances. In this cryptographic setting, an instance is defined by a weight vector $a$ and a target sum $M$, where $M$ is constructed as the inner product of a hidden binary vector $e$ (consisting of zeros and ones) and the weight vector $a$. That is, $M = sum_i e_i a_i$ with $e in 0,1^n$.
The Lagarias–Odlyzko attack attempts to recover this hidden or "planted" vector $e$ by constructing a specific lattice $L(a,M)$ that inherently contains the vector $(e,0)$. By applying an algorithm designed to compute a shortest nonzero vector of this lattice—and repeating the process with a complementary target—analysts hoped to reliably uncover the secret binary string.
In their original 1985 paper, Lagarias and Odlyzko analyzed weights drawn uniformly from the interval $[1, 2^n/d]^n$. They proved that for each planted vector of weight at most $n/2$, the planted vector is indeed the unique shortest vector in the lattice for almost all weight vectors when the density parameter $d$ is strictly less than $1/1.54725$. Based on their analytical observations and heuristic insights, they formulated a sharpness conjecture, proposing that the true critical density separating the success and failure regimes of this geometric approach is given by $1/c_0 = 0.6463107ldots$. In this expression, $c_0$ is defined as the limit of $frac1nlog_2 #x$ as the dimension $n$ approaches infinity.
Proving the "Almost No" Half of the Conjecture
Ahmed’s paper addresses the regime lying above this critical density threshold, successfully proving the "almost no" half of the Lagarias–Odlyzko sharpness conjecture.
The new theorem demonstrates that for every density $d > 1/c_0$, there exists a positive constant $delta > 0$ such that for all but a vanishing fraction of the weight vectors $a$ in the domain $[1, lfloor 2^n/drfloor]^n$, no $0/1$ vector $e$ of weight at least $(1/2 – delta)n$ can make $(e,0)$ a shortest nonzero vector of the associated lattice $L(a, sum_i e_i a_i)$. Crucially, this holds true even when geometric ties—cases where multiple vectors share the exact same minimum norm—are counted as shortest.
Delving deeper into the quantitative aspects of the proof, Ahmed shows that for every arbitrarily small positive number $varepsilon > 0$, there exists a corresponding $delta = delta(varepsilon) > 0$ such that for almost all weight vectors $a$, the underlying lattice contains at least $2^(c_0 – 1/d – varepsilon)n$ integer relations that are strictly shorter than the planted vector $(e,0)$. This multitude of shorter relations occurs simultaneously for all binary vectors $e$ whose weight is at least $(1/2 – delta)n$.
Implications for Oracle-Based Attacks
The immediate consequence of this density theorem is profound for the security guarantees and operational limitations of subset-sum solvers. The research establishes that even if an attacker is equipped with an idealized, omniscient shortest-vector oracle—a computational tool capable of finding the absolute shortest vector in a lattice instantly without algorithmic error—the attack still fails.
For almost all weight vectors $a$, neither of the two primary runs of the Lagarias–Odlyzko attack will return the planted vector. This failure occurs simultaneously for all binary vectors $e$ where the absolute difference between the sum of its elements and $n/2$ is bounded by $delta n$. In particular, the oracle-based attack misses the correct planted solution for almost all pairs of weight vectors $a$ and binary vectors $e$ in this parameter space.
By bridging this rigorous lower bound with the earlier positive results established by Lagarias and Odlyzko, Ahmed’s work firmly identifies $1/c_0$ as the absolute critical density governing the oracle version of the attack. Above this density, the geometric structure of the lattice shifts fundamentally, drowning out the planted vector in a dense fog of shorter, unrelated integer vectors.
Mathematical Machinery and Formal Verification in Lean 4
Achieving this rigorous proof required sophisticated mathematical machinery. The methodology relies on a second-moment count of short relations originating from a specific type class located precisely at the saddle point of the theta function. This probabilistic and analytical approach is tightly combined with a discrete local limit theorem to bound the distribution of lattice norms and relations accurately in high dimensions.
Adding to the significance of the release is the complete formalization of the main theorem and its quantitative structure. Ahmed has made the formal verification artifacts publicly available in a dedicated repository on GitHub under the handle Attia Ahmed, registered under the Palomar registry entry PALOMAR-2026-11-27-000077.
By encoding these complex asymptotic arguments, saddle-point calculations, and probability theorems into Lean 4 using the Mathlib library, the work provides an exceptionally high standard of mathematical certainty. Formal verification eliminates potential gaps in human-written proofs, ensuring that every logical deduction holds up under machine checking.
The research paper concludes with the standard cryptographic ePrint metadata and complete BibTeX citation data, making it readily accessible for peer review, academic citation, and further exploration by researchers studying lattice reduction, cryptography, and the asymptotic behavior of discrete optimization problems.

