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 542

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:

Is it true that if A⊆{1,…,n}A\subseteq\{1,\ldots,n\} is a set such that [a,b]>n[a,b]>n for all a≠ba\neq b, where [a,b][a,b] is the least common multiple, then ∑a∈A1a≤3130?\sum_{a\in A}\frac{1}{a}\leq \frac{31}{30}?

The answer is yes, proved by Schinzel and Szekeres [ScSz59]. The bound is best possible as A={2,3,5}A=\{2,3,5\} demonstrates.

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

Formal statement

theorem erdos_542.parts.i :
    ∀ (n : ℕ) (A : Finset ℕ), IsLcmFree n A → ∑ a ∈ A, (1 : ℝ) / a ≤ 31 / 30
Show the full Challenge.lean (144 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Erdős Problem 542

*References:*
- [erdosproblems.com/542](https://www.erdosproblems.com/542)
- [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.
- [Er80] Erdős, Paul, _A survey of problems in combinatorial number theory_. Ann. Discrete Math.
  (1980), 89-115.
- [Er98] Erdős, Paul, _Some of my new and almost new problems and results in combinatorial number
  theory_. Number theory (Eger, 1996) (1998), 169-180.
- [ScSz59] Schinzel, A. and Szekeres, G., _Sur un problème de M. Paul Erdős_. Acta Sci. Math.
  (Szeged) (1959), 221-229.
- [Ch96] Chen, Yong-Gao, _On a problem of P. Erdős_. Acta Sci. Math. (Szeged) (1996), 101--114.
-/

@[expose] public section

open Filter Real

namespace Erdos542

/-- A set `A ⊆ {1, …, n}` such that `lcm(a, b) > n` for all distinct `a, b ∈ A`. -/
def IsLcmFree (n : ℕ) (A : Finset ℕ) : Prop :=
  A ⊆ Finset.Icc 1 n ∧ (A : Set ℕ).Pairwise fun a b ↦ n < Nat.lcm a b

/-- The integers `1 ≤ m ≤ n` which are not divisible by any element of `A`. -/
def uncovered (n : ℕ) (A : Finset ℕ) : Finset ℕ :=
  (Finset.Icc 1 n).filter fun m ↦ ∀ a ∈ A, ¬ a ∣ m

set_option linter.style.formal_proof_palomar false in
/--
Is it true that if $A\subseteq\{1,\ldots,n\}$ is a set such that $[a,b]>n$ for all $a\neq b$,
where $[a,b]$ is the least common multiple, then
$$\sum_{a\in A}\frac{1}{a}\leq \frac{31}{30}?$$

The answer is yes, proved by Schinzel and Szekeres [ScSz59]. The bound is best possible as
$A=\{2,3,5\}$ demonstrates.
-/
@[category research solved, question, AMS 11, formal_proof using lean4 at
  "https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos542.lean#L2114"]
theorem erdos_542.parts.i :
    ∀ (n : ℕ) (A : Finset ℕ), IsLcmFree n A → ∑ a ∈ A, (1 : ℝ) / a ≤ 31 / 30 := by
  sorry

set_option linter.style.formal_proof_palomar false in
/-- The bound $31/30$ is attained by $A=\{2,3,5\}$ (with $n=5$). -/
@[category research solved, AMS 11, formal_proof using lean4 at
  "https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos542.lean#L2114"]
theorem erdos_542.variants.sharp :
    IsLcmFree 5 {2, 3, 5} ∧ ∑ a ∈ ({2, 3, 5} : Finset ℕ), (1 : ℝ) / a = 31 / 30 := by
  sorry

set_option linter.style.formal_proof_palomar false in
/--
Is it true that if $A\subseteq\{2,\ldots,n\}$ is a set such that $[a,b]>n$ for all $a\neq b$,
then there must be $\gg n$ many $m\leq n$ which are not divisible by any $a\in A$?

The answer is no, proved by Schinzel and Szekeres [ScSz59].

The element $1$ is excluded: $A=\{1\}$ satisfies the hypothesis and leaves no such $m$, so
without this restriction the answer would be negative for a trivial reason.
-/
@[category research solved, question, AMS 11, formal_proof using lean4 at
  "https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos542.lean#L2114"]
theorem erdos_542.parts.ii :
    ¬ ∃ c > 0, ∀ (n : ℕ) (A : Finset ℕ), IsLcmFree n A → 1 ∉ A →
      c * n ≤ ((uncovered n A).card : ℝ) := by
  sorry

set_option linter.style.formal_proof_palomar false in
/--
Schinzel and Szekeres [ScSz59] proved that, for any $\epsilon>0$, there are sets
$A\subseteq\{2,\ldots,n\}$ as in the problem with $o(n)$ many uncovered $m\leq n$ and for which
$\sum_{a\in A}\frac{1}{a}>1-\epsilon$.
-/
@[category research solved, AMS 11, formal_proof using lean4 at
  "https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos542.lean#L2114"]
theorem erdos_542.variants.schinzel_szekeres :
    ∀ ε > 0, ∀ δ > 0, ∃ (n : ℕ) (A : Finset ℕ), IsLcmFree n A ∧ 1 ∉ A ∧
      ((uncovered n A).card : ℝ) ≤ δ * n ∧ 1 - ε < ∑ a ∈ A, (1 : ℝ) / a := by
  sorry

/--
Schinzel and Szekeres [ScSz59] proved that there are examples $A\subseteq\{2,\ldots,n\}$ with at
most $n/(\log n)^c$ many such $m$, for some real constant $c>0$.
-/
@[category research solved, AMS 11]
theorem erdos_542.variants.log_power : ∃ c > (0 : ℝ), ∃ᶠ n : ℕ in atTop, ∃ A : Finset ℕ,
    IsLcmFree n A ∧ 1 ∉ A ∧ ((uncovered n A).card : ℝ) ≤ n / (log n) ^ c := by
  sorry

/--
Chen [Ch96] has proved that if $n>172509$ then
$$\sum_{a\in A}\frac{1}{a}< \frac{1}{3}+\frac{1}{4}+\frac{1}{5}+\frac{1}{7}+\frac{1}{11}.$$
-/
@[category research solved, AMS 11]
theorem erdos_542.variants.chen (n : ℕ) (hn : 172509 < n) (A : Finset ℕ) (hA : IsLcmFree n A) :
    ∑ a ∈ A, (1 : ℝ) / a < 1 / 3 + 1 / 4 + 1 / 5 + 1 / 7 + 1 / 11 := by
  sorry

/--
In [Er73] Erdős further speculates that in fact
$$\sum_{a\in A}\frac{1}{a}\leq 1+o(1),$$
where the $o(1)$ term $\to 0$ as $n\to \infty$.
-/
@[category research open, question, AMS 11]
theorem erdos_542.variants.one_add_little_o :
    ∃ o : ℕ → ℝ, Tendsto o atTop (nhds 0) ∧
      ∀ (n : ℕ) (A : Finset ℕ), IsLcmFree n A → ∑ a ∈ A, (1 : ℝ) / a ≤ 1 + o n := by
  sorry

/--
In [Er98] Erdős mentions that he, Schinzel, and Szekeres conjectured that $2,3,5$ and
$3,4,5,7,11$ are the only two sequences for which the sum is $>1$.
-/
@[category research open, question, AMS 11]
theorem erdos_542.variants.only_two :
    ∀ (n : ℕ) (A : Finset ℕ), IsLcmFree n A → 1 < ∑ a ∈ A, (1 : ℝ) / a →
      A = {2, 3, 5} ∨ A = {3, 4, 5, 7, 11} := by
  sorry

end Erdos542

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

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