← Star Fleet Math

Erdős Problem #450

Erdős Problem

www.erdosproblems.com/450

The problem

How large must y=y(ϵ,n)y=y(\epsilon,n) be such that the number of integers in (x,x+y)(x,x+y) with a divisor in (n,2n)(n,2n) is at most ϵy\epsilon y?

(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 ε n

Independent 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 y=y(ϵ,n)y=y(\epsilon,n) must be before the integers in (x,x+y)(x,x+y) having a divisor in (n,2n)(n,2n) occupy at most an ϵ\epsilon-fraction of the interval.

The natural uniform reading is adversarial in the translate: the estimate must hold for every xx, 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 nn contains n−1n-1 qualifying integers. Thus no answer of order o(n)o(n) can work for fixed 0<ϵ<10<\epsilon<1. The real question is whether one can prove a matching Oϵ(n)O_\epsilon(n) upper bound uniformly in xx.

Where the earlier routes stalled

The first exact approach used periodicity. For fixed nn, divisibility by some d∈(n,2n)d\in(n,2n) is periodic, so the problem has a precise period-density criterion. This led to a complete fixed-nn dichotomy: an eventual threshold exists exactly when ϵ\epsilon 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 nn.

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 m=dkm=dk.

The key breakthrough: finite-prime scores

Fix a finite set SS of primes, all at least five, and define

U(m)=#{p∈S:p∣m}. U(m)=\#\{p\in S:p\mid m\}.

A second, two-level score also records repeated selected prime factors:

W(m)=U(m)+#{p∈S:p2∣m}. W(m)=U(m)+\#\{p\in S:p^2\mid m\}.

The decisive pointwise inequality is

U(d)+U(k)≤W(dk). U(d)+U(k)\le W(dk).

If a selected prime divides both factors, its second occurrence is exactly what the p2p^2-term records. This turns the factorization m=dkm=dk, with n<d<2nn<d<2n, into a usable local trichotomy.

Let

μ=∑p∈S1p,Q=∏p∈Sp2. \mu=\sum_{p\in S}\frac1p, \qquad Q=\prod_{p\in S}p^2.

Both scores are periodic modulo QQ. Exact first and second moments over a complete period give

∑m<Q(U(m)−μ)2≤Qμ. \sum_{m<Q}(U(m)-\mu)^2\le Q\mu.

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 mm, choose a divisor d∈(n,2n)d\in(n,2n) and write m=dkm=dk. Then at least one of the following holds:

  1. U(d)≤3μ/4U(d)\le 3\mu/4;
  2. U(k)≤3μ/4U(k)\le 3\mu/4;
  3. W(m)≥3μ/2W(m)\ge 3\mu/2.

Indeed, if the first two alternatives fail, the product inequality forces the third.

The three classes can be counted uniformly in the translate. Once Q≤nQ\le n and y≥n(Q+2)y\ge n(Q+2), their weighted contributions are at most

  • 64y64y for low-score divisors;
  • 32y32y for low-score quotients;
  • 56y56y for high two-level score.

Thus

#{m∈(x,x+y):m has a divisor in (n,2n)} μ≤152y \#\{m\in(x,x+y):m\text{ has a divisor in }(n,2n)\}\,\mu\le 152y

for every xx.

The sum of the reciprocals of the primes diverges, so for each ϵ>0\epsilon>0 one may choose a finite SϵS_\epsilon with μ>152/ϵ\mu>152/\epsilon. The preceding inequality then gives the desired ϵy\epsilon y bound at the linear scale n(Qϵ+2)n(Q_\epsilon+2).

Why the order is sharp

The factorial dense block supplies the matching lower obstruction. At length y=ny=n, one explicit translate has exactly n−1n-1 bad integers. For every fixed 0<ϵ<10<\epsilon<1, this violates the requested estimate for all sufficiently large nn.

Consequently, every sufficient eventual threshold must exceed nn eventually, while the finite-prime argument gives a constant multiple of nn. The optimal fixed-epsilonepsilon growth order is therefore Θϵ(n)\Theta_\epsilon(n).

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 ϵy\epsilon y,” 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 0<ϵ<10<\epsilon<1.

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.

↓ Download full solution raw