{
  "id": "833",
  "ident": "NS.00833",
  "slug": "erdos-1164",
  "title": "Erdős Problem 1164",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "Let $R_n$ be the maximal integer such that almost every random walk from the origin in\n$\\mathbb{Z}^2$ visits every $x\\in\\mathbb{Z}^2$ with $\\lVert x\\rVert\\leq R_n$ in at most $n$ steps.\n\nIs it true that\n$$\\log R_n \\asymp \\sqrt{\\log n}?$$\n\nA problem of Erdős and Taylor, see [ErTa60, p. 153] and [Va99, 6.76]. This is true, as proved\nindependently by Révész [Re90] and Kesten, see [DPRZ04, Section 1.3], which reports that they\nproved the following. The probability that the disc of radius $n$ is covered by time\n$e^{t(\\log n)^2}$ has $\\liminf_{n\\to\\infty}$ at least $e^{-b/t}$ and $\\limsup_{n\\to\\infty}$ at\nmost $e^{-a/t}$ for every $t>0$, where $0<a<b<\\infty$ are constants. The exact limit is in\n`erdos_1164.variants.dembo_peres_rosen_zeitouni`.\n\nWe take the simple random walk (`IsSimpleRandomWalkSteps`). Read literally, $R_n$ would be $0$:\nfor every $n$ some walk misses a neighbour of the origin, and such walks have positive\nprobability. So $R_n=R_n(\\omega)$ is the random variable `coveringRadius`, and\n$\\log R_n\\asymp\\sqrt{\\log n}$ means tightness: for every $\\varepsilon>0$ there are constants\n$c>0$ and $C$ such that $c\\sqrt{\\log n}\\leq\\log R_n\\leq C\\sqrt{\\log n}$ with probability at least\n$1-\\varepsilon$ for all large $n$. This is the sense of the results above and of\n`erdos_1164.variants.dembo_peres_rosen_zeitouni`, which are about probabilities, not almost sure\nbounds. [ErTa60, p. 153] asks an almost sure question about the time needed to cover the disc of\nradius $n$; we follow the results in probability reported in [DPRZ04, Section 1.3].",
  "subjects": [
    "math.PR",
    "msc:60"
  ],
  "tags": [
    "question"
  ],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos1164.erdos_1164",
  "statement_lean": "theorem erdos_1164 {Ω : Type*} [MeasureSpace Ω] [IsProbabilityMeasure (ℙ : Measure Ω)]\n    {X : ℕ → Ω → ℤ × ℤ} (hX : IsSimpleRandomWalkSteps X) :\n    ∀ ε : ℝ, 0 < ε → ∃ c C : ℝ, 0 < c ∧ ∀ᶠ n : ℕ in atTop,\n      1 - ε ≤ (ℙ {ω | c * Real.sqrt (Real.log n) ≤ Real.log (coveringRadius X n ω) ∧\n        Real.log (coveringRadius X n ω) ≤ C * Real.sqrt (Real.log n)}).toReal",
  "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\npublic import FormalConjectures.ErdosProblems.«1165»\n\n/-!\n# Erdős Problem 1164\n\n*References:*\n- [erdosproblems.com/1164](https://www.erdosproblems.com/1164)\n- [Va99] Various, *Some of Paul's favorite problems*. Booklet produced for the conference\n  \"Paul Erdős and his mathematics\", Budapest, July 1999 (1999).\n- [ErTa60] Erdős, P. and Taylor, S. J., *Some problems concerning the structure of random walk\n  paths*. Acta Math. Acad. Sci. Hungar. 11 (1960), 137--162.\n  [PDF](https://www.renyi.hu/~p_erdos/1960-17.pdf)\n- [Re90] Révész, P., *Random walk in random and non-random environments*. World Scientific,\n  Singapore (1990).\n- [DPRZ04] Dembo, A., Peres, Y., Rosen, J. and Zeitouni, O., *Cover times for Brownian motion and\n  random walks in two dimensions*. Ann. of Math. (2) 160 (2004), 433--464.\n  [arXiv:math/0107191](https://arxiv.org/abs/math/0107191)\n-/\n\n@[expose] public section\n\nopen MeasureTheory Filter\nopen scoped ProbabilityTheory Topology\n\nnamespace Erdos1164\n\nopen Erdos1165\n\n/-- `Covers X n ω S` says that the walk has visited every site of `S` by time `n`: each `x ∈ S`\nequals `position X k ω` for some `k ≤ n`. The visit at time `0` counts. -/\ndef Covers {Ω : Type*} (X : ℕ → Ω → ℤ × ℤ) (n : ℕ) (ω : Ω) (S : Set (ℤ × ℤ)) : Prop :=\n  ∀ x ∈ S, ∃ k ≤ n, position X k ω = x\n\n/-- The sites `x = (a, b)` of $\\mathbb{Z}^2$ with Euclidean norm $\\lVert x\\rVert\\leq r$. The\ncondition is written without a square root as $a^2+b^2\\leq r^2$. -/\ndef closedDisc (r : ℕ) : Set (ℤ × ℤ) :=\n  {x : ℤ × ℤ | x.1 ^ 2 + x.2 ^ 2 ≤ (r : ℤ) ^ 2}\n\n/-- The sites `x = (a, b)` of $\\mathbb{Z}^2$ with Euclidean norm $\\lVert x\\rVert<r$. This is the\ndisc $D_r=D(0,r)\\cap\\mathbb{Z}^2$ of [DPRZ04, Section 5]. -/\ndef openDisc (r : ℕ) : Set (ℤ × ℤ) :=\n  {x : ℤ × ℤ | x.1 ^ 2 + x.2 ^ 2 < (r : ℤ) ^ 2}\n\n/-- `coveringRadius X n ω` is the largest integer `r` such that, by time `n`, the walk has visited\nevery site `x` with $\\lVert x\\rVert\\leq r$. This is the radius $R_n$ of the problem, which depends\non the walk `ω`.\n\nThe set of such `r` contains `0`, since the origin is visited at time `0`. It is bounded: the\nsites $(j,0)$ with $\\lvert j\\rvert\\leq r$ are $2r+1$ different sites visited at times at most\n`n`, so $2r\\leq n$. Hence `sSup` is a maximum and there is no junk value. -/\nnoncomputable def coveringRadius {Ω : Type*} (X : ℕ → Ω → ℤ × ℤ) (n : ℕ) (ω : Ω) : ℕ :=\n  sSup {r : ℕ | Covers X n ω (closedDisc r)}\n\n/-- The disc of radius `0` is covered at every time, because the origin is visited at time `0`. -/\n@[category API, AMS 60]\ntheorem covers_closedDisc_zero {Ω : Type*} (X : ℕ → Ω → ℤ × ℤ) (n : ℕ) (ω : Ω) :\n    Covers X n ω (closedDisc 0) := by\n  intro x hx\n  have hx' : x.1 ^ 2 + x.2 ^ 2 ≤ ((0 : ℕ) : ℤ) ^ 2 := hx\n  rw [Nat.cast_zero] at hx'\n  have h1 : x.1 ^ 2 = 0 := by nlinarith [sq_nonneg x.1, sq_nonneg x.2]\n  have h2 : x.2 ^ 2 = 0 := by nlinarith [sq_nonneg x.1, sq_nonneg x.2]\n  refine ⟨0, Nat.zero_le n, ?_⟩\n  rw [position_zero]\n  exact Prod.ext ((pow_eq_zero_iff two_ne_zero).1 h1).symm\n    ((pow_eq_zero_iff two_ne_zero).1 h2).symm\n\n/--\nLet $R_n$ be the maximal integer such that almost every random walk from the origin in\n$\\mathbb{Z}^2$ visits every $x\\in\\mathbb{Z}^2$ with $\\lVert x\\rVert\\leq R_n$ in at most $n$ steps.\n\nIs it true that\n$$\\log R_n \\asymp \\sqrt{\\log n}?$$\n\nA problem of Erdős and Taylor, see [ErTa60, p. 153] and [Va99, 6.76]. This is true, as proved\nindependently by Révész [Re90] and Kesten, see [DPRZ04, Section 1.3], which reports that they\nproved the following. The probability that the disc of radius $n$ is covered by time\n$e^{t(\\log n)^2}$ has $\\liminf_{n\\to\\infty}$ at least $e^{-b/t}$ and $\\limsup_{n\\to\\infty}$ at\nmost $e^{-a/t}$ for every $t>0$, where $0<a<b<\\infty$ are constants. The exact limit is in\n`erdos_1164.variants.dembo_peres_rosen_zeitouni`.\n\nWe take the simple random walk (`IsSimpleRandomWalkSteps`). Read literally, $R_n$ would be $0$:\nfor every $n$ some walk misses a neighbour of the origin, and such walks have positive\nprobability. So $R_n=R_n(\\omega)$ is the random variable `coveringRadius`, and\n$\\log R_n\\asymp\\sqrt{\\log n}$ means tightness: for every $\\varepsilon>0$ there are constants\n$c>0$ and $C$ such that $c\\sqrt{\\log n}\\leq\\log R_n\\leq C\\sqrt{\\log n}$ with probability at least\n$1-\\varepsilon$ for all large $n$. This is the sense of the results above and of\n`erdos_1164.variants.dembo_peres_rosen_zeitouni`, which are about probabilities, not almost sure\nbounds. [ErTa60, p. 153] asks an almost sure question about the time needed to cover the disc of\nradius $n$; we follow the results in probability reported in [DPRZ04, Section 1.3].\n-/\n@[category research solved, question, AMS 60]\ntheorem erdos_1164 {Ω : Type*} [MeasureSpace Ω] [IsProbabilityMeasure (ℙ : Measure Ω)]\n    {X : ℕ → Ω → ℤ × ℤ} (hX : IsSimpleRandomWalkSteps X) :\n    ∀ ε : ℝ, 0 < ε → ∃ c C : ℝ, 0 < c ∧ ∀ᶠ n : ℕ in atTop,\n      1 - ε ≤ (ℙ {ω | c * Real.sqrt (Real.log n) ≤ Real.log (coveringRadius X n ω) ∧\n        Real.log (coveringRadius X n ω) ≤ C * Real.sqrt (Real.log n)}).toReal := by\n  sorry\n\n/--\nDembo, Peres, Rosen and Zeitouni [DPRZ04, Theorem 1.4] proved a conjecture of Kesten and Révész:\nif $T_n$ is the time it takes the simple random walk in $\\mathbb{Z}^2$ to cover the disc of\nradius $n$, then\n$$\\lim_{n\\to\\infty}\\mathbb{P}\\left(\\log T_n\\leq t(\\log n)^2\\right)=e^{-4/t}$$\nfor every $t>0$.\n\nThe disc is $D_n=D(0,n)\\cap\\mathbb{Z}^2$ (`openDisc`). Since $T_n$ is an integer,\n$\\log T_n\\leq t(\\log n)^2$ holds if and only if $T_n\\leq\\lfloor e^{t(\\log n)^2}\\rfloor$, that is,\nif the disc is covered by that time.\n-/\n@[category research solved, AMS 60]\ntheorem erdos_1164.variants.dembo_peres_rosen_zeitouni {Ω : Type*} [MeasureSpace Ω]\n    [IsProbabilityMeasure (ℙ : Measure Ω)] {X : ℕ → Ω → ℤ × ℤ}\n    (hX : IsSimpleRandomWalkSteps X) (t : ℝ) (ht : 0 < t) :\n    Tendsto (fun n : ℕ ↦\n      (ℙ {ω | Covers X ⌊Real.exp (t * Real.log n ^ 2)⌋₊ ω (openDisc n)}).toReal)\n      atTop (𝓝 (Real.exp (-4 / t))) := by\n  sorry\n\nend Erdos1164\n",
  "statement_hash": "27fcb26e18f2fd1a2a0df7e990e6bb40f4f39df73b01d8964a43ed89de779e25",
  "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."
}