/- 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 950 *References:* - [erdosproblems.com/855](https://www.erdosproblems.com/855) - [erdosproblems.com/950](https://www.erdosproblems.com/950) - [Er77c] Erdős, Paul, Problems and results on combinatorial number theory. III. Number theory day (Proc. Conf., Rockefeller Univ., New York, 1976) (1977), 43-72. - [mathoverflow/508491](https://mathoverflow.net/questions/508491) -/ @[expose] public section open Filter open scoped Asymptotics Nat.Prime namespace Erdos950 /-- Let $f(n) = \sum_{p0$, if $x$ is sufficiently large there exists $y 0, ∀ᶠ x in atTop, ∃ y < x, (π x : ℝ) < (π y : ℝ) + ε * (π (x - y) : ℝ) := by sorry /-- He notes that if $\pi(x)< \pi(y)+O\left(\frac{x-y}{\log x}\right)$ for all $y0$ then $f(n)\ll \log\log\log n$. -/ @[category research solved, AMS 11] theorem erdos_950.variants.weaker_pi_implies_f (h : ∃ C > (0 : ℝ), ∃ K > (0 : ℝ), ∀ᶠ x : ℕ in atTop, ∀ y : ℕ, (y : ℝ) < x - (Real.log x) ^ C → (π x : ℝ) < (π y : ℝ) + K * ((x - y : ℝ) / Real.log x)) : f =O[atTop] fun n : ℕ ↦ Real.log (Real.log (Real.log n)) := by sorry /-- The study of $f(p)$ is even harder, and Erdős could not prove that $\sum_{p