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 170

Source:Erdős Problems · erdosproblems.com/170
Open problem Nobody knows the answer yet — neither on paper nor in Lean. First verified proof: +100 points.
Statement:reviewed
Statement:

The problem is to determine the limit of the sequence F(N)N\frac{F(N)}{\sqrt{N}} as N→∞N \to \infty.

Subjects:Combinatorics (math.CO)
MSC classes:05
Tags:question
Cite as:NS.01195 [math.CO] · NS.01195v1 for this version
Declaration:Erdos170.erdos170
Verification:Lean kernel (formal proof)
Points:first verified proof or disproof: 100, later ones: 10; accepted critique: up to 60
Statement hash:f9aab459b12d76ee79a0f0420ea22c0d433736417797fcc6b8db7fe6fcd85407
Toolchain:leanprover/lean4:v4.33.1
Licence:Apache-2.0 · google-deepmind/formal-conjectures contributors
Upstream:FormalConjectures/ErdosProblems/170.lean

Formal statement

lemma erdos170 : Filter.Tendsto (fun N => F N / √N) Filter.atTop (𝓝 erdos170.answer)
Show the full Challenge.lean (79 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Erdős Problem 170

*Reference:* [erdosproblems.com/170](https://www.erdosproblems.com/170)
-/

@[expose] public section

open scoped Topology

namespace Erdos170

/-- An $N$-perfect ruler is a finite subset $A \subseteq \mathbb{N}$ (the marks), such that each
positive integer $k \leq N$ can be measured, that is, expressed as a difference $k = a_1 - a_0$
with $a_0, a_1 \in A$. The set $A$ is then also called a difference basis w.r.t. $N$. -/
@[reducible]
def PerfectRuler (N : ℕ) (A : Finset ℕ) : Prop :=
  ∀ k ∈ Finset.range (N + 1), ∃ᵉ (a₀ ∈ A) (a₁ ∈ A), k = a₁ - a₀

/-- We define the set of all $N$-perfect rulers $A$ of length $N$, i.e.
subsets $A \subseteq \{0, \dots, N\}$, s.t. $A$ is $N$-perfect.
This is also called a restricted difference basis w.r.t. $N$. -/
def PerfectRulersLengthN (N : ℕ) :
    Finset (Finset ℕ) := (Finset.range (N + 1)).powerset.filter (PerfectRuler N)

/-- The trivial ruler with all marks $\{0, \dots, N\}$. -/
abbrev TrivialRuler (N : ℕ) : Finset ℕ := Finset.range (N+1)

/-- Sanity Check: the trivial ruler is actually a perfect ruler if $K \geq N$ -/
@[category API, AMS 5]
lemma trivial_ruler_is_perfect (N : ℕ) : TrivialRuler N ∈ PerfectRulersLengthN N := by
    simp only [PerfectRulersLengthN, Finset.mem_filter, Finset.mem_powerset, Finset.range_subset]
    exact ⟨by simp, fun k hk => ⟨0, by simp, k, hk, rfl⟩⟩

/-- We define a function `F N` as the minimum cardinality of an `N`-perfect ruler of length `N`. -/
def F (N : ℕ) : ℕ :=
    Finset.min' (Finset.image Finset.card (PerfectRulersLengthN N))
                (Finset.image_nonempty.mpr ⟨TrivialRuler N, trivial_ruler_is_perfect N⟩)

def erdos170.answer : ℝ := sorry

/-- The problem is to determine the limit of the sequence $\frac{F(N)}{\sqrt{N}}$ as $N \to \infty$. -/
@[category research open, question value, AMS 5]
lemma erdos170 : Filter.Tendsto (fun N => F N / √N) Filter.atTop (𝓝 erdos170.answer) := by sorry

/-- A known lower bound to the limit by Leech [Le56], which is $1.56\dots$. -/
noncomputable abbrev lower_bound := √(sSup {2 * (1 - Real.sin θ / θ) | θ ≠ 0})
/-- A known upper bound obtained by constructing Wichmann's Rulers [Wi63]. -/
noncomputable abbrev upper_bound := √3

/-- The existence of the limit has been proved by Erdős and Gál [ErGa48].
The lower bound has been proven by Leech [Le56], who refined an argument of Rédei and Rényi.
The upper bound is due to Wichmann [Wi63]. -/
@[category research solved, AMS 5]
lemma erdos170.existing_bounds :
  ∃ x ∈ Set.Icc lower_bound upper_bound,
    Filter.Tendsto (fun N => F N / √N) Filter.atTop (𝓝 x) := by sorry

end Erdos170

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

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