Erdős asked, repeatedly and with a rising price tag, for an asymptotic formula for the largest subset of that contains no arithmetic progression of a given length. He offered 1000 dollars for it in [Er97c] and 10000 dollars in [Er81, p.4], where he called the question "probably enormously difficult"; elsewhere he described it as "probably unattackable at present". Most of modern additive combinatorics — the density increment method, the triangle removal lemma, Gowers uniformity norms, the arithmetic regularity lemma — grew out of attempts on this single question, and the answer is still unknown, even in the first non-trivial case .
Timeline.
Every upper bound in this list is still astronomically far from Behrend's lower bound, and no candidate asymptotic formula has been proposed for any .
Fix an integer . A non-trivial -term arithmetic progression is a list of natural numbers with common difference ; the requirement is what "non-trivial" means, and it forces the terms to be distinct. A finite set is -AP-free if it contains no such progression. Write
The mission takes its formal definition of verbatim from the formal-conjectures entry for this problem, so that the goal below is literally the statement recorded there. In that development a set is called free of progressions of length when every subset of it that is an arithmetic progression of length forces . Progressions of length and count as trivial, so under that convention every set is free of them and ; the interesting range begins at . Every statement in this mission that depends on the convention carries an explicit hypothesis on .
On that range, is non-decreasing in both and , satisfies , and hence, by Fekete's subadditivity lemma, converges. Szemerédi's theorem is the statement that the limit is ; the whole difficulty of this mission lies in how fast it goes to .
This is erdos_142.variants.lower of the formal-conjectures file for Erdős 142, reproduced binder for binder, over that file's own definition of .
The headline theorem in that file, erdos_142, states with the comparison function left as an answer(sorry) placeholder, and the same is true of its variants.upper and variants.three. Those are not closed propositions and cannot serve as a mission goal: the literal request of Erdős Problem #142 — "prove an asymptotic formula for " — has no known right-hand side for any , which is exactly why the file leaves a hole there. variants.lower is the one formalizable target in the file, and it is also the strongest precisely-stated form the problem page attaches to #142: Erdős offered 5000 dollars for (essentially) exactly it, as recorded under Erdős Problem #3. It is known for — it follows from Bloom–Sisask 2020, and a fortiori from Kelley–Meka 2023 — trivial for , where , and open for every . It fixes no constants, so no future improvement can invalidate it.
Erdős remarked in [Er80, p.92] that even this separation between consecutive progression lengths is not known. Here [Er80] is the erdosproblems.com bibliography key for Erdős's 1980 paper; it is a citation, not a pointer to Erdős Problem #80, which is an unrelated question about books in graphs. This statement has no counterpart in formal-conjectures: the file for #142 contains only the , and variants above, and the only two files in that repository that mention at all are the ones for #142 and #139.
Proving for all yields, by a standard summation argument, Erdős's conjecture that every with contains arbitrarily long arithmetic progressions — the 5000-dollar Erdős Problem #3, of which the Green–Tao theorem on primes is the best-known special case. Below that threshold, quantitative bounds on control the density at which progressions must appear in any concrete set, and are the input to results on progressions in the primes, in sumsets, and in sparse random subsets of the integers.
Formalization status is uneven, and this mission is designed around that gap. Mathlib already contains the theory in a usable form: the predicate ThreeAPFree, the Roth number rothNumberNat, its subadditivity, and a complete formalization of Behrend's construction (Behrend.roth_lower_bound). Mathlib does not contain Roth's theorem, Szemerédi's theorem, or any of the modern upper bounds; to the best of current knowledge none of Roth, Szemerédi, Gowers, Green–Tao, Kelley–Meka or Leng–Sah–Sawhney has a machine-checked proof anywhere. The formal-conjectures entry states the problem but proves nothing: every declaration in it is a sorry. Two of this mission's targets are taken from that repository — the goal from its file for #142, and the Szemerédi milestone from its file for #139, which uses the same ; those are the only two files there that mention . The milestones therefore split cleanly: the first six are reachable now on top of Mathlib, and the last five are open formalization projects of independent value.
Every known upper bound for runs a density increment: if of density has no -term progression, find a long subprogression on which has density , and iterate. The bound this produces is governed entirely by two quantities — how large the increment is, and how much of the interval survives one step. For the increment is extracted from an inverse theorem for the Gowers -norm, and the best available correlation bounds there are quasipolynomial in ; iterating a quasipolynomial increment cannot do better than , which is nowhere near . Reaching requires an increment with polynomial dependence on together with a subprogression of polynomial length, and that combination is currently available only for , through the sifting and almost-periodicity machinery of Kelley–Meka. No soft or averaging argument can substitute: Behrend's construction shows the truth at is , so the answer is not a power of and cannot be produced by any argument whose output has that shape.
The mission's definition file Erdos142Basic carries two layers, and every statement in the mission is written against them.
The source definitions, ported verbatim. IsAPOfLengthWith, IsAPOfLength, IsAPOfLengthFree and r are the declarations of the formal-conjectures entry, transcribed unchanged into the mission's namespace: a set is an arithmetic progression of length with first term and difference when it has exactly elements and equals ; it is free of length- progressions when every progression of length inside it forces ; and is the supremum of over subsets free of length- progressions. The ground set is Finset.Icc 1 N, and the supremum is sSup over ; the file proves the two facts that make it a genuine maximum (le_r and r_le).
An elementary handle. HasAP k A is ∃ a d, 0 < d ∧ ∀ i < k, a + i * d ∈ A, and APFree k A its negation. This form carries no cardinality side condition in and is what a solver actually wants to induct on. The first milestone is exactly the bridge between the two layers.
Two consequences of the source convention are worth stating plainly, because the prose is silent about them. Length- and length- progressions are trivial, so every set is free of them and ; monotonicity of in therefore holds only from onward, and the corresponding milestone carries that hypothesis. Asymptotic statements use Asymptotics.IsLittleO and Filter.atTop over with real-valued casts, and real division is Lean's, so (N : ℝ) / Real.log N is at ; this is invisible to atTop.
A trivializing formalization is ruled out by construction: one milestone asserts rothNumberNat N, pinning this development against Mathlib's independently written definition of the Roth number, so a vacuous or mis-quantified notion of progression-freeness cannot survive. That milestone, the bridge milestone above it, and the monotonicity milestone have all been checked to be provable before this proposal was drafted.
A full development needs: discrete Fourier analysis on , Bohr sets and their regularity, the arithmetic regularity lemma, Gowers uniformity norms and the inverse theorem for them, and — for the lower bounds — sphere-counting in high-dimensional boxes (already in Mathlib via Behrend). All of this is reusable well beyond this mission. Contributions of any kind are welcome, including partial results: quantitative bounds weaker than the cited ones, the case of a general- milestone, and reusable Fourier-analytic infrastructure are all valuable even when they do not close a milestone.
FormalConjectures/ErdosProblems/142.lean — the source of the goal statement and of the definition of . https://github.com/google-deepmind/formal-conjectures/blob/main/FormalConjectures/ErdosProblems/142.leannamespace Erdos142
theorem erdos_142_variants_lower (k : ℕ) (hk : 1 < k) :
(fun N => (r k N : ℝ)) =o[atTop] (fun N : ℕ => N / (N : ℝ).log) := by sorry
end Erdos142Let be the largest possible size of a subset of that does not contain any non-trivial -term arithmetic progression. The claim is that for every ,
that is, as , with the rate allowed to depend on .
This statement is erdos_142.variants.lower of the formal-conjectures entry for Erdős Problem #142, reproduced binder for binder over that file's own definition of .
It is the one formalizable target in that file. The headline declaration there, erdos_142, asserts with the comparison function left as a placeholder, and so do variants.upper and variants.three: the literal request of the problem — an asymptotic formula for — has no known right-hand side for any . The displayed estimate is also the strongest precisely-stated form the problem page attaches to #142; Erdős offered 5000 dollars for (essentially) exactly it, which is the content of Erdős Problem #3. It is known for , where it follows from the bound of Bloom and Sisask and a fortiori from that of Kelley and Meka; it is trivial for , where ; and it is open for every . Proving it for all gives, by a standard summation argument, Erdős's conjecture that any set of natural numbers whose reciprocals sum to infinity contains arbitrarily long arithmetic progressions.
Formalization Note. The asymptotic relation is Asymptotics.IsLittleO along Filter.atTop on , applied to the real-valued casts. Real division is Lean's, so the comparison function is at ; this is invisible to the atTop filter. The hypothesis is , exactly as in the source file.