The Collatz map sends an even positive integer to and an odd one to . The Collatz conjecture asserts that every orbit of this map eventually reaches . It remains an open problem.
Because the conjecture is open, a large part of the literature proves weaker statements that hold for almost all starting values. These results bound how small an orbit gets, not whether it reaches . They are the strongest unconditional evidence for the conjecture. Terence Tao's 2022 theorem is the strongest result of this type: outside a set of logarithmic density zero, every orbit drops below any prescribed function that tends to infinity, however slowly (Tao 2022).
Attributions follow the survey in Tao 2022, Section 1. Here is the least value in the orbit of .
Let be
Write for the -fold iterate, with . The orbit of is the set of values for . It includes itself.
The Syracuse map acts on odd integers. It sends an odd to the odd part of , which is . The Syracuse orbit minimum is the least value over .
For a set of positive integers and a real cutoff , the logarithmic mass of up to is
A set of positive integers has logarithmic density when this quantity tends to as . Since , all positive integers together have logarithmic density , and the odd positive integers have logarithmic density .
A function tends to infinity on positive inputs when for every real there is an such that for all with .
For every that tends to infinity on positive inputs,
This is the Lean theorem collatz_almost_bounded_logarithmic. It fixes no rate and no constant, so later improvements do not invalidate it.
For every that tends to infinity on odd positive inputs, the odd whose Syracuse orbit contains a value below have logarithmic density , which is all of the odd integers. This is syracuse_almost_bounded_logarithmic.
There are constants such that for all real and ,
This is syracuse_uniform_logarithmic_tail_bound. The three targets are listed from weakest to strongest. In Tao's paper, the goal and Theorem 1.6 both follow from Theorem 3.1.
The result. Theorem 1.3 improves the earlier almost-all bounds on Collatz orbit minima from a power of to any function that tends to infinity. For example, for almost all . The theorem does not settle the conjecture. A single divergent orbit or nontrivial cycle is not excluded, because its predecessors form a set with bounded orbit minima.
The formalization. The theorem is proved, and a complete formalization already exists. The ProofAtlas record Tao's Almost-Bounded Collatz Orbits proves the statement taoAlmostBoundedColMin_checked with the same step map and an orbit that includes its starting value. That package has 397 first-party Lean files and about 124,000 source lines. ProofAtlas records a passing build with no sorry and the axiom profile propext, Classical.choice, Quot.sound. The source is released under the Apache-2.0 licence at commit d53c8de00056fb05999e44589f2399d7efa026e4, with copyright held by Advameg, Inc. It was built with Lean v4.30.0-rc2.
The remaining work for this mission is therefore a port, not new mathematics. The existing Lean development must be moved to Lean v4.33.1 and Mathlib 0df444a, and then connected to the goal statement above.
The mathematical difficulty is already resolved in the existing proof. The classical first-descent argument shows that a typical orbit drops below its starting value. Repeating that argument fails, because after one descent the new value is no longer distributed like a random integer of its size, and the error compounds at each repetition. That is why earlier results stop at a power bound .
The difficulty of this mission is engineering. The port moves a development of about 124,000 lines forward across three minor Lean releases and the corresponding Mathlib changes. Lemma renames, deprecations, and changes in tactic behaviour must be repaired file by file without changing any statement.
collatzStep n = if Even n then n / 2 else 3 * n + 1, so . This is the same definition as in the ProofAtlas source.weightedLogMassReal: a real cutoff , the natural indices , weights , and normalization by . The ProofAtlas statement instead uses integer cutoffs and normalization by the harmonic sum . A short bridge between the two normalizations is part of the required work.The goal is already reduced, through accepted proofs, to the single open statement syracuse_uniform_logarithmic_tail_bound. Two routes therefore close the mission. The first is to port the ProofAtlas development and prove the goal directly through the density bridge. The second is to prove Theorem 3.1 in its stated form. Contributions welcome include ported modules as reusable solutions, the density bridge, and a proof of Theorem 3.1. Every ported file must keep the Apache-2.0 notice and attribution to the ProofAtlas source.
d53c8de00056fb05999e44589f2399d7efa026e4, Apache-2.0, 2026. https://proofatlas.ai/formalizations/tao-almost-bounded-orbits/theorem collatz_almost_bounded_logarithmic (f : ℕ → ℝ) (hf : ∀ M : ℝ, ∃ N : ℕ, ∀ n : ℕ, N ≤ n → 0 < n → M < f n) : Tendsto (fun x : ℝ => weightedLogMassReal (fun n => 0 < n) (fun n => ∃ k : ℕ, ((collatzStep^[k] n : ℕ) : ℝ) < f n) (fun n => 1 / (n : ℝ)) x) atTop (𝓝 (1 : ℝ)) := by sorry
For every real-valued function f tending to infinity on positive integer inputs, the positive inputs n whose Collatz orbit contains a value strictly below f(n) form a set of logarithmic density one. The real-cutoff reciprocal mass is normalized by log x; the full orbit includes its starting value. This is not natural density, a fixed absolute bound, or convergence of every orbit to one.