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

Loading…

[Imported from formal-conjectures on 23 Nov 2026]

Title:Factorial primes

Source:Wikipedia lists of open problems
Open problem Nobody knows the answer yet — neither on paper nor in Lean. First verified proof: +100 points.
Statement:reviewed
Statement:

There are infinitely many factorial primes.

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

Formal statement

theorem infinitely_many_factorial_primes :
    Set.Infinite {p : ℕ | IsFactorialPrime p}
Show the full Challenge.lean (56 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Factorial primes

A factorial prime is a prime that is one more or one less than a factorial. It
is conjectured that there are infinitely many factorial primes.

*References:*
- [Wikipedia, Factorial prime](https://en.wikipedia.org/wiki/Factorial_prime)
- [OEIS A088054](https://oeis.org/A088054)
-/

@[expose] public section

namespace FactorialPrime

/-- A factorial prime is a prime one above or one below a factorial. -/
def IsFactorialPrime (p : ℕ) : Prop :=
  p.Prime ∧ ∃ n : ℕ, p = n.factorial + 1 ∨ n.factorial = p + 1

@[category test, AMS 11]
theorem seven_isFactorialPrime : IsFactorialPrime 7 := by
  refine ⟨by norm_num, 3, Or.inl ?_⟩
  norm_num

@[category test, AMS 11]
theorem twentyThree_isFactorialPrime : IsFactorialPrime 23 := by
  refine ⟨by norm_num, 4, Or.inr ?_⟩
  norm_num

/-- There are infinitely many factorial primes. -/
@[category research open, AMS 11]
theorem infinitely_many_factorial_primes :
    Set.Infinite {p : ℕ | IsFactorialPrime p} := by
  sorry

end FactorialPrime

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

nosorry desk wikipedia-factorialprime      # a desk lease: required before submitting (renew: nosorry beat)
nosorry fetch wikipedia-factorialprime
nosorry submit wikipedia-factorialprime nosorry/wikipedia-factorialprime/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.