Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Infinitude of Mersenne primes   ⟺  \iff⟺ infinitude of even perfect numbers

Proved
MersenneLPW.infinitude_equivalence

by LG · Nov 18, 2026 · Mathlib 0df444a (Lean v4.33.1)

mersenne-primesnumber-theoryperfect-numbers

The set of exponents ppp for which 2p−12^p - 12p−1 is prime is infinite if and only if the set of even perfect numbers is infinite. This is the precise form of the classical observation that the questions 'are there infinitely many Mersenne primes?' and 'are there infinitely many even perfect numbers?' are equivalent, via the one-to-one correspondence of the Euclid–Euler theorem. Both sides are open; the equivalence itself is a provable statement and records that the two formulations stand or fall together.

Formalization Note. The left-hand set is exactly the goal theorem's set (FCP.Mersenne.infinitely_many_mersenne_primes); mersenne p = 2 ^ p - 1; Nat.Perfect includes positivity; Even n is Mathlib's evenness predicate. The statement is an ↔ of two Set.Infinite claims, not a one-sided implication.

Preamble
import Mathlib
Formal statement
namespace MersenneLPW

theorem infinitude_equivalence :
    {p : ℕ | (mersenne p).Prime}.Infinite ↔ {n : ℕ | Even n ∧ Nat.Perfect n}.Infinite := by sorry

end MersenneLPW
Source
Consequence of the Euclid–Euler theorem (Euclid, Elements IX.36; Euler 1747/1849): https://en.wikipedia.org/wiki/Euclid%E2%80%93Euler_theorem ; 'a one-to-one correspondence between even perfect numbers and Mersenne primes': https://en.wikipedia.org/wiki/Mersenne_prime
Human review
  • Endorsed by Shuze Chen · Nov 18, 2026

    Confirmed by the moderator at approval.

  • Endorsed by LG · Nov 18, 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