User:MrSolis/Playground: Difference between revisions

From BusyBeaverWiki
Jump to navigation Jump to search
MrSolis (talk | contribs)
No edit summary
MrSolis (talk | contribs)
No edit summary
Line 1: Line 1:
'''HYDRA PAGE REVAMP (WIP)'''
'''HYDRA PAGE REVAMP (WIP)'''
{{machine|1RB3RB---3LA1RA_2LA3RA4LB0LB0LA}}{{unsolved|Does Hydra run forever?}}{{TM|1RB3RB---3LA1RA_2LA3RA4LB0LB0LA|undecided}}
{{unsolved|Does Hydra run forever?}}{{TM|1RB3RB---3LA1RA_2LA3RA4LB0LB0LA|undecided}}
Hydra is a [[BB(2,5)]] [[Cryptid]]. It simulates computing the terms of the sequence
Hydra is a [[BB(2,5)]] [[Cryptid]]. It simulates computing the terms of the sequence
<math display="block>H_{n+1}=\bigg\lfloor\frac{3}{2}H_n\bigg\rfloor,H_0=3,</math>
<math display="block>H_{n+1}=\bigg\lfloor\frac{3}{2}H_n\bigg\rfloor,H_0=3,</math>
Line 38: Line 38:
Bringing all terms with <math>P</math> to the left side of the equation and then substituting <math>n\leftarrow n+1</math> gives
Bringing all terms with <math>P</math> to the left side of the equation and then substituting <math>n\leftarrow n+1</math> gives
<math display="block">\textstyle P(n+1)-\frac{1}{2}P(n+3)-\frac{1}{2}P(n)=0.</math>
<math display="block">\textstyle P(n+1)-\frac{1}{2}P(n+3)-\frac{1}{2}P(n)=0.</math>
This equation has the form <math>\sum_{i=0}^k a_iP(n+i)=0</math>, which can be solved using the characteristic polynomial <math>f(z)=\sum_{i=0}^k a_iz^i</math>. In this instance we get <math display="inline">f(z)=-\frac{1}{2}+z-\frac{1}{2}z^3</math>, whose solutions are given by
This equation has the form <math>\sum_{i=0}^k a_iP(n+i)=0</math>, which can be solved using the zeroes of the characteristic polynomial <math>f(z)=\sum_{i=0}^k a_iz^i</math>. In this instance we get <math display="inline">f(z)=-\frac{1}{2}+z-\frac{1}{2}z^3</math>, whose zeroes are given by
<math display="block">\textstyle z_0=\frac{\sqrt{5}-1}{2},\qquad\qquad z_1=1,\qquad\qquad z_2=-\frac{1+\sqrt{5}}{2}.</math>
<math display="block">\textstyle z_0=\frac{\sqrt{5}-1}{2},\qquad\qquad z_1=1,\qquad\qquad z_2=-\frac{1+\sqrt{5}}{2}.</math>
For each real root <math>z_i</math> with multiplicity 1, its fundamental solution is <math>c_i{\left(z_i\right)}^n</math>, and combining these fundamental solutions produces the general solution. Therefore,
For each real root <math>z_i</math> with multiplicity 1, its fundamental solution is <math>c_i{\left(z_i\right)}^n</math>, and combining these fundamental solutions produces the general solution. Therefore,

Revision as of 02:08, 14 February 2025

HYDRA PAGE REVAMP (WIP)

Unsolved problem:
Does Hydra run forever?

1RB3RB---3LA1RA_2LA3RA4LB0LB0LA (bbch)

Hydra is a BB(2,5) Cryptid. It simulates computing the terms of the sequence Hn+1=32Hn,H0=3, halting if and only if there exists a point in the sequence where the number of even terms up to that point exceeds twice the number of odd terms.

Analysis

Rules

Let C(a,b):=0<A20a3b20. Then, 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). By scaling and translating these rules we acquire the Hydra function that relates it to Antihydra.

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 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 031+(3/2)a1A>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 032+(3/2)a<B03b120. Another shift rule is required here:3s<Bs<B0sThis means the configuration becomes 0<B03+(3/2)a3b120 in 32a+2 steps, and 0<A203+(3/2)a3b120, 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 another 3a+12 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.

Trajectory

It takes 20 steps to reach the configuration C(3,0), and from there, the Collatz-like rules are repeatedly applied. Here are the first few iterations: 0A>020C(3,0)55C(6,2)133C(12,1)364C(21,0)856C(33,2)1938C(51,4) After 60 million rule steps, there are 29995836 even values of a and 30004165 odd values, giving a very high b value. However, this does not sufficiently prove that Hydra does not halt.

A probabilistic nonhalting argument

The trajectory of b values can be approximated by a random walk, where the walker can only move in step sizes +2 or -1 with equal probability, starting at position 0. The expected position of the walker after k steps is 12k, and it can be shown that the probability of the walker reaching position -1 from position n is (512)n+1.

Proof

Let P(n) denote the probability of the random walker reaching position 0 from position n. If the walker reaches position 0, it will do so either by first moving +2 with probability 12 or first moving -1 with probability 12. Therefore, the recurrence relation is P(n)=12P(n+2)+12P(n1) for n1. Bringing all terms with P to the left side of the equation and then substituting nn+1 gives P(n+1)12P(n+3)12P(n)=0. This equation has the form i=0kaiP(n+i)=0, which can be solved using the zeroes of the characteristic polynomial f(z)=i=0kaizi. In this instance we get f(z)=12+z12z3, whose zeroes are given by z0=512,z1=1,z2=1+52. For each real root zi with multiplicity 1, its fundamental solution is ci(zi)n, and combining these fundamental solutions produces the general solution. Therefore, P(n)=c0(512)n+c1+c2(1+52)n The boundary condition limnP(n)=0 means c2=0 (since |1+52|>1) and c1=0, and the boundary condition P(0)=1 requires that c0=1.

Finally, we note that reaching position -1 from position n, the required condition for halting, is the same as reaching position 0 from position n+1, so we must increment n.

For these reasons, Hydra is considered to be a probviously nonhalting machine.