⊢mathematics.distributed.systems
Proof Tree / Dynamics & Games / Collatz & Arithmetic Dynamics / open-dynamical-systems
KERNEL VERIFIED · 0 WARNINGS Dynamics & Games · Collatz & Arithmetic Dynamics Initiated by Arthur Collé 2/2 verified files · ⊢ 285 theorems

Complete Sharp $d$-adic Collatz Phase Transition

Extending Said Duran's $3x+1$ engine (2026) to all prime and composite bases $d \ge 2$ with $\gcd(a, d) = 1$: sharp iff $\lim_{k\to\infty} C_k(d,a,1)/d^k = 1 \iff a^{d-1} < d^d$ (offset $m = 1$), plus density-$1$ subcritical coalescence for every offset $m \in \mathbb{Z}$.

Contribution status

Claim-by-claim literature review not yet recorded. Lean verification, where shown, applies to the exact formal statements. External publication status is not recorded.

How results are classified
⊢ TL;DR & Key Verified Results
Field Context (Collatz & Arithmetic Dynamics): Orbit merging, Markov pair chains, and sharp phase transitions for generalized 3x+1 maps.

Generalizing Omar Javier Said Duran's (Sept 2026) $3x+1$ pair-chain coalescence proof (collatz-coalescence/, OEIS A398792) to every base $d \ge 2$ (prime, prime-power, or composite) and every coprime multiplier $a > 1$: at offset $m = 1$, $\lim_{k \to \infty} C_k(d,a,1)/d^k = 1 \iff a^{d-1} < d^d$ (sharp_phase_transition_iff), making the Matthews–Watts (1984) boundary a theorem for offset-$1$ pair coalescence; and below threshold ($a^{d-1} < d^d$), density-$1$ coalescence holds for every offset $m \in \mathbb{Z}$ (subcritical_natural_density_one).

Scope & Accounting Note: Exact scope & standalone accounting: sharp_phase_transition_iff is proved for offset $m = 1$ (C_k d a 1 k), while subcritical_coalescence and subcritical_natural_density_one hold for every $m \in \mathbb{Z}$. Both files compile standalone (import Mathlib only); SharpPhaseTransition.lean (160 thms) embeds the subcritical proofs of SubcriticalCoalescence.lean (125 thms), so those two counts overlap rather than summing as disjoint theorems. Single-orbit convergence remains conjectural.
For every integer $d \ge 2$ and $a > 1$ with $\gcd(a, d) = 1$ (offset $m = 1$), $\lim_{k \to \infty} \frac{C_k(d, a, 1)}{d^k} = 1 \iff a^{d-1} < d^d$.
Whenever $a^{d-1} < d^d$ and $\gcd(a, d) = 1$, for every offset $m \in \mathbb{Z}$ the coalescing set $\{n \in \mathbb{N} \mid \exists k,\; T_{d,a}^{[k]}(n) = T_{d,a}^{[k]}(n+m)\}$ has natural density $1$.
Universal two-case divisible-phase potential $\ell(s, \mu)$ satisfies $\sum_{c \in \mathrm{Fin}\,d} \ell(\mathrm{step}(s, d m, c)) \le d(\ell(s, d m) - 1)$ for every composite base $d \ge 2$.
Whenever $a^{d-1} > d^d$ and $\gcd(a, d) = 1$, there exists $\varepsilon > 0$ such that $C_k(d, a, 1)/d^k \le 1 - \varepsilon$ for all $k \ge 1$ (offset $m = 1$).
Prior Art, Upstream Literature & Scholarly Attribution SOURCE CONTEXT
Local Proof Scope (Priority Not Established): Generalizes Said Duran's $3x+1$ pair-chain engine to every coprime subcritical $(d, a)$ with $a^{d-1} < d^d$ (including arbitrary composite bases $d \ge 2$ and non-$(d+1)$ multipliers) for all offsets $m \in \mathbb{Z}$ via the two-case divisible-phase potential $\ell(s, \mu)$ and small-$\alpha$ moment, and proves supercritical failure ($\exists \varepsilon > 0,\; C_k(d,a,1)/d^k \le 1 - \varepsilon$) for all $a^{d-1} > d^d$ including $5x+1$ and $7x+1$.

⊢ Mathematical Constructions & Proof Explorer

Raw .lean
—

Select any definition, structure, or theorem on the left to inspect its formal statement, proof dependencies, and isolated Lean 4 code.

Mathematical Overview & Verification Notes

Self-contained Lean 4 formalization proving the sharp if-and-only-if phase transition at offset $m = 1$ (sharp_phase_transition_iff) and universal subcritical density-$1$ coalescence for all offsets $m \in \mathbb{Z}$ (subcritical_coalescence, subcritical_natural_density_one) for generalized $d$-adic Collatz maps $T_{d,a} : \mathbb{Z} \to \mathbb{Z}$ across all integers $d \ge 2$ (prime, prime-power, and arbitrary composite) and all coprime multipliers $a > 1$.

This extends Omar Javier Said Duran's (Sept 2026) $3x+1$ pair-chain coalescence proof (collatz-coalescence/, Zenodo; OEIS A398792) and our prime-family formalization (collatz-d-adic/, which handled only $(p, p+1)$ below threshold) to every coprime subcritical $(d, a)$ by introducing a universal two-case divisible-phase potential $\ell(s, \mu)$ and small-$\alpha$ moment.


Prior Art & Attribution

  • Omar Javier Said Duran (Sept 27, 2026, Zenodo preprint; OEIS A398792 submitted Aug 9, 2026; collatz-coalescence/): Established the $3x+1$ ($d = 2, a = 3$) base case in both natural-density and $\log_2 n$ forms, introducing the pair Markov chain on $\{v, 3^k v + c\}$, the $\sqrt{|c|/3^k}$ contraction, the level-$k$ harmonic potential, the universal absorbing word, and its Lean 4 formalization, plus companion finite-level counts for $5x+1$ and $7x+1$. Our Lyapunov supermartingale architecture directly generalizes Said Duran's engine.
  • G. Gao (1993): Conjectured that the normalized coalescence count for the $3x+1$ map tends to $1$.
  • K. R. Matthews & A. M. Watts (1984): Conjectured the dividing boundary $a^{d-1}$ vs $d^d$ between eventually-cycling and mostly-divergent generalized Hasse / $d$-adic trajectories. Together with AboveThreshold.lean, the results here make the Matthews–Watts threshold a theorem for offset-$1$ pair coalescence, while single-orbit behavior remains conjectural.
  • J. C. Lagarias (1985): Survey attributing runs of equal Collatz stopping times to trajectory merging ($8k+4$ and $8k+5$).
  • J. Garcia & F. Tal (1999, Acta Arithmetica 90): Under $a < d^{d/(d-1)}$, proved that pairwise non-coalescing representatives have Banach density $0$.

What is new here vs. prior art:

  • Universal subcritical density-$1$ coalescence for every coprime $(d, a)$ with $a^{d-1} < d^d$ and every offset $m \in \mathbb{Z}$, via the two-case divisible-phase potential $\ell(s, \mu)$ and small-$\alpha$ Lyapunov moment (SubcriticalCoalescence.lean).
  • Proved supercritical failure above threshold $a^{d-1} > d^d$ at offset $m = 1$ (including $5x+1$ and $7x+1$), yielding the full offset-$1$ iff dichotomy (SharpPhaseTransition.lean).

Exact Scope & Standalone Module Accounting:

  • sharp_phase_transition_iff is proved for offset $m = 1$ (C_k d a 1 k). The subcritical direction (subcritical_coalescence, subcritical_natural_density_one) holds for all offsets $m \in \mathbb{Z}$. Extending the supercritical lower bound on unmerged density from $m = 1$ to arbitrary nonzero offsets $m \neq 0$ remains an open follow-up.
  • Both .lean files compile standalone (import Mathlib only) for independent single-command auditability; consequently, SharpPhaseTransition.lean (160 theorems) embeds the subcritical proofs of SubcriticalCoalescence.lean (125 theorems) rather than importing them. These two file counts overlap and should not be summed as disjoint theorems.

Map & Problem Statement

For integers $d \ge 2$, $a > 1$ with $\gcd(a, d) = 1$, define

$$T_{d,a}(x) = \begin{cases} x / d & \text{if } d \mid x, \\ (a x + r(x)) / d & \text{if } d \nmid x, \end{cases}$$

where $r(x) = (-a x) \bmod d \in \{1, \dots, d - 1\}$ is the unique residue making $a x + r(x)$ divisible by $d$.

For an offset $m \in \mathbb{Z}$ and depth $k \ge 0$, let $C_k(d, a, m)$ denote the number of residue classes $p \in \{0, \dots, d^k - 1\}$ such that $T_{d,a}^{[k]}(p + d^k t) = T_{d,a}^{[k]}(p + d^k t + m)$ for all $t \in \mathbb{Z}$.

Main Theorem (sharp_phase_transition_iff)

For every integer $d \ge 2$ and every $a > 1$ with $\gcd(a, d) = 1$:

$$\lim_{k \to \infty} \frac{C_k(d, a, 1)}{d^k} = 1 \iff a^{d-1} < d^d.$$

More precisely (sharp_phase_transition_full, subcritical_coalescence, subcritical_natural_density_one, above_threshold_unmerged):

  1. No boundary case (coprime_pow_ne_pow): $a^{d-1} \neq d^d$ whenever $d \ge 2$ and $\gcd(a, d) = 1$.
  2. Universal subcritical regime ($a^{d-1} < d^d$): For every offset $m \in \mathbb{Z}$,
    $$\lim_{k \to \infty} \frac{C_k(d, a, m)}{d^k} = 1,$$

    and the coalescing set $\{n \in \mathbb{N} \mid \exists k \in \mathbb{N},\; T_{d,a}^{[k]}(n) = T_{d,a}^{[k]}(n + m)\}$ has natural density $1$ in $\mathbb{N}$.
  3. Supercritical regime ($a^{d-1} > d^d$): There exists $\varepsilon > 0$ such that $C_k(d, a, 1) / d^k \le 1 - \varepsilon$ for all $k \ge 1$.

Key New Mathematical Mechanism (Composite & Arbitrary Subcritical $(d, a)$)

In the prime family $(p, p+1)$, one always has $(p+1)^s \equiv 1 \pmod p$, so the divisible-phase transition $(s, p m) \mapsto (s, \mu'_c)$ is purely $p$-adic with $v_p(p) = 1$. For general composite $d \ge 2$ and arbitrary coprime $a > 1$, two genuinely new phenomena occur: (i) $a^s \not\equiv 1 \pmod d$ can occur at infinitely many levels $s$, and (ii) prime powers $p^v \mid\mid d$ with $v \ge 2$ or multiple distinct prime factors $d = p^v d'$ break the prime-$p$ exact-equality identity.

We resolve both via a universal child formula and a two-case divisible-phase potential $\ell(s, \mu)$:

  1. Universal Divisible-Phase Child Formula (step_div_zero, step_div_nonzero):
    Reindexing nonzero digits $c \in \mathrm{Fin}\,d$ by the bijection $x = r(c) = (-a c) \bmod d$ (resEquiv), the children of $(s, d m)$ ($s \ge 1$) are:
    $$\mu'_0 = m, \qquad \mu'_x = a m - \left\lfloor \frac{a^s x}{d} \right\rfloor \quad (x \in \{1, \dots, d - 1\}).$$
  2. Unified Divisible-Phase Potential $\ell(s, \mu)$ (ell_drop):
    Let $p = d.\mathrm{minFac}$ (prime divisor of $d$), $v = v_p(d) \ge 1$, and $e_s = v_p(a^s - 1)$.
    • Case A ($a^s \equiv 1 \pmod d$, ell_drop_caseA): Here $Q = (a^s - 1)/d \in \mathbb{Z}_{\ge 1}$ has $v_p(Q) = n := e_s - v \ge 0$, and $\mu'_x = a m - x Q$. Set
      $$\ell(s, \mu) = \#\{1 \le j < e_s \mid p^j \mid \mu\} + \frac{p}{p-1}\mathbf{1}_{p^{e_s} \mid \mu}.$$

      When $p^n \mid m$, exactly $d / p$ values of $x \in \mathrm{Fin}\,d$ satisfy $p^{n+1} \mid \mu'_x$ (card_div_mod_prime), yielding $\sum_{c} \ell(\mathrm{step}(s, dm, c)) \le d(\ell(s, dm) - 1)$ with excess margin $\frac{d}{p}(p-1)(v-1) \ge 0$.
    • Case B ($a^s \not\equiv 1 \pmod d$, ell_drop_caseB): Write $a^s = Q d + R$ with $2 \le R \le d - 1$ (forcing $d \ge 3$). At the explicit discrete jump point $x_0 = \lfloor (d - 1)/R \rfloor \in \{1, \dots, d - 2\}$, we have $\lfloor a^s \cdot 1 / d \rfloor = Q$ while $\lfloor a^s (x_0 + 1)/d \rfloor - \lfloor a^s x_0 / d \rfloor = Q + 1$. Since $d \ge 2$ cannot divide both $Q$ and $Q + 1$, at least one child exits $\{d \mid \mu\}$. Thus $\ell(s, \mu) = d \cdot \mathbf{1}_{d \mid \mu}$ satisfies $\sum_c \ell(\mathrm{step}(s, dm, c)) \le (d - 1)d = d(\ell(s, dm) - 1)$.
  3. General Subcritical Lyapunov Supermartingale (exists_subcritical_alpha, exists_lyapunov):
    Whenever $a^{d-1} < d^d$, there exists $\alpha \in (0, 1]$ with $\kappa = (1/d)^\alpha + (d - 1)(a/d)^\alpha < d$. Setting $\delta = d - \kappa > 0$, $\theta = r / (\delta + r) \in (0, 1)$ ($r = (a/d)^\alpha$), $\lambda = (1 + \theta)/2$, $A = d C_B / (1 - \lambda)^2$, and $M \ge (C_0 / \delta)^{1/\alpha}$,
    $$V(s, \mu) = \sqrt{s} + A(1 - \lambda^s) + \theta^s \ell(s, \mu) + \theta^s w(s, \mu)^\alpha$$

    is superharmonic off the finite core $F_M = \{(0, \mu) : |\mu| \le M\}$. Combining with the universal offset-absorption theorem (offset_absorbable, using $a^{d-1} < d^d \implies a < d^2$) and Markov potential-theory bootstrap (G1_bootstrap) proves density-1 coalescence for every subcritical $(d, a)$ and every offset $m \in \mathbb{Z}$.

Files & Verified Theorems

FileLinesTheoremsHeadline Theorems
SubcriticalCoalescence.lean3,253125ell_drop, exists_subcritical_alpha, exists_lyapunov, absorbed_tendsto_subcritical, subcritical_coalescence, subcritical_natural_density_one
SharpPhaseTransition.lean4,355160sharp_phase_transition_iff, sharp_phase_transition_full, coprime_pow_ne_pow, subcritical_coalescence, subcritical_natural_density_one, above_threshold_unmerged, plus explicit corollaries coalescence_4_5, coalescence_6_7, coalescence_3_5, coalescence_5_7, coalescence_8_9, coalescence_9_10, coalescence_12_13, unmerged_3_7, unmerged_4_7

Both files are 100% self-contained (import Mathlib only) and reuse the prebuilt Mathlib cache in ../collatz-coalescence/.


Verification Commands & Axiom Audit

cd /Users/arthurcolle/math_rip/new-results/collatz-coalescence
lake env lean /Users/arthurcolle/math_rip/new-results/open-dynamical-systems/SubcriticalCoalescence.lean
lake env lean /Users/arthurcolle/math_rip/new-results/open-dynamical-systems/SharpPhaseTransition.lean
  • Compiler status: Both files exit 0 with zero errors and zero warnings.
  • Forbidden-token scan (sorry, admit, axiom, native_decide): 0 occurrences in either file.
  • #print axioms audit: Every headline theorem in both files depends strictly on the three standard Lean/Mathlib axioms:
    [propext, Classical.choice, Quot.sound].

Mandatory Novelty-Check Receipt

1. Literature & Database Check

Before formalization, we searched arXiv, Google Scholar, OEIS, and the generalized Collatz / $3x+1$ literature:

  • Omar Javier Said Duran (Sept 27, 2026, Zenodo preprint; OEIS A398792 submitted Aug 9, 2026; collatz-coalescence/): Proved density-1 coalescence for the standard $3x+1$ map ($d = 2, a = 3$) in both natural-density and $\log_2 n$ forms using the pair Markov chain on $\{v, 3^k v + c\}$, $\sqrt{|c|/3^k}$ Lyapunov contraction, level-$k$ harmonic potential, and universal absorbing word in Lean 4, together with companion finite-level counts (no limit theorem) for $5x+1$ and $7x+1$. Our work generalizes Said Duran's proof engine beyond $3x+1$ to every coprime $(d, a)$.
  • Gao (1993) & Lagarias (1985): Gao conjectured normalized coalescence count $\to 1$ for $3x+1$; Lagarias attributed runs of equal stopping times to trajectory merging ($8k+4, 8k+5$).
  • Matthews & Watts (1984): Conjectured the dividing threshold $a^{d-1}$ vs $d^d$ for generalized Hasse / $d$-adic maps (proved here as a sharp iff theorem for offset-$1$ pair coalescence, while remaining conjectural for individual orbits).
  • Garcia & Tal (1999, Acta Arithmetica 90, "A note on the generalized $3n+1$ problem"): Under $a < d^{d/(d-1)}$, proved Banach density $0$ for pairwise non-coalescing representatives, without proving fixed-offset residue-class coalescence $C_k(d, a, m)/d^k \to 1$, natural density $1$, or supercritical unmerged density above $a^{d-1} > d^d$.
  • collatz-d-adic/: Established the supercritical regime ($a^{d-1} > d^d$, offset $m = 1$) and the prime subcritical family $(p, p + 1)$, leaving composite bases (e.g. $(4, 5)$, $(6, 7)$, $(8, 9)$, $(9, 10)$, $(12, 13)$) and non-$(p+1)$ subcritical pairs (e.g. $(3, 5)$, $(5, 7)$) as an open gap.

No prior published proof of subcritical coalescence for arbitrary composite/coprime $(d, a)$ with $a^{d-1} < d^d$ or supercritical unmerged density above $a^{d-1} > d^d$ was found; this is a generalization of Said Duran's $3x+1$ result and proof engine via the two-case divisible-phase potential $\ell(s, \mu)$ and small-$\alpha$ moment.

2. Computational Pre-Verification (Python)

Prior to writing Lean, Python experiments verified every piece of the proof:

  1. Monte Carlo coalescence checks from $(0, 1)$ across composite and non-$(d+1)$ subcritical pairs (4,5), (6,7), (3,5), (5,7), (3,2), (4,3), (6,5), (8,9), (9,10), (12,13) confirmed rapid absorption to $(0, 0)$ with expected exit time $E[\tau(s, 0)] \in [1.1, 3.0]$ across levels $s = 1 \dots 12$.
  2. Exhaustive stress test of ell_drop: Tested $\frac{1}{d}\sum_{c=0}^{d-1} \ell(\mathrm{step}(s, dm, c)) \le \ell(s, dm) - 1$ across 33,547 test cases covering all coprime subcritical pairs $(d, a)$ for $2 \le d \le 12$, levels $s \in [1, 12]$, and multiple residue classes of $m$: 33,547 / 33,547 passed (0 failures).
ZITADEL IDENTITY · auth.distributed.systems

Researcher Identity & AI Attribution

Loading account state...