FormalConjectures/ErdosProblems/539.lean
Explanation legend Lean4 Domain Explanation Language (L4DEL)
L4DEL explanations are a separate layer. They do not change the Lean source. Intuition is explanatory prose; numbered items are a reading path; sources link the wording back to evidence.
- L4DEL
- Lean4 Domain Explanation Language
Credit: The upstream authors and contributors retain credit for the project and mathematics. lean4-explainer only renders their pinned source and adds the separately disclosed explanation layer.
Project sources: Pinned project documentation, Formal Conjectures paper, arXiv v1
10 declarations, 8 contain sorry, 0 declared as axioms
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 answer(sorry) for an unknown function. 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
- [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, Appendix A, Theorem A.1.
Imports (1)
Imported by 1 file
- def
Erdos539.IsCofactorLowerBoundWe 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$ line 53 sourceSource documentation
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$.
standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
NatProof uses:
Finset,Eq,Finset.card,LE.le,Finset.image,Prod,Erdos539.IsCofactorLowerBound.match_1,HDiv.hDiv,Nat.gcd,SProd.sprod5 instances, coercions and auxiliary constants left out.
def IsCofactorLowerBound (n m : ℕ) : Prop := ∀ A : Finset ℕ, #A = n → …
- def
Erdos539.cofactorThresholdThe cofactor threshold $h(n)$, for every positive $n$, is the largest cofactor lower bound for $n$ line 58 sourceSource documentation
The cofactor threshold $h(n)$, for every positive $n$, is the largest cofactor lower bound for $n$.
standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
NatProof uses:
SupSet.sSup,Set.ofPred, Erdos539.IsCofactorLowerBound1 instances, coercions and auxiliary constants left out.
noncomputable def cofactorThreshold (n : ℕ) : ℕ := …
- theorem
Erdos539.erdos_539Let $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)$ sorry line 64 sourceSource documentation
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)$.
depends on sorry what this means
Statement uses:
Asymptotics.IsTheta,Nat,Real,Filter.atTop, Erdos539.cofactorThreshold,sorryAx,Bool.falseProof uses:
Lean.Name,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous,OfNat.ofNat9 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
theorem erdos_539 : (fun n ↦ (cofactorThreshold n : ℝ)) =Θ[atTop] (answer(sorry) : ℕ → ℝ) := by …Mentions: Erdos539.cofactorThreshold
- theorem
Erdos539.erdos_539.variants.sqsorry line 74 sourcedepends on sorry what this means
Statement uses:
Iff,False,Asymptotics.IsTheta,Nat,Real,Filter.atTop, Erdos539.cofactorThreshold,Real.sqrtProof uses:
sorryAx,Lean.Name,Bool.false,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous,OfNat.ofNat9 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
- theorem
Erdos539.erdos_539.variants.sq_isBigOErdős and Szemerédi proved that$$n^{1/2} \ll h(n)$$ sorry line 81 sourceSource documentation
Erdős and Szemerédi proved that$$n^{1/2} \ll h(n)$$.
depends on sorry what this means
Statement uses:
Asymptotics.IsBigO,Nat,Real,Filter.atTop,Real.sqrt, Erdos539.cofactorThresholdProof uses:
sorryAx,Lean.Name,Bool.false,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous,OfNat.ofNat9 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
theorem erdos_539.variants.sq_isBigO : (fun n : ℕ ↦ √n) =O[atTop] fun n ↦ (cofactorThreshold n : ℝ) := by …Mentions: Erdos539.cofactorThreshold
- theorem
Erdos539.erdos_539.variants.isBigO_sqsorry line 89 sourcedepends on sorry what this means
Statement uses:
Iff,False,Asymptotics.IsBigO,Nat,Real,Filter.atTop, Erdos539.cofactorThreshold,Real.sqrtProof uses:
sorryAx,Lean.Name,Bool.false,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous,OfNat.ofNat9 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
- theorem
Erdos539.erdos_539.variants.sq_cube_rootsorry line 101 sourcedepends on sorry what this means
Statement uses:
Iff,False,Asymptotics.IsTheta,Nat,Real,Filter.atTop, Erdos539.cofactorThreshold,HPow.hPow,HDiv.hDiv,OfNat.ofNatProof uses:
sorryAx,Lean.Name,Bool.false,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous26 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
- theorem
Erdos539.erdos_539.variants.isBigO_sq_cube_rootGranville and Roesler [GR99] showed that $$h(n)\ll n^{2/3}$$ sorry line 109 sourceSource documentation
Granville and Roesler [GR99] showed that $$h(n)\ll n^{2/3}$$.
depends on sorry what this means
Statement uses:
Asymptotics.IsBigO,Nat,Real,Filter.atTop, Erdos539.cofactorThreshold,HPow.hPow,HDiv.hDiv,OfNat.ofNatProof uses:
sorryAx,Lean.Name,Bool.false,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous26 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
theorem erdos_539.variants.isBigO_sq_cube_root : (fun n ↦ (cofactorThreshold n : ℝ)) =O[atTop] fun n ↦ (n : ℝ) ^ ((2 : ℝ) / 3) := by …Mentions: Erdos539.cofactorThreshold
- theorem
Erdos539.erdos_539.variants.sq_cube_root_isBigOsorry line 117 sourcedepends on sorry what this means
Statement uses:
Iff,False,Asymptotics.IsBigO,Nat,Real,Filter.atTop,HPow.hPow,HDiv.hDiv,OfNat.ofNat, Erdos539.cofactorThresholdProof uses:
sorryAx,Lean.Name,Bool.false,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous26 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
- theorem
Erdos539.erdos_539.variants.limitsorry line 133 sourcedepends on sorry what this means
Statement uses:
Filter.Tendsto,Nat,Real,HDiv.hDiv,Real.log, Erdos539.cofactorThreshold,Filter.atTop,nhds,OfNat.ofNatProof uses:
sorryAx,Lean.Name,Bool.false,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous30 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.