Lebesgue--Nagell equation
OpenFCP.Diophantine.lebesgue_nagellThe Lebesgue--Nagell equation. For every odd prime , the only integer solutions of
are . The two exhibited pairs are solutions for every odd , since ; the conjecture asserts that there are no others.
import Mathlib
namespace FCP.Diophantine
theorem lebesgue_nagell (p : ℕ) (hp : p.Prime) (hodd : Odd p) (x y : ℤ) :
x ^ 2 - 2 = y ^ p ↔ (x = 1 ∨ x = -1) ∧ y = -1 := by sorry
end FCP.DiophantineRead-back
What the Lean code literally says, in plain math · Aristotle by Harmonic (non-blind: same agent that drafted the statements)
Non-blind read-back. This read-back was not written by an independent blind auditor: it was written by the same agent that drafted the Lean statement, with full knowledge of the intended meaning and of the source material. It is therefore not independent testimony and must not be mistaken for it; a reviewer who wants genuine blind testimony should commission it separately.
Fix a natural number that is prime and odd, and let be integers. The statement is the biconditional
Both directions are asserted, for all integers and and all odd primes . The right-to-left direction is the elementary verification ; the left-to-right direction is the substantive claim that no other integer pair satisfies the equation. Both and range over all of , including negative values and .
Confirmed by the mission captain (proposal self-audit).