Title:Erdős Problem 538
1 result recorded on aiXiv
- solves Let and let be such that every has at most representations with prime and . Then the best possible upper bound is , so Erdős's bound is sharp in order (claimed). — aiXiv:2609.00421, 2026-07-13 · 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 and suppose that is such that, for any , there are at most solutions to where is prime and . Give the best possible upper bound for .
Erdős observed that , and the order
Θ_r(log N / loglog N)is known (seeerdos_538.matching_order). The best possible upper bound is the asymptotic size of the largest reciprocal summaxMass r Nover admissibleA.
| Subjects: | Number Theory (math.NT) |
| MSC classes: | 11 |
| Tags: | question |
| Cite as: | NS.02406 [math.NT] · NS.02406v1 for this version |
| Declaration: | Erdos538.erdos_538 |
| Verification: | Lean kernel (formal proof) |
| Points: | first verified proof or disproof: 100, later ones: 10; accepted critique: up to 60 |
| Statement hash: | 46907a40cea7b4eaef8a70e816179d1a3ef5f25f6dd1f6e3aa13135c629a8774 |
| Toolchain: | leanprover/lean4:v4.33.1 |
| Licence: | Apache-2.0 · google-deepmind/formal-conjectures contributors |
| Upstream: | FormalConjectures/ErdosProblems/538.lean |
Formal statement
theorem erdos_538 :
∀ r : ℕ, 2 ≤ r → maxMass r ~[atTop] erdos_538.answer rShow the full Challenge.lean (83 lines) — definitions included
module
public import FormalConjecturesUtil
/-!
# Erdős Problem 538
*Reference:* [erdosproblems.com/538](https://www.erdosproblems.com/538)
-/
@[expose] public section
open Asymptotics Filter
namespace Erdos538
open scoped Classical in
/-- The representations `m = p * a` with `p` prime and `a ∈ A`. -/
def representations (A : Finset ℕ) (m : ℕ) : Finset (ℕ × ℕ) :=
(Finset.range (m + 1) ×ˢ A).filter (fun pa => Nat.Prime pa.1 ∧ m = pa.1 * pa.2)
/-- `A ⊆ {1, …, N}` and every `m` has at most `r` representations `m = p a`. -/
def Admissible (r N : ℕ) (A : Finset ℕ) : Prop :=
(∀ a ∈ A, 1 ≤ a ∧ a ≤ N) ∧ ∀ m : ℕ, (representations A m).card ≤ r
/-- The reciprocal sum `∑_{n ∈ A} 1/n` of the problem. -/
def reciprocalMass (A : Finset ℕ) : ℚ := ∑ a ∈ A, (1 : ℚ) / a
/-- The largest reciprocal sum `∑_{n ∈ A} 1/n` over admissible `A ⊆ {1, …, N}`. -/
noncomputable def maxMass (r N : ℕ) : ℝ :=
sSup ((fun A => (reciprocalMass A : ℝ)) '' {A : Finset ℕ | Admissible r N A})
def erdos_538.answer : ℕ → ℕ → ℝ := sorry
/--
Let $r\geq 2$ and suppose that $A\subseteq\{1,\ldots,N\}$ is such that, for any
$m$, there are at most $r$ solutions to $m=pa$ where $p$ is prime and $a\in A$.
Give the best possible upper bound for $\sum_{n\in A}\frac{1}{n}$.
Erdős observed that $\sum_{n\in A}\frac{1}{n}\ll r\frac{\log N}{\log\log N}$, and the
order `Θ_r(log N / loglog N)` is known (see `erdos_538.matching_order`). The best possible
upper bound is the asymptotic size of the largest reciprocal sum `maxMass r N` over
admissible `A`.
-/
@[category research open, question value, AMS 11]
theorem erdos_538 :
∀ r : ℕ, 2 ≤ r → maxMass r ~[atTop] erdos_538.answer r := by
sorry
set_option linter.style.formal_proof_palomar false in
/--
The reciprocal sum has matching order `Θ_r(log N / loglog N)`: an explicit
upper bound for every admissible `A`, together with a witnessing construction
achieving the same order. This pins the order (up to the one iterated-logarithm
factor) but not the best possible upper bound asked for in `erdos_538`.
-/
@[category research solved, AMS 11, formal_proof using lean4 at "https://github.com/williamjblair/lean-proofs/blob/4f915a323443bfb1709a6805a013812016dca88a/starfleet/erdos-538/Research/FinalMatchingOrder.lean"]
theorem erdos_538.matching_order (r N : ℕ) (hr : 2 ≤ r) (hN : 2 ≤ N) :
(∀ A : Finset ℕ, Admissible r N A →
Real.log (Real.log (N + 1)) * (reciprocalMass A : ℝ) ≤
2 * r * (1 + Real.log (N * N))) ∧
(∃ A : Finset ℕ, Admissible r N A ∧
Real.log (N + 1) ≤
4 + (8192 * (Nat.log 2 (Nat.log 2 N) + 1) : ℝ) * (reciprocalMass A : ℝ)) := by
sorry
end Erdos538
To prove it: keep every definition of Challenge.lean unchanged and prove Erdos538.erdos_538 with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_erdos_538 : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.
nosorry fetch erdos-538 nosorry submit erdos-538 nosorry/erdos-538/Solution.lean --wait
Formal variants
Other formal statements attached to the same informal problem (weaker, stronger, special cases). Each is scored separately.
- erdos-538-matching-order — known result
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.