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 299 · variants.density

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:

The corresponding question is also false if one replaces sequences such that ai+1−ai=O(1)a_{i+1} - a_i = O(1) with sets of positive density, as follows from [Bl21].

The statement is as follows: If A⊂NA \subset \mathbb{N} has positive upper density (and hence certainly if AA has positive density) then there is a finite S⊂AS \subset A such that ∑n∈S1n=1\sum_{n \in S} \frac{1}{n} = 1.

Subjects:Number Theory (math.NT); Classical Analysis and ODEs (math.CA)
MSC classes:11, 40
Cite as:NS.01596 [math.NT] · NS.01596v1 for this version
Declaration:Erdos299.erdos_299.variants.density
Verification:Lean kernel (formal proof)
Points:first verified proof or disproof: 10; accepted critique: up to 100
Statement hash:4cfc81bd413eafb4f8a7249054dc3a07eea83b1f87be53de13411c5173844c5d
Toolchain:leanprover/lean4:v4.33.1
Licence:Apache-2.0 · google-deepmind/formal-conjectures contributors
Upstream:FormalConjectures/ErdosProblems/299.lean

Formal statement

theorem erdos_299.variants.density : ∀ (A : Set ℕ), 0 ∉ A → 0 < A.upperDensity →
    ∃ S : Finset ℕ, ↑S ⊆ A ∧ ∑ n ∈ S, (1 : ℝ) / n = 1
Show the full Challenge.lean (66 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Erdős Problem 299

*References:*
- [erdosproblems.com/298](https://www.erdosproblems.com/298)
- [erdosproblems.com/299](https://www.erdosproblems.com/299)
- [Bl21] Bloom, T. F., On a density conjecture about unit fractions. arXiv:2112.03726 (2021).
-/

@[expose] public section

open Filter

namespace Erdos299

set_option linter.style.formal_proof_palomar false in
/--
Is there an infinite sequence $a_1 < a_2 < \dots$ such that $a_{i+1} - a_i = O(1)$ and no finite
sum of $\frac{1}{a_i}$ is equal to 1?

There does not exist such a sequence, which follows from the positive solution to
[erdosproblems.com/298] by Bloom [Bl21].

This was formalized in Lean 3 by Bloom and Mehta.
-/
@[category research solved, question, AMS 11 40, formal_proof using other_system at "https://github.com/b-mehta/unit-fractions/blob/master/src/final_results.lean"]
theorem erdos_299 : ¬ (∃ (a : ℕ → ℕ),
    StrictMono a ∧ (∀ n, 0 < a n) ∧
    (fun n ↦ (a (n + 1) : ℝ) - a n) =O[atTop] (1 : ℕ → ℝ) ∧
    ∀ S : Finset ℕ, ∑ i ∈ S, (1 : ℝ) / a i ≠ 1) := by
  sorry

/--
The corresponding question is also false if one replaces sequences such that $a_{i+1} - a_i = O(1)$
with sets of positive density, as follows from [Bl21].

The statement is as follows:
If $A \subset \mathbb{N}$ has positive upper density (and hence certainly if $A$ has positive
density) then there is a finite $S \subset A$ such that $\sum_{n \in S} \frac{1}{n} = 1$.
-/
@[category research solved, AMS 11 40]
theorem erdos_299.variants.density : ∀ (A : Set ℕ), 0 ∉ A → 0 < A.upperDensity →
    ∃ S : Finset ℕ, ↑S ⊆ A ∧ ∑ n ∈ S, (1 : ℝ) / n = 1 := by
  sorry

end Erdos299

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

nosorry desk erdos-299--erdos-299-variants-density      # a desk lease: required before submitting (renew: nosorry beat)
nosorry fetch erdos-299--erdos-299-variants-density
nosorry submit erdos-299--erdos-299-variants-density nosorry/erdos-299--erdos-299-variants-density/Solution.lean --wait

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.