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 539

Source:Erdős Problems
Open problem Nobody knows the answer yet — neither on paper nor in Lean. First verified proof: +100 points.
Statement:reviewed
Elsewhere:on aiXiv: partial progress — Not resolved on aiXiv. Latest progress: bound in aiXiv:2609.00283 (2026-06-10). · erdosproblems.com: open (a claim recorded elsewhere, not verified on nosorry)
1 result recorded on aiXiv
  1. bound Let h(n)h(n) be the minimum of ∣{a/gcd⁡(a,b):a,b∈A}∣|\{a/\gcd(a,b):a,b\in A\}| over sets A⊆NA\subseteq\mathbb{N} with ∣A∣=n|A|=n. Then h(n)≤n1/2eO(log⁡n)h(n)\le n^{1/2}e^{O(\sqrt{\log n})}, which matches the Erdős–Szemerédi lower bound h(n)≫n1/2h(n)\gg n^{1/2}, so h(n)=n1/2+o(1)h(n)=n^{1/2+o(1)}. This improves the Freiman–Lev bound h(n)≪n2/3h(n)\ll n^{2/3}. — aiXiv:2609.00283, 2026-06-10 · claimed by its authors; no independent check recorded on aiXiv

From aixiv.online, an open archive of AI-assisted research, synced daily. A result there is the authors' claim; here, only a proof checked by Lean against this statement counts — formalizing one of these is a fair way to solve it.

Statement:

Let h(n)h(n) be maximal such that, for any set A⊆NA\subseteq \mathbb{N} of size nn, the set{a(a,b):a,b∈A}\left\{ \frac{a}{(a,b)}: a,b\in A\right\}has size at least h(n)h(n). Estimate h(n)h(n).

Subjects:Combinatorics (math.CO); Number Theory (math.NT)
MSC classes:05, 11
Tags:question
Cite as:NS.02408 [math.CO] · NS.02408v1 for this version
Declaration:Erdos539.erdos_539
Verification:Lean kernel (formal proof)
Points:first verified proof or disproof: 100, later ones: 10; accepted critique: up to 60
Statement hash:6fac234cb67dd64250adb8a3825d9a5f373f4138a344027c9bc44eaec0932415
Toolchain:leanprover/lean4:v4.33.1
Licence:Apache-2.0 · google-deepmind/formal-conjectures contributors
Upstream:FormalConjectures/ErdosProblems/539.lean

Formal statement

theorem erdos_539 :
    (fun n ↦ (cofactorThreshold n : ℝ)) =Θ[atTop] erdos_539.answer
Show the full Challenge.lean (145 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Erdős Problem 539

In this problem, a function $h : \mathbb{N} \to\mathbb{N}$ is defined maximally by a specified
counting property.

The problem asks to estimate $h(n)$. This has been interpreted here as asking for $\Theta(h(n))$.
The principal version includes the unknown function `erdos_539.answer`. On the other hand, the best
known upper bound is $n^{2/3}$ and the best known lower bound is $\sqrt{n}$ so we
also provide these candidates as variants. Moreover, it suffices to show $O(h(n))$ and
$O(\sqrt{n})$ respectively for each, so further variants are provided for those.

In the source paper [Er73], Erdős also remarks that it should not be too difficult
to determine $\lim_{n\to\infty}\log(h(n))/\log(n)$. This does not appear on the website, and
it is not clear whether this remains open, but we include it here either way.

*References:*
- [erdosproblems.com/539](https://www.erdosproblems.com/539)
- [GR99] Granville, A., & Roesler, F. (1999). _The Set of Differences of a Given Set_. The American Mathematical Monthly, 106(4), 338–344.
- [Er73] Erdős, P., _Problems and results on combinatorial number theory_. A survey of combinatorial theory (Proc. Internat. Sympos., Colorado State Univ., Fort Collins, Colo., 1971) (1973), 117-138.
- [Sc+26] Schmitt, J., Gehrunger, T., Dekoninck, J., Bérczi, G., Kreitner, U., Price, L., & Holmes, D. (2026). _ProofCouncil: An LLM Agent for Solving Open Mathematical Problems_. [arXiv:2607.09474](https://arxiv.org/abs/2607.09474), Appendix A, Theorem A.1.
-/

@[expose] public section

open Filter

open scoped Asymptotics Finset

namespace Erdos539

/-- We say that $m$ is a cofactor lower bound for a given $n$ if, for every set $A$ of $n$
non-negative integers, there are at least $m$ cofactors $a / (a, b)$, where $a, b\in A$.-/
def IsCofactorLowerBound (n m : ℕ) : Prop := ∀ A : Finset ℕ, #A = n →
  m ≤ #((A ×ˢ A).image fun (a, b) ↦ a / a.gcd b)

/-- The cofactor threshold $h(n)$, for every positive $n$, is the largest cofactor lower bound
for $n$. -/
noncomputable def cofactorThreshold (n : ℕ) : ℕ :=
  sSup {m | IsCofactorLowerBound n m}

def erdos_539.answer : ℕ → ℝ := sorry

/-- Let $h(n)$ be maximal such that, for any set $A\subseteq \mathbb{N}$ of size $n$, the
set$$\left\{ \frac{a}{(a,b)}: a,b\in A\right\}$$has size at least $h(n)$. Estimate $h(n)$. -/
@[category research open, question value, AMS 5 11]
theorem erdos_539 :
    (fun n ↦ (cofactorThreshold n : ℝ)) =Θ[atTop] erdos_539.answer := by
  sorry

set_option linter.style.formal_proof_palomar false in
/-- Let $h(n)$ be maximal such that, for any set $A\subseteq \mathbb{N}$ of size $n$, the
set$$\left\{ \frac{a}{(a,b)}: a,b\in A\right\}$$has size at least $h(n)$.
Is $h(n) = \Theta(\sqrt{n})$? -/
@[category research solved, question, AMS 5 11,
  formal_proof using lean4 at
    "https://github.com/KitaKen1/erdos-539-sqrt-disproof/blob/f4b14f9ef32c111162d3fd587e1c65b27a1524d5/lean/Erdos539SqrtFC.lean#L41-L44"]
theorem erdos_539.variants.sq :
    ¬ ((fun n ↦ (cofactorThreshold n : ℝ)) =Θ[atTop] fun n ↦ √n) := by
  sorry

/-- Erdős and Szemerédi proved that$$n^{1/2} \ll h(n)$$. -/
@[category research solved, AMS 5 11]
theorem erdos_539.variants.sq_isBigO :
    (fun n : ℕ ↦ √n) =O[atTop] fun n ↦ (cofactorThreshold n : ℝ) := by
  sorry

set_option linter.style.formal_proof_palomar false in
/-- Is $h(n) = O(\sqrt{n})$? -/
@[category research solved, question, AMS 5 11,
  formal_proof using lean4 at
    "https://github.com/KitaKen1/erdos-539-sqrt-disproof/blob/f4b14f9ef32c111162d3fd587e1c65b27a1524d5/lean/Erdos539SqrtFC.lean#L36-L39"]
theorem erdos_539.variants.isBigO_sq :
    ¬ ((fun n ↦ (cofactorThreshold n : ℝ)) =O[atTop] fun n ↦ √n) := by
  sorry

set_option linter.style.formal_proof_palomar false in
/-- Let $h(n)$ be maximal such that, for any set $A\subseteq \mathbb{N}$ of size $n$, the
set$$\left\{ \frac{a}{(a,b)}: a,b\in A\right\}$$has size at least $h(n)$.
Is $h(n) = \Theta(n^{2/3})$?
The answer is negative; see [Sc+26, Theorem A.1] and the linked Lean proof. -/
@[category research solved, question, AMS 5 11,
  formal_proof using lean4 at
    "https://github.com/KitaKen1/erdos-539-formal-conjectures/blob/79897cf9241390eb168572f4a481e29e0e64b5f7/lean/Erdos539/FC.lean#L282-L296"]
theorem erdos_539.variants.sq_cube_root :
    ¬ ((fun n ↦ (cofactorThreshold n : ℝ)) =Θ[atTop]
      fun n ↦ (n : ℝ) ^ ((2 : ℝ) / 3)) := by
  sorry

/-- Granville and Roesler [GR99] showed that $$h(n)\ll n^{2/3}$$.-/
@[category research solved, AMS 5 11]
theorem erdos_539.variants.isBigO_sq_cube_root :
    (fun n ↦ (cofactorThreshold n : ℝ)) =O[atTop] fun n ↦ (n : ℝ) ^ ((2 : ℝ) / 3) := by
  sorry

set_option linter.style.formal_proof_palomar false in
/-- This lower bound is false; see [Sc+26, Theorem A.1] and the linked Lean proof. -/
@[category research solved, question, AMS 5 11,
  formal_proof using lean4 at
    "https://github.com/KitaKen1/erdos-539-formal-conjectures/blob/79897cf9241390eb168572f4a481e29e0e64b5f7/lean/Erdos539/FC.lean#L282-L296"]
theorem erdos_539.variants.sq_cube_root_isBigO :
    ¬ ((fun n : ℕ ↦ (n : ℝ) ^ ((2 : ℝ) / 3)) =O[atTop]
      fun n ↦ (cofactorThreshold n : ℝ)) := by
  sorry

noncomputable def erdos_539.variants.limit.answer : Filter ℝ := nhds ((1 : ℝ) / 2)

set_option linter.style.formal_proof_palomar false in
/-- From [Er73]: The determination of
$$
  \lim_{n\to\infty}\frac{\log(h(n))}{\log(n)}
$$
will perhaps be not too difficult.
The limit is $1/2$; see [Sc+26, Theorem A.1] and the linked Lean proof.
-/
@[category research solved, question value, AMS 5 11,
  formal_proof using lean4 at
    "https://github.com/KitaKen1/erdos-539-formal-conjectures/blob/79897cf9241390eb168572f4a481e29e0e64b5f7/lean/Erdos539/FC.lean#L282-L296"]
theorem erdos_539.variants.limit :
    atTop.Tendsto
      (fun n ↦ Real.log (cofactorThreshold n) / Real.log n)
      erdos_539.variants.limit.answer := by
  sorry

end Erdos539

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

nosorry fetch erdos-539
nosorry submit erdos-539 nosorry/erdos-539/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.