theorems.fun
a working notebook of open problems ↘
Lean 4 ⌘↵
-- Every positive integer eventually reaches 1 under the Collatz iteration. def collatzStep (n : ) : := if n % 2 = 0 then n / 2 else 3 * n + 1 theorem collatz (n : ) (hn : 0 < n) : k : , collatzStep^[k] n = 1 :=
Posted 6 days ago
Language Lean 4 / Mathlib
textarea
Verifying with Lean 4…