{
  "id": "794",
  "ident": "NS.00794",
  "slug": "erdos-1147",
  "title": "Erdős Problem 1147",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "Let $\\alpha>0$ be an irrational number. Is the set\n$$A=\\left\\{ n\\geq 1: \\| \\alpha n^2\\| < \\frac{1}{\\log n}\\right\\},$$\nwhere $\\|\\cdot\\|$ denotes the distance to the nearest integer, an additive basis of order $2$?\n\nThis was disproved by Konieczny [Ko16b], and is false both for almost every $\\alpha>0$, and also\nis false specifically for $\\alpha=\\sqrt{2}$.\n\nMore generally, given any $\\epsilon(n)\\to 0$, the set\n$A=\\{ n\\geq 1: \\| \\alpha n^2\\| < \\epsilon(n)\\}$ is not an additive basis of order $2$ for almost\nevery $\\alpha>0$.",
  "subjects": [
    "math.NT",
    "msc:11"
  ],
  "tags": [
    "question",
    "formal_proof"
  ],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos1147.erdos_1147",
  "statement_lean": "theorem erdos_1147 : ¬ ∀ α : ℝ, 0 < α → Irrational α →\n    (recurrenceSet α fun n ↦ 1 / Real.log n).IsAsymptoticAddBasisOfOrder 2",
  "challenge_source": "/-\nCopyright 2026 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 1147\n\n*References:*\n- [erdosproblems.com/1147](https://www.erdosproblems.com/1147)\n- [Va99] Various, *Some of Paul's favorite problems*. Booklet produced for the conference \"Paul\n  Erdős and his mathematics\", Budapest, July 1999 (1999).\n- [Ko16b] Konieczny, Jakub, *Sets of recurrence as bases for the positive integers*. Acta Arith.\n  (2016), 309-338.\n-/\n\n@[expose] public section\n\nopen Filter MeasureTheory\n\nnamespace Erdos1147\n\n/-- The set $\\{ n\\geq 1: \\| \\alpha n^2\\| < \\epsilon(n)\\}$. -/\ndef recurrenceSet (α : ℝ) (ε : ℕ → ℝ) : Set ℕ :=\n  {n | 1 ≤ n ∧ distToNearestInt (α * n ^ 2) < ε n}\n\nset_option linter.style.formal_proof_palomar false in\n/--\nLet $\\alpha>0$ be an irrational number. Is the set\n$$A=\\left\\{ n\\geq 1: \\| \\alpha n^2\\| < \\frac{1}{\\log n}\\right\\},$$\nwhere $\\|\\cdot\\|$ denotes the distance to the nearest integer, an additive basis of order $2$?\n\nThis was disproved by Konieczny [Ko16b], and is false both for almost every $\\alpha>0$, and also\nis false specifically for $\\alpha=\\sqrt{2}$.\n\nMore generally, given any $\\epsilon(n)\\to 0$, the set\n$A=\\{ n\\geq 1: \\| \\alpha n^2\\| < \\epsilon(n)\\}$ is not an additive basis of order $2$ for almost\nevery $\\alpha>0$.\n-/\n@[category research solved, question, AMS 11, formal_proof using lean4 at\n  \"https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos1147.lean#L538\"]\ntheorem erdos_1147 : ¬ ∀ α : ℝ, 0 < α → Irrational α →\n    (recurrenceSet α fun n ↦ 1 / Real.log n).IsAsymptoticAddBasisOfOrder 2 := by\n  sorry\n\nset_option linter.style.formal_proof_palomar false in\n/-- Konieczny [Ko16b] showed that the set is not an additive basis of order $2$ for\n$\\alpha=\\sqrt{2}$. -/\n@[category research solved, AMS 11, formal_proof using lean4 at\n  \"https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos1147.lean#L531\"]\ntheorem erdos_1147.variants.sqrt_two :\n    ¬ (recurrenceSet (√2) fun n ↦ 1 / Real.log n).IsAsymptoticAddBasisOfOrder 2 := by\n  sorry\n\n/--\nKonieczny [Ko16b] showed that, given any $\\epsilon(n)\\to 0$, the set\n$\\{ n\\geq 1: \\| \\alpha n^2\\| < \\epsilon(n)\\}$ is not an additive basis of order $2$ for almost\nevery $\\alpha>0$.\n-/\n@[category research solved, AMS 11]\ntheorem erdos_1147.variants.almost_every : ∀ ε : ℕ → ℝ, Tendsto ε atTop (nhds 0) →\n    ∀ᵐ α : ℝ, 0 < α → ¬ (recurrenceSet α ε).IsAsymptoticAddBasisOfOrder 2 := by\n  sorry\n\nend Erdos1147\n",
  "statement_hash": "5c98d3fba80e0e60f50ea67da421178e0e26dcd5767bbb9e130eb40b2a8ebb61",
  "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."
}