/- 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 997 *References:* - [erdosproblems.com/997](https://www.erdosproblems.com/997) - [APSSV26] B. Alexeev, M. Putterman, M. Sawhney, M. Sellke, and G. Valiant, [Short proofs in combinatorics and number theory](https://arxiv.org/abs/2603.29961). arXiv:2603.29961 (2026). - [CLLW24] J. Champagne, T. Le, Y.-R. Liu, and T. D. Wooley, Well-distribution modulo one and the primes. arXiv:2406.19491 (2024). - [Er64b] Erdős, P., Problems and results on diophantine approximations. Compositio Math. (1964), 52-65. - [Er85e] Erdős, P., Some problems and results in number theory. Number theory and combinatorics. Japan 1984 (Tokyo, Okayama and Kyoto, 1984) (1985), 65-87. - [Hl55] Hlawka, Edmund, Zur formalen {T}heorie der {G}leichverteilung in kompakten {G}ruppen. Rend. Circ. Mat. Palermo (2) (1955), 33--47. - [Mo26] P. Monticone, [Lean formalisation of Erdős problem 997](https://live.lean-lang.org/#project=mathlib-v4.28.0&url=https://gist.githubusercontent.com/pitmonticone/016f2ed66b4cd1c4c4b9998095170e60/raw/b7dfc05c525ae385b5835f89f1ada721443e4305/Erdos997.lean) (2026) -/ @[expose] public section open Set namespace Erdos997 /-- Call $x_1,x_2,\ldots \in (0,1)$ well-distributed if, for every $\epsilon>0$, if $k$ is sufficiently large then, for all $n>0$ and intervals $I\subseteq [0,1]$, $\lvert \# \{ n < m\leq n+k : x_m\in I\} - \lvert I\rvert k\rvert < \epsilon k.$ The notion of a well-distributed sequence was introduced by Hlawka and Petersen [Hl55]. -/ def IsWellDistributed (x : ℕ → ℝ) : Prop := ∀ ε > 0, ∀ᶠ k in Filter.atTop, ∀ n : ℕ, ∀ a b, 0 ≤ a → a ≤ b → b ≤ 1 → letI I := Ico a b let count := (Finset.Ioc n (n + k)).filter (fun m ↦ x m ∈ I) abs ((count.card : ℝ) - (b - a) * k) < ε * k set_option linter.style.formal_proof_palomar false in /-- Is it true that, for every $\alpha$, the sequence $\{ \alpha p_n\}$ is not well-distributed, if $p_n$ is the sequence of primes? The answer is yes, by [APSSV26, Section 4]; a Lean formalisation is available in [Mo26]. -/ @[category research solved, question, AMS 11, formal_proof using lean4 at "https://gist.githubusercontent.com/pitmonticone/016f2ed66b4cd1c4c4b9998095170e60/raw/b7dfc05c525ae385b5835f89f1ada721443e4305/Erdos997.lean"] theorem erdos_997 : ∀ α : ℝ, ¬ IsWellDistributed (fun n ↦ Int.fract (α * (n.nth Nat.Prime))) := by sorry /-- Erdős proved that, if $n_k$ is a lacunary sequence, then the sequence $\{ \alpha n_k\}$ is not well-distributed for almost all $\alpha$. -/ @[category research solved, AMS 11] theorem erdos_997.variants.lacunary (n : ℕ → ℕ) (h : IsLacunary n) : ∀ᵐ α, ¬ IsWellDistributed (fun k ↦ Int.fract (α * (n k : ℝ))) := by sorry /-- He also claimed in [Er64b] to have proved that there exists an irrational $\alpha$ for which $\{\alpha p_n\}$ is not well-distributed. He later retracted this claim in [Er85e], saying "The theorem is no doubt correct and perhaps will not be difficult to prove but I never was able to reconstruct my 'proof' which perhaps never existed." The existence of such an $\alpha$ was established by Champagne, Le, Liu, and Wooley [CLLW24]. -/ @[category research solved, AMS 11] theorem erdos_997.variants.irrational : ∃ α : ℝ, Irrational α ∧ ¬ IsWellDistributed (fun n ↦ Int.fract (α * (n.nth Nat.Prime))) := by sorry end Erdos997