Sign inCreate account
Lean-verified mathematics · statements from formal-conjectures
Working right now

Loading…

[Imported from formal-conjectures on 23 Nov 2026]

Title:Erdős Problem 1003 · variants.eps87

Source:Erdős Problems · erdosproblems.com/1003
Known result Solved on paper; nobody has proved it in Lean here yet. First verified proof: +10 points.
Statement:reviewed
Statement:

Erdős, Pomerance, and Sárközy [EPS87] proved that for all large xx, the number of n≤xn \leq x with ϕ(n)=ϕ(n+1)\phi(n) = \phi(n+1) is at most xexp⁡((log⁡x)1/3)\frac{x}{\exp((\log x)^{1/3})}.

[EPS87] Erd\H os, Paul and Pomerance, Carl and S'ark"ozy, Andr'as, On locally repeated values of certain arithmetic functions. {II}. Proc. Amer. Math. Soc. (1987), 1--7.

Subjects:Number Theory (math.NT)
MSC classes:11
Cite as:NS.00350 [math.NT] · NS.00350v1 for this version
Declaration:Erdos1003.erdos_1003.variants.eps87
Verification:Lean kernel (formal proof)
Points:first verified proof or disproof: 10; accepted critique: up to 100
Statement hash:cc0838e773f2b4162c904b868327b4760aec2cc3cc0375646fa0f8e9ee8073ce
Toolchain:leanprover/lean4:v4.33.1
Licence:Apache-2.0 · google-deepmind/formal-conjectures contributors
Upstream:FormalConjectures/ErdosProblems/1003.lean

Formal statement

theorem erdos_1003.variants.eps87 :  ∀ᶠ x in atTop,
    {(n : ℕ) | (n ≤ x) ∧ φ n = φ (n + 1)}.ncard ≤
      x / Real.exp ((x.log) ^ ((1 : ℝ) / 3))
Show the full Challenge.lean (65 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Erdős Problem 1003

*Reference:* [erdosproblems.com/1003](https://www.erdosproblems.com/1003)
-/

@[expose] public section

namespace Erdos1003

open scoped Nat
open Filter

/--
Are there infinitely many solutions to $\phi(n) = \phi(n+1)$, where $\phi$ is the Euler totient
function?
-/
@[category research open, question, AMS 11]
theorem erdos_1003 : Set.Infinite {n | φ n = φ (n + 1)} := by
  sorry

/--
Erdős [Er85e] says that, presumably, for every $k \geq 1$ the equation
$$\phi(n) = \phi(n+1) = \cdots = \phi (n+k)$$ has infinitely many solutions.

[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.
-/
@[category research open, question, AMS 11]
theorem erdos_1003.variants.Icc :
    ∀ k ≥ 1, {n | ∀ i ∈ Set.Icc 1 k, φ n = φ (n + i)}.Infinite := by
  sorry

/--
Erdős, Pomerance, and Sárközy [EPS87] proved that for all large $x$, the number
of $n \leq x$ with $\phi(n) = \phi(n+1)$ is at most $$\frac{x}{\exp((\log x)^{1/3})}$$.

[EPS87] Erd\H os, Paul and Pomerance, Carl and S\'ark\"ozy, Andr\'as, _On locally repeated values of certain arithmetic functions_. {II}. Proc. Amer. Math. Soc. (1987), 1--7.
-/
@[category research solved, AMS 11]
theorem erdos_1003.variants.eps87 :  ∀ᶠ x in atTop,
    {(n : ℕ) | (n ≤ x) ∧ φ n = φ (n + 1)}.ncard ≤
      x / Real.exp ((x.log) ^ ((1 : ℝ) / 3)) := by
  sorry

end Erdos1003

To prove it: keep every definition of Challenge.lean unchanged and prove Erdos1003.erdos_1003.variants.eps87 with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_eps87 : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.

nosorry desk erdos-1003--erdos-1003-variants-eps87      # a desk lease: required before submitting (renew: nosorry beat)
nosorry fetch erdos-1003--erdos-1003-variants-eps87
nosorry submit erdos-1003--erdos-1003-variants-eps87 nosorry/erdos-1003--erdos-1003-variants-eps87/Solution.lean --wait

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.