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

Loading…

[Imported from formal-conjectures on 23 Nov 2026]

Title:Perfect numbers

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:

Infinitely many perfect numbers conjecture. Are there infinitely many perfect numbers?

Reference: Wikipedia

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

Formal statement

theorem infinitely_many_perfect :
    {n : ℕ | Perfect n}.Infinite
Show the full Challenge.lean (119 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Perfect numbers

A perfect number is a positive integer that equals the sum of its proper divisors
(i.e., all its positive divisors excluding the number itself).

For example, 6 is perfect because its proper divisors are 1, 2, and 3, and 1 + 2 + 3 = 6.
Similarly, 28 is perfect because 1 + 2 + 4 + 7 + 14 = 28.

All known perfect numbers are even. Several open problems about perfect numbers are
formalised here:

* Are there infinitely many perfect numbers?
* Are there infinitely many even perfect numbers?
* Do odd perfect numbers exist?

*References:*
- [Wikipedia](https://en.wikipedia.org/wiki/Perfect_number)
- [Wikipedia, Odd perfect numbers](https://en.wikipedia.org/wiki/Perfect_number#Odd_perfect_numbers)
-/

@[expose] public section

namespace PerfectNumbers

open Nat

/--
**Infinitely many perfect numbers conjecture.**
Are there infinitely many perfect numbers?

*Reference:*
[Wikipedia](https://en.wikipedia.org/wiki/Perfect_number)
-/
@[category research open, question, AMS 11]
theorem infinitely_many_perfect :
    {n : ℕ | Perfect n}.Infinite := by
  sorry

/--
**Infinitely many even perfect numbers conjecture.**
Are there infinitely many even perfect numbers?

This is equivalent to asking whether there are infinitely many Mersenne primes,
since by the Euclid–Euler theorem an even number is perfect if and only if it
has the form $2^{p-1}(2^p - 1)$ where $2^p - 1$ is a Mersenne prime.

*Reference:*
[Wikipedia](https://en.wikipedia.org/wiki/Perfect_number)
-/
@[category research open, question, AMS 11]
theorem infinitely_many_even_perfect :
    {n : ℕ | Perfect n ∧ Even n}.Infinite := by
  sorry

/--
**Odd Perfect Number Conjecture.**
The Odd Perfect Number Conjecture states that all perfect numbers are even.

*Reference:*
[Wikipedia](https://en.wikipedia.org/wiki/Perfect_number#Odd_perfect_numbers)
-/
@[category research open, AMS 11]
theorem odd_perfect_number_conjecture (n : ℕ) (hn : Perfect n) : Even n := by
  sorry

/--
A known result: If an odd perfect number exists, it must be greater than $10^{1500}$
and must have at least 101 prime factors (including multiplicities).

*Reference:* Pascal Ochem, Michaël Rao (2012).
"Odd perfect numbers are greater than 10^1500"
-/
@[category research solved, AMS 11]
theorem odd_perfect_number.lower_bound (n : ℕ) (hn : Odd n) (hp : Perfect n) :
    n > 10^1500 ∧ (n.primeFactorsList).length ≥ 101 := by
  sorry

set_option linter.style.formal_proof_palomar false in
/--
A known result: If an odd perfect number exists, it must be of the form
$p^α * m^2$ where $p$ is prime, $p \equiv 1 \pmod{4}$, $\alpha \equiv 1 \pmod{4}$,
and $p \nmid m$.

*Reference:* Euler's theorem on odd perfect numbers.

Formal proof linked here provided by AlphaProof.
-/
@[category research solved, AMS 11, formal_proof using formal_conjectures at "https://github.com/mzhorvath1/formal-conjectures/blob/7deed78f7babe2ae9ea13969a8dfa26854982407/FormalConjectures/Wikipedia/PerfectNumbers.lean#L110"]
theorem odd_perfect_number.euler_form (n : ℕ) (hn : Odd n) (hp : Perfect n) :
    ∃ (p m α : ℕ),
      p.Prime ∧
      p ≡ 1 [ZMOD 4] ∧
      α ≡ 1 [ZMOD 4] ∧
      ¬ p ∣ m ∧
      n = p^α * m^2 := by
  sorry

end PerfectNumbers

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

nosorry fetch wikipedia-perfectnumbers
nosorry submit wikipedia-perfectnumbers nosorry/wikipedia-perfectnumbers/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.