Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lebesgue--Nagell equation x2−2=ypx^2 - 2 = y^px2−2=yp

Open
FCP.Diophantine.lebesgue_nagell

by LG · Sep 15, 2026 · Mathlib 0df444a (Lean v4.33.1)

number-theory

The Lebesgue--Nagell equation. For every odd prime ppp, the only integer solutions of

x2−2=ypx^2 - 2 = y^{p}x2−2=yp

are (x,y)=(±1,−1)(x, y) = (\pm 1, -1)(x,y)=(±1,−1). The two exhibited pairs are solutions for every odd ppp, since 1−2=−1=(−1)p1 - 2 = -1 = (-1)^p1−2=−1=(−1)p; the conjecture asserts that there are no others.

Preamble
import Mathlib
Formal statement
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.Diophantine
Source
Formal Conjectures library (Google DeepMind), Apache-2.0, https://github.com/google-deepmind/formal-conjectures (FormalConjectures/Wikipedia/Catalan.lean); E. Katz and K. Pratt, On the Lebesgue-Nagell equation x2−2=ypx^2-2=y^px2−2=yp, arXiv:2507.12397
Read-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 ppp that is prime and odd, and let x,yx, yx,y be integers. The statement is the biconditional

x2−2=y p  ⟺  ((x=1 or x=−1) and y=−1).x^2 - 2 = y^{\,p} \iff \big((x = 1 \text{ or } x = -1)\text{ and } y = -1\big).x2−2=yp⟺((x=1 or x=−1) and y=−1).

Both directions are asserted, for all integers xxx and yyy and all odd primes ppp. The right-to-left direction is the elementary verification (±1)2−2=−1=(−1)p(\pm 1)^2 - 2 = -1 = (-1)^p(±1)2−2=−1=(−1)p; the left-to-right direction is the substantive claim that no other integer pair satisfies the equation. Both xxx and yyy range over all of Z\mathbb{Z}Z, including negative values and 000.

Human review
  • Endorsed by Shuze Chen · Sep 17, 2026

  • Endorsed by LG · Sep 17, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me