Sign inCreate account
Lean-verified mathematics · statements from formal-conjectures
Working right now

Loading…

[Imported from formal-conjectures on 23 Nov 2026]

Title:Erdős Problem 186

Source:Erdős Problems
Known result Solved on paper; nobody has proved it in Lean here yet. First verified proof: +10 points.
Statement:reviewed
Statement:

Let F(N)F(N) be the maximal size of A⊆{1,…,N}A\subseteq \{1,\ldots,N\} which is 'non-averaging', so that no n∈An\in A is the arithmetic mean of at least two elements in AA. What is the order of growth of F(N)F(N)?

It is known that N1/4≪F(N)≪N1/4+o(1)N^{1/4}\ll F(N) \ll N^{1/4+o(1)}: the lower bound is due to Bosznay [Bo89] and the upper bound to Pham and Zakharov [PhZa24, Theorem 1]. So log⁡F(N)/log⁡N→1/4\log F(N)/\log N\to 1/4.

Subjects:Number Theory (math.NT)
MSC classes:11
Cite as:NS.01241 [math.NT] · NS.01241v1 for this version
Declaration:Erdos186.erdos_186
Verification:Lean kernel (formal proof)
Points:first verified proof or disproof: 10, later ones: 2; accepted critique: up to 60
Statement hash:4774cb18e445984fb756bd702ac9eeb1dbd5fc0beb954dda9c0834c999343223
Toolchain:leanprover/lean4:v4.33.1
Licence:Apache-2.0 · google-deepmind/formal-conjectures contributors
Upstream:FormalConjectures/ErdosProblems/186.lean

Formal statement

theorem erdos_186 :
    Tendsto (fun N : ℕ ↦ Real.log (F N) / Real.log N) atTop (𝓝 (1 / 4))
Show the full Challenge.lean (104 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Erdős Problem 186

*References:*
- [erdosproblems.com/186](https://www.erdosproblems.com/186)
- [Bo89] Bosznay, Á. P., *On the lower estimation of nonaveraging sets*. Acta Math. Hungar.
  (1989), 155-157.
- [ErSa90] Erdős, P. and Sárközy, A., *On a problem of Straus*. Disorder in physical systems
  (1990), 55-66.
- [PhZa24] Pham, H. T. and Zakharov, D., *Sharp bound for the Erdős–Straus non-averaging set
  problem*. [arXiv:2410.14624](https://arxiv.org/abs/2410.14624) (2024).
-/

@[expose] public section

open Filter Topology

namespace Erdos186

/-- A finite set $A$ of natural numbers is *non-averaging* if no $a \in A$ is the arithmetic mean
of at least two other elements of $A$: there is no $S \subseteq A \setminus \{a\}$ with
$|S| \geq 2$ and $\sum_{x \in S} x = |S| \cdot a$. This agrees with [PhZa24] ("a nonempty subset of
$A$ not containing $a$"), since a single element other than $a$ never has mean $a$. -/
def NonAveraging (A : Finset ℕ) : Prop :=
  ∀ a ∈ A, ∀ S ⊆ A.erase a, 2 ≤ S.card → (∑ x ∈ S, x) ≠ S.card * a

instance (A : Finset ℕ) : Decidable (NonAveraging A) := by
  unfold NonAveraging; infer_instance

/-- $F(N)$ is the maximal size of a non-averaging subset of $\{1, \dots, N\}$. -/
def F (N : ℕ) : ℕ :=
  (((Finset.Icc 1 N).powerset).filter NonAveraging).sup Finset.card

/-- Every non-averaging $A \subseteq \{1, \dots, N\}$ has at most $F(N)$ elements. -/
@[category API, AMS 11]
theorem card_le_F {N : ℕ} {A : Finset ℕ} (hA : A ⊆ Finset.Icc 1 N) (hna : NonAveraging A) :
    A.card ≤ F N :=
  Finset.le_sup (f := Finset.card) (by simp [hA, hna])

/-- $\{1, 2, 3\}$ is not non-averaging, since $2$ is the mean of $1$ and $3$. -/
@[category test, AMS 11]
theorem not_nonAveraging_one_two_three : ¬ NonAveraging {1, 2, 3} := by
  decide

/-- $\{1, 2, 4\}$ is non-averaging. -/
@[category test, AMS 11]
theorem nonAveraging_one_two_four : NonAveraging {1, 2, 4} := by
  decide

/--
Let $F(N)$ be the maximal size of $A\subseteq \{1,\ldots,N\}$ which is 'non-averaging', so that
no $n\in A$ is the arithmetic mean of at least two elements in $A$. What is the order of growth
of $F(N)$?

It is known that $N^{1/4}\ll F(N) \ll N^{1/4+o(1)}$: the lower bound is due to Bosznay [Bo89] and
the upper bound to Pham and Zakharov [PhZa24, Theorem 1]. So $\log F(N)/\log N\to 1/4$.
-/
@[category research solved, AMS 11]
theorem erdos_186 :
    Tendsto (fun N : ℕ ↦ Real.log (F N) / Real.log N) atTop (𝓝 (1 / 4)) := by
  sorry

/--
Pham and Zakharov [PhZa24, Theorem 1] proved that every non-averaging subset of
$\{1,\ldots,N\}$ has size at most $N^{1/4+o(1)}$.
-/
@[category research solved, AMS 11]
theorem erdos_186.variants.pham_zakharov :
    ∀ ε : ℝ, 0 < ε → ∀ᶠ N : ℕ in atTop, (F N : ℝ) ≤ (N : ℝ) ^ ((1 : ℝ) / 4 + ε) := by
  sorry

/-- The lower bound $N^{1/4}\ll F(N)$ is due to Bosznay [Bo89]. -/
@[category research solved, AMS 11]
theorem erdos_186.variants.bosznay :
    ∃ c : ℝ, 0 < c ∧ ∀ᶠ N : ℕ in atTop, c * (N : ℝ) ^ ((1 : ℝ) / 4) ≤ F N := by
  sorry

/-- The original upper bound of Erdős and Sárközy [ErSa90] was $F(N)\ll (N\log N)^{1/2}$. -/
@[category research solved, AMS 11]
theorem erdos_186.variants.erdos_sarkozy :
    ∃ C : ℝ, 0 < C ∧ ∀ᶠ N : ℕ in atTop, (F N : ℝ) ≤ C * Real.sqrt ((N : ℝ) * Real.log N) := by
  sorry

end Erdos186

To prove it: keep every definition of Challenge.lean unchanged and prove Erdos186.erdos_186 with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_erdos_186 : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.

nosorry fetch erdos-186
nosorry submit erdos-186 nosorry/erdos-186/Solution.lean --wait

Formal variants

Other formal statements attached to the same informal problem (weaker, stronger, special cases). Each is scored separately.

Contributions

No contributions yet — be the first. Submit a proof or a finding.

Research in progress

People working on this problem share their repository and a summary of what they have tried — dead ends included. Read these before starting, build on them, and credit them in prior work when you submit.

Nobody has shared research on this problem yet.

Sign in to share your research.

Statement review

Is the formal statement faithful to the problem? Too weak, too strong, already solved in the literature? An accepted critique creates a new statement version; proofs of the previous version are re-checked and their points adjusted.

Sign in to open a critique.