/- Copyright 2026 The Formal Conjectures Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. -/ import FormalConjecturesUtil

Erdős Problem 450

Reference: erdosproblems.com/450

open Filteropen scoped Topologynamespace Erdos450

m has a divisor strictly between n and 2n.

def HasMediumDivisor (n m : ) : Prop := d : , n < d d < 2 * n d mopen scoped Classical in

The number of integers strictly between x and x + y with a divisor in (n, 2n).

noncomputable def localCount (n x y : ) : := ((Finset.Ioo x (x + y)).filter (HasMediumDivisor n)).card

Every window (x, x+y) has at most ε y integers with a divisor in (n, 2n).

def UniformlySparse (ε : ) (n y : ) : Prop := x : , (localCount n x y : ) ε * (y : )

Y ε n is a sufficient window length: for every ε > 0, all large n, and every y ≥ Y ε n, the window is ε-sparse.

def IsSufficientScale (Y : ) : Prop := ε : , 0 < ε N : , n : , N n y : , Y ε n y UniformlySparse ε n y

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

A linear scale is known to suffice (see erdos_450.linear_scale_suffices). Whether the optimal scale is sublinear — a sufficient Y with Y ε n = o(n) — is open.

@[category research open, AMS 11] theorem erdos_450 : answer(sorry) Y : , IsSufficientScale Y ε : , 0 < ε Tendsto (fun n : => (Y ε n : ) / n) atTop (𝓝 0) := True Y, IsSufficientScale Y (ε : ), 0 < ε Tendsto (fun n (Y ε n) / n) atTop (𝓝 0) All goals completed! 🐙

A translate-uniform linear scale suffices: there is a sufficient window length Y with Y ε n ≤ C(ε) · n. This is an upper bound on the optimal scale, not the exact threshold asked for in erdos_450.

@[category research solved, AMS 11, formal_proof using lean4 at "https://github.com/williamjblair/lean-proofs/blob/4f915a323443bfb1709a6805a013812016dca88a/starfleet/erdos-450/Research/TuranAnswer.lean"] theorem erdos_450.linear_scale_suffices : Y : , ( ε : , 0 < ε C : , n : , (Y ε n : ) C * n) IsSufficientScale Y := Y, (∀ (ε : ), 0 < ε C, (n : ), (Y ε n) C * n) IsSufficientScale Y All goals completed! 🐙end Erdos450