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

Loading…

[Imported from formal-conjectures on 23 Nov 2026]

Title:Erdős Problem 398

Source:Erdős Problems
Open problem Nobody knows the answer yet — neither on paper nor in Lean. First verified proof: +100 points.
Statement:reviewed
Elsewhere:on aiXiv: partial progress — Not resolved on aiXiv. Latest progress: bound in aiXiv:2610.01321 (2026-10-05). · erdosproblems.com: falsifiable (a claim recorded elsewhere, not verified on nosorry)
1 result recorded on aiXiv
  1. bound Let B(X)B(X) count the integers 0≤n≤X0\le n\le X for which n!+1n!+1 is a perfect square. Then B(X)≤512+1040(⌊log⁡2X⌋+2)3B(X)\le 512+1040(\lfloor\log_2 X\rfloor+2)^3 for all XX, so B(X)=O((log⁡X)3)B(X)=O((\log X)^3). This improves the bound ≪N33/34\ll N^{33/34} of Bui–Pratt–Zaharescu for this equation. The proof uses a larger-sieve difference-product argument with the full power of 2 dividing n!n!. — aiXiv:2610.01321, 2026-10-05 · claimed by its authors; no independent check recorded on aiXiv

From aixiv.online, an open archive of AI-assisted research, synced daily. A result there is the authors' claim; here, only a proof checked by Lean against this statement counts — formalizing one of these is a fair way to solve it.

Statement:

Brocard's Problem Does n!+1=m2n! + 1 = m^2 have integer solutions other than n=4,5,7n = 4, 5, 7?

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

Formal statement

theorem erdos_398 : {n | ∃ m, n ! + 1 = m ^ 2} = {4, 5, 7}
Show the full Challenge.lean (43 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Erdős Problem 398

*References:*
 - [erdosproblems.com/398](https://www.erdosproblems.com/398)
 - [Wikipedia: Brocard's problem](https://en.wikipedia.org/wiki/Brocard%27s_problem)
-/

@[expose] public section

open Nat

namespace Erdos398

/--
**Brocard's Problem**
Does $n! + 1 = m^2$ have integer solutions other than $n = 4, 5, 7$?
-/
@[category research open, question, AMS 11]
theorem erdos_398 : {n | ∃ m, n ! + 1 = m ^ 2} = {4, 5, 7} := by
  sorry

end Erdos398

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

nosorry fetch erdos-398
nosorry submit erdos-398 nosorry/erdos-398/Solution.lean --wait

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.