An exact affine-word criterion for smaller visitors to the second Collatz iterate
Provedcollatz_smaller_visitors_at_second_iterate_exactcollatzdynamical-systemsnumber-theory
Let be the ordinary Collatz map with an odd step and an even step . For , put , which is odd.
For a finite list of positive halving counts let be its length, its sum, and let its affine offset be
The affine visitor condition is that some such list has
Prove that the affine visitor condition is equivalent to the existence of a smaller positive start whose ordinary orbit reaches . Both the word length and the visitor clock are unrestricted.
Preamble
import Definitions.Def_collatzStepMap import Mathlib.Logic.Function.Iterate
Formal statement
theorem collatz_smaller_visitors_at_second_iterate_exact (n : ℕ) (hclass : n%16=15) :
(∃ k t : ℕ, 0<k ∧ k<n ∧ collatzStep^[t] k=collatzStep^[2] n) ↔
(∃ w : List ℕ, (∀ a∈w, 0<a) ∧
let y := (3*n+1)/2
let B := (w.foldr (fun a (p : ℕ × ℕ) => (p.1+1,3^p.1+2^a*p.2)) (0,0)).2
let z := 2^w.sum*y-B
0<z ∧ 3^w.length ∣ z ∧ z<3^w.length*n) := by
sorrySource
Sublemma of https://prove2.me/theorems/6f3e7bbf-31de-5661-9991-6e935b7e3c80. Uses the odd-step affine identity and an exact reconstruction of ordinary clocks.