{
  "id": "1038",
  "ident": "NS.01038",
  "slug": "erdos-1221",
  "title": "Erdős Problem 1221",
  "status": "open",
  "statement_status": "reviewed",
  "statement_md": "Let $a=(a_1,\\ldots,a_n)$ be points, ordered consecutively, around the circle (normalised to have\ncircumference $1$). Let\n$$M_r(a)=\\max_r \\lvert a_{i+r}-a_i\\rvert$$\nand\n$$m_r(a)=\\min_r \\lvert a_{i+r}-a_i\\rvert,$$\nwhere the indices are interpreted in a cyclic fashion and the distance is around the circle (in\nother words, the maximum and minimum distance between $r$-consecutive points).\n\nLet\n$$\\Lambda_r=\\inf_a \\limsup_n n M_r(a_1,\\ldots,a_n),$$\n$$\\lambda_r = \\sup_a \\liminf_n nm_r(a_1,\\ldots,a_n),$$\nand\n$$\\mu_r=\\inf_a \\limsup_n \\frac{M_r(a)}{m_r(a)},$$\nwhere the outer $\\inf/\\sup$ is over all infinite sequences $a=(a_1,\\ldots)$.\n\nIs it true that $r(\\Lambda_r-1)$, $r(1-\\lambda_r)$, and $r(\\mu_r-1)$ tend to infinity as\n$r\\to \\infty$?\n\nThis is the first part, conjectured by de Bruijn and Erdős [dBEr49, §6]. We read $\\Lambda_r$ and\n$\\lambda_r$ as in `bigLambda` and `smallLambda`, that is, as printed. The sequences are required\nto have pairwise distinct points modulo $1$ (see `bigLambda`). Then $nM_r\\geq r$ [dBEr49, §1],\nso $r(\\Lambda_r-1)\\to\\infty$ would hold trivially. Also $m_r\\geq r\\,m_1$, so the sequence\n$a_k=\\log_2(2k-1)$ of [dBEr49, §2] gives $\\lambda_r\\geq r/\\log 4$, which exceeds $1$ for $r\\geq2$,\nso $r(1-\\lambda_r)$ would be negative for $r\\geq2$. The intended conjectures are about the\nquantities normalised by $r$, so $r(\\Lambda_r/r-1)=\\Lambda_r-r$, and the first part asks whether\n$\\Lambda_r-r\\to\\infty$.",
  "subjects": [
    "math.NT",
    "msc:11"
  ],
  "tags": [
    "question"
  ],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos1221.erdos_1221.parts.i",
  "statement_lean": "theorem erdos_1221.parts.i :\n    ∀ K : ℝ, ∀ᶠ r : ℕ in atTop, ENNReal.ofReal ((r : ℝ) + K) < bigLambda r",
  "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 1221\n\n*References:*\n- [erdosproblems.com/1221](https://www.erdosproblems.com/1221)\n- [dBEr49] de Bruijn, N. G. and Erdős, P., *Sequences of points on a circle*. Nederl. Akad.\n  Wetensch., Proc. (1949), 14-17 = Indagationes Math. 11 (1949), 46-49.\n  [PDF](https://www.renyi.hu/~p_erdos/1949-13.pdf)\n-/\n\n@[expose] public section\n\nopen Filter\nopen scoped ENNReal\n\nnamespace Erdos1221\n\n/-- The first `n` points `a 0, …, a (n - 1)` of the sequence `a`, reduced modulo `1`, that is,\nas points of the circle $\\mathbb{R}/\\mathbb{Z}$ of circumference $1$, in the form of a function on\n`Fin n`. -/\nnoncomputable def pts (a : ℕ → ℝ) (n : ℕ) : Fin n → ℝ := fun j => Int.fract (a j)\n\n/-- The points `pts a n` in non-decreasing order, so `sortedPoint a n i` is the `i`-th smallest\n(counted from `0`). Repeated points are kept with their multiplicity. -/\nnoncomputable def sortedPoint (a : ℕ → ℝ) (n : ℕ) : Fin n → ℝ :=\n  pts a n ∘ Tuple.sort (pts a n)\n\n/-- The sorted points continued periodically to all of `ℕ`: going once around the circle adds\n`1`. For `n = 0` the value is the junk value `0`. -/\nnoncomputable def unrolled (a : ℕ → ℝ) (n j : ℕ) : ℝ :=\n  if h : 0 < n then sortedPoint a n ⟨j % n, Nat.mod_lt j h⟩ + ((j / n : ℕ) : ℝ) else 0\n\n/-- The length of the arc that starts at the `i`-th sorted point and goes `r` points forward\naround the circle (with the indices read cyclically). This is the total length of `r`\nconsecutive intervals determined by the first `n` points [dBEr49, §1], and the distance\n$\\lvert a_{i+r}-a_i\\rvert$ \"around the circle\" of the problem. If two points coincide, the\ncorresponding interval has length `0`. -/\nnoncomputable def rSpan (a : ℕ → ℝ) (n r i : ℕ) : ℝ := unrolled a n (i + r) - unrolled a n i\n\n/-- $M_n^{(r)}(a)$: the largest `r`-span of the first `n` points of `a`. For `n ≥ 1` this is a\nmaximum over the `n` starting points. For `n = 0` it is the junk value `0`. -/\nnoncomputable def maxSpan (a : ℕ → ℝ) (n r : ℕ) : ℝ := ⨆ i : Fin n, rSpan a n r i\n\n/-- $m_n^{(r)}(a)$: the smallest `r`-span of the first `n` points of `a`. For `n ≥ 1` this is a\nminimum over the `n` starting points. For `n = 0` it is the junk value `0`. -/\nnoncomputable def minSpan (a : ℕ → ℝ) (n r : ℕ) : ℝ := ⨅ i : Fin n, rSpan a n r i\n\n/-- $\\Lambda_r=\\inf_a\\limsup_n nM_n^{(r)}(a)$, where $a$ runs over all sequences of reals (read\nmodulo $1$) whose points `Int.fract (a k)` are pairwise distinct, so that the first $n$ points\ndefine $n$ intervals [dBEr49, §1]. The $\\inf$ and $\\limsup$ are taken in `ℝ≥0∞`, so a sequence\nwith unbounded $nM_n^{(r)}(a)$ contributes $\\infty$. -/\nnoncomputable def bigLambda (r : ℕ) : ℝ≥0∞ :=\n  ⨅ (a : ℕ → ℝ) (_ : Function.Injective fun k ↦ Int.fract (a k)),\n    limsup (fun n : ℕ => ENNReal.ofReal ((n : ℝ) * maxSpan a n r)) atTop\n\n/-- $\\lambda_r=\\sup_a\\liminf_n nm_n^{(r)}(a)$, where $a$ runs over all sequences of reals (read\nmodulo $1$) whose points `Int.fract (a k)` are pairwise distinct. The $\\sup$ and $\\liminf$ are\ntaken in `ℝ≥0∞`. -/\nnoncomputable def smallLambda (r : ℕ) : ℝ≥0∞ :=\n  ⨆ (a : ℕ → ℝ) (_ : Function.Injective fun k ↦ Int.fract (a k)),\n    liminf (fun n : ℕ => ENNReal.ofReal ((n : ℝ) * minSpan a n r)) atTop\n\n/-- $\\mu_r=\\inf_a\\limsup_n M_n^{(r)}(a)/m_n^{(r)}(a)$, where $a$ runs over all sequences of reals\n(read modulo $1$) whose points `Int.fract (a k)` are pairwise distinct. The $\\inf$ and $\\limsup$\nare taken in `ℝ≥0∞`. For such $a$, $n\\geq1$ and $r\\geq1$ both spans are positive, so the\nquotient is a positive real number. -/\nnoncomputable def mu (r : ℕ) : ℝ≥0∞ :=\n  ⨅ (a : ℕ → ℝ) (_ : Function.Injective fun k ↦ Int.fract (a k)),\n    limsup (fun n : ℕ => ENNReal.ofReal (maxSpan a n r) / ENNReal.ofReal (minSpan a n r)) atTop\n\n/--\nLet $a=(a_1,\\ldots,a_n)$ be points, ordered consecutively, around the circle (normalised to have\ncircumference $1$). Let\n$$M_r(a)=\\max_r \\lvert a_{i+r}-a_i\\rvert$$\nand\n$$m_r(a)=\\min_r \\lvert a_{i+r}-a_i\\rvert,$$\nwhere the indices are interpreted in a cyclic fashion and the distance is around the circle (in\nother words, the maximum and minimum distance between $r$-consecutive points).\n\nLet\n$$\\Lambda_r=\\inf_a \\limsup_n n M_r(a_1,\\ldots,a_n),$$\n$$\\lambda_r = \\sup_a \\liminf_n nm_r(a_1,\\ldots,a_n),$$\nand\n$$\\mu_r=\\inf_a \\limsup_n \\frac{M_r(a)}{m_r(a)},$$\nwhere the outer $\\inf/\\sup$ is over all infinite sequences $a=(a_1,\\ldots)$.\n\nIs it true that $r(\\Lambda_r-1)$, $r(1-\\lambda_r)$, and $r(\\mu_r-1)$ tend to infinity as\n$r\\to \\infty$?\n\nThis is the first part, conjectured by de Bruijn and Erdős [dBEr49, §6]. We read $\\Lambda_r$ and\n$\\lambda_r$ as in `bigLambda` and `smallLambda`, that is, as printed. The sequences are required\nto have pairwise distinct points modulo $1$ (see `bigLambda`). Then $nM_r\\geq r$ [dBEr49, §1],\nso $r(\\Lambda_r-1)\\to\\infty$ would hold trivially. Also $m_r\\geq r\\,m_1$, so the sequence\n$a_k=\\log_2(2k-1)$ of [dBEr49, §2] gives $\\lambda_r\\geq r/\\log 4$, which exceeds $1$ for $r\\geq2$,\nso $r(1-\\lambda_r)$ would be negative for $r\\geq2$. The intended conjectures are about the\nquantities normalised by $r$, so $r(\\Lambda_r/r-1)=\\Lambda_r-r$, and the first part asks whether\n$\\Lambda_r-r\\to\\infty$.\n-/\n@[category research open, question, AMS 11]\ntheorem erdos_1221.parts.i :\n    ∀ K : ℝ, ∀ᶠ r : ℕ in atTop, ENNReal.ofReal ((r : ℝ) + K) < bigLambda r := by\n  sorry\n\n/--\nLet $a=(a_1,\\ldots,a_n)$ be points, ordered consecutively, around the circle (normalised to have\ncircumference $1$). Let\n$$M_r(a)=\\max_r \\lvert a_{i+r}-a_i\\rvert$$\nand\n$$m_r(a)=\\min_r \\lvert a_{i+r}-a_i\\rvert,$$\nwhere the indices are interpreted in a cyclic fashion and the distance is around the circle (in\nother words, the maximum and minimum distance between $r$-consecutive points).\n\nLet\n$$\\Lambda_r=\\inf_a \\limsup_n n M_r(a_1,\\ldots,a_n),$$\n$$\\lambda_r = \\sup_a \\liminf_n nm_r(a_1,\\ldots,a_n),$$\nand\n$$\\mu_r=\\inf_a \\limsup_n \\frac{M_r(a)}{m_r(a)},$$\nwhere the outer $\\inf/\\sup$ is over all infinite sequences $a=(a_1,\\ldots)$.\n\nIs it true that $r(\\Lambda_r-1)$, $r(1-\\lambda_r)$, and $r(\\mu_r-1)$ tend to infinity as\n$r\\to \\infty$?\n\nThis is the second part. As in the first part, we normalise $\\lambda_r$ by $r$, so\n$r(1-\\lambda_r/r)=r-\\lambda_r$, and the second part asks whether $r-\\lambda_r\\to\\infty$.\n-/\n@[category research open, question, AMS 11]\ntheorem erdos_1221.parts.ii :\n    ∀ K : ℝ, ∀ᶠ r : ℕ in atTop, smallLambda r < ENNReal.ofReal ((r : ℝ) - K) := by\n  sorry\n\n/--\nLet $a=(a_1,\\ldots,a_n)$ be points, ordered consecutively, around the circle (normalised to have\ncircumference $1$). Let\n$$M_r(a)=\\max_r \\lvert a_{i+r}-a_i\\rvert$$\nand\n$$m_r(a)=\\min_r \\lvert a_{i+r}-a_i\\rvert,$$\nwhere the indices are interpreted in a cyclic fashion and the distance is around the circle (in\nother words, the maximum and minimum distance between $r$-consecutive points).\n\nLet\n$$\\Lambda_r=\\inf_a \\limsup_n n M_r(a_1,\\ldots,a_n),$$\n$$\\lambda_r = \\sup_a \\liminf_n nm_r(a_1,\\ldots,a_n),$$\nand\n$$\\mu_r=\\inf_a \\limsup_n \\frac{M_r(a)}{m_r(a)},$$\nwhere the outer $\\inf/\\sup$ is over all infinite sequences $a=(a_1,\\ldots)$.\n\nIs it true that $r(\\Lambda_r-1)$, $r(1-\\lambda_r)$, and $r(\\mu_r-1)$ tend to infinity as\n$r\\to \\infty$?\n\nThis is the third part. The quantity $\\mu_r$ needs no normalisation, and the third part asks\nwhether $r(\\mu_r-1)\\to\\infty$, that is, whether $\\mu_r>1+K/r$ for every $K$ and all large $r$.\n-/\n@[category research open, question, AMS 11]\ntheorem erdos_1221.parts.iii :\n    ∀ K : ℝ, ∀ᶠ r : ℕ in atTop, ENNReal.ofReal (1 + K / (r : ℝ)) < mu r := by\n  sorry\n\n/--\nDe Bruijn and Erdős [dBEr49, §§2-5] proved that $\\Lambda_1=\\frac{1}{\\log 2}$,\n$\\lambda_1=\\frac{1}{\\log 4}$, and $\\mu_1=2$. A sequence which witnesses this is\n$a_k=\\log_2(2k-1)$. For $r=1$ the normalisation by $r$ plays no role.\n-/\n@[category research solved, AMS 11]\ntheorem erdos_1221.variants.r_one :\n    bigLambda 1 = ENNReal.ofReal (1 / Real.log 2) ∧\n      smallLambda 1 = ENNReal.ofReal (1 / Real.log 4) ∧ mu 1 = 2 := by\n  sorry\n\n/--\nDe Bruijn and Erdős [dBEr49, (3.3)] proved that, for any $r\\geq 1$,\n$$\\Lambda_r \\geq \\frac{1}{\\log(1+1/r)}.$$\nHere $\\Lambda_r$ is as in `bigLambda`, with no normalisation by $r$.\n-/\n@[category research solved, AMS 11]\ntheorem erdos_1221.variants.bigLambda_ge {r : ℕ} (hr : 1 ≤ r) :\n    ENNReal.ofReal (1 / Real.log (1 + 1 / (r : ℝ))) ≤ bigLambda r := by\n  sorry\n\n/--\nDe Bruijn and Erdős [dBEr49, (4.3)] proved that, for any $r\\geq 1$,\n$$\\lambda_r \\leq \\frac{r}{r+1}\\frac{1}{\\log(1+1/r)}.$$\nHere $\\lambda_r$ is as in `smallLambda`, with no normalisation by $r$.\n-/\n@[category research solved, AMS 11]\ntheorem erdos_1221.variants.smallLambda_le {r : ℕ} (hr : 1 ≤ r) :\n    smallLambda r ≤\n      ENNReal.ofReal ((r : ℝ) / ((r : ℝ) + 1) * (1 / Real.log (1 + 1 / (r : ℝ)))) := by\n  sorry\n\n/--\nDe Bruijn and Erdős [dBEr49, §1 and (5.7)] proved that, for any $r\\geq 1$,\n$$\\mu_r \\geq 1+\\frac{1}{r}.$$\n-/\n@[category research solved, AMS 11]\ntheorem erdos_1221.variants.mu_ge {r : ℕ} (hr : 1 ≤ r) :\n    ENNReal.ofReal (1 + 1 / (r : ℝ)) ≤ mu r := by\n  sorry\n\nend Erdos1221\n",
  "statement_hash": "af825cd9f3d4444b2b437ea17682df2e6ea9ca257185ff37af7acdcf78e14eb1",
  "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."
}