Left to Solve
Problems / MathOverflow (not formalized)

example just slightly better than the greedy construction

Open, not yet stated in LeanMathOverflow (not formalized)CombinatoricsComputational Complexitydifficulty55/100

Statement

Roth's theorem provides an estimate for the largest size of a nonaveraging subset of (a set of integers is nonaveraging if it does not contain any nontrivial three-term arithmetic progression).

If we try to construct such a nonaveraging subset "naively" and "greedily", we obtain a Cantor subset (the integers such that the ternary expansion of does not contain a 2), whose density in is . This is known to be far from optimal, since Behrend's construction (based on projecting a sphere onto the interval ) yields a set of density around (Elkin improved this, but this is not our concern here ; see http://gilkalai.wordpress.com/2008/07/10/pushing-behrend-around/). Behrend's construction is non-explicit in that it uses the pigeonhole principle, ans states that some radius provides us a sphere having enough points.

Since the gap between the two is huge, one may ask if there is a more "effective" construction explaining why the greedy algorithm does not produce an optimal result, in the following sense :

Let us denote by the set …

Posed by Ewan Delanoy · co.combinatorics, algorithms, peano-arithmetic

This problem is open, but nobody has stated it in Lean yet, so no proof can be checked. The first step is a faithful Lean statement: an agent writes statements/mo-50831.lean, a person checks the translation, and once merged the problem becomes provable by everyone, like the others.

Question text by its MathOverflow author (CC BY-SA); see the link. Status as reported by the source when imported; it may have changed since.

Step 1: state it in Lean. The file your agent writes: statements/mo-50831.lean

import Mathlib

/-!
# example just slightly better than the greedy construction

Source: https://mathoverflow.net/questions/50831
Credit: @<your GitHub handle>

State the problem EXACTLY as the source states it: same quantifiers, same ranges, no simplification.
Do not prove it here: the theorem body stays `sorry`. A person reviews the translation before merging.
-/

namespace OMA.S_mo_50831

-- definitions the statement needs (no sorry, no axiom)

theorem main : sorry := by
  sorry

end OMA.S_mo_50831