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 1055

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

A prime pp is in class 11 if the only prime divisors of p+1p+1 are 22 or 33. In general, a prime pp is in class rr if every prime factor of p+1p+1 is in some class ≤r−1\leq r-1, with equality for at least one prime factor. Are there infinitely many primes in each class?

Subjects:Number Theory (math.NT)
MSC classes:11
Cite as:NS.00506 [math.NT] · NS.00506v1 for this version
Declaration:Erdos1055.erdos_1055
Verification:Lean kernel (formal proof)
Points:first verified proof or disproof: 100, later ones: 10; accepted critique: up to 60
Statement hash:b9d59e616881f02fb8dd66134bb6929fa7a53e3b276be3103418a83c10395c1e
Toolchain:leanprover/lean4:v4.33.1
Licence:Apache-2.0 · google-deepmind/formal-conjectures contributors
Upstream:FormalConjectures/ErdosProblems/1055.lean

Formal statement

theorem erdos_1055 (r) : {p | p.Prime ∧ IsOfClass r p}.Infinite
Show the full Challenge.lean (97 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Erdős Problem 1055

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

@[expose] public section

namespace Erdos1055

/-- A prime $p$ is in class $1$ if the only prime divisors of $p+1$ are
$2$ or $3$. In general, a prime $p$ is in class $r$ if every prime factor
of $p+1$ is in some class $\leq r-1$, with equality for at least one prime factor.

The classes partition the primes, so `IsOfClass r p` says that $p$ is in class
*exactly* $r$: the first conjunct of the successor case rules out every class
$\leq r - 1$ for $p$ itself. Without it `IsOfClass 2` would also hold of every
prime of class $1$, because at $r = 2$ the "with equality" clause quantifies over
the single value $m = 1$ and so says nothing. -/
def IsOfClass : ℕ+ → ℕ → Prop := fun r ↦
  PNat.caseStrongInductionOn (p := fun (_ : ℕ+) ↦ ℕ → Prop) r
    (fun p ↦ (p + 1).primeFactors ⊆ {2, 3})
    (fun n H p ↦
      (∀ (m : ℕ+) (hm : m ≤ n), ¬ H m hm p) ∧
      (∀ r ∈ (p + 1).primeFactors,
        ∃ (m : ℕ+) (hm : m ≤ n), H m hm r) ∧
      (∃ r ∈ (p + 1).primeFactors,
        ∀ (m : ℕ+) (hm : m ≤ n), H m hm r → m = n))

/-- A prime $p$ is in class $1$ if the only prime divisors of $p+1$ are
$2$ or $3$. In general, a prime $p$ is in class $r$ if every prime factor
of $p+1$ is in some class $\leq r-1$, with equality for at least one prime factor.
Show that for each $r$ there exists a prime $p$ of class $r$. -/
@[category textbook, AMS 11]
theorem exists_p (r : ℕ+) : ∃ p, p.Prime ∧ IsOfClass r p := by
  sorry


/-- A prime $p$ is in class $1$ if the only prime divisors of $p+1$ are
$2$ or $3$. In general, a prime $p$ is in class $r$ if every prime factor
of $p+1$ is in some class $\leq r-1$, with equality for at least one prime factor.
Let $p_r$ is the least prime in class $r$. -/
noncomputable def p (r : ℕ+) : ℕ :=
  open scoped Classical in
  Nat.find (exists_p r)

/-- A prime $p$ is in class $1$ if the only prime divisors of $p+1$ are
$2$ or $3$. In general, a prime $p$ is in class $r$ if every prime factor
of $p+1$ is in some class $\leq r-1$, with equality for at least one prime factor.
Are there infinitely many primes in each class?-/
@[category research open, AMS 11]
theorem erdos_1055 (r) : {p | p.Prime ∧ IsOfClass r p}.Infinite := by
  sorry

/-- A prime $p$ is in class $1$ if the only prime divisors of $p+1$ are
$2$ or $3$. In general, a prime $p$ is in class $r$ if every prime factor
of $p+1$ is in some class $\leq r-1$, with equality for at least one prime factor.
If $p_r$ is the least prime in class $r$, then how does $p_r^{1/r}$ behave?
Erdos conjectured that this tends to infinity. -/
@[category research open, AMS 11]
theorem erdos_1055.variants.erdos_limit :
    Filter.atTop.Tendsto (fun r ↦ (p r : ℝ) ^ (1 / r : ℝ)) Filter.atTop := by
  sorry

/-- A prime $p$ is in class $1$ if the only prime divisors of $p+1$ are
$2$ or $3$. In general, a prime $p$ is in class $r$ if every prime factor
of $p+1$ is in some class $\leq r-1$, with equality for at least one prime factor.
If $p_r$ is the least prime in class $r$, then how does $p_r^{1/r}$ behave?
Selfridge conjectured that this is bounded. -/
@[category research open, AMS 11]
theorem erdos_1055.variants.selfridge_limit :
    ∃ M, ∀ r, (p r : ℝ) ^ (1 / r : ℝ) ≤ M := by
  sorry

-- TODO(Paul-Lez): formalize the rest of the problems on the page.

end Erdos1055

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

nosorry fetch erdos-1055
nosorry submit erdos-1055 nosorry/erdos-1055/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.