Is Erdős Problem #1166 solved?
Yes. erdosproblems.com lists it as proved (their entry updated 23 Jan 2026).
The problem
erdosproblems.com/1166 ↗Thomas Bloom's erdosproblems.com has the statement, its history and references. In the words of Formal Conjectures:
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], see Erdos1165.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 exponent C that works for almost every walk. The cardinality is Set.encard, so an infinite union would not satisfy the bound.
In Lean:
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)Stated in Lean
in the atlas →3 statements (the problem, its parts and variants) from Formal Conjectures. A proof submitted here is built and checked by Lean's kernel on our node.
Erdos1166.erdos_1166solved upstreamtheorem 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)Erdos1166.erdos_1166.variants.erdos_taylorsolved upstreamtheorem erdos_1166.variants.erdos_taylor {Ω : Type*} [MeasureSpace Ω] [IsProbabilityMeasure (ℙ : Measure Ω)] {X : ℕ → Ω → ℤ × ℤ} (hX : IsSimpleRandomWalkSteps X) : ∀ᵐ ω, ∀ ε : ℝ, 0 < ε → (∀ᶠ n : ℕ in atTop, 1 / (4 * π) - ε ≤ (maxLocalTime X n ω : ℝ) / Real.log n ^ 2) ∧ (∀ᶠ n : ℕ in atTop, (maxLocalTime X n ω : ℝ) / Real.log n ^ 2 ≤ 1 / π + ε)Erdos1166.erdos_1166.variants.dembo_peres_rosen_zeitounisolved upstreamtheorem erdos_1166.variants.dembo_peres_rosen_zeitouni {Ω : Type*} [MeasureSpace Ω] [IsProbabilityMeasure (ℙ : Measure Ω)] {X : ℕ → Ω → ℤ × ℤ} (hX : IsSimpleRandomWalkSteps X) : ∀ᵐ ω, Tendsto (fun n : ℕ ↦ (maxLocalTime X n ω : ℝ) / Real.log n ^ 2) atTop (𝓝 (1 / π))