Hydra: Difference between revisions

From BusyBeaverWiki
Jump to navigation Jump to search
MrSolis (talk | contribs)
mNo edit summary
MrSolis (talk | contribs)
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 C(a,b):=0<A20a3b20. Then,[1] C(2a,0)6a2+20a+4033a+11A>20,C(2a,b+1)6a2+23a+10C(3a+3,b),C(2a+1,b)4b+6a2+23a+26C(3a+3,b+2).

Proof

Consider the partial configuration P(m,n):=03mA>020n. After 14 steps this configuration becomes 03m+3<A20n2. We note the following shift rule: 3s<As<A3s Using this shift rule, we get 0<A3m+320n2 in m+3 steps. From here, we can observe that A>03s turns into 3A>03s1 in three steps if s1. By repeating this process, we acquire this transition rule: A>03s3s3sA>0 With this rule, it takes 3m+9 steps to reach the configuration 03m+3A>020n2, which is the same configuration as P(m+3,n2). To summarize: P(m,n)4m+26P(m+3,n2) if n2. With C(a,b) we have P(0,a). As a result, we can apply this rule 12a times, which creates two possible scenarios:

  1. If a0 (mod2), then in i=0(a/2)1(4×3i+26)=32a2+10a steps we arrive at P(32a,0). The matching complete configuration is 03(3/2)aA>023b20, which in four steps becomes 03(3/2)a+11A>3b20. If b=0 then we have reached the undefined A2 transition in 32a2+10a+4 steps total. Otherwise, continuing for three steps gives us 03(3/2)+2<B03b120. Another shift rule is required here:3s<Bs<B0sThis means the configuration becomes 0<B0(3/2)a+33b120 in 32a+2 steps, and 0<A20(3/2)a+33b120, equal to C(32a+3,b1), one step later. This gives a total of 32a2+232a+10 steps.
  2. If a1 (mod2), then in 32a2+7a172 steps we arrive at P(3a32,1). The matching complete configuration is 03(3a3)/2A>0203b20, which in four steps becomes 03(3a1)/21A>03b20, and then 03(3a1)/213bA>020 in 3b steps. After 14 steps, we see the configuration 03(3a1)/213b+3<A20, which turns into 03(3a1)/21<A3b+320 in b+3 steps. In two steps we get 03(3a+1)/2<B03b+220, followed by 0<B0(3a+3)/23b+220 after 3a+12 more steps. We conclude with 0<A20(3a+3)/23b+220, equal to C(3a+32,b+2), one step later. This gives a total of 4b+32a2+172a+16 steps.

The information above can be summarized as C(a,b){03(3/2)a+11A>20if a0(mod2) and b=0,C(32a+3,b1)if a0(mod2) and b>0,C(3a+32,b+2)if a1(mod2). Substituting a2a for the first two cases and a2a+1 for the third yields the final result.

In effect, the halting problem for Hydra is about whether repeatedly applying the function f(n)=3n2+3 will at some point produce more even values of n 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 H(n)=32n, or the Hydra function.[2]

Trajectory

It takes 20 steps to reach the configuration C(3,0), and from there, the Collatz-like rules are repeatedly applied. Simulating Hydra has shown that after 4000000 rule steps, we have b=2005373. Here are the first few: C(3,0)55C(6,2)133C(12,1)364C(21,0)856C(33,2)1938C(51,4)4367C(78,6) The heuristic argument that suggests Antihydra is a probviously nonhalting machine can be applied here. This means that if b is to be thought of as moving randomly, then the probability of Hydra halting is (512)20053744.168×10419099.

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.