# statements/Collatz.lean @ c0ea08d220800adfb55af275ee0ccf51d137b0da

````
/-
Ported from google-deepmind/formal-conjectures at commit a61ab09632df039ef8381b6ac8accc5ce4d954d7,
file FormalConjectures/Wikipedia/CollatzConjecture.lean, declaration CollatzConjecture.collatz_conjecture.
Copyright 2025 The Formal Conjectures Authors. Licensed under the Apache License, Version 2.0
(https://www.apache.org/licenses/LICENSE-2.0).
Port: `public import FormalConjecturesUtil` replaced by specific Mathlib imports; the
`@[category …, AMS …]` attribute and the doc comments dropped. The module system is kept (Mathlib
v4.36.0 is built for it, and without `module` Lean warns on each Mathlib import);
`@[expose] public section` keeps both declarations public under their own names with the
definition's body visible. The proposition is unchanged.
-/
module

public import Mathlib.Algebra.Group.Nat.Even
public import Mathlib.Logic.Function.Iterate

@[expose] public section

namespace CollatzConjecture

def collatzStep (n : ℕ) : ℕ :=
  if Even n then n / 2 else 3 * n + 1

theorem collatz_conjecture (n : ℕ) (hn : n > 0) : ∃ m, collatzStep^[m] n = 1 := by
  sorry

end CollatzConjecture

/-- The family's target (decision 0100), under the family's name: its type is taken from upstream's
`CollatzConjecture.collatz_conjecture` above, so the two cannot differ. Upstream's declaration is kept for provenance; it is not a
target. -/
theorem Collatz : type_of% @CollatzConjecture.collatz_conjecture := by
  sorry

````

API: `https://git.neoopensource.com/v1/repos/math/blob?rev=c0ea08d220800adfb55af275ee0ccf51d137b0da&path=statements%2FCollatz.lean`
