{
  "id": "7725",
  "ident": "NS.07725",
  "slug": "wikipedia-catalan",
  "title": "Catalan's conjecture and related Diophantine equations",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "The only natural number solution to the equation $x^a - y^b = 1$ such that $a, b > 1$ and\n$x, y > 0$ is given by $a = 2$, $b = 3$, $x = 3$, and $y = 2$.",
  "subjects": [
    "math.NT",
    "msc:11"
  ],
  "tags": [
    "formal_proof"
  ],
  "collection": "wikipedia",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Catalan.catalans_conjecture",
  "statement_lean": "theorem catalans_conjecture (a b x y : ℕ) (ha : 1 < a) (hb : 1 < b) (hx : 0 < x) (hy : 0 < y)\n    (heq : x ^ a - y ^ b = 1) : a = 2 ∧ b = 3 ∧ x = 3 ∧ y = 2",
  "challenge_source": "/-\nCopyright 2025 The Formal Conjectures Authors.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    https://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n-/\nmodule\n\npublic import FormalConjecturesUtil\n\n/-!\n# Catalan's conjecture and related Diophantine equations\n\n*References:*\n- [Wikipedia - Catalan's conjecture](https://en.wikipedia.org/wiki/Catalan%27s_conjecture)\n- [arXiv:2507.12397](https://arxiv.org/abs/2507.12397) (Lebesgue-Nagell equation)\n-/\n\n@[expose] public section\n\nnamespace Catalan\n\nset_option linter.style.formal_proof_palomar false in\n/--\nThe only natural number solution to the equation $x^a - y^b = 1$ such that $a, b > 1$ and\n$x, y > 0$ is given by $a = 2$, $b = 3$, $x = 3$, and $y = 2$.\n-/\n@[category research solved, AMS 11,\n  formal_proof using lean4 at \"https://github.com/cadamcat/catalan-lean4/blob/4bf1f742eb341decbdfc59ec56e1616f4d13e33b/Catalan/Final/Assembly.lean#L32\"]\ntheorem catalans_conjecture (a b x y : ℕ) (ha : 1 < a) (hb : 1 < b) (hx : 0 < x) (hy : 0 < y)\n    (heq : x ^ a - y ^ b = 1) : a = 2 ∧ b = 3 ∧ x = 3 ∧ y = 2 := by\n  sorry\n\n/--\nFor positive integers a, b, and c, there are only finitely many positive solutions (x, y, m, n) to the\nequation $ax^n - by^m = c$ where $(m, n) \\neq (2, 2)$ and $x, y > 1$.\n-/\n@[category research open, AMS 11]\ntheorem pillais_conjecture (a b c : ℕ) (ha : 0 < a) (hb : 0 < b) (hc : 0 < c) :\n    { (x, y, m, n) : (ℕ × ℕ × ℕ × ℕ) |\n      1 < x ∧ 1 < y ∧ 1 < m ∧ 1 < n ∧ (m, n) ≠ (2, 2) ∧\n      a * x^n - b * y^m = c }.Finite := by\n  sorry\n\nend Catalan\n\n/-  ## Lebesgue-Nagell equation -/\n\nnamespace LebesgueNagell\n\n/--\n**Lebesgue-Nagell Equation Conjecture**\n\nFor any odd prime $p$, the only integer solutions $(x, y)$ to the equation $x^2 - 2 = y^p$\nare $(x, y) = (\\pm 1, -1)$.\n\n*Reference:* Ethan Katz and Kyle Pratt, \"On the Lebesgue-Nagell equation $x^2 - 2 = y^p$\",\n[arXiv:2507.12397](https://arxiv.org/abs/2507.12397)\n-/\n@[category research open, AMS 11]\ntheorem lebesgue_nagell (p : ℕ) (hp : p.Prime) (hodd : Odd p) (x y : ℤ) :\n    x ^ 2 - 2 = y ^ p ↔ (x = 1 ∨ x = -1) ∧ y = -1 := by\n  sorry\n\n/-- The pair $(1, -1)$ is a solution to $x^2 - 2 = y^p$ for any odd $p$. -/\n@[category test, AMS 11]\ntheorem lebesgue_nagell_solution_pos_one (p : ℕ) (hodd : Odd p) :\n    (1 : ℤ) ^ 2 - 2 = (-1 : ℤ) ^ p := by\n  simp [hodd.neg_one_pow]\n\n/-- The pair $(-1, -1)$ is a solution to $x^2 - 2 = y^p$ for any odd $p$. -/\n@[category test, AMS 11]\ntheorem lebesgue_nagell_solution_neg_one (p : ℕ) (hodd : Odd p) :\n    (-1 : ℤ) ^ 2 - 2 = (-1 : ℤ) ^ p := by\n  simp [hodd.neg_one_pow]\n\nend LebesgueNagell\n",
  "statement_hash": "64ffdb7d5d1b7323d356f64fab050cfa9442dbe2243cffc17fb12ca2aa975ca4",
  "toolchain": "leanprover/lean4:v4.33.1",
  "upstream_commit": "f9b3868d5ca994a7bf95039bcec05338c0c21e2f",
  "workspace": "formal-conjectures",
  "field": "math",
  "formalization": "formal",
  "verification": "lean-kernel",
  "license": "Apache-2.0",
  "attribution": "google-deepmind/formal-conjectures contributors",
  "metric_name": null,
  "metric_direction": null,
  "critiques": [],
  "public_partial_proofs": [],
  "research_threads": [],
  "instructions": "Read research_threads first: other people's public repositories and what they already tried. Write Solution.lean starting from challenge_source. Keep every definition identical, prove decl_name with exactly the same type, no sorry in its dependency closure, no new axioms, no native_decide, no metaprogramming. Submit with POST /api/v1/submissions."
}