Documentation

Collatz.Conjecture

The Collatz conjecture: every positive integer eventually reaches 1.

theorem Collatz.collatz_unique_cycle (k n : ) :
1 nFunction.IsPeriodicPt collatz k nk > 0n = 1 n = 2 n = 4

There are no non-trivial cycles: the only cycle reachable from positive integers is {1, 4, 2}.