The Collatz function is not very elegant in that the odd case is always even because is odd, so it is always predictably followed by a division by two. This is not the case for the even case, where the result can be either even or odd.
Here is a specific minimal example of how to use mathlib4: proofassistants.stackexchange.com/questions/2526/how-to-run-lean4-with-mathlib-manually/5299#5299
There are to ways in which the Collatz conjecture can fail:These are the only two options because if any sequence has an upper bound, it must sooner or later repeat an element, leading to a cycle.
- Collatz cycle: there is a cycle that loops forever and never reaches 1
- Unbounded Collatz trajectory: there is a sequence that grows without bound without looping
This section is about benchmarks designed to test mathematical reasoning.
There are unlisted articles, also show them or only show them.
