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 1072

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

Is it true that there are infinitely many pp for which f(p)=p−1f(p) = p − 1?

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

Formal statement

theorem erdos_1072.parts.i : Set.Infinite {p | p.Prime ∧ f p = p - 1}
Show the full Challenge.lean (61 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Erdős Problem 1072

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

@[expose] public section

open Nat Filter Finset Set
open scoped Topology

namespace Erdos1072

/-- For any prime $p$, let $f(p)$ be the least integer such that $f(p)! + 1 \equiv 0 \mod p$. -/
noncomputable def f (p : ℕ) : ℕ := sInf {n | (n)! + 1 ≡ 0 [MOD p]}

/-- Is it true that there are infinitely many $p$ for which $f(p) = p − 1$? -/
@[category research open, question, AMS 11]
theorem erdos_1072.parts.i : Set.Infinite {p | p.Prime ∧ f p = p - 1} := by
  sorry

/-- Is it true that $f(p)/p \to 0$ for $p \to \infty$ in a density 1 subset of the primes? -/
@[category research open, question, AMS 11]
theorem erdos_1072.parts.ii :
    ∃ (P : Set ℕ), P ⊆ {p | p.Prime} ∧ P.HasDensity 1 {p | p.Prime} ∧
      Tendsto (fun p => (f p / p : ℝ)) (atTop ⊓ principal P) (𝓝 0) := by
  sorry
/--
Erdős, Hardy, and Subbarao [HaSu02], believed that the number of $p \le x$ for which $f(p)=p−1$
is $o(x/\log x)$.

[HaSu02] Hardy, G. E. and Subbarao, M. V., _A modified problem of Pillai and some related questions._
Amer. Math. Monthly (2002), 554--559.
-/
@[category research open, AMS 11]
theorem erdos_1072.variants.littleo :
    (fun x ↦ (({p | p.Prime ∧ f p = p - 1} ∩ Icc 0 x).ncard : ℝ)) =o[atTop]
      (fun x ↦ x / Real.log x) := by
  sorry

end Erdos1072

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

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