Kelley–Meka (2023):
OpenErdos142.kelley_mekaThere is a constant such that, for all sufficiently large ,
This is the theorem of Kelley and Meka: a subset of of size at least must contain a non-trivial three-term arithmetic progression. It was the first bound of quasipolynomial type for the three-term problem, superseding the logarithmic-barrier bound of Bloom and Sisask, itself the first improvement past .
Set against Behrend's lower bound , this result narrows the three-term problem to determining the exponent of in the exponential, somewhere between and ; the constant is widely believed to be the truth. Kelley and Meka's argument rests on a sifting technique together with almost-periodicity results for convolutions, and it is the only route currently known to a density increment with polynomial dependence on the density.
Formalization Note. The implied constant of the usual notation is absorbed into the statement: for large any constant multiple can be traded for a slightly smaller , so the displayed form with and an eventual inequality is equivalent to the paper's, and fixes no arbitrary constant.
import Mathlib import Definitions.Def_Erdos142Basic
namespace Erdos142
theorem kelley_meka :
∃ c : ℝ, 0 < c ∧ ∀ᶠ N : ℕ in Filter.atTop,
(r 3 N : ℝ) ≤ (N : ℝ) * Real.exp (-c * (Real.log N) ^ ((1 : ℝ) / 12)) := by sorry
end Erdos142Read-back
What the Lean code literally says, in plain math · claude-opus-5
Read-back: Erdos142.kelley_meka
The literal assertion
The theorem asserts the existence of a single real constant such that
Here is a natural number that is cast into before the comparison, on the right-hand side is likewise the real cast of the natural number , is the natural logarithm on , and is the real exponential.
Quantifier order matters and is exactly this: first a real is chosen, then positivity of is asserted, and only then the "eventually" claim is made. The filter used is the "at infinity" filter on , so "eventually" unfolds to: there exists a threshold such that the displayed inequality holds for every natural . Because the threshold is introduced after , is allowed to depend on . Nothing constrains from above, nothing constrains , and no lower bound on is claimed. The inequality is non-strict ().
The statement is made only for the value in the first argument of ; nothing is asserted about for any other .
What means in this bundle
is defined in the imported bundle, not taken from any standard library, as
where is the integer interval from to inclusive, is the cardinality of the finite set , and the supremum is the supremum in . The index set of the supremum always contains (take ) and is bounded above by , so the supremum is an honest maximum; in particular the degenerate supremum convention (value for an empty or unbounded index set) is never triggered. Two auxiliary lemmas in the bundle, both fully proved, record exactly this: every progression-free satisfies , and for all .
What "AP-of-length- free" means in this bundle
The freeness predicate applied to the set (viewed as a subset of ) with length parameter is defined as:
for every subset , if is an arithmetic progression of length , then .
Since is false, this is equivalent to: no subset of is an arithmetic progression of length .
" is an arithmetic progression of length " is in turn defined as: there exist (elements of the ambient additive commutative monoid, here ) such that
- the cardinality of , measured in , equals ; and
- is exactly the set .
For this says and . The cardinality clause is a genuine extra requirement: it forces , , to be three distinct elements, which over rules out . So the common difference is never zero in the progressions that are forbidden, even though the definition itself never mentions ; and the definition requires to equal the three-element progression, not merely to contain it.
Note that this is the set-theoretic notion of a progression: an unordered three-element subset . Also note that the length parameter of the freeness predicate has type , and the natural number appearing in is coerced into it.
The real-exponent power
The expression uses the exponent as a real number, so the power is the real-exponent power (rpow), not iterated multiplication. For a base this is the ordinary , i.e. the real twelfth root. Its total-function conventions matter only at small : for and the logarithm is (with by the library's convention), and since the exponent is nonzero, so the bound degenerates to there. For every the base is strictly positive, so the negative-base branch of the real power (where for ) is never reached at any . Because the claim is only made eventually, none of these small values is actually asserted about.
Degenerate and edge cases folded into the statement
- , since is empty; is always at least and at most , so the asserted inequality is a statement strictly stronger than the trivial bound exactly because the exponential factor is for and .
- The freeness hypothesis inside the definition of is satisfiable (the empty set is progression-free, and this is proved in the bundle), so the supremum's index set is nonempty; the theorem is not vacuous on that account.
- The theorem carries no hypotheses of its own: there are no variables bound outside it and no typeclass assumptions beyond those built into and . The bundle's definitions are stated for a general additive commutative monoid , but the theorem instantiates them at only.
Items present in the bundle but not used by this statement
The bundle also defines an "elementary" pair of predicates: , saying there exist and with such that for every (a containment condition on an indexed progression, with no distinctness or exact-equality requirement), and , its negation. Neither of these appears in the definition of nor in the theorem; the theorem's notion of progression-freeness is solely the set-equality-plus-cardinality one described above.
Proof status
The proof of the theorem is left unfilled in the file (sorry); only the auxiliary bundle lemmas about the empty set, the lower bound , and the upper bound carry complete proofs.