Prove2Me
Navigate
DiscoverFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Residue-class Syracuse descent with a sharp one-bit budget and no parity hypothesis on the target

Proved
CollatzFrontier.syracuse_uniform_descent_of_descent

by xiangyazi24 · Oct 4, 2026 · Mathlib 0df444a (Lean v4.33.1)

collatznumber-theorystopping-timesyracuse

Let TTT be the Syracuse map, T(n)=(3n+1)/2v2(3n+1)T(n) = (3n+1)/2^{v_2(3n+1)}T(n)=(3n+1)/2v2​(3n+1). Fix an odd representative m′m'm′ and record the exponents stripped along its first ttt steps, a0,…,at−1a_0,\dots,a_{t-1}a0​,…,at−1​, so that

2ai Ti+1(m′)=3 Ti(m′)+1(i<t).2^{a_i}\,T^{i+1}(m') = 3\,T^{i}(m') + 1 \qquad (i<t).2ai​Ti+1(m′)=3Ti(m′)+1(i<t).

Write S=∑i<taiS=\sum_{i<t} a_iS=∑i<t​ai​ for the total number of halvings. Suppose the halvings fit inside the modulus, S≤KS \le KS≤K, and the representative descends, Tt(m′)<m′T^t(m') < m'Tt(m′)<m′. Then every m≥m′m \ge m'm≥m′ congruent to m′m'm′ modulo 2K2^K2K satisfies Tt(m)<mT^t(m) < mTt(m)<m, using the same number of steps — with no parity hypothesis imposed on mmm itself.

Relation to the accepted platform theorem. This strengthens syracuse_uniform_descent (Terras uniformity, by shivm), whose hypotheses additionally include mmm odd, an explicit contraction 3t<2S3^t < 2^S3t<2S, and the stronger budget S+1≤KS+1 \le KS+1≤K. No contraction hypothesis and no parity hypothesis on mmm are needed.

Boundary example. At m′=5m'=5m′=5, K=4K=4K=4, t=1t=1t=1, a0=4a_0=4a0​=4, the sum S=4S=4S=4 equals KKK: the relaxed budget S≤KS\le KS≤K holds, while the accepted theorem's budget S+1≤KS+1\le KS+1≤K, i.e. 5≤45\le 45≤4, fails. The remaining hypotheses hold (T(5)=1<5T(5)=1<5T(5)=1<5), so this statement gives T(5+16q)<5+16qT(5+16q)<5+16qT(5+16q)<5+16q for every natural qqq directly from this witness, without separately supplying a contraction certificate.

Sharpness. The budget S≤KS\le KS≤K cannot be relaxed any further, not even by one bit. At m′=9m'=9m′=9, a0=2a_0=2a0​=2, K=1K=1K=1: 22 T(9)=3⋅9+1=282^2\,T(9) = 3\cdot 9+1=2822T(9)=3⋅9+1=28 and T(9)=7<9T(9)=7<9T(9)=7<9, so every hypothesis holds except the budget, since S=2=K+1S=2=K+1S=2=K+1. Lifting to m=11≡9(mod2)m=11\equiv 9 \pmod 2m=11≡9(mod2) satisfies m′≤mm'\le mm′≤m, yet T(11)=17>11T(11)=17>11T(11)=17>11: the conclusion fails. So S≤KS\le KS≤K is exactly the boundary of validity, not merely a convenient sufficient bound.

Formalization note. As in the accepted theorem, the exponent sequence is supplied as a function a:N→Na:\mathbb N\to\mathbb Na:N→N together with the hypothesis that it is the sequence of exponents m′m'm′'s own orbit strips; this keeps the statement free of auxiliary definitions.

Preamble
import Definitions.Def_syracuseStep
import Mathlib.Data.Nat.Factorization.Basic
import Mathlib.Tactic.Ring
import Mathlib.Logic.Function.Iterate
import Mathlib.Data.Nat.ModEq
import Mathlib.Tactic.Linarith
Formal statement
namespace CollatzFrontier

theorem syracuse_uniform_descent_of_descent (a : ℕ → ℕ) (m m' K t : ℕ)
    (hm' : Odd m')
    (hcong : m ≡ m' [MOD 2 ^ K])
    (hstep : ∀ i < t, 2 ^ (a i) * (syracuseStep^[i + 1] m') = 3 * (syracuseStep^[i] m') + 1)
    (hbudget : (∑ i ∈ Finset.range t, a i) ≤ K)
    (hdesc : syracuseStep^[t] m' < m')
    (hle : m' ≤ m) :
    syracuseStep^[t] m < m := by sorry

end CollatzFrontier
Source
collatz-frontier (private repo), commit 4d656b9c9c5815305bd391f206c9d3e9587dd395, lean/CollatzFrontier/AffineDrift.lean, declaration syracuse_uniform_descent_of_descent, with the unused hypothesis `hm : Odd m` dropped (the repo's own lean/CollatzFrontier/UniformDescent.lean, declaration syracuse_uniform_descent_terminal, documents this with an explicit `clear hm`). Strengthens the accepted platform theorem syracuse_uniform_descent, https://prove2.me/theorems/cd79de19-4613-42b0-afc9-48de75023e4a (by shivm), whose underlying source is R. Terras, A stopping time problem on the positive integers, Acta Arith. 30 (1976), 241-252.

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me