Collatz-like: Difference between revisions

From BusyBeaverWiki
Jump to navigation Jump to search
Link Turing complete
extended intro
Line 1: Line 1:
A '''Collatz-like function''' is a partial function defined piecewise depending on the remainder of an input modulo some number. The canonical example is the original Collatz function:<math display="block">\begin{array}{l}
A '''Collatz-like function''' is a function iterated repeatedly on its own output (a recurrence) defined piecewise by the remainder of the current value modulo some number. The characteristic of most Collatz-like functions is that each branch combines multiplication by a small prime with division by 2, which causes the iterates to grow and shrink in a pattern that is practically unpredictable. This pseudorandom behavior is empirically well-documented but remains largely mysterious mathematically.
  c(2k)  & = &  k \\
The canonical example is the original Collatz function:
  c(2k+1) & = & 3k+2
<math display="block">
\end{array}</math>
\begin{array}{l}
 
c(2k)  & = &  k \\
A '''Collatz-like problem''' is a question about the behavior of iterating a Collatz-like function. Collatz-like problems are famously difficult.
c(2k+1) & = & 3k+2
 
\end{array}
Many [[Busy Beaver Champions]] have '''Collatz-like behavior''', meaning that their behavior can be concisely described via the iterated values of a Collatz-like function.
</math>
 
where division by 2 on even inputs and multiplication by 3 (plus a correction) on odd inputs produces trajectories that appear random despite being entirely deterministic.
[[Generalized Collatz Function|Generalized Collatz Functions]] (GCFs) are a specific well-studied type of Collatz-like functions on one variable where each of the piecewise definitions are affine. The halting problem for GCFs is known to be [[Turing complete]]. An even more specific example are [[Consistent Collatz]] functions which are a restriction of GCFs where the coefficients are the same for all affine functions.
A '''Collatz-like problem''' is a question about the long-run behavior of such an iteration — for instance, whether all starting values eventually reach a fixed point or cycle. Collatz-like problems are famously difficult; even the simplest instances are open.
Many [[Busy Beaver Champions]] exhibit '''Collatz-like behavior''', meaning their execution trace can be concisely described by the iterates of a Collatz-like function. This is not a coincidence. The [[Busy Beaver]] project systematically filters out machines with predictable, non-chaotic behavior, so the machines that survive and dominate the competition are precisely those whose behavior is hardest to predict. Because the ×3, ÷2 process appears to be the simplest mechanism capable of generating pseudorandom dynamics, it shows up throughout the Busy Beaver landscape.
[[Generalized Collatz Function|Generalized Collatz Functions]] (GCFs) are a well-studied formal class of Collatz-like functions on one variable in which every branch is an affine map. The halting problem for GCFs is known to be [[Turing complete]]. [[Consistent Collatz]] functions are a further restriction of GCFs in which all branches share the same linear coefficient.== Examples ==


== Examples ==
== Examples ==
=== 5-state busy beaver winner ===
=== 5-state busy beaver winner ===
Consider the [[5-state busy beaver winner]] and the generalized configuration:
Consider the [[5-state busy beaver winner]] and the generalized configuration:

Revision as of 07:37, 30 March 2026

A Collatz-like function is a function iterated repeatedly on its own output (a recurrence) defined piecewise by the remainder of the current value modulo some number. The characteristic of most Collatz-like functions is that each branch combines multiplication by a small prime with division by 2, which causes the iterates to grow and shrink in a pattern that is practically unpredictable. This pseudorandom behavior is empirically well-documented but remains largely mysterious mathematically. The canonical example is the original Collatz function: c(2k)=kc(2k+1)=3k+2 where division by 2 on even inputs and multiplication by 3 (plus a correction) on odd inputs produces trajectories that appear random despite being entirely deterministic. A Collatz-like problem is a question about the long-run behavior of such an iteration — for instance, whether all starting values eventually reach a fixed point or cycle. Collatz-like problems are famously difficult; even the simplest instances are open. Many Busy Beaver Champions exhibit Collatz-like behavior, meaning their execution trace can be concisely described by the iterates of a Collatz-like function. This is not a coincidence. The Busy Beaver project systematically filters out machines with predictable, non-chaotic behavior, so the machines that survive and dominate the competition are precisely those whose behavior is hardest to predict. Because the ×3, ÷2 process appears to be the simplest mechanism capable of generating pseudorandom dynamics, it shows up throughout the Busy Beaver landscape. Generalized Collatz Functions (GCFs) are a well-studied formal class of Collatz-like functions on one variable in which every branch is an affine map. The halting problem for GCFs is known to be Turing complete. Consistent Collatz functions are a further restriction of GCFs in which all branches share the same linear coefficient.== Examples ==

Examples

5-state busy beaver winner

Consider the 5-state busy beaver winner and the generalized configuration:

M(n)=0<A1n0Pascal Michel showed that:

0<A0=M(0)M(3k)5k2+19k+15M(5k+6)M(3k+1)5k2+25k+27M(5k+9)M(3k+2)6k+1201Z>01(001)k+110

Starting on a blank tape M(0), these rules iterate 15 times before reaching the halt config.[1]

Hydra

Consider Hydra and the generalized configuration:

C(a,b)=0<A203(a2)3b20 Daniel Yuan showed that:0A>020C(3,0)C(2n,0)Halt(9n6)C(2n,b+1)C(3n,b)C(2n+1,b)C(3n+1,b+2)

Where Halt(n) is a halting configuration with n non-zero symbols on the tape.

Starting from C(3,0), this simulates a pseudo-random walk along the b parameter, increasing it by 2 every time a is odd, decreasing by 1 every time it's even. Deciding whether or not Hydra halts requires determining whether through the process of applying the Collatz-like function H(2n)=3n(even transition)H(2n+1)=3n+1(odd transition) to 3 recursively, there eventually comes a point where the amount of even transitions applied is more than twice the amount of odd transitions applied.[2] The first few transitions are displayed below: 0..3O4E6E9O13O19O28E42E63O

Exponential Collatz

Consider the machine 1RB0LD_1RC0RF_1LC1LA_0LE1RZ_1LF0RB_0RC0RE (bbch), discovered by Pavel Kropitz in May 2022, and the general configuration:K(n):=010n1105C>0Shawn Ligocki showed that: 0A>045K(5)K(4k)Halt(3k+3112)K(4k+1)K(3k+3112)K(4k+2)K(3k+3112)K(4k+3)K(3k+3+12)

Demonstrating Collatz-like behavior with exponential piecewise component functions.

Starting from config K(5), these rules iterate 15 times before reaching the halt config leaving over 1015 non-zero symbols on the tape.[3]

References