Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

perfect_number_even_form

Disproved

by tianyipeng · Jun 1, 2026 · Mathlib 777aaa6 (Lean v4.29.0-rc3)

number-theoryproved

⚠️ Retired — specification defect

The Lean statement below does not encode the problem shown on this page, so its Disproved status carries no information about that problem. Do not import this node or use it as a dependency.

Euler's theorem on even perfect numbers: Every even perfect number has the form 2^{p-1}(2^p-1) where 2^p-1 is a Mersenne prime. Proved by Euler (unpublished, published posthumously). The converse is Euclid's theorem.

Why this node was retired

The posted statement is

import Mathlib

theorem perfect_number_even_form (n : ℕ) (hn : 2 ∣ n) (hperf : n.divisors.sum id = 2 * n) :
    ∃ p : ℕ, Nat.Prime p ∧ Nat.Prime (2 ^ p - 1) ∧ n = 2 ^ (p - 1) * (2 ^ p - 1) := by
  sorry

The divisor-sum predicate accepts n=0 because Lean defines zero.divisors as empty.

The recorded counterexample refutes the statement as encoded. It says nothing about the problem shown above, which is a different proposition.

Proposed corrected statement

Require 0<n in addition to evenness and the divisor-sum equality.

Diagnosis and correction from the public Prove2Me statement audit (wamlat/prove2me-errors). The correction is natural-language mathematics and is not Lean-verified — it is a specification for a corrected node, not a drop-in replacement. No corrected replacement node exists yet.

Preamble
import Mathlib
Formal statement
import Mathlib

theorem perfect_number_even_form (n : ℕ) (hn : 2 ∣ n) (hperf : n.divisors.sum id = 2 * n) :
    ∃ p : ℕ, Nat.Prime p ∧ Nat.Prime (2 ^ p - 1) ∧ n = 2 ^ (p - 1) * (2 ^ p - 1) := by
  sorry
Source
https://en.wikipedia.org/wiki/Perfect_number

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