/- Copyright 2026 The Formal Conjectures Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. -/ module public import FormalConjecturesUtil public import FormalConjectures.ErdosProblems.«1165» /-! # Erdős Problem 1164 *References:* - [erdosproblems.com/1164](https://www.erdosproblems.com/1164) - [Va99] Various, *Some of Paul's favorite problems*. Booklet produced for the conference "Paul Erdős and his mathematics", Budapest, July 1999 (1999). - [ErTa60] Erdős, P. and Taylor, S. J., *Some problems concerning the structure of random walk paths*. Acta Math. Acad. Sci. Hungar. 11 (1960), 137--162. [PDF](https://www.renyi.hu/~p_erdos/1960-17.pdf) - [Re90] Révész, P., *Random walk in random and non-random environments*. World Scientific, Singapore (1990). - [DPRZ04] Dembo, A., Peres, Y., Rosen, J. and Zeitouni, O., *Cover times for Brownian motion and random walks in two dimensions*. Ann. of Math. (2) 160 (2004), 433--464. [arXiv:math/0107191](https://arxiv.org/abs/math/0107191) -/ @[expose] public section open MeasureTheory Filter open scoped ProbabilityTheory Topology namespace Erdos1164 open Erdos1165 /-- `Covers X n ω S` says that the walk has visited every site of `S` by time `n`: each `x ∈ S` equals `position X k ω` for some `k ≤ n`. The visit at time `0` counts. -/ def Covers {Ω : Type*} (X : ℕ → Ω → ℤ × ℤ) (n : ℕ) (ω : Ω) (S : Set (ℤ × ℤ)) : Prop := ∀ x ∈ S, ∃ k ≤ n, position X k ω = x /-- The sites `x = (a, b)` of $\mathbb{Z}^2$ with Euclidean norm $\lVert x\rVert\leq r$. The condition is written without a square root as $a^2+b^2\leq r^2$. -/ def closedDisc (r : ℕ) : Set (ℤ × ℤ) := {x : ℤ × ℤ | x.1 ^ 2 + x.2 ^ 2 ≤ (r : ℤ) ^ 2} /-- The sites `x = (a, b)` of $\mathbb{Z}^2$ with Euclidean norm $\lVert x\rVert0$, where $00$ there are constants $c>0$ and $C$ such that $c\sqrt{\log n}\leq\log R_n\leq C\sqrt{\log n}$ with probability at least $1-\varepsilon$ for all large $n$. This is the sense of the results above and of `erdos_1164.variants.dembo_peres_rosen_zeitouni`, which are about probabilities, not almost sure bounds. [ErTa60, p. 153] asks an almost sure question about the time needed to cover the disc of radius $n$; we follow the results in probability reported in [DPRZ04, Section 1.3]. -/ @[category research solved, question, AMS 60] theorem erdos_1164 {Ω : Type*} [MeasureSpace Ω] [IsProbabilityMeasure (ℙ : Measure Ω)] {X : ℕ → Ω → ℤ × ℤ} (hX : IsSimpleRandomWalkSteps X) : ∀ ε : ℝ, 0 < ε → ∃ c C : ℝ, 0 < c ∧ ∀ᶠ n : ℕ in atTop, 1 - ε ≤ (ℙ {ω | c * Real.sqrt (Real.log n) ≤ Real.log (coveringRadius X n ω) ∧ Real.log (coveringRadius X n ω) ≤ C * Real.sqrt (Real.log n)}).toReal := by sorry /-- Dembo, Peres, Rosen and Zeitouni [DPRZ04, Theorem 1.4] proved a conjecture of Kesten and Révész: if $T_n$ is the time it takes the simple random walk in $\mathbb{Z}^2$ to cover the disc of radius $n$, then $$\lim_{n\to\infty}\mathbb{P}\left(\log T_n\leq t(\log n)^2\right)=e^{-4/t}$$ for every $t>0$. The disc is $D_n=D(0,n)\cap\mathbb{Z}^2$ (`openDisc`). Since $T_n$ is an integer, $\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, if the disc is covered by that time. -/ @[category research solved, AMS 60] theorem erdos_1164.variants.dembo_peres_rosen_zeitouni {Ω : Type*} [MeasureSpace Ω] [IsProbabilityMeasure (ℙ : Measure Ω)] {X : ℕ → Ω → ℤ × ℤ} (hX : IsSimpleRandomWalkSteps X) (t : ℝ) (ht : 0 < t) : Tendsto (fun n : ℕ ↦ (ℙ {ω | Covers X ⌊Real.exp (t * Real.log n ^ 2)⌋₊ ω (openDisc n)}).toReal) atTop (𝓝 (Real.exp (-4 / t))) := by sorry end Erdos1164