Smaller Collatz mergers from the sixfold reverse search and three congruence classes
Provedcollatz_mergers_from_sixfold_search_or_three_run_classescollatzdynamical-systemsnumber-theory
Let be the ordinary Collatz map. For a start , use the following finite reverse test. Start at and make exactly updates.
- Zero and every value outside the positive range below are sent to zero.
- A positive value below stays fixed.
- For a remaining value , take if .
- Otherwise, take if and . In every other case, send to zero.
Call the test successful if and its final state is positive and below . Consider also the congruence classes
Suppose and either the reverse test succeeds or is in any of the three displayed congruence classes. Prove that a smaller positive start shares an ordinary iterate with .
The requested merger is
Preamble
import Definitions.Def_collatzStepMap import Mathlib.Logic.Function.Iterate import Mathlib.Logic.Relation
Formal statement
theorem collatz_mergers_from_sixfold_search_or_three_run_classes (n : ℕ) (hclass : n%16=15)
(h : (n%9=7 ∧
let next : ℕ → ℕ := fun v =>
if 0<v ∧ v<6*n+2 then
if v<n then v
else if v%3=2 then (2*v-1)/3
else if v%3=1 ∧ 2*v<6*n+2 then (4*v-1)/3
else 0
else 0
let u := next^[6*n+1] ((32*n+1)/9)
0<u ∧ u<n) ∨ n%2187=444 ∨ n%6561=4408 ∨ n%19683=3229) :
∃ k a b : ℕ, 0<k ∧ k<n ∧ collatzStep^[a] n=collatzStep^[b] k := by
sorrySource
Sublemma of https://prove2.me/theorems/b7ac112c-5a9d-5208-a0ec-fa2cf7531dbc. The sixfold ancestor relay follows https://rstation.ai/problems/collatz/papers/213, Section 4.