{
  "id": "7750",
  "ident": "NS.07750",
  "slug": "wikipedia-collatzconjecture",
  "title": "Collatz conjecture",
  "status": "open",
  "statement_status": "reviewed",
  "statement_md": "Now form a sequence beginning with any positive integer, where each subsequent term is obtained\nby applying the operation defined above to the previous term.\nThe **Collatz conjecture** states that for any positive integer $n$, there exists a natural number\n$m$ such that the $m$-th term of the sequence is 1.",
  "subjects": [
    "math.NT",
    "math.DS",
    "msc:11",
    "msc:37"
  ],
  "tags": [],
  "collection": "wikipedia",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "CollatzConjecture.collatz_conjecture",
  "statement_lean": "theorem collatz_conjecture (n : ℕ) (hn : n > 0) : ∃ m, collatzStep^[m] n = 1",
  "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# Collatz conjecture\n\n*References:*\n* [Wikipedia](https://en.wikipedia.org/wiki/Collatz_conjecture)\n* [erdosproblems.com/1135](https://www.erdosproblems.com/1135)\n* [Gu04] Guy, Richard K., Unsolved problems in number theory. (2004), xviii+437.\n* [La10] Lagarias, Jeffrey C., The {$3x+1$} problem: an overview. (2010), 3--29.\n* [La16] Lagarias, Jeffrey C., Erdős, Klarner, and the {$3x+1$} problem. Amer. Math. Monthly\n  (2016), 753--776.\n* [La85] Lagarias, Jeffrey C., The {$3x+1$} problem and its generalizations. Amer. Math. Monthly\n  (1985), 3--23.\n-/\n\n@[expose] public section\n\nnamespace CollatzConjecture\n\n/--\nConsider the following operation on the natural numbers:\nIf the number is even, divide it by two.\nIf the number is odd, triple it and add one.\n-/\ndef collatzStep (n : ℕ) : ℕ :=\n  if Even n then n / 2 else 3 * n + 1\n\n/--\nNow form a sequence beginning with any positive integer, where each subsequent term is obtained\nby applying the operation defined above to the previous term.\nThe **Collatz conjecture** states that for any positive integer $n$, there exists a natural number\n$m$ such that the $m$-th term of the sequence is 1.\n-/\n@[category research open, AMS 11 37]\ntheorem collatz_conjecture (n : ℕ) (hn : n > 0) : ∃ m, collatzStep^[m] n = 1 := by\n  sorry\n\nend CollatzConjecture\n",
  "statement_hash": "2b95a1e3c230d810703bd3151d6a7aa8544844b38c47466bd05c76fdeecedc1c",
  "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."
}