/-
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.
-/
import FormalConjecturesUtilErdős Problem 417
[Er98] Erdős, Paul, Some of my new and almost new problems and results in combinatorial number theory. Number theory (Eger, 1996) (1998), 169-180.
open Nat Set Filteropen scoped Topology
namespace Erdos417
Let$$V'(x)=#{\phi(m) : 1\leq m\leq x}$$and$$V(x)=#{\phi(m) \leq x : 1\leq m}.$$ Does $\lim V(x)/V'(x)$ exist?
Formalization note: We formalize the limit of the inverse fraction V'(x)/V(x) to ensure the limit is finite (bounded between 0 and 1).
@[category research open, AMS 11]
theorem erdos_417.parts.i :
answer(sorry) ↔ ∃ L : ℝ, Tendsto (fun x ↦
((totient '' { m | 1 ≤ m ∧ (m : ℝ) ≤ x }).ncard : ℝ) /
({ k | k ∈ range totient ∧ (k : ℝ) ≤ x }.ncard : ℝ))
atTop (𝓝 L) := ⊢ True ↔ ∃ L, Tendsto (fun x => ↑(φ '' {m | 1 ≤ m ∧ ↑m ≤ x}).ncard / ↑{k | k ∈ range φ ∧ ↑k ≤ x}.ncard) atTop (𝓝 L)
All goals completed! 🐙
Is it $>1$?
@[category research open, AMS 11]
theorem erdos_417.parts.ii :
answer(sorry) ↔ ∃ L < 1, Tendsto (fun x ↦
((totient '' { m | 1 ≤ m ∧ (m : ℝ) ≤ x }).ncard : ℝ) /
({ k | k ∈ range totient ∧ (k : ℝ) ≤ x }.ncard : ℝ))
atTop (𝓝 L) := ⊢ True ↔ ∃ L < 1, Tendsto (fun x => ↑(φ '' {m | 1 ≤ m ∧ ↑m ≤ x}).ncard / ↑{k | k ∈ range φ ∧ ↑k ≤ x}.ncard) atTop (𝓝 L)
All goals completed! 🐙
end Erdos417