{
  "id": "7648",
  "ident": "NS.07648",
  "slug": "wikipedia-bealconjecture",
  "title": "Beal conjecture",
  "status": "open",
  "statement_status": "reviewed",
  "statement_md": "The **Beal Conjecture**: if we are given positive integers $A, B, C, x, y, z$ such that\n$x, y, z > 2$ and $A^x + B^y = C^z$ then $A, B, C$ have a common divisor.",
  "subjects": [
    "math.NT",
    "msc:11"
  ],
  "tags": [],
  "collection": "wikipedia",
  "source_url": "https://en.wikipedia.org/wiki/Beal_conjecture",
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "BealConjecture.beal_conjecture",
  "statement_lean": "theorem beal_conjecture : bealConjecture",
  "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# Beal conjecture\n\n*Reference:* [Wikipedia](https://en.wikipedia.org/wiki/Beal_conjecture)\n-/\n\n@[expose] public section\n\nnamespace BealConjecture\n\ndef bealConjecture : Prop := ∀ {A B C x y z : ℕ},\n    A ≠ 0 → B ≠ 0 → C ≠ 0 → 2 < x → 2 < y → 2 < z →\n    A^x + B^y = C^z → 1 < Finset.gcd {A, B, C} id\n\n/--\nThe **Beal Conjecture**: if we are given positive integers $A, B, C, x, y, z$ such that\n$x, y, z > 2$ and $A^x + B^y = C^z$ then $A, B, C$ have a common divisor.\n-/\n@[category research open, AMS 11]\ntheorem beal_conjecture : bealConjecture := by\n  sorry\n\n/--\nThe Beal Conjecture implies Fermat's last theorem\n-/\n@[category textbook, AMS 11]\ntheorem flt_of_beal_conjecture (H : bealConjecture) :\n    FermatLastTheorem := by\n  intro n hn x y z hx hy hz\n  by_contra h\n  apply mul_ne_zero (mul_ne_zero hx hy) hz\n  by_contra H''\n  obtain ⟨hx, hy, hz⟩ : x ≠ 0 ∧ y ≠ 0 ∧ z ≠ 0 := by aesop\n  set G := Finset.gcd {x, y, z} id\n  set x' := (x / G : ℕ)\n  set y' := (y / G : ℕ)\n  set z' := (z / G : ℕ)\n  obtain ⟨hGx, hGy, hGz⟩ : G ∣ x ∧ G ∣ y ∧ G ∣ z := by\n    refine ⟨?_, ?_, ?_⟩ <;> apply Finset.gcd_dvd (by aesop)\n  obtain ⟨hx', hy', hz'⟩ : x' ≠ 0 ∧ y' ≠ 0 ∧ z' ≠ 0 := by\n    refine ⟨?_, ?_, ?_⟩ <;>\n      apply Nat.div_ne_zero_iff_of_dvd (by assumption) |>.mpr ⟨(by assumption), _⟩ <;> aesop\n  have Hxyz' : x'^n + y'^n = z'^n := by\n    rwa [Nat.div_pow hGx, Nat.div_pow hGy, Nat.div_pow hGz,\n      ←Nat.add_div_of_dvd_right, Nat.div_left_inj (dvd_add _ _)]\n    all_goals apply pow_dvd_pow_of_dvd ; assumption\n  apply ne_of_lt <| H hx' hy' hz' hn hn hn Hxyz'\n  rw [←Finset.gcd_div_id_eq_one (Finset.mem_insert_self x {y, z}) (by trivial),\n    Finset.gcd_eq_gcd_image, Finset.image_insert, Finset.image_insert,\n    Finset.image_singleton]\n\nend BealConjecture\n",
  "statement_hash": "eb7bd938b23049783832bc95c239115960d05e4a5d3f0e4c3d13547af9b6b614",
  "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."
}