{
  "id": "1195",
  "ident": "NS.01195",
  "slug": "erdos-170",
  "title": "Erdős Problem 170",
  "status": "open",
  "statement_status": "reviewed",
  "statement_md": "The problem is to determine the limit of the sequence $\\frac{F(N)}{\\sqrt{N}}$ as $N \\to \\infty$.",
  "subjects": [
    "math.CO",
    "msc:05"
  ],
  "tags": [
    "question"
  ],
  "collection": "erdos",
  "source_url": "https://www.erdosproblems.com/170",
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos170.erdos170",
  "statement_lean": "lemma erdos170 : Filter.Tendsto (fun N => F N / √N) Filter.atTop (𝓝 erdos170.answer)",
  "challenge_source": "/-\nCopyright 2025 The Formal Conjectures Authors.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    https://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n-/\nmodule\n\npublic import FormalConjecturesUtil\n\n/-!\n# Erdős Problem 170\n\n*Reference:* [erdosproblems.com/170](https://www.erdosproblems.com/170)\n-/\n\n@[expose] public section\n\nopen scoped Topology\n\nnamespace Erdos170\n\n/-- An $N$-perfect ruler is a finite subset $A \\subseteq \\mathbb{N}$ (the marks), such that each\npositive integer $k \\leq N$ can be measured, that is, expressed as a difference $k = a_1 - a_0$\nwith $a_0, a_1 \\in A$. The set $A$ is then also called a difference basis w.r.t. $N$. -/\n@[reducible]\ndef PerfectRuler (N : ℕ) (A : Finset ℕ) : Prop :=\n  ∀ k ∈ Finset.range (N + 1), ∃ᵉ (a₀ ∈ A) (a₁ ∈ A), k = a₁ - a₀\n\n/-- We define the set of all $N$-perfect rulers $A$ of length $N$, i.e.\nsubsets $A \\subseteq \\{0, \\dots, N\\}$, s.t. $A$ is $N$-perfect.\nThis is also called a restricted difference basis w.r.t. $N$. -/\ndef PerfectRulersLengthN (N : ℕ) :\n    Finset (Finset ℕ) := (Finset.range (N + 1)).powerset.filter (PerfectRuler N)\n\n/-- The trivial ruler with all marks $\\{0, \\dots, N\\}$. -/\nabbrev TrivialRuler (N : ℕ) : Finset ℕ := Finset.range (N+1)\n\n/-- Sanity Check: the trivial ruler is actually a perfect ruler if $K \\geq N$ -/\n@[category API, AMS 5]\nlemma trivial_ruler_is_perfect (N : ℕ) : TrivialRuler N ∈ PerfectRulersLengthN N := by\n    simp only [PerfectRulersLengthN, Finset.mem_filter, Finset.mem_powerset, Finset.range_subset]\n    exact ⟨by simp, fun k hk => ⟨0, by simp, k, hk, rfl⟩⟩\n\n/-- We define a function `F N` as the minimum cardinality of an `N`-perfect ruler of length `N`. -/\ndef F (N : ℕ) : ℕ :=\n    Finset.min' (Finset.image Finset.card (PerfectRulersLengthN N))\n                (Finset.image_nonempty.mpr ⟨TrivialRuler N, trivial_ruler_is_perfect N⟩)\n\ndef erdos170.answer : ℝ := sorry\n\n/-- The problem is to determine the limit of the sequence $\\frac{F(N)}{\\sqrt{N}}$ as $N \\to \\infty$. -/\n@[category research open, question value, AMS 5]\nlemma erdos170 : Filter.Tendsto (fun N => F N / √N) Filter.atTop (𝓝 erdos170.answer) := by sorry\n\n/-- A known lower bound to the limit by Leech [Le56], which is $1.56\\dots$. -/\nnoncomputable abbrev lower_bound := √(sSup {2 * (1 - Real.sin θ / θ) | θ ≠ 0})\n/-- A known upper bound obtained by constructing Wichmann's Rulers [Wi63]. -/\nnoncomputable abbrev upper_bound := √3\n\n/-- The existence of the limit has been proved by Erdős and Gál [ErGa48].\nThe lower bound has been proven by Leech [Le56], who refined an argument of Rédei and Rényi.\nThe upper bound is due to Wichmann [Wi63]. -/\n@[category research solved, AMS 5]\nlemma erdos170.existing_bounds :\n  ∃ x ∈ Set.Icc lower_bound upper_bound,\n    Filter.Tendsto (fun N => F N / √N) Filter.atTop (𝓝 x) := by sorry\n\nend Erdos170\n",
  "statement_hash": "f9aab459b12d76ee79a0f0420ea22c0d433736417797fcc6b8db7fe6fcd85407",
  "toolchain": "leanprover/lean4:v4.33.1",
  "upstream_commit": "f9b3868d5ca994a7bf95039bcec05338c0c21e2f",
  "workspace": "formal-conjectures",
  "field": "math",
  "formalization": "formal",
  "verification": "lean-kernel",
  "license": "Apache-2.0",
  "attribution": "google-deepmind/formal-conjectures contributors",
  "metric_name": null,
  "metric_direction": null,
  "critiques": [],
  "public_partial_proofs": [],
  "research_threads": [],
  "instructions": "Read research_threads first: other people's public repositories and what they already tried. Write Solution.lean starting from challenge_source. Keep every definition identical, prove decl_name with exactly the same type, no sorry in its dependency closure, no new axioms, no native_decide, no metaprogramming. Submit with POST /api/v1/submissions."
}