Erdős #142 (`variants.lower`):
OpenErdos142.erdos_142_variants_lowerLet 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.
import Mathlib import Definitions.Def_Erdos142Basic open Filter
namespace 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 Erdos142Read-back
What the Lean code literally says, in plain math · claude-opus-5
Read-back: Erdos142.erdos_142_variants_lower
The statement
The declaration takes one explicit natural-number argument and one hypothesis , and asserts a little-o relation between two functions , taken along the filter on (i.e. "as the natural number tends to infinity"):
where is the natural number defined below, injected into , and means the real number with the natural logarithm on .
Unfolded, the little-o relation is exactly the following quantifier structure:
Note the order of quantifiers: the threshold is chosen after , and the bound is non-strict (), with ranging over all strictly positive reals. Both sides are absolute values (norms) of reals; the left side equals since it is a natural number, and the right side equals .
The hypothesis is the only constraint on ; is otherwise arbitrary, and the claim is asserted for each such fixed separately (there is no uniformity in ).
What means (expanded from the bundle)
For natural numbers and ,
where the supremum is the supremum of a set of natural numbers, and is the integer interval (empty when ).
Junk-value convention for this supremum: the supremum is taken in , where by convention the supremum of an empty set, or of a set unbounded above, is . Here neither degenerate case arises: the empty set always qualifies (it is AP-free, and ), so the set of admissible cardinalities contains and is nonempty; and every admissible is at most . So is an attained maximum, and .
"AP-of-length--free" (IsAPOfLengthFree)
For a set in an additive commutative monoid and (the type ), the predicate reads literally:
The conclusion does not mention ; it is a statement about the fixed parameter only. So the predicate is logically equivalent to
In the theorem, is the natural number coerced into , and the hypothesis makes the conclusion false; hence for the values of covered by the theorem the predicate says: no subset is an arithmetic progression of length . (For the predicate would hold vacuously-by-conclusion for every , but those are excluded by the hypothesis.)
"Arithmetic progression of length " (IsAPOfLength / IsAPOfLengthWith)
A set is an arithmetic progression of length if there exist such that both:
- the cardinality of , computed in (a genuine natural number if is finite, and if is infinite), equals :
- is exactly the image set
where compares the natural number with inside , and is the -fold monoid multiple of .
Both conditions are required simultaneously. In particular condition 1 is what rules out degenerate progressions: with and , the choice would make the set in condition 2 equal to the singleton , whose cardinality is ; so is automatically excluded, and more generally the listed terms must be pairwise distinct. There is no separate hypothesis "" in the definition — non-degeneracy is carried entirely by the cardinality equation in .
In the application inside , the ambient monoid is , so and are natural numbers and ; the set is the finite set viewed as a set of naturals, and ranges over arbitrary subsets of contained in .
Putting it together, for : is the largest cardinality of a subset such that there are no for which has exactly elements and is contained in .
Junk values in the comparison function
The comparison function is , using real division, which is total: division by yields .
- At : by the real-logarithm convention, so the value is .
- At : , so the value is .
- For : and the value is the usual positive quantity .
Because the little-o relation is taken along , the bound is only required for all sufficiently large , so the two degenerate points (where the right-hand side is while ) place no constraint on the statement.
Items defined in the bundle but not used by this statement
The bundle also defines the elementary predicates
for a finite set , and proves three auxiliary facts: that the empty set is AP-of-length--free for every ; that every AP-free satisfies ; and that . Neither nor appears in the definition of or in the theorem statement; the theorem's notion of progression-freeness is the -cardinality one described above.
Summary of the literal claim
For every natural number with : for every real there exists a threshold such that for every natural number , the maximum size of a subset of containing no -element arithmetic progression is at most . Equivalently, as .
This theorem should be set as the Goal of Erods142 mission