Exact affine bounds for an odd endpoint to have a smaller prescribed predecessor
Provedsyracuse_smaller_predecessor_iff_affine_intervaldynamical-systemsiterationnumber-theorystopping-time
Fix an odd endpoint , a bound , and a finite word of positive halving counts. Put , and . There is a positive odd that realizes exactly and ends at if and only if and . The predecessor is obtained by division of by . The empty word is allowed.
Preamble
import Definitions.Def_syracuseStep import Definitions.Def_syracuseOffsetMod import Definitions.Def_collatzStepMap import Mathlib.Data.List.OfFn import Mathlib.Logic.Function.Iterate open Nat
Formal statement
theorem syracuse_smaller_predecessor_iff_affine_interval (w : List ℕ) (y n : ℕ)
(hy : ¬ 2 ∣ y) (hpos : ∀ a : ℕ, a ∈ w → 0 < a) :
let F := 2^w.sum*y
let C := syracuseAffineConstant w
let M := 3^w.length
(F % M = C % M ∧ C+M ≤ F ∧ F < C+M*n) ↔
∃ k : ℕ, 0 < k ∧ k < n ∧ syracuseStep^[w.length] k = y ∧
List.ofFn (fun i : Fin w.length =>
(3*syracuseStep^[i.val] k+1).factorization 2) = w ∧ ¬ 2 ∣ k := by sorrySource
Combines https://prove2.me/theorems/8753c6d0-aa6f-482c-8741-cf84a6066f2f and https://prove2.me/theorems/afb53284-33e7-4fb3-b12f-cbbcb4d98334 into an inverse test on the endpoint.