Valuation parity is determined by the odd part modulo three
ProvedCollatzFrontier.syracuse_predecessor_valuation_mod_three_parityFor any odd state m reached by stripping all powers of two from 3n+1, m cannot be divisible by 3, and the number v of stripped powers is even iff m ≡ 1 mod 3 (odd iff m ≡ 2 mod 3). This follows since 2^v·m ≡ 1 mod 3 and 2 ≡ -1 mod 3, so (-1)^v·m ≡ 1 mod 3; the proof uses an induction giving 2^v mod 3 = 1 for even v and 2 for odd v. In cycle terms, the parity of the valuation at a state is forced by the next state modulo 3.
Preamble
import Mathlib open Nat set_option autoImplicit false set_option maxHeartbeats 0
Formal statement
namespace CollatzFrontier
/-- If `2^v * m = 3*n + 1`, then `m` is not divisible by 3 and `v` is even exactly when `m ≡ 1 (mod 3)`. In particular, in a Syracuse cycle the parity of the 2-adic valuation of a step is dictated by the next state modulo 3. -/
theorem syracuse_predecessor_valuation_mod_three_parity (n m v : ℕ) (h : 2 ^ v * m = 3 * n + 1) :
m % 3 ≠ 0 ∧ (Even v ↔ m % 3 = 1) := by sorry
end CollatzFrontier
Source
Elementary 2-adic / mod-3 congruence, kernel-checked.