/- 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 /-! # Erdős Problem 1165 *References:* - [erdosproblems.com/1165](https://www.erdosproblems.com/1165) - [Va99] Various, *Some of Paul's favorite problems*. Booklet produced for the conference "Paul Erdős and his mathematics", Budapest, July 1999 (1999). - [HLOZ24] Hao, C., Li, X., Okada, I. and Zheng, Y., *Favorite sites for simple random walk in two and more dimensions*. [arXiv:2409.00995](https://arxiv.org/abs/2409.00995) (2024). - [To01] Tóth, B., *No more than three favorite sites for simple random walk*. Ann. Probab. 29 (2001), 484--503. -/ @[expose] public section open MeasureTheory Filter open scoped ProbabilityTheory ENNReal namespace Erdos1165 /-- The four unit steps $(\pm 1, 0)$ and $(0, \pm 1)$ of the simple random walk on $\mathbb{Z}^2$. -/ def steps : Set (ℤ × ℤ) := {(1, 0), (-1, 0), (0, 1), (0, -1)} /-- `X k` is the $k$-th step of a simple random walk on $\mathbb{Z}^2$, on the probability space `Ω`: the steps are random variables, they are independent, and each is uniformly distributed on `steps`. -/ structure IsSimpleRandomWalkSteps {Ω : Type*} [MeasureSpace Ω] (X : ℕ → Ω → ℤ × ℤ) : Prop where /-- Each step is a random variable. -/ measurable (k : ℕ) : Measurable (X k) /-- The steps are independent. -/ indep : ProbabilityTheory.iIndepFun X ℙ /-- Each step is uniform on `steps`. -/ isUniform (k : ℕ) : MeasureTheory.pdf.IsUniform (X k) steps ℙ Measure.count /-- The position $s_n = \sum_{k