Register machine: Difference between revisions
reference to unknown or undefined function |
woaaaah cryptids!!! |
||
| Line 58: | Line 58: | ||
== Analysis == | == Analysis == | ||
MBB(7): | MBB(7): | ||
<pre>Let A(x) = A:[x, 0] | <pre> | ||
Let A(x) = A:[x, 0] | |||
A(2x) -> 9x+20 -> A(3x+4) | A(2x) -> 9x+20 -> A(3x+4) | ||
A(2x+1) -> 9x+27 -> halt | A(2x+1) -> 9x+27 -> halt | ||
A(0) -> 20 -> A(4) -> 38 -> A(10) -> 65 -> A(19) -> 108 -> halt</pre> | A(0) -> 20 -> A(4) -> 38 -> A(10) -> 65 -> A(19) -> 108 -> halt | ||
</pre> | |||
MBB(8): | MBB(8): | ||
<pre> | |||
Let S(z) = F:[0, 2z+1, z] | |||
S(2k) -> 44k+19 -> S(5k+2) | |||
S(2k+1) -> 4k+2 -> halt | |||
A:[0, 0, 0] -> 44 -> S(4) -> 107 -> S(12) -> 283 -> S(32) -> 723 -> S(82) -> 1823 -> S(207) -> 414 -> halt | |||
</pre> | |||
MBB(9): | MBB(9): | ||
<pre> | <pre> | ||
Let A(x, y) = D:[x, 0, y] | Let A(x, y) = D:[x, 0, y] | ||
A(2k, y) --(7k + 6)--> A(3k + 3, y + 1] | |||
A(2k, y) | A(2k + 1, y + 1) --(7k + 5)--> A(3k + 1, y) | ||
A(2k + 1, y + 1) | A(2k + 1, 0) --(3k + 3)--> *:[0, k, 0] | ||
A(2k + 1, 0) | |||
A:[0, 0, 0] | A:[0, 0, 0] | ||
--(3)--> A(2, 0) | |||
--(13)--> A(6, 1) | |||
--(27)--> A(12, 2) | |||
... | ... | ||
--(2753550047052785432549)--> A(1180092877308336613950, 31) | |||
--(4130325070579178148831)--> A(1770139315962504920928, 32) | |||
--(6195487605868767223254)--> A(2655208973943757381395, 33) | |||
... | ... | ||
--(123361440505394191838159894807429323394336791980165278392551786831696080997)--> A(52869188788026082216354240631755424311858625134356547882522194356441177569, 0) | |||
--(79303783182039123324531360947633136467787937701534821823783291534661766355)--> *[0, 26434594394013041108177120315877712155929312567178273941261097178220588784, 0] | |||
MBB(9) ≥ 449388104698221698839011045369921106650798313642030657001438652029750007257 | |||
MBB(9) ≥ 449388104698221698839011045369921106650798313642030657001438652029750007257</pre> | </pre> | ||
MBB(10): | |||
<pre> | |||
Let A(x) = H:[0, 0, x] | |||
A(3k) --> A(2^(k + 3) - 3) | A(3k) --> A(2^(k + 3) - 3) | ||
A(3k + 1) --> A(2^(k + 3) - 4) | A(3k + 1) --> A(2^(k + 3) - 4) | ||
| Line 104: | Line 110: | ||
--> A(2^((2^44 + 5) / 3) - 3) | --> A(2^((2^44 + 5) / 3) - 3) | ||
--> *:[2^((2^((2^44 + 5) / 3) + 4) / 3) - 4, 0, 0] | --> *:[2^((2^((2^44 + 5) / 3) + 4) / 3) - 4, 0, 0] | ||
MBB(10) > 10^10^10^12.2</pre> | MBB(10) > 10^10^10^12.2 | ||
</pre> | |||
== Cryptids == | == Cryptids == | ||
Through the exaustive search of the MBB(8) domain, 2 [[cryptids]] have been found: <code>0+B_1+C_2-AD_1-EH_2+F_1-DG_0-EB_2-C*</code>, and <code>0+B_1-FC_2-GD_0-EF_1+C_2+A_2-EH_1-B*</code>, which may each be interpreted in the following ways: | |||
<pre> | |||
0+B_1+C_2-AD_1-EH_2+F_1-DG_0-EB_2-C* | |||
Let A(x, y) = D:[x, y, 0] | |||
A(x, 0) --(2)--> *:[x, 0, 0] | |||
A(x, 2k + 1) --(6k + 6y + 9)--> A(x + k + 1, x + k + 2) | |||
A(x, 2k + 2) --(6y + 6)--> A(x + k, k) | |||
A:[0, 0, 0] --(3)--> A(1, 1) | |||
Needle rules: | |||
Let C(x + 3) = A(x, x + 1) = D:[x, x + 1, 0]. | |||
Let a and b be non-negative integers satisfying x = (2a + 1) * 2^b. | |||
C(x) --> C(2x - a - 2b - 1) if a > 0 | |||
C(x) --> *:[2x - 2b - 3, 0, 0] if a = 0 | |||
START: C(5) | |||
</pre> | |||
<pre> | |||
0+B_1-FC_2-GD_0-EF_1+C_2+A_2-EH_1-B* | |||
Let A(x, y) = C:[x, 0, y] | |||
A(x, 2k) --(6x + 6k + 5)--> A(x + k + 1, x + k + 1) | |||
A(x, 2k + 3) --(6k + 7)--> A(x + k, k) | |||
A(x, 1) --(3)--> *:[x, 0, 0] | |||
A:[0, 0, 0] --(2)--> A(1, 0) | |||
Needle rules: | |||
Let C(x + 3) = A(x, x) = C:[x, 0, x]. | |||
Let a and b be non-negative integers satisfying x = (2a + 1) * 2^b. | |||
C(x) --> C(2x - a - 3b - 1) if a > 0 | |||
C(x) --> *:[2x - 3b - 1, 0, 0] if a = 0 | |||
START: C(5) | |||
</pre> | |||
They are similar to the [[BB(6)]] cryptid [[Space Needle]], which is also the [[Beaver Math Olympiad#Unsolved problems|BMO's 6th problem]]. | |||
Prior to this discovery, [[Hydra]] was hand coded into a 10-instruction, 3-register Minsky machine: <code>0-BF_1+C_1+D_0-EH_1+A_2+G_2+I_2-I*_0+J_1-IA</code> which can be interpreted the following way:<sup>[https://discord.com/channels/960643023006490684/1243312334907375676/1446694179337011325]</sup> | |||
<pre> | |||
Let S(h,w) = A:[h-3,0,w] | |||
Start: A:[0,0,0] = S(3,0) | |||
S(2k,0) = A:[2k-3,0,0] -> Halt | |||
S(2k,w+1) = A:[2k-3,0,w+1] -> A:[3k-3,0,w] = S(3k,w) | |||
S(2k+1,w) = A:[2k-2,0,w] -> A:[3k-2,0,w+2] = S(3k+1,w+2) | |||
</pre> | |||
[[Category:functions]] | [[Category:functions]] | ||
Revision as of 11:38, 3 October 2026
Register machines, also known as Minsky machines, are a Turing-complete model of computation.
Register machines contain a set of instructions and a set of registers. The instructions are labelled A, B, C, and so on. The registers are numbered 0, 1, 2, and so on. There are 2 types of instructions:
- inc(c, n) adds 1 to the register c then jumps to instruction n.
- dec(c, n, m) jumps to instruction m if register c equals 0, else subtract 1 to the register c then jump to instruction n.
The program halts if it reaches an undefined instruction. Here we label an undefined instruction with *.
Register Busy Beaver
The Register Busy Beaver function, denoted MBB(n,r), returns the maximum number of instructions executed by a register machine with n instructions and r registers when started in instruction A and all registers initialized to 0. MBB(n) = MBB(n,n) (unlimited registers).
| Domain | Halting Time | Champion |
|---|---|---|
| MBB(1) | 1 | 0+*
|
| MBB(2) | 3 | 0+B_0-B*
|
| MBB(3) | 5 | 0+B_0+C_0-C*
|
| MBB(4) | 10 | 0+B_1+C_0-BD_1-C*
|
| MBB(5) | 24 | 0-DB_0+C_1-ED_1+A_1-B*
|
| MBB(6) | 49 | 0+B_1-FC_1+D_0-CE_0+A_1-A*
|
| MBB(7) | ≥ 231 | 0+B_0+C_0+D_1-GE_1+F_0-EC_1-A*
|
| MBB(8) | ≥ 3,394 | 0+B_0+C_1-GD_1+E_0-DF_2-HG_2+A_2-D*
|
| MBB(9) | > 4.493 × 1074 | 0+B_0+C_1-HD_0-EG_0-FI_1+D_2+H_0+A_2-B*
|
| MBB(10) | > 10101012.2 | 0-HB_0+C_0+D_1-BE_2-IF_2+G_0-FH_1+A_2-JG_2-H*
|
Analysis
MBB(7):
Let A(x) = A:[x, 0] A(2x) -> 9x+20 -> A(3x+4) A(2x+1) -> 9x+27 -> halt A(0) -> 20 -> A(4) -> 38 -> A(10) -> 65 -> A(19) -> 108 -> halt
MBB(8):
Let S(z) = F:[0, 2z+1, z] S(2k) -> 44k+19 -> S(5k+2) S(2k+1) -> 4k+2 -> halt A:[0, 0, 0] -> 44 -> S(4) -> 107 -> S(12) -> 283 -> S(32) -> 723 -> S(82) -> 1823 -> S(207) -> 414 -> halt
MBB(9):
Let A(x, y) = D:[x, 0, y] A(2k, y) --(7k + 6)--> A(3k + 3, y + 1] A(2k + 1, y + 1) --(7k + 5)--> A(3k + 1, y) A(2k + 1, 0) --(3k + 3)--> *:[0, k, 0] A:[0, 0, 0] --(3)--> A(2, 0) --(13)--> A(6, 1) --(27)--> A(12, 2) ... --(2753550047052785432549)--> A(1180092877308336613950, 31) --(4130325070579178148831)--> A(1770139315962504920928, 32) --(6195487605868767223254)--> A(2655208973943757381395, 33) ... --(123361440505394191838159894807429323394336791980165278392551786831696080997)--> A(52869188788026082216354240631755424311858625134356547882522194356441177569, 0) --(79303783182039123324531360947633136467787937701534821823783291534661766355)--> *[0, 26434594394013041108177120315877712155929312567178273941261097178220588784, 0] MBB(9) ≥ 449388104698221698839011045369921106650798313642030657001438652029750007257
MBB(10):
Let A(x) = H:[0, 0, x] A(3k) --> A(2^(k + 3) - 3) A(3k + 1) --> A(2^(k + 3) - 4) A(3k + 2) --> *:[2^(k + 3) - 4, 0, 0] A:[0, 0, 0] --(11)--> A(3) --> A(13) --> A(124) --> A(2^44 - 4) --> A(2^((2^44 + 5) / 3) - 3) --> *:[2^((2^((2^44 + 5) / 3) + 4) / 3) - 4, 0, 0] MBB(10) > 10^10^10^12.2
Cryptids
Through the exaustive search of the MBB(8) domain, 2 cryptids have been found: 0+B_1+C_2-AD_1-EH_2+F_1-DG_0-EB_2-C*, and 0+B_1-FC_2-GD_0-EF_1+C_2+A_2-EH_1-B*, which may each be interpreted in the following ways:
0+B_1+C_2-AD_1-EH_2+F_1-DG_0-EB_2-C* Let A(x, y) = D:[x, y, 0] A(x, 0) --(2)--> *:[x, 0, 0] A(x, 2k + 1) --(6k + 6y + 9)--> A(x + k + 1, x + k + 2) A(x, 2k + 2) --(6y + 6)--> A(x + k, k) A:[0, 0, 0] --(3)--> A(1, 1) Needle rules: Let C(x + 3) = A(x, x + 1) = D:[x, x + 1, 0]. Let a and b be non-negative integers satisfying x = (2a + 1) * 2^b. C(x) --> C(2x - a - 2b - 1) if a > 0 C(x) --> *:[2x - 2b - 3, 0, 0] if a = 0 START: C(5)
0+B_1-FC_2-GD_0-EF_1+C_2+A_2-EH_1-B* Let A(x, y) = C:[x, 0, y] A(x, 2k) --(6x + 6k + 5)--> A(x + k + 1, x + k + 1) A(x, 2k + 3) --(6k + 7)--> A(x + k, k) A(x, 1) --(3)--> *:[x, 0, 0] A:[0, 0, 0] --(2)--> A(1, 0) Needle rules: Let C(x + 3) = A(x, x) = C:[x, 0, x]. Let a and b be non-negative integers satisfying x = (2a + 1) * 2^b. C(x) --> C(2x - a - 3b - 1) if a > 0 C(x) --> *:[2x - 3b - 1, 0, 0] if a = 0 START: C(5)
They are similar to the BB(6) cryptid Space Needle, which is also the BMO's 6th problem.
Prior to this discovery, Hydra was hand coded into a 10-instruction, 3-register Minsky machine: 0-BF_1+C_1+D_0-EH_1+A_2+G_2+I_2-I*_0+J_1-IA which can be interpreted the following way:[1]
Let S(h,w) = A:[h-3,0,w] Start: A:[0,0,0] = S(3,0) S(2k,0) = A:[2k-3,0,0] -> Halt S(2k,w+1) = A:[2k-3,0,w+1] -> A:[3k-3,0,w] = S(3k,w) S(2k+1,w) = A:[2k-2,0,w] -> A:[3k-2,0,w+2] = S(3k+1,w+2)