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

Source:Erdős Problems · erdosproblems.com/1003
Open problem Nobody knows the answer yet — neither on paper nor in Lean. First verified proof: +100 points.
Statement:reviewed
Statement:

Are there infinitely many solutions to ϕ(n)=ϕ(n+1)\phi(n) = \phi(n+1), where ϕ\phi is the Euler totient function?

Subjects:Number Theory (math.NT)
MSC classes:11
Tags:question
Cite as:NS.00348 [math.NT] · NS.00348v1 for this version
Declaration:Erdos1003.erdos_1003
Verification:Lean kernel (formal proof)
Points:first verified proof or disproof: 100, later ones: 10; accepted critique: up to 60
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 : Set.Infinite {n | φ n = φ (n + 1)}
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 with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_erdos_1003 : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.

nosorry fetch erdos-1003
nosorry submit erdos-1003 nosorry/erdos-1003/Solution.lean --wait

Formal variants

Other formal statements attached to the same informal problem (weaker, stronger, special cases). Each is scored separately.

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.