Lucy's Moonlight

From BusyBeaverWiki
Revision as of 22:12, 21 April 2025 by 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)
Jump to navigation Jump to search

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.