Erdős Problem #450
Erdős ProblemThe problem
How large must be such that the number of integers in with a divisor in is at most ?
(Erdős Problem #450 — number theory, divisors — https://www.erdosproblems.com/450)
Result
For every fixed real ε>0 there is a constant C(ε) such that y≥C(ε)n suffices uniformly for every natural translate x and all sufficiently large n; concretely, if Sε is a finite set of primes at least 5 with ∑_{p∈Sε}1/p>152/ε, then C(ε)=∏_{p∈Sε}p²+2 works. Conversely, for every 0<ε<1 every sufficient eventual threshold is greater than n for all sufficiently large n, so the sharp fixed-ε order is Θ_ε(n).
noncomputable def turanLinearAnswer (ε : ℝ) (n : ℕ) : ℕ :=
n * (primeSquarePeriod (turanPrimeSet ε) + 2)
/-- Main upper bound: Erdős Problem 450 admits a translate-uniform linear scale
`y = C(ε)n`. -/
theorem turanLinearAnswer_isSufficientScale :
IsSufficientScale turanLinearAnswer
/-- Every sufficient eventual threshold has to exceed `n` eventually for each
fixed `0 < ε < 1`. -/
theorem sufficientScale_eventually_gt_n
(Y : ℝ → ℕ → ℕ) (hY : IsSufficientScale Y)
(ε : ℝ) (hεpos : 0 < ε) (hεone : ε < 1) :
∃ N : ℕ, ∀ n : ℕ, N ≤ n → n < Y ε nIndependent referee
The agent claims Erdős #450 (pinned uniform-in-x reading) has answer Θ_ε(n): the sorry-free Lean theorem turanLinearAnswer_isSufficientScale proves y ≥ n(Q_ε+2) suffices (count ≤ εy for every translate x, all large n), and sufficientScale_eventually_gt_n proves any sufficient scale must exceed n. I independently wiped local build artifacts, rebuilt via check_answer/check.sh (PASS, 8567 jobs, real re-elaboration), grepped all local sources for escape hatches (clean), confirmed Mathlib is pinned to an unmodified upstream rev, verified #print axioms shows only propext/Classical.choice/Quot.sound, and audited Basic.lean's definitions quantifier-by-quantifier against problem.md (open intervals, ∀x:ℕ, exact ≤ ε·y; the eventually-in-n form is provably forced, e.g. n=2, ε<1/3 admits no y). Caveats for human review: the x-quantifier interpretation is pinned (disclosed; the source omits it), and sharpness is in the n-order only — the ε-dependence of the optimal constant (between ~1 and the tower Q_ε+2) remains open.
Report
A Linear-Scale Solution to Erdős Problem 450
The problem and its hidden difficulty
Erdős asked how large an interval length must be before the integers in having a divisor in occupy at most an -fraction of the interval.
The natural uniform reading is adversarial in the translate: the estimate must hold for every , not merely for a typical interval. That distinction is the main difficulty. Global density estimates—even very strong ones—do not prevent exceptional translates from containing dense clusters.
There is also a genuine linear obstruction. Immediately after a suitable factorial translate, an interval of length contains qualifying integers. Thus no answer of order can work for fixed . The real question is whether one can prove a matching upper bound uniformly in .
Where the earlier routes stalled
The first exact approach used periodicity. For fixed , divisibility by some is periodic, so the problem has a precise period-density criterion. This led to a complete fixed- dichotomy: an eventual threshold exists exactly when exceeds the density in one period.
That result was correct but did not solve the asymptotic problem. Its period is enormous, and it left open the essential assertion that the density tends to zero with .
A Möbius expansion improved the local discrepancy dramatically, replacing the full period by a subexponential coefficient norm. But this route still needed a formally imported global multiplication-table theorem, such as Ford's deep density estimate. More importantly, it obscured the simpler structure needed for a linear bound.
The conceptual mismatch was this: global density machinery was being asked to solve a local, adversarial-translate problem. What was needed instead was a statistic that both concentrates on every long enough interval and behaves predictably when a bad integer is factored as .
The key breakthrough: finite-prime scores
Fix a finite set of primes, all at least five, and define
A second, two-level score also records repeated selected prime factors:
The decisive pointwise inequality is
If a selected prime divides both factors, its second occurrence is exactly what the -term records. This turns the factorization , with , into a usable local trichotomy.
Let
Both scores are periodic modulo . Exact first and second moments over a complete period give
Chebyshev's inequality therefore controls integers with unusually low score. A Markov estimate for square divisibility controls integers with unusually high two-level score. Periodicity transfers these estimates to every interval, with only one fixed period of boundary loss.
The three-class decomposition
For every bad integer , choose a divisor and write . Then at least one of the following holds:
- ;
- ;
- .
Indeed, if the first two alternatives fail, the product inequality forces the third.
The three classes can be counted uniformly in the translate. Once and , their weighted contributions are at most
- for low-score divisors;
- for low-score quotients;
- for high two-level score.
Thus
for every .
The sum of the reciprocals of the primes diverges, so for each one may choose a finite with . The preceding inequality then gives the desired bound at the linear scale .
Why the order is sharp
The factorial dense block supplies the matching lower obstruction. At length , one explicit translate has exactly bad integers. For every fixed , this violates the requested estimate for all sufficiently large .
Consequently, every sufficient eventual threshold must exceed eventually, while the finite-prime argument gives a constant multiple of . The optimal fixed- growth order is therefore .
Formal verification
The complete argument was formalized in Lean 4 with Mathlib. The formal statement uses open intervals, natural translates, the real inequality “at most ,” and requires the estimate for every length above the threshold.
The main theorem is:
theorem turanLinearAnswer_isSufficientScale :
IsSufficientScale turanLinearAnswer
A second theorem proves the matching eventual lower bound for every .
The hostile checker rejects sorry, admit, local axioms, and unsafe declarations before building the standalone proof project. It reports:
Build completed successfully (8567 jobs).
PASS: Lean build succeeded and local sources contain no forbidden escape hatch
The proof is archived in verified_math/F-013_turan-linear-scale/.
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.