Parity of a preimage exponent is determined by the target mod 3
ProvedCollatzFrontier.syracuse_preimage_exponent_parity_mod_threeFor a positive m, any exponent k for which (2^k·m−1)/3 is an integer has parity forced by m mod 3: k is even iff m ≡ 1 mod 3, odd iff m ≡ 2 mod 3. This follows by writing 2^k·m = 3n+1 and reducing mod 3, where 2 ≡ −1. It partitions the odd Syracuse preimage tree by exponent parity. Kernel-checked.
Preamble
import Mathlib open Nat set_option autoImplicit false set_option maxHeartbeats 0
Formal statement
namespace CollatzFrontier
/-- If `3 ∣ 2^k·m − 1` with `0 < m`, then the exponent k is even exactly when `m ≡ 1 (mod 3)`. Since an odd preimage of m is `(2^k·m−1)/3`, this partitions the odd preimage tree by the parity of k according to the target residue mod 3. -/
theorem syracuse_preimage_exponent_parity_mod_three (m k : ℕ) (hm : 0 < m) (hk : 0 < k)
(hdiv : 3 ∣ 2 ^ k * m - 1) : Even k ↔ m % 3 = 1 := by sorry
end CollatzFrontier
Source
Application of the mod-3 valuation parity theorem to 2^k·m ≡ 1 (mod 3).