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

Loading…

[Imported from formal-conjectures on 23 Nov 2026]

Title:Open questions about Fermat numbers

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

Are Fermat numbers composite for all n > 4?

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

Formal statement

theorem fermat_number_are_composite : ∀ n > 4, ¬Prime n.fermatNumber
Show the full Challenge.lean (59 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Open questions about Fermat numbers

*Reference:* [Wikipedia](https://en.wikipedia.org/wiki/Fermat_number)
-/

@[expose] public section

namespace Fermat

/--
Are Fermat numbers composite for all `n > 4`?
-/
@[category research open, question, AMS 11]
theorem fermat_number_are_composite : ∀ n > 4, ¬Prime n.fermatNumber := by
  sorry

/--
Are there infinitely many Fermat primes?
-/
@[category research open, question, AMS 11]
theorem infinite_fermat_primes : Infinite {n : ℕ | Prime n.fermatNumber} := by
  sorry

/--
Are there infinitely many composite Fermat numbers?
-/
@[category research open, question, AMS 11]
theorem infinite_fermat_composite : Infinite {n : ℕ | ¬Prime n.fermatNumber} := by
  sorry

/--
Does a Fermat number exist that is not square-free?
-/
@[category research open, question, AMS 11]
theorem exists_fermat_not_squarefree : ∃ n : ℕ, ¬Squarefree n.fermatNumber := by
  sorry

end Fermat

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

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