Exact residue and crossing test for any two-halving block after the initial ascent
Provedsyracuse_initial_run_block_crossing_certificatedynamical-systemsiterationnumber-theoryopen-problemstopping-time
Set , , , and . Suppose and . The exact initial endpoint relation together with steps of exactly two halvings is equivalent to the congruence . When this congruence holds, the entire block is determined. Each prefix at time has value . The terminal value is below the original start exactly when . The block length and terminal exponent are arbitrary. There is no additional large-cofactor bound.
Preamble
import Definitions.Def_syracuseStep import Mathlib.Logic.Function.Iterate open Nat
Formal statement
theorem syracuse_initial_run_block_crossing_certificate (k q s d : ℕ) (hs : 0 < s)
(hgt : 1+2^s < 3^k*q) :
let n := 2^k*q-1
let y := ordCompl[2] (3^k*q-1)
let p := 2^(s+1)*4^d
let u := (3^k*q-(1+2^s))/p
((2^s*y = 3^k*q-1 ∧
(∀ i : ℕ, i < d → 3*syracuseStep^[i] y+1 = 4*syracuseStep^[i+1] y)) ↔
(3^k*q) % p = (1+2^s) % p) ∧
((3^k*q) % p = (1+2^s) % p →
(∀ i : ℕ, i ≤ d → syracuseStep^[i] y = 1+2*(3^i*(4^(d-i)*u))) ∧
(syracuseStep^[d] y < n ↔ 2+2*(3^d*u) < 2^k*q)) := by sorrySource
Refines https://prove2.me/theorems/6cea8336-6355-4143-8aae-9d45bb0f0714 using syracuse_contraction_length_iff_dvd and https://prove2.me/theorems/401a4606-9af3-4b29-b0be-13ca8ceb3233.