Title:Erdős Problem 49
Statement:Let be such that . The primes are such an example. Are they the largest possible? Can one show that or even ?
Erdős remarks that the last conjecture is probably easy, and that similar questions can be asked about .
Solved by Tao [Ta24d], who proved that
In [Er95c] Erdős further asks about the situation when .
See also 415.
| Subjects: | Number Theory (math.NT) |
| MSC classes: | 11 |
| Tags: | question, formal_proof |
| Cite as: | NS.02259 [math.NT] · NS.02259v1 for this version |
| Declaration: | Erdos49.erdos_49 |
| Verification: | Lean kernel (formal proof) |
| Points: | first verified proof or disproof: 10, later ones: 2; accepted critique: up to 60 |
| Statement hash: | a4fa31a42be9bd340c873356b9d3c45b8c23a2f99ed79ccb6cc0615087c376d9 |
| Toolchain: | leanprover/lean4:v4.33.1 |
| Licence: | Apache-2.0 · google-deepmind/formal-conjectures contributors |
| Upstream: | FormalConjectures/ErdosProblems/49.lean |
Formal statement
theorem erdos_49 : ∀ ε : ℝ, 0 < ε →
∀ᶠ N : ℕ in atTop, (f N : ℝ) ≤ (1 + ε) * Nat.primeCounting NShow the full Challenge.lean (100 lines) — definitions included
module
public import FormalConjecturesUtil
/-!
# Erdős Problem 49
*References:*
- [erdosproblems.com/49](https://www.erdosproblems.com/49)
- [Er95] Erdős, Paul, *Some of my favourite problems in number theory, combinatorics, and
geometry*. Resenhas (1995), 165-186.
- [Er95c] Erdős, Paul, *Some problems in number theory*. Octogon Math. Mag. (1995), 3-5.
- [Ta24d] Tao, Terence, *Monotone nondecreasing sequences of the Euler totient function*.
Matematica (2024), 793-820.
-/
@[expose] public section
open Filter Asymptotics
namespace Erdos49
/-- The largest size of a set $A\subseteq\{1,\ldots,N\}$ on which Euler's totient function is
strictly increasing. -/
noncomputable def f (N : ℕ) : ℕ :=
sSup {k | ∃ A : Finset ℕ, A ⊆ Finset.Icc 1 N ∧ StrictMonoOn Nat.totient (A : Set ℕ) ∧
A.card = k}
/-- The largest size of a set $A\subseteq\{1,\ldots,N\}$ on which Euler's totient function is
non-decreasing. -/
noncomputable def g (N : ℕ) : ℕ :=
sSup {k | ∃ A : Finset ℕ, A ⊆ Finset.Icc 1 N ∧ MonotoneOn Nat.totient (A : Set ℕ) ∧
A.card = k}
set_option linter.style.formal_proof_palomar false in
/--
Let $A=\{a_1<\cdots<a_t\}\subseteq \{1,\ldots,N\}$ be such that $\phi(a_1)<\cdots<\phi(a_t)$.
The primes are such an example. Are they the largest possible? Can one show that
$\lvert A\rvert<(1+o(1))\pi(N)$ or even $\lvert A\rvert=o(N)$?
Erdős remarks that the last conjecture is probably easy, and that similar questions can be asked
about $\sigma(n)$.
Solved by Tao [Ta24d], who proved that
$$ \lvert A\rvert \leq \left(1+O\left(\frac{(\log\log x)^5}{\log x}\right)\right)\pi(x).$$
In [Er95c] Erdős further asks about the situation when $\phi(a_1)\leq \cdots \leq \phi(a_t)$.
See also [415](https://www.erdosproblems.com/415).
-/
@[category research solved, question, AMS 11, formal_proof using lean4 at
"https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos49.lean#L120"]
theorem erdos_49 : ∀ ε : ℝ, 0 < ε →
∀ᶠ N : ℕ in atTop, (f N : ℝ) ≤ (1 + ε) * Nat.primeCounting N := by
sorry
set_option linter.style.formal_proof_palomar false in
/-- The weaker statement $\lvert A\rvert=o(N)$. -/
@[category research solved, AMS 11, formal_proof using lean4 at
"https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos49.lean#L340"]
theorem erdos_49.variants.little_o :
(fun N : ℕ ↦ (f N : ℝ)) =o[atTop] fun N ↦ (N : ℝ) := by
sorry
set_option linter.style.formal_proof_palomar false in
/--
Tao [Ta24d] proved that
$\lvert A\rvert \leq \left(1+O\left(\frac{(\log\log N)^5}{\log N}\right)\right)\pi(N)$, even for
sets on which $\phi$ is merely non-decreasing.
-/
@[category research solved, AMS 11, formal_proof using lean4 at
"https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos49.lean#L120"]
theorem erdos_49.variants.tao : ∃ C : ℝ, 0 ≤ C ∧ ∀ N : ℕ, 10 ≤ N →
(g N : ℝ) ≤ (1 + C * (Real.log (Real.log N) ^ 5 / Real.log N)) *
Nat.primeCounting N := by
sorry
/-- Are the primes the largest possible example, i.e. is $f(N) = \pi(N)$ for all $N \geq 2$? -/
@[category research open, question, AMS 11]
theorem erdos_49.variants.primes_maximal :
∀ N : ℕ, 2 ≤ N → f N = Nat.primeCounting N := by
sorry
end Erdos49
To prove it: keep every definition of Challenge.lean unchanged and prove Erdos49.erdos_49 with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_erdos_49 : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.
nosorry fetch erdos-49 nosorry submit erdos-49 nosorry/erdos-49/Solution.lean --wait
Formal variants
Other formal statements attached to the same informal problem (weaker, stronger, special cases). Each is scored separately.
- erdos-49-variants-little-o — known result
- erdos-49-variants-tao — known result
- erdos-49-variants-primes-maximal — open
Contributions
No contributions yet — be the first. Submit a proof or a finding.
Research in progress
People working on this problem share their repository and a summary of what they have tried — dead ends included. Read these before starting, build on them, and credit them in prior work when you submit.
Nobody has shared research on this problem yet.
Sign in to share your research.
Statement review
Is the formal statement faithful to the problem? Too weak, too strong, already solved in the literature? An accepted critique creates a new statement version; proofs of the previous version are re-checked and their points adjusted.
Sign in to open a critique.