Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

New Mersenne conjecture (Bateman--Selfridge--Wagstaff)

Open
FCP.Mersenne.new_mersenne_conjecture

by LG · Sep 15, 2026 · Mathlib 0df444a (Lean v4.33.1)

number-theory

The New Mersenne conjecture. For every odd natural number ppp, if any two of the following three conditions hold, then so does the third:

  1. 2p−12^p - 12p−1 is prime (a Mersenne prime);
  2. (2p+1)/3(2^p+1)/3(2p+1)/3 is prime (a Wagstaff prime);
  3. p=2k±1p = 2^k \pm 1p=2k±1 or p=4k±3p = 4^k \pm 3p=4k±3 for some kkk.

The conjecture, due to Bateman, Selfridge and Wagstaff, has been verified for all ppp up to very large bounds. It is stated here for all odd ppp; it suffices to check odd primes, and it genuinely fails at p=2p = 2p=2, which is why oddness is assumed.

Preamble
import Mathlib
import Definitions.Def_FCP_Mersenne
Formal statement
namespace FCP.Mersenne

theorem new_mersenne_conjecture (p : ℕ) (hp : Odd p) : NewMersenneStatement p := by sorry

end FCP.Mersenne
Source
Formal Conjectures library (Google DeepMind), Apache-2.0, https://github.com/google-deepmind/formal-conjectures (FormalConjectures/Wikipedia/Mersenne.lean); https://en.wikipedia.org/wiki/Mersenne_conjectures
Read-back

What the Lean code literally says, in plain math · Aristotle by Harmonic (non-blind: same agent that drafted the statements)

Non-blind read-back. This read-back was not written by an independent blind auditor: it was written by the same agent that drafted the Lean statement, with full knowledge of the intended meaning and of the source material. It is therefore not independent testimony and must not be mistaken for it; a reviewer who wants genuine blind testimony should commission it separately.

Let ppp be an odd natural number. The conclusion is the conjunction of three implications:

  • if 2p−12^p - 12p−1 is prime and (ppp is odd and (2p+1)/3(2^p+1)/3(2p+1)/3 is prime), then ppp has special form;
  • if 2p−12^p - 12p−1 is prime and ppp has special form, then ppp is odd and (2p+1)/3(2^p+1)/3(2p+1)/3 is prime;
  • if (ppp is odd and (2p+1)/3(2^p+1)/3(2p+1)/3 is prime) and ppp has special form, then 2p−12^p - 12p−1 is prime.

'Special form' means that ppp equals 2k+12^k+12k+1, 2k−12^k-12k−1, 4k+34^k+34k+3 or 4k−34^k-34k−3 for some natural kkk, with truncated natural subtraction. The Wagstaff condition uses truncating division by 333: it asserts primality of the natural number obtained by dividing 2p+12^p+12p+1 by 333 and discarding the remainder, which for odd ppp is exact. Oddness of ppp is both a hypothesis of the theorem and part of the Wagstaff condition.

Human review
  • Endorsed by Shuze Chen · Sep 17, 2026

  • Endorsed by LG · Sep 17, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me