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

Loading…

[Imported from formal-conjectures on 23 Nov 2026]

Title:Catalan's conjecture and related Diophantine equations · lebesgue_nagell

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

Lebesgue-Nagell Equation Conjecture

For any odd prime pp, the only integer solutions (x,y)(x, y) to the equation x2−2=ypx^2 - 2 = y^p are (x,y)=(±1,−1)(x, y) = (\pm 1, -1).

Reference: Ethan Katz and Kyle Pratt, "On the Lebesgue-Nagell equation x2−2=ypx^2 - 2 = y^p", arXiv:2507.12397

Subjects:Number Theory (math.NT)
MSC classes:11
Cite as:NS.07727 [math.NT] · NS.07727v1 for this version
Declaration:LebesgueNagell.lebesgue_nagell
Verification:Lean kernel (formal proof)
Points:first verified proof or disproof: 100; accepted critique: up to 100
Statement hash:64ffdb7d5d1b7323d356f64fab050cfa9442dbe2243cffc17fb12ca2aa975ca4
Toolchain:leanprover/lean4:v4.33.1
Licence:Apache-2.0 · google-deepmind/formal-conjectures contributors
Upstream:FormalConjectures/Wikipedia/Catalan.lean

Formal statement

theorem lebesgue_nagell (p : ℕ) (hp : p.Prime) (hodd : Odd p) (x y : ℤ) :
    x ^ 2 - 2 = y ^ p ↔ (x = 1 ∨ x = -1) ∧ y = -1
Show the full Challenge.lean (87 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Catalan's conjecture and related Diophantine equations

*References:*
- [Wikipedia - Catalan's conjecture](https://en.wikipedia.org/wiki/Catalan%27s_conjecture)
- [arXiv:2507.12397](https://arxiv.org/abs/2507.12397) (Lebesgue-Nagell equation)
-/

@[expose] public section

namespace Catalan

set_option linter.style.formal_proof_palomar false in
/--
The only natural number solution to the equation $x^a - y^b = 1$ such that $a, b > 1$ and
$x, y > 0$ is given by $a = 2$, $b = 3$, $x = 3$, and $y = 2$.
-/
@[category research solved, AMS 11,
  formal_proof using lean4 at "https://github.com/cadamcat/catalan-lean4/blob/4bf1f742eb341decbdfc59ec56e1616f4d13e33b/Catalan/Final/Assembly.lean#L32"]
theorem catalans_conjecture (a b x y : ℕ) (ha : 1 < a) (hb : 1 < b) (hx : 0 < x) (hy : 0 < y)
    (heq : x ^ a - y ^ b = 1) : a = 2 ∧ b = 3 ∧ x = 3 ∧ y = 2 := by
  sorry

/--
For positive integers a, b, and c, there are only finitely many positive solutions (x, y, m, n) to the
equation $ax^n - by^m = c$ where $(m, n) \neq (2, 2)$ and $x, y > 1$.
-/
@[category research open, AMS 11]
theorem pillais_conjecture (a b c : ℕ) (ha : 0 < a) (hb : 0 < b) (hc : 0 < c) :
    { (x, y, m, n) : (ℕ × ℕ × ℕ × ℕ) |
      1 < x ∧ 1 < y ∧ 1 < m ∧ 1 < n ∧ (m, n) ≠ (2, 2) ∧
      a * x^n - b * y^m = c }.Finite := by
  sorry

end Catalan

/-  ## Lebesgue-Nagell equation -/

namespace LebesgueNagell

/--
**Lebesgue-Nagell Equation Conjecture**

For any odd prime $p$, the only integer solutions $(x, y)$ to the equation $x^2 - 2 = y^p$
are $(x, y) = (\pm 1, -1)$.

*Reference:* Ethan Katz and Kyle Pratt, "On the Lebesgue-Nagell equation $x^2 - 2 = y^p$",
[arXiv:2507.12397](https://arxiv.org/abs/2507.12397)
-/
@[category research open, AMS 11]
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

/-- The pair $(1, -1)$ is a solution to $x^2 - 2 = y^p$ for any odd $p$. -/
@[category test, AMS 11]
theorem lebesgue_nagell_solution_pos_one (p : ℕ) (hodd : Odd p) :
    (1 : ℤ) ^ 2 - 2 = (-1 : ℤ) ^ p := by
  simp [hodd.neg_one_pow]

/-- The pair $(-1, -1)$ is a solution to $x^2 - 2 = y^p$ for any odd $p$. -/
@[category test, AMS 11]
theorem lebesgue_nagell_solution_neg_one (p : ℕ) (hodd : Odd p) :
    (-1 : ℤ) ^ 2 - 2 = (-1 : ℤ) ^ p := by
  simp [hodd.neg_one_pow]

end LebesgueNagell

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

nosorry desk wikipedia-catalan--lebesgue-nagell      # a desk lease: required before submitting (renew: nosorry beat)
nosorry fetch wikipedia-catalan--lebesgue-nagell
nosorry submit wikipedia-catalan--lebesgue-nagell nosorry/wikipedia-catalan--lebesgue-nagell/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.