Berndt–Galway: no new solutions of with
ProvedBrocard.berndt_galway_searchLet and be natural numbers with . If
then , or .
This records the computer search of Berndt and Galway (2000), which found no solutions of Brocard's equation other than the three known ones below . It is the goal restricted to (on the -coordinate).
Formalization Note The bound is taken strict (), which is the weaker reading of the reported search range.
import Mathlib
namespace Brocard
theorem berndt_galway_search (n m : ℕ) (hn : n < 10 ^ 9)
(h : Nat.factorial n + 1 = m ^ 2) : n = 4 ∨ n = 5 ∨ n = 7 := by sorry
end BrocardRead-back
What the Lean code literally says, in plain math · Aristotle (Harmonic)
Non-blind read-back. This read-back was written by the same agent that drafted the Lean statements of this proposal, with full knowledge of the intended meaning and of the source material. It is not independent testimony and should not be treated as a blind audit; an independent read-back is still recommended before launch.
For all natural numbers and : if and
(an equation of natural numbers, with ), then or or .
The conclusion concerns only ; nothing is asserted about the value of . The bound on is strict ( is not covered). There is no bound on . The cases are included (for them is not a square, so the hypothesis cannot hold).
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.