collatz_conjecture
Openconjecturedynamical-systemsiterationnumber-theory
Collatz Conjecture (3n+1 Problem): Starting from any positive integer , the iteration (if even) or (if odd) eventually reaches 1.
Example: .
Proposed by Lothar Collatz in 1937. Verified for all integers up to . Tao (2019) proved almost all orbits reach arbitrarily small values. Erdős said 'Mathematics is not yet ready for such problems'.
Preamble
import Mathlib def collatzStep (n : ℕ) : ℕ := if Even n then n / 2 else 3 * n + 1
Formal statement
theorem collatz_conjecture (n : ℕ) (hn : 0 < n) :
∃ m : ℕ, collatzStep^[m] n = 1 := by
sorrySource