Hydra: Difference between revisions

From BusyBeaverWiki
Jump to navigation Jump to search
mNo edit summary
(changed transition table)
Line 1: Line 1:
{{machine|1RB3RB---3LA1RA_2LA3RA4LB0LB0LA}}{{unsolved|Does Hydra run forever?}}{{TM|1RB3RB---3LA1RA_2LA3RA4LB0LB0LA|undecided}}
{{machine|1RB3RB---3LA1RA_2LA3RA4LB0LB0LA}}{{unsolved|Does Hydra run forever?}}{{TM|1RB3RB---3LA1RA_2LA3RA4LB0LB0LA|undecided}}
'''Hydra''' is a [[BB(2,5)]] [[Cryptid]]. Similarly to [[Antihydra]], it simulates repeatedly applying the function <math display="inline">H(n)=\Big\lfloor\frac{3}{2}n\Big\rfloor</math>, but starting at <math>n=3</math> and swapping the roles of the even and odd terms of this sequence. The obstacles to proving whether or not this [[Turing machine]] halts are equally as serious as that machine.
'''Hydra''' is a [[BB(2,5)]] [[Cryptid]]. Its high-level rules were first reported [https://discord.com/channels/960643023006490684/1084047886494470185/1231110668288135208 on Discord] by Daniel Yuan on 20 April 2024, who also gave Hydra said name. Later on, a 6-state, 2-symbol [[Turing machine]] was discovered and named [[Antihydra]] for having similar behaviour to Hydra, making the study of this machine important to the study of that one.
== Description ==
<div style="width: fit-content; text-align: center; margin-left: auto; margin-right: auto;">
[[File:Hydra TransitionTable.png|right|200px|thumb|The transition table of Hydra.]]
{|class="wikitable" style="margin-left: auto; margin-right: auto;"
Hydra basically tracks the progress of the integer ordered pair <math>(x,y)</math> starting at <math>(3,0)</math>, which is represented on the tape as <math>x</math> consecutive <math>0</math>s and to the right, <math>y</math> consecutive <math>3</math>s. As time passes, the head moves back and forth, replacing those <math>0</math>s with <math>3</math>s, two at a time. Because the head visits a new cell on the left every time this happens, the number of <math>3</math>s on the tape is approximately <math display="inline">\frac{3}{2}x</math> when this process finishes. From here, most of those <math>3</math>s are swiftly turned back into <math>0</math>s, generating a new ordered pair. However, there are two ways this could happen. If <math>x</math> was even, then <math>y</math> will decrease by one or halt Hydra if it drops below 0. Otherwise, <math>y</math> will increase by 2. The problem of whether or not Hydra halts is unsolved, and can be restated like so:
! !!0!!1!!2!!3!!4
 
|-
If the quantities of even and odd numbers found are counted as the function
!A
<math display="block">\begin{array}{l}h(2n)&=&3n\\h(2n+1)&=&3n+1\end{array}</math>
|1RB
is applied continually, starting at 3, then does the count of even numbers ever exceed twice the count of odd numbers?
|3RB
=== Attributions ===
| ---
Hydra and its high-level rules were first reported [https://discord.com/channels/960643023006490684/1084047886494470185/1231110668288135208 on Discord] by Daniel Yuan on 20 April 2024.
|3LA
|1RA
|-
!B
|2LA
|3RA
|4LB
|0LB
|0LA
|}
The transition table of Hydra.</div>
== Analysis ==
== Analysis ==
Let <math>C(a,b):=0^\infty\;\textrm{<A}\;2\;0^a\;3^b\;2\;0^\infty</math>. Then,<ref>S. Ligocki, "[https://www.sligocki.com/2024/05/10/bb-2-5-is-hard.html BB(2, 5) is Hard (Hydra)] (2024). Accessed 22 July 2024.</ref>
Let <math>C(a,b):=0^\infty\;\textrm{<A}\;2\;0^a\;3^b\;2\;0^\infty</math>. Then,<ref>S. Ligocki, "[https://www.sligocki.com/2024/05/10/bb-2-5-is-hard.html BB(2, 5) is Hard (Hydra)] (2024). Accessed 22 July 2024.</ref>
Line 17: Line 27:
C(2a+1,b)&\xrightarrow{4b+6a^2+23a+26}&C(3a+3,b+2).\\\hline
C(2a+1,b)&\xrightarrow{4b+6a^2+23a+26}&C(3a+3,b+2).\\\hline
\end{array}</math>
\end{array}</math>
By scaling and translating these rules we acquire the [[Hydra function]] that relates it to Antihydra.<ref>S. Ligocki, "[https://www.sligocki.com/2024/07/06/bb-6-2-is-hard.html BB(6) is Hard (Antihydra)]" (2024). Accessed 22 July 2024.</ref>
<div class="toccolours mw-collapsible mw-collapsed">'''Proof'''<div class="mw-collapsible-content">
<div class="toccolours mw-collapsible mw-collapsed">'''Proof'''<div class="mw-collapsible-content">
Consider the partial configuration <math>P(m,n):=0^\infty\;3^m\;\textrm{A>}\;02\;0^n</math>. After 14 steps this configuration becomes  
Consider the partial configuration <math>P(m,n):=0^\infty\;3^m\;\textrm{A>}\;02\;0^n</math>. After 14 steps this configuration becomes  
Line 33: Line 42:
Substituting <math>a\leftarrow 2a</math> for the first two cases and <math>a\leftarrow 2a+1</math> for the third yields the final result.
Substituting <math>a\leftarrow 2a</math> for the first two cases and <math>a\leftarrow 2a+1</math> for the third yields the final result.
</div></div>
</div></div>
In effect, the halting problem for Hydra is about whether repeatedly applying the function <math>f(n)=3\Big\lfloor\frac{n}{2}\Big\rfloor+3</math> will at some point produce more even values of <math>n</math> than twice the number of odd values.


An alternative version of these rules exists that makes the connection to Antihydra more apparent by using the function <math display="inline">H(n)=\left\lfloor\frac{3}{2}n\right\rfloor</math>, or the [[Hydra function]].<ref>S. Ligocki, "[https://www.sligocki.com/2024/07/06/bb-6-2-is-hard.html BB(6) is Hard (Antihydra)]" (2024). Accessed 22 July 2024.</ref>
== Trajectory ==
== Trajectory ==
It takes 20 steps to reach the configuration <math>C(3,0)</math>, and from there, the [[Collatz-like]] rules are repeatedly applied. Simulating Hydra has shown that after 4000000 rule steps, we have <math>b=2005373</math>. Here are the first few:
It takes 20 steps to reach the configuration <math>C(3,0)</math>, and from there, the [[Collatz-like]] rules are repeatedly applied. Simulating Hydra has shown that after 4000000 rule steps, we have <math>b=2005373</math>. Here are the first few:
<math display="block">\begin{array}{|c|}\hline C(3,0)\xrightarrow{55}C(6,2)\xrightarrow{133}C(12,1)\xrightarrow{364}C(21,0)\xrightarrow{856}C(33,2)\xrightarrow{1938}C(51,4)\xrightarrow{4367}C(78,6)\rightarrow\cdots\\\hline\end{array}</math>
<math display="block">\begin{array}{|c|}\hline C(3,0)\xrightarrow{55}C(6,2)\xrightarrow{133}C(12,1)\xrightarrow{364}C(21,0)\xrightarrow{856}C(33,2)\xrightarrow{1938}C(51,4)\xrightarrow{4367}C(78,6)\rightarrow\cdots\\\hline\end{array}</math>
The heuristic argument that suggests Antihydra is a [[probviously]] nonhalting machine can be applied here. This means that if <math>b</math> is to be thought of as moving randomly, then the probability of Hydra halting is <math display="inline">{\Big(\frac{\sqrt{5}-1}{2}\Big)}^{2005374}\approx 4.168\times 10^{-419099}</math>.
The heuristic argument that suggests Antihydra is a [[probviously]] nonhalting machine can be applied here. This means that if <math>b</math> is to be thought of as moving randomly, then the probability of Hydra halting is <math display="inline">{\Big(\frac{\sqrt{5}-1}{2}\Big)}^{2005374}\approx 4.168\times 10^{-419099}</math>.
''To view an animation of the blank tape becoming <math>C(21,0)</math> in 572 steps, click [https://wiki.bbchallenge.org/w/images/2/2f/Hydra_0-572.gif here].''
==References==
==References==
[[Category:Cryptids]]
[[Category:Cryptids]]

Revision as of 23:31, 28 March 2025

Unsolved problem:
Does Hydra run forever?

1RB3RB---3LA1RA_2LA3RA4LB0LB0LA (bbch)

Hydra is a BB(2,5) Cryptid. Its high-level rules were first reported on Discord by Daniel Yuan on 20 April 2024, who also gave Hydra said name. Later on, a 6-state, 2-symbol Turing machine was discovered and named Antihydra for having similar behaviour to Hydra, making the study of this machine important to the study of that one.

0 1 2 3 4
A 1RB 3RB --- 3LA 1RA
B 2LA 3RA 4LB 0LB 0LA
The transition table of Hydra.

Analysis

Let . Then,[1]

Proof

Consider the partial configuration . After 14 steps this configuration becomes . We note the following shift rule:

Using this shift rule, we get in steps. From here, we can observe that turns into in three steps if . By repeating this process, we acquire this transition rule:
With this rule, it takes steps to reach the configuration , which is the same configuration as . To summarize:
With we have . As a result, we can apply this rule times, which creates two possible scenarios:

  1. If , then in steps we arrive at . The matching complete configuration is , which in four steps becomes If then we have reached the undefined A2 transition in steps total. Otherwise, continuing for three steps gives us . Another shift rule is required here:
    This means the configuration becomes in steps, and , equal to , one step later. This gives a total of steps.
  2. If , then in steps we arrive at . The matching complete configuration is , which in four steps becomes , and then in steps. After 14 steps, we see the configuration , which turns into in steps. In two steps we get , followed by after more steps. We conclude with , equal to , one step later. This gives a total of steps.

The information above can be summarized as

Substituting for the first two cases and for the third yields the final result.

In effect, the halting problem for Hydra is about whether repeatedly applying the function will at some point produce more even values of than twice the number of odd values.

An alternative version of these rules exists that makes the connection to Antihydra more apparent by using the function , or the Hydra function.[2]

Trajectory

It takes 20 steps to reach the configuration , and from there, the Collatz-like rules are repeatedly applied. Simulating Hydra has shown that after 4000000 rule steps, we have . Here are the first few:

The heuristic argument that suggests Antihydra is a probviously nonhalting machine can be applied here. This means that if is to be thought of as moving randomly, then the probability of Hydra halting is .

References

  1. S. Ligocki, "BB(2, 5) is Hard (Hydra) (2024). Accessed 22 July 2024.
  2. S. Ligocki, "BB(6) is Hard (Antihydra)" (2024). Accessed 22 July 2024.