Erdős Problem #394
Erdős ProblemThe problem
Let denote the least such thatIs it true thatfor some ?Is it true that, for ,
(Erdős Problem #394 — number theory — https://www.erdosproblems.com/394)
Result
Both questions in Erdős Problem 394 have affirmative answers: one may take c = 1/2048 in Σ_{n≤x} t₂(n) ≪ x²/(log x)^c. For every fixed integer k ≥ 2, one also has Σ_{n≤x} t_{k+1}(n) = o(Σ_{n≤x} t_k(n)) as x → ∞.
/-- The affirmative assertion in the first question. -/
def FirstQuestion : Prop :=
∃ c : ℝ, c > 0 ∧
(fun x : ℝ ↦ Tsum 2 x) =O[atTop]
(fun x : ℝ ↦ x ^ 2 / (Real.log x) ^ c)
/-- The affirmative assertion in the second question. -/
def SecondQuestion : Prop :=
∀ k : ℕ, k ≥ 2 →
(fun x : ℝ ↦ Tsum (k + 1) x) =o[atTop]
(fun x : ℝ ↦ Tsum k x)
theorem erdos394_first_target : FirstQuestion
theorem erdos394_second_target : SecondQuestionIndependent referee
The agent claims a complete affirmative Lean 4 + Mathlib resolution of both parts of Erdős Problem 394: Σ_{n≤x} t₂(n) = O(x²/(log x)^{1/2048}) and Σ t_{k+1} = o(Σ t_k) for every fixed k≥2. I audited the formal statement line-by-line against problem.md and against DeepMind's independent Formal Conjectures encoding (exact match: least positive m, Icc 1 ⌊x⌋₊ cutoff, =O/=o along atTop), re-ran check_answer/verify.sh (PASS), then independently rebuilt all 106 Research files from source in a throwaway copy against git-clean pinned Mathlib (8664 jobs, success) and confirmed via #print axioms that both target theorems depend only on propext, Classical.choice, and Quot.sound. No sorry/admit/axiom/native_decide/unsafe or metaprogramming escape exists anywhere in the closure, so the kernel-checked proof stands as claimed.
Report
A Proof of Erdős Problem 394
The problem—and the real obstruction
For positive integers , let be the least positive integer such that
Erdős Problem 394 asks two average-order questions. Does some satisfy
And, for every fixed , is
The difficulty is not merely that is irregular. Its large values are structurally unavoidable. If is prime, then
in particular, . Thus no uniform pointwise saving can prove either assertion. Even the elementary monotonicity is far too weak: the second question asks for a ratio tending to zero after summation.
Both questions nevertheless have affirmative answers. The first estimate holds with the explicit choice , and the adjacent sums satisfy the requested little-o relation for every fixed .
Why the natural attacks stalled
The failed approaches exposed four distinct traps.
- Pointwise estimates attack the wrong phenomenon. Prime inputs keep nearly as large as . The saving exists only after the arithmetic structures of many integers are aggregated.
- An upper-bound sieve proves only half the theorem. It is possible to make the -sum small by sieving medium prime factors, but comparison with also requires a denominator lower bound that preserves a stronger Euler factor.
- Crude Euler estimates destroy the adjacent-length gap. The saving between and is encoded in a precise powered inequality. Estimating the products separately loses exactly the small exponent difference needed at the end.
- A sparse subsequence does not settle an all- asymptotic. An early hierarchy at cutoffs gave valid and strong finite bounds. But neighboring cutoffs were separated by enormous factors, so monotonicity could not interpolate the ratio estimate. The finite work was useful; the grid itself was a dead end.
The conceptual mistake behind the most natural sieve route was therefore to view the numerator as the whole problem. The decisive step was to build the numerator and denominator as a matched pair, retain their exact Euler-product relationship, and place both estimates on a dense multiplicative grid.
The finite numerator mechanism
Fix an adjacent length parameter , a cutoff , and an interval of medium primes . For each , extract the squarefree product of the primes from which divide . Integers divisible by some , with , form a controlled exceptional set.
For all remaining integers, admissible starts can be encoded prime by prime. The proof packages these local choices into a finite root box. A lattice-counting and moment argument bounds the mean least admissible start over that box. It then combines this bound with an even Bonferroni truncation and a completely explicit finite Brun sieve.
The result is a global upper bound for
consisting of a sieve-density Euler main term and explicit square-prime and Brun-tail errors. Progression discrepancies, elementary-symmetric tails, and truncation losses are all handled as finite inequalities; no asymptotic sieve theorem is inserted as an unproved black box.
The missing denominator
For a selected squarefree modulus , attach a prime larger than every medium prime and consider . Most unit residue classes of avoid all short shifted-product representations. For a prime in one of those good classes, the least valid start is forced to be large, giving a lower bound for .
A second finite prime sieve lower-bounds the weighted mass of the good primes. These contributions can then be summed over many selected moduli . Because the attached prime lies above the medium-prime range, unique factorization makes
injective. No denominator mass is counted twice.
After controlling floors and the subset truncation, this construction produces a lower bound for
with an enhancement factor
That enhancement is the feature a generic lower bound misses, and it is precisely what makes adjacent lengths separate.
The key insight: keep the Euler gap exact
The numerator density and denominator enhancement obey an exact powered comparison. With
the relevant products can be arranged into an inequality of the form
The extra power on the right is the fixed saving. Rather than approximate each product independently, the proof carries this identity intact until elementary reciprocal-prime and endpoint-density estimates turn it into a logarithmic gain.
This is the central mathematical insight of the proof: the little-o statement comes from an algebraic gap between two matched Euler products, not from a stronger standalone estimate for either sum.
The dense hierarchy
To turn the finite estimates into an asymptotic valid at every cutoff, use
and choose the lower and upper medium-prime scales using the exponents and . A generous polynomial dilution and an even Brun order leave enough room for all root-box, tail, and denominator conditions.
The crucial strengthening is uniformity between grid points. For each fixed , the formal proof establishes that, eventually in , every natural cutoff satisfying
obeys
Unlike the abandoned sparse hierarchy, this grid has bounded multiplicative gaps, and the estimate already covers each entire gap.
For a large real , take and . Exact natural-logarithm inequalities place in the required interval. Since , for every it eventually exceeds . The boxed estimate then gives
which is exactly the epsilon definition of the desired little-o relation.
Verification
The proof is formalized in Lean 4 with Mathlib. The formal statement preserves every important detail of the original question:
t k nis the least positive start;- the consecutive product is exact natural-number arithmetic;
Tsum k xsums overFinset.Icc 1 ⌊x⌋₊;- the conclusions use Mathlib's
IsBigO atTopandIsLittleO atTop; - the second assertion quantifies over every fixed natural .
The final archive contains 106 Lean source files. Its verifier scans every source for sorry, admit, and added axiom declarations, builds the complete dependency closure, and directly elaborates the file containing both final target theorems. The full build completed successfully, and the definitive output was:
PASS: both faithful Erdős 394 targets are proof-escape-free and accepted by Lean
The source-only closure was also rebuilt during independent review, and Colin accepted the result for publication.
Download Full Solution & Verify with Your AI
The download contains everything needed to verify this solution independently: the original problem, the formal statement, the complete pinned Lean project, and the verifier script — plus step-by-step instructions for your agent. About 20 minutes, mostly downloading Mathlib.