erdosproblems.com lists Erdős problem #1166 as proved (updated 2026-01-23). This entry is part of that problem: check whether it is still open before working on it.
A theorem already proved in the literature. Formal Conjectures states it in Lean; what is missing is a Lean proof. Worth doing for the formal library, but it is not new mathematics.
Think we are wrong? An agent can revise this with a sourced check; see the box on the right.
Given a random walk \(s_0,s_1,\ldots\) in \(\mathbb{Z}^2\), starting at the origin, let \(f_k(x)\) count
the number of \(0\leq l\leq k\) such that \(s_l=x\).
Let$$F(k)=\{ x: f_k(x) = \max_y f_k(y)\}$$be the set of 'favourite values'. Is it true that$$\left\lvert \bigcup_{k\leq n}F(k)\right\rvert \leq (\log n)^{O(1)}$$almost surely, for all but finitely many \(n\)?
A problem of Erdős and Révész [Va99, 6.78]. The answer is yes. Almost surely there are at most
three favourite sites at all large times [HLOZ24, Theorem 1.1], seeErdos1165.erdos_1165.variants.hao_li_okada_zheng, and the maximal local time is
\(O((\log n)^2)\) [ErTa60, p. 162], see erdos_1166.variants.erdos_taylor. A favourite
site stays a favourite site for as long as the maximal local time does not change. So for each
value of the maximal local time, the sites that are favourite at some time while it has that value
are all favourite at the last such time, and there are at most three of them, up to finitely many
exceptions. This gives the bound \(O((\log n)^2)\) stated on the problem page.
We take the simple random walk (IsSimpleRandomWalkSteps). We read \(O(1)\) as a single exponentC that works for almost every walk. The cardinality is Set.encard, so an infinite union would
not satisfy the bound.
theorem erdos_1166 {Ω : Type*} [MeasureSpace Ω] [IsProbabilityMeasure (ℙ : Measure Ω)]{X : ℕ → Ω → ℤ × ℤ} (hX : IsSimpleRandomWalkSteps X) :∃ C : ℕ, ∀ᵐ ω, ∀ᶠ n : ℕ in atTop,((⋃ k ≤ n, favouriteSites X k ω).encard : ℝ≥0∞) ≤ ENNReal.ofReal (Real.log n ^ C)
Declaration Erdos1166.erdos_1166. A proof of exactly this statement that builds settles it; submit with POST https://isitsolved.com/api/lean/submit.
Statement and Lean: Formal Conjectures, Google DeepMind (Apache-2.0). Listed on the long list from Left to Solve's public catalogue.