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 858

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 A⊆{1,…,N}A\subseteq \{1,\ldots,N\} be such that there is no solution to at=bat=b with a,b∈Aa,b\in A and the smallest prime factor of tt is >a>a. Estimate the maximum of 1log⁡N∑n∈A1n.\frac{1}{\log N}\sum_{n\in A}\frac{1}{n}.

This has been solved by Chojecki and GPT-5.4 Pro, who show that for large NN max⁡A∑n∈A1n=(c+o(1))log⁡N\max_A \sum_{n\in A}\frac{1}{n}=(c+o(1))\log N where the maximum is over all A⊆{1,…,N}A\subseteq \{1,\ldots,N\} with the stated property and c≈0.618⋯c\approx 0.618\cdots is an explicit constant.

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

Formal statement

theorem erdos_858 : ∃ c : ℝ, Tendsto (fun N : ℕ ↦ M N / log N) atTop (nhds c)
Show the full Challenge.lean (86 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Erdős Problem 858

*References:*
- [erdosproblems.com/858](https://www.erdosproblems.com/858)
- [Er70] Erdős, Paul, _Some extremal problems in combinatorial number theory_. Mathematical Essays
  Dedicated to A. J. Macintyre (1970), 123-133.
- [Al66] Alexander, Ralph, _Density and multiplicative structure of sets of integers_. Acta
  Arith. (1966/67), 321--332.
- [ESS68] Erdős, P. and Sárközi, A. and Szemerédi, E., _On the solvability of certain equations
  in sequences of positive upper logarithmic density_. J. London Math. Soc. (1968), 71--78.
- [Be35] Behrend, F., _On sequences of numbers not divisible by another_. London Math. Soc.
  Journal (1935), 42-45.
-/

@[expose] public section

open Filter Real

namespace Erdos858

/-- `A` has no solution to $at=b$ with $a,b\in A$ and the smallest prime factor of $t$
greater than $a$. -/
def IsAdmissible (A : Finset ℕ) : Prop :=
  ∀ a ∈ A, ∀ b ∈ A, ∀ t : ℕ, a * t = b → t.minFac ≤ a

/-- The maximum of $\sum_{n\in A}\frac{1}{n}$ over all admissible $A\subseteq \{1,\ldots,N\}$. -/
noncomputable def M (N : ℕ) : ℝ :=
  sSup {m | ∃ A ⊆ Finset.Icc 1 N, IsAdmissible A ∧ ∑ n ∈ A, (1 : ℝ) / n = m}

set_option linter.style.formal_proof_palomar false in
/--
Let $A\subseteq \{1,\ldots,N\}$ be such that there is no solution to $at=b$ with $a,b\in A$ and
the smallest prime factor of $t$ is $>a$. Estimate the maximum of
$$\frac{1}{\log N}\sum_{n\in A}\frac{1}{n}.$$

This has been solved by Chojecki and GPT-5.4 Pro, who show that for large $N$
$$\max_A \sum_{n\in A}\frac{1}{n}=(c+o(1))\log N$$
where the maximum is over all $A\subseteq \{1,\ldots,N\}$ with the stated property and
$c\approx 0.618\cdots$ is an explicit constant.
-/
@[category research solved, AMS 11, formal_proof using lean4 at
  "https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos858.lean#L4771"]
theorem erdos_858 : ∃ c : ℝ, Tendsto (fun N : ℕ ↦ M N / log N) atTop (nhds c) := by
  sorry

/-- The limit $c\approx 0.618\cdots$ is positive: for any fixed large $N$ the maximum is bounded
away from $0$ (Alexander [Al66], Erdős–Sárközi–Szemerédi [ESS68]). -/
@[category research solved, AMS 11]
theorem erdos_858.variants.positive :
    ∃ c : ℝ, 0 < c ∧ Tendsto (fun N : ℕ ↦ M N / log N) atTop (nhds c) := by
  sorry

open scoped Classical in
/--
Alexander [Al66] and Erdős, Sárközi, and Szemerédi [ESS68] proved that if $A$ is an infinite set
with this property then $\sum_{n\in A\cap [1,N]}\frac{1}{n}=o(\log N)$.
-/
@[category research solved, AMS 11]
theorem erdos_858.variants.infinite (A : Set ℕ) (hA : A.Infinite) (h0 : 0 ∉ A)
    (hadm : ∀ a ∈ A, ∀ b ∈ A, ∀ t : ℕ, a * t = b → t.minFac ≤ a) :
    (fun N : ℕ ↦ ∑ n ∈ (Finset.Icc 1 N).filter (· ∈ A), (1 : ℝ) / n) =o[atTop]
      fun N : ℕ ↦ log N := by
  sorry

end Erdos858

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

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