Lucy's Moonlight: Difference between revisions

From BusyBeaverWiki
Jump to navigation Jump to search
Add adjectives back in
MrSolis (talk | contribs)
"tetrational" is an ambiguous term (there is no single exponentiation rule like f(x)=2^x that is repeated to cause tetrational growth); edited wording in the Analysis section to clarify meaning, also reworked Trajectory section
Line 1: Line 1:
{{machine|1RB0RD_0RC1RE_1RD0LA_1LE1LC_1RF0LD_---0RA}}{{TM|1RB0RD_0RC1RE_1RD0LA_1LE1LC_1RF0LD_---0RA}}
{{machine|1RB0RD_0RC1RE_1RD0LA_1LE1LC_1RF0LD_---0RA}}{{TM|1RB0RD_0RC1RE_1RD0LA_1LE1LC_1RF0LD_---0RA}}


'''Lucy's Moonlight''' is a [[probviously]] halting tetrational [[BB(6)]] [[Cryptid]]. This [[Turing machine]] was first mentioned [https://discord.com/channels/960643023006490684/1239205785913790465/1345551751016878272 on Discord] by Racheline on 1 Mar 2025, who afterward found a set of [https://discord.com/channels/960643023006490684/1345810396136865822/1345820781363597312 high-level rules] describing it. Shawn Ligocki later discovered and [https://discord.com/channels/960643023006490684/1345810396136865822/1346329322851401868 shared] a more refined set of rules, displayed below.
'''Lucy's Moonlight''' is a [[BB(6)]] [[Cryptid]]. This [[Turing machine]] was first mentioned [https://discord.com/channels/960643023006490684/1239205785913790465/1345551751016878272 on Discord] by Racheline on 1 Mar 2025, who afterward found a set of [https://discord.com/channels/960643023006490684/1345810396136865822/1345820781363597312 high-level rules] describing it. Shawn Ligocki later discovered and [https://discord.com/channels/960643023006490684/1345810396136865822/1346329322851401868 shared] a more refined set of rules, displayed below.
<div style="width: fit-content; text-align: center; margin-left: auto; margin-right: auto;">
<div style="width: fit-content; text-align: center; margin-left: auto; margin-right: auto;">
{|class="wikitable" style="margin-left: auto; margin-right: auto;"
{|class="wikitable" style="margin-left: auto; margin-right: auto;"
Line 62: Line 62:
*<math display="inline">M_g(n)=\min\{k\in\mathbb{N}:g^{k}(n)\equiv0\ (\operatorname{mod}3)\}</math> (the amount of times <math>g(n)</math> must be applied to reach a multiple of 3)
*<math display="inline">M_g(n)=\min\{k\in\mathbb{N}:g^{k}(n)\equiv0\ (\operatorname{mod}3)\}</math> (the amount of times <math>g(n)</math> must be applied to reach a multiple of 3)
*<math>q(n)=f^{M_f(n)}(8)</math>
*<math>q(n)=f^{M_f(n)}(8)</math>
The sequence of values for which as long as Lucy's Moonlight does not halt, we get configurations of the form <math>C(k,8)</math>, denoted <math>c_n</math>, can be written as:
Using these functions, we can recursively describe a sequence that grows tetrationally, denoted <math>c_n</math>:
<math display="block">\textstyle c_0=0,\qquad c_{n+1}=(c_n-S(M_f(c_n)-1))\times\frac{2q(c_n)+8}{3}+(1-c_n+S(M_f(c_n)-1))\times\frac{2}{3}g^{M_g(q(c_n))}(q(c_n)).</math>
<math display="block">\textstyle c_0=0,\qquad c_{n+1}=(c_n-S(M_f(c_n)-1))\times\frac{2q(c_n)+8}{3}+(1-c_n+S(M_f(c_n)-1))\times\frac{2}{3}g^{M_g(q(c_n))}(q(c_n)).</math>
Lucy's Moonlight halts if and only if there exists a <math>c\in c_n</math> such that <math>c-S(M_f(c)-1)=1</math> and <math>q(c_n)\equiv1\ (\operatorname{mod}3)</math>.
In effect, Lucy's Moonlight iterates through <math>c_n</math> one by one. For each <math>c\in c_n</math>, it reaches the configuration <math>C(c,8)</math> and tests whether <math>c-S(M_f(c)-1)=1</math> and <math>q(c_n)\equiv1\ (\operatorname{mod}3)</math>. If so, then Lucy's Moonlight will halt; otherwise, it moves on to the next term in <math>c_n</math>.
==Trajectory==
==Trajectory==
Starting with <math>C(0,0)</math> after two steps, Lucy's Moonlight repeatedly applies the [[Collatz-like]] rules. The first few steps are shown below:
Starting with <math>C(0,0)</math> after two steps, Lucy's Moonlight repeatedly applies the [[Collatz-like]] rules. The first few steps are shown below:
<math display="block">\begin{array}{|l|}\hline C(0,0)\xrightarrow{52}C(0,8)\xrightarrow{182}C(0,21)\xrightarrow{843}C(14,8)\xrightarrow{434}C(12,38)\xrightarrow{3124}C(10,118)\xrightarrow{21358}C(8,328)\rightarrow\cdots\\\hline\end{array}</math>
<math display="block">\begin{array}{|l|}\hline C(0,0)\xrightarrow{52}C(0,8)\xrightarrow{182}C(0,21)\xrightarrow{843}C(14,8)\xrightarrow{434}C(12,38)\xrightarrow{3124}C(10,118)\xrightarrow{21358}C(8,328)\rightarrow\cdots\\\hline\end{array}</math>
From <math>C(0,0)</math>, it takes 11 rule steps to get <math>C(11292,8)</math> and 6811 more to get <math>C(c_3,8)</math>, where <math>c_3\approx 8.282\times10^{2901}</math>. Because <math>c_n</math> grows tetrationally, analysis of <math>f^i(n)</math> and <math>g^i(n)</math> is critical to understanding the nature of any additional terms of this sequence. Despite this, Lucy's Moonlight can be argued to [[probviously]] halt if one considers each instance of <math>C(k,8)</math> as the beginning of an independent round of a luck-based game, detailed below:
From <math>C(0,0)</math>, it takes 11 rule steps to get <math>C(11292,8)</math> and 6811 more to get <math>C(c_3,8)</math>, where <math>c_3\approx 8.282\times10^{2901}</math>. Despite this rapid growth, Lucy's Moonlight appears to be [[probviously]] halting if one considers each instance of <math>C(c,8)</math> as the beginning of an independent round of a luck-based game, detailed below:
#A random large number <math>n</math> is generated.
#A large number <math>n</math> is generated randomly.
#At each time unit, <math>n</math> will decrease by 1 with probability <math display="inline">\frac{1}{3}</math> or decrease by 2 with probability <math display="inline">\frac{2}{3}</math>. This step repeats as long as <math>n\ge2</math>.
#At each time unit, <math>n</math> will decrease by 1 with probability <math display="inline">\frac{1}{3}</math> or decrease by 2 with probability <math display="inline">\frac{2}{3}</math> provided that <math>n\ge2</math>.
#If <math>n=1</math>, then <math>n</math> will decrease to 0, the game is won, or a new round begins, each with probability <math display="inline>\frac{1}{3}</math>.
#If <math>n=1</math>, then <math>n</math> will decrease to 0, the game is won, or a new round begins, each with probability <math display="inline>\frac{1}{3}</math>.
#If <math>n=0</math>, then a new round begins.
#If <math>n=0</math>, then a new round begins.
If <math>P(n)</math> is the probability of winning a round with starting value <math>n</math>, then <math display="inline">P(n)=\frac{1}{3}P(n-1)+\frac{2}{3}P(n-2)</math> if <math>n\ge2</math>. This is a recurrence relation whose general solution is <math display="inline">P(n)=c_0+c_1{\Big({-\frac{2}{3}}\Big)}^n</math>. The boundary conditions <math>P(0)=0</math> and <math display="inline">P(1)=\frac{1}{3}</math> enable us to obtain <math display="inline">c_0=\frac{1}{5}</math> and <math display="inline">c_1=-\frac{1}{5}</math>. Since <math display="inline">\left\vert {-\frac{2}{3}}\right\vert <1</math>, <math display="inline">P(n)\approx\frac{1}{5}</math> for large <math>n</math>, so the probability of winning the game in <math>r</math> rounds is approximately <math display="inline">1-\Big(\frac{4}{5}\Big)^r</math>. Because there is an unlimited number of rounds available, the game will almost surely be won eventually, so Lucy's Moonlight will almost surely halt.
The probability of winning a round with starting value <math>n</math>, denoted <math>P(n)</math>, is described for <math>n\ge2</math> by the recurrence relation <math display="inline">P(n)=\frac{1}{3}P(n-1)+\frac{2}{3}P(n-2)</math>. The general solution to this equation is <math display="inline">P(n)=c_0+c_1{\Big({-\frac{2}{3}}\Big)}^n</math>, and by using the conditions <math>P(0)=0</math> and <math display="inline">P(1)=\frac{1}{3}</math> we get <math display="inline">P(n)=\frac{1}{5}\Big(1-{\Big({-\frac{2}{3}}\Big)}^n\Big)</math>. This approximately equals <math display="inline">\frac{1}{5}</math> for large <math>n</math>, so the probability of winning the game in <math>r</math> rounds is approximately <math display="inline">1-\Big(\frac{4}{5}\Big)^r</math>, which approaches 1 as <math>r</math> increases.
[[Category:Cryptids]]
[[Category:Cryptids]]

Revision as of 22:12, 21 April 2025

1RB0RD_0RC1RE_1RD0LA_1LE1LC_1RF0LD_---0RA (bbch)

Lucy's Moonlight is a BB(6) Cryptid. This Turing machine was first mentioned on Discord by Racheline on 1 Mar 2025, who afterward found a set of high-level rules describing it. Shawn Ligocki later discovered and shared a more refined set of rules, displayed below.

0 1
A 1RB 0RD
B 0RC 1RE
C 1RD 0LA
D 1LE 1LC
E 1RF 0LD
F --- 0RA
The transition table of Lucy's Moonlight.

Analysis

Let C(a,b):=01011a1b10C>0. Then, C(a+1,3b)12b2+53b+28C(a,8b+6),C(a+2,3b+1)12b2+77b+103C(a,8b+16),C(a+2,3b+2)12b2+101b+184C(a,8b+22),C(0,3b)12b2+29b+52C(2b,8),C(0,3b+1)12b2+53b+30C(0,8b+5),C(1,3b+1)12b2+53b+58010112b+41F>0,C(0,3b+2)12b2+53b+28C(0,8b+5),C(1,3b+2)12b2+77b+160C(2b+4,8).

Proof

Consider the partial configuration P(m,n):=1m10nC>0, which after three steps is 1m10n<D010. To advance, this shift rule is required: 10s<D2s<D01s This means we have 1m<D01n+10 after 2n steps, with 1m30D>01n+20 after three further steps. From here, we can use the fact that 0D>01s becomes 100D>01s1 in four steps if s1 to get this rule: 0D>01s4s10s0D> Using this rule produces 1m310n+20D>0 in 4n+8 steps. With five more steps, we get 1m310n+4C>0, which is also P(m3,n+4). To summarize: P(m,n)6n+19P(m3,n+4) if m3. With C(a,b) we have P(b,1) and are able to apply this rule b3 times, with three possible scenarios:

  1. If b0 (mod3), then in i=0b/31(6(1+4i)+19)=43b2+133b steps we arrive at P(0,1+4b3). The matching complete configuration is 01011a101+4b/3C>0. In 83b+5 steps we have 01011a<D012+4b/30, followed by 01011a111B>013+4b/30 after three steps. We note that if s2, then B>01s becomes 11B>01s1 in 8 steps, giving this transition rule:B>01s8s412s10C> if s1.In this instance, the result is 01011a117+8b/30C>0, equal to C(a1,83b+6), after 323b+20 steps. This gives a total of 43b2+533b+28 steps.
  2. We can rewrite C(a,b) as 01011a1101b+210C>0 if a1. Given this, we have P(b+2,1), and if b1 (mod3), then in 43b2+293b+14 steps we arrive at 01011a110(4b+14)/3C>0, which in 8b+373 steps becomes 01011a1<D01(4b+17)/30, and then 01011a211B>01(4b+20)/30 after three more steps. We end with 32b+1483 steps to get 01011a21(8b+43)/30C>0, equal to C(a2,8b+403). This gives a total of 43b2+23b+2363 steps.
  3. If b2 (mod3) and we reuse the technique of rewriting C(a,b), then in 43b2+7b+173 steps we arrive at 01011a110110(4b+7)/3C>0, which in 8b+233 steps becomes 01011a1101<D01(4b+10)/30, and then in five steps, 01011a10D>01(4b+13)/30. Adding 16b+523 steps gives us 01011a110(4b+13)/30D>0, and another eight gives us 01011a110(4b+19)/3<D010. After 8b+383 steps, the configuration is 01011a1<D01(4b+22)/30 and after three more, 01011a211B>01(4b+25)/30. We conclude with 01011a21(8b+53)/30C>0, equal to C(a2,8b+503), after 32b+1883 steps, for a total of 43b2+853b+122 steps.

The behaviour of Lucy's Moonlight changes at the boundary conditions: a=0 or a=1. These changes are addressed below:

  1. If a=0 and b0 (mod3), then starting from 0<D012+4b/30, we take three steps to get 010A>012+4b/30. It is here that another shift rule must come into use:A>012s4s1110sA>Upon using this shift rule, we get 01011101+2b/3A>0 in 83b+4 steps. This configuration is the same as 010111+2b/310A>0. With 40 more steps, we end at 010112b/3190C>0, equal to C(23b,8), for a total of 43b2+293b+52 steps.
  2. If a=0 and b1 (mod3), then in 43b2+53b3 steps we arrive at 0110(4b1)/3C>0. With 8b+73 more steps we now have 01<D01(4b+2)/30. Given five steps, the result is 01B>01(4b+5)/30, which turns into 01(8b+10)/30C>0, equal to C(0,8b+73) in 32b+283 steps for a total of 43b2+15b+413 steps.
  3. If a=1 and b1 (mod3), then starting from 0<D01(4b+17)/30, we get 010A>01(4b+17)/30 in three steps. Since 01(4b+17)/3 and 01(4b+14)/301 are the same, what follows is 01011(2b+7)/310A>010 in 8b+283 steps before finally reaching 01011(2b+10)/31F>0, and therefore the undefined F0 transition, in three steps. This gives a total of 43b2+15b+1253 steps.
  4. If a=0 and b2 (mod3), then in 43b2b103 steps we arrive at 01110(4x5)/3C>0. It takes a further 8b13 steps to reach 011<D01(4b2)/30, and adding three more gives us 01B>01(4b+1)/30. With 32b43 more steps we end up with 01(8b+2)/30C>0, equal to C(0,8b13). This gives a total of 43b2+373b2 steps.
  5. If a=1 and b2 (mod3), then starting from 0<D01(4b+22)/30, we take three steps to get 010A>01(4b+22)/30, and taking 8b+443 more steps produces 01011(2b+11)/310A>0. After 40 steps, we reach 01011(2b+8)/3190C>0, which is C(2b+83,8), for a total of 43b2+613b+114 steps.

The information above can be summarized as C(a,b){C(a1,83b+6)if a1 and b0(mod3),C(a2,8b+403)if a2 and b1(mod3),C(a2,8b+503)if a2 and b2(mod3),C(23b,8)if a=0 and b0(mod3),C(0,8b+73)if a=0 and b1(mod3),01011(2b+10)/31F>0if a=1 and b1(mod3),C(0,8b13)if a=0 and b2(mod3),C(2b+83,8)if a=1 and b2(mod3). Substituting b=3b+k, where k is the remainder of b modulo 3, yields the final result.

We can define these functions:

  • f(n)=10n+618n34n+13 (the movement of b according to the first three rules)
  • S(n)=i=0n(1+fi(8)+13fi(8)/32) (which imitates a decreasing, with fi(n) representing function iteration)
  • Mf(n)=min{k:(fk(8)0 (mod3)S(k1)=n)(fk(8)≢0 (mod3)S(k1)n1)} (the number of iterations of f(n) needed to reach a boundary condition)
  • g(n)=8n13+5 (representing rules 5 and 7)
  • Mg(n)=min{k:gk(n)0 (mod3)} (the amount of times g(n) must be applied to reach a multiple of 3)
  • q(n)=fMf(n)(8)

Using these functions, we can recursively describe a sequence that grows tetrationally, denoted cn: c0=0,cn+1=(cnS(Mf(cn)1))×2q(cn)+83+(1cn+S(Mf(cn)1))×23gMg(q(cn))(q(cn)). In effect, Lucy's Moonlight iterates through cn one by one. For each ccn, it reaches the configuration C(c,8) and tests whether cS(Mf(c)1)=1 and q(cn)1 (mod3). If so, then Lucy's Moonlight will halt; otherwise, it moves on to the next term in cn.

Trajectory

Starting with C(0,0) after two steps, Lucy's Moonlight repeatedly applies the Collatz-like rules. The first few steps are shown below: C(0,0)52C(0,8)182C(0,21)843C(14,8)434C(12,38)3124C(10,118)21358C(8,328) From C(0,0), it takes 11 rule steps to get C(11292,8) and 6811 more to get C(c3,8), where c38.282×102901. Despite this rapid growth, Lucy's Moonlight appears to be probviously halting if one considers each instance of C(c,8) as the beginning of an independent round of a luck-based game, detailed below:

  1. A large number n is generated randomly.
  2. At each time unit, n will decrease by 1 with probability 13 or decrease by 2 with probability 23 provided that n2.
  3. If n=1, then n will decrease to 0, the game is won, or a new round begins, each with probability 13.
  4. If n=0, then a new round begins.

The probability of winning a round with starting value n, denoted P(n), is described for n2 by the recurrence relation P(n)=13P(n1)+23P(n2). The general solution to this equation is P(n)=c0+c1(23)n, and by using the conditions P(0)=0 and P(1)=13 we get P(n)=15(1(23)n). This approximately equals 15 for large n, so the probability of winning the game in r rounds is approximately 1(45)r, which approaches 1 as r increases.