Antihydra: Difference between revisions
mNo edit summary |
(Changed connection to Hydra function to a mention (better version of simplified rules is on that page), moved restatement of halting problem from Analysis to Description) |
||
Line 6: | Line 6: | ||
Antihydra basically repeatedly modifies the integer ordered pair <math>(x,y)</math> starting at <math>(0,4)</math>, which is represented on the tape as <math>x</math> consecutive <math>1</math>s and <math>y</math> consecutive <math>1</math>s, separated by a single <math>0</math>. It does this by "borrowing" a <math>0</math> from the right side and, through a series of back-and-forth head movements, "moves" this <math>0</math> toward the one separating <math>x</math> and <math>y</math>, two units at a time. As this happens, the head visits new cells on the right, which has the effect of there being about <math display="inline">\frac{3}{2}</math> times as many <math>1</math>s on the tape when the distance has been closed. After that, <math>x</math> and <math>y</math> are updated. If the previous value of <math>x</math> was even, then <math>y</math> becomes <math>y+2</math>. Otherwise, <math>y</math> becomes <math>y-1</math> or Antihydra halts if <math>y</math> was 0. | Antihydra basically repeatedly modifies the integer ordered pair <math>(x,y)</math> starting at <math>(0,4)</math>, which is represented on the tape as <math>x</math> consecutive <math>1</math>s and <math>y</math> consecutive <math>1</math>s, separated by a single <math>0</math>. It does this by "borrowing" a <math>0</math> from the right side and, through a series of back-and-forth head movements, "moves" this <math>0</math> toward the one separating <math>x</math> and <math>y</math>, two units at a time. As this happens, the head visits new cells on the right, which has the effect of there being about <math display="inline">\frac{3}{2}</math> times as many <math>1</math>s on the tape when the distance has been closed. After that, <math>x</math> and <math>y</math> are updated. If the previous value of <math>x</math> was even, then <math>y</math> becomes <math>y+2</math>. Otherwise, <math>y</math> becomes <math>y-1</math> or Antihydra halts if <math>y</math> was 0. | ||
Let <math display="inline">H(n)=\Big\lfloor\frac{3}{2}n\Big\rfloor</math>, and <math>a_k</math> and <math>b_k</math> be integer sequences defined below: | |||
<math display="block">\begin{array}{l} | |||
a_0=0,&a_{k+1} = \begin{cases}a_k + 2 & \text{if } b_k\equiv0\pmod{2}\\a_k - 1 & \text{if }b_k\equiv1\pmod{2} \\\end{cases},&b_0=8,&b_{k+1}=H(b_k).\end{array}</math> | |||
Antihydra halts if and only if there exists any number <math>i</math> for which <math>a_i<0</math>. | |||
=== Attributions === | === Attributions === | ||
Antihydra and its pseudo-random behaviour were reported [https://discord.com/channels/960643023006490684/1026577255754903572/1256223215206924318 on Discord] by mxdys on 28 June 2024, and Racheline discovered the high-level rules soon after, where it was found to be closely related to [[Hydra]]. | Antihydra and its pseudo-random behaviour were reported [https://discord.com/channels/960643023006490684/1026577255754903572/1256223215206924318 on Discord] by mxdys on 28 June 2024, and Racheline discovered the high-level rules soon after, where it was found to be closely related to [[Hydra]]. | ||
Line 24: | Line 27: | ||
<math display="block">\begin{array}{|c|}\hline P(m,n)\xrightarrow{2n+12}P(m-2,n+3)\text{ if }m\ge 4.\\\hline\end{array}</math> | <math display="block">\begin{array}{|c|}\hline P(m,n)\xrightarrow{2n+12}P(m-2,n+3)\text{ if }m\ge 4.\\\hline\end{array}</math> | ||
With <math>A(a,b)</math> we have <math>P(b,0)</math>. As a result, we can apply this rule <math display="inline>\big\lfloor\frac{1}{2}b\big\rfloor-1</math> times (assuming <math>b\ge 4</math>), which creates two possible scenarios: | With <math>A(a,b)</math> we have <math>P(b,0)</math>. As a result, we can apply this rule <math display="inline>\big\lfloor\frac{1}{2}b\big\rfloor-1</math> times (assuming <math>b\ge 4</math>), which creates two possible scenarios: | ||
#If <math>b\equiv0\ (\operatorname{mod}2)</math>, then in <math>\sum_{i=0}^{(b/2)-2}(2\times 3i+12)=\textstyle\frac{3}{4}b^2+\frac{3}{2}b-6</math> steps we arrive at <math display="inline">P\Big(2,\frac{3}{2}b-3\Big)</math>. The matching complete configuration is <math>0^\infty\;1^a\;011\;\textrm{E>}\;0\;1^{(3b)/2-3}\;0^\infty</math>. After <math>3b+4</math> steps this | #If <math>b\equiv0\ (\operatorname{mod}2)</math>, then in <math>\sum_{i=0}^{(b/2)-2}(2\times 3i+12)=\textstyle\frac{3}{4}b^2+\frac{3}{2}b-6</math> steps we arrive at <math display="inline">P\Big(2,\frac{3}{2}b-3\Big)</math>. The matching complete configuration is <math>0^\infty\;1^a\;011\;\textrm{E>}\;0\;1^{(3b)/2-3}\;0^\infty</math>. After <math>3b+4</math> steps this is <math>0^\infty\;1^a\;\textrm{<C}\;00\;1^{(3b)/2}\;0^\infty</math>, which then leads to <math>0^\infty\;\textrm{<C}\;1^a\;00\;1^{(3b)/2}\;0^\infty</math> in <math>a</math> steps. After five more steps, we reach <math>0^\infty\;1\;\textrm{E>}\;1^{a+2}\;00\;1^{(3b)/2}\;0^\infty</math>, from which another shift rule must be applied:<math display="block">\begin{array}{|c|}\hline\textrm{E>}\;1^s\xrightarrow{s}1^s\;\textrm{E>}\\\hline\end{array}</math>Doing so allows us to get the configuration <math>0^\infty\;1^{a+3}\;\textrm{E>}\;00\;1^{(3b)/2}\;0^\infty</math> in <math>a+2</math> steps. In six steps we have <math>0^\infty\;1^{a+2}\;011\;\textrm{E>}\;1^{(3b)/2}\;0^\infty</math>, so we use the shift rule again, ending at <math>0^\infty\;1^{a+2}\;0\;1^{(3b)/2+2}\;\textrm{E>}\;0^\infty</math>, equal to <math display="inline">A\Big(a+2,\frac{3}{2}b+2\Big)</math>, <math display="inline">\frac{3}{2}b</math> steps later. This gives a total of <math display="inline">2a+\frac{3}{4}b^2+6b+11</math> steps. | ||
#If <math>b\equiv1\ (\operatorname{mod}2)</math>, then in <math display="inline">\frac{3}{4}b^2-\frac{27}{4}</math> steps we arrive at <math display="inline">P\Big(3,\frac{3b-9}{2}\Big)</math>. The matching complete configuration is <math>0^\infty\;1^a\;0111\;\textrm{E>}\;0\;1^{(3b-9)/2}\;0^\infty</math>. After <math>3b+2</math> steps this becomes <math>0^\infty\;1^a\;\textrm{<F}\;110\;1^{(3b-3)/2}\;0^\infty</math>. If <math>a=0</math> then we have reached the undefined <code>F0</code> transition with a total of <math display="inline">\frac{3}{4}b^2+3b-\frac{19}{4}</math> steps. Otherwise, continuing for six steps gives us <math>0^\infty\;1^{a-1}\;0111\;\textrm{E>}\;1^{(3b-3)/2}\;0^\infty</math>. We conclude with the configuration <math>0^\infty\;1^{a-1}\;0\;1^{(3b+3)/2}\;\textrm{E>}\;0^\infty</math>, equal to <math display="inline">A\Big(a-1,\frac{3b+3}{2}\Big)</math>, in <math display="inline">\frac{3b-3}{2}</math> steps. This gives a total of <math display="inline">\frac{3}{4}b^2+\frac{9}{2}b-\frac{1}{4}</math> steps. | #If <math>b\equiv1\ (\operatorname{mod}2)</math>, then in <math display="inline">\frac{3}{4}b^2-\frac{27}{4}</math> steps we arrive at <math display="inline">P\Big(3,\frac{3b-9}{2}\Big)</math>. The matching complete configuration is <math>0^\infty\;1^a\;0111\;\textrm{E>}\;0\;1^{(3b-9)/2}\;0^\infty</math>. After <math>3b+2</math> steps this becomes <math>0^\infty\;1^a\;\textrm{<F}\;110\;1^{(3b-3)/2}\;0^\infty</math>. If <math>a=0</math> then we have reached the undefined <code>F0</code> transition with a total of <math display="inline">\frac{3}{4}b^2+3b-\frac{19}{4}</math> steps. Otherwise, continuing for six steps gives us <math>0^\infty\;1^{a-1}\;0111\;\textrm{E>}\;1^{(3b-3)/2}\;0^\infty</math>. We conclude with the configuration <math>0^\infty\;1^{a-1}\;0\;1^{(3b+3)/2}\;\textrm{E>}\;0^\infty</math>, equal to <math display="inline">A\Big(a-1,\frac{3b+3}{2}\Big)</math>, in <math display="inline">\frac{3b-3}{2}</math> steps. This gives a total of <math display="inline">\frac{3}{4}b^2+\frac{9}{2}b-\frac{1}{4}</math> steps. | ||
The information above can be summarized as | The information above can be summarized as | ||
Line 30: | Line 33: | ||
Substituting <math>b\leftarrow 2b</math> for the first case and <math>b\leftarrow 2b+1</math> for the other two yields the final result. | Substituting <math>b\leftarrow 2b</math> for the first case and <math>b\leftarrow 2b+1</math> for the other two yields the final result. | ||
</div></div> | </div></div> | ||
The page [[Hydra function]] shows how these rules can be simplified to use that function instead, along with Hydra. | |||
== Trajectory == | == Trajectory == | ||
11 steps are required to enter the configuration <math>A(0, 4)</math> before the rules are repeatedly applied. So far, Antihydra has been simulated to <math>2^{31}</math> rule steps, at which point <math>b=1073720884</math>. Here are the first few: | 11 steps are required to enter the configuration <math>A(0, 4)</math> before the rules are repeatedly applied. So far, Antihydra has been simulated to <math>2^{31}</math> rule steps, at which point <math>b=1073720884</math>. Here are the first few: |
Revision as of 05:03, 5 March 2025
1RB1RA_0LC1LE_1LD1LC_1LA0LB_1LF1RE_---0RA
(bbch)

Antihydra is the first BB(6) Cryptid to be identified. It operates by repeatedly applying the function , starting with . Determining whether this Turing machine halts requires solving a Collatz-like mathematical problem. Specifically, one must establish a significant result regarding the frequency of odd versus even numbers generated throughout the sequence. While probabilistic arguments based on random walks suggest Antihydra probviously runs indefinitely, proving this remains challenging. The difficulty stems from both the lack of an exploitable pattern in the sequence’s parities and the inherent complexity of Collatz-like problems.
Description

Antihydra basically repeatedly modifies the integer ordered pair starting at , which is represented on the tape as consecutive s and consecutive s, separated by a single . It does this by "borrowing" a from the right side and, through a series of back-and-forth head movements, "moves" this toward the one separating and , two units at a time. As this happens, the head visits new cells on the right, which has the effect of there being about times as many s on the tape when the distance has been closed. After that, and are updated. If the previous value of was even, then becomes . Otherwise, becomes or Antihydra halts if was 0.
Let , and and be integer sequences defined below:
Attributions
Antihydra and its pseudo-random behaviour were reported on Discord by mxdys on 28 June 2024, and Racheline discovered the high-level rules soon after, where it was found to be closely related to Hydra.
Analysis
Let . Then,[1]
Consider the partial configuration . The configuration after two steps is . We note the following shift rule:
- If , then in steps we arrive at . The matching complete configuration is . After steps this is , which then leads to in steps. After five more steps, we reach , from which another shift rule must be applied:Doing so allows us to get the configuration in steps. In six steps we have , so we use the shift rule again, ending at , equal to , steps later. This gives a total of steps.
- If , then in steps we arrive at . The matching complete configuration is . After steps this becomes . If then we have reached the undefined
F0
transition with a total of steps. Otherwise, continuing for six steps gives us . We conclude with the configuration , equal to , in steps. This gives a total of steps.
The information above can be summarized as
The page Hydra function shows how these rules can be simplified to use that function instead, along with Hydra.
Trajectory
11 steps are required to enter the configuration before the rules are repeatedly applied. So far, Antihydra has been simulated to rule steps, at which point . Here are the first few:
A heuristic nonhalting argument

The trajectory of values can be approximated by a random walk in which the walker can only move in step sizes +2 or -1 with equal probability, starting at position 0. If is the probability that the walker will reach position -1 from position , then it can be seen that . Solutions to this recurrence relation come in the form , which after applying the appropriate boundary conditions reduces to . This means that if walker were to get to position 1073720884 then the probability of it ever reaching position -1 is . This combined with the fact that the expected position of the walker after steps is strongly suggests Antihydra will not halt.
To view an animation of the blank tape becoming in 419 steps, click here.
References
- ↑ S. Ligocki, "BB(6) is Hard (Antihydra)" (2024). Accessed 22 July 2024.