<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.bbchallenge.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Mxdys</id>
	<title>BusyBeaverWiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.bbchallenge.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Mxdys"/>
	<link rel="alternate" type="text/html" href="https://wiki.bbchallenge.org/wiki/Special:Contributions/Mxdys"/>
	<updated>2026-04-30T19:12:46Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://wiki.bbchallenge.org/w/index.php?title=Beaver_Math_Olympiad&amp;diff=7099</id>
		<title>Beaver Math Olympiad</title>
		<link rel="alternate" type="text/html" href="https://wiki.bbchallenge.org/w/index.php?title=Beaver_Math_Olympiad&amp;diff=7099"/>
		<updated>2026-04-10T05:25:17Z</updated>

		<summary type="html">&lt;p&gt;Mxdys: /* 8. {{TM|1RB0LD_0RC0RF_0RD0RA_1LE0RD_1LF---_0LA1LA|undecided}} */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;Beaver Mathematical Olympiad&#039;&#039;&#039; (BMO) is an attempt to re-formulate the halting problem for some particular Turing machines as a mathematical problem in a style suitable for a hypothetical math olympiad. &lt;br /&gt;
&lt;br /&gt;
The purpose of the BMO is twofold. First, statements where non-essential details (related to tape encoding, number of steps, etc.) are discarded are more suitable to be shared with mathematicians who perhaps are able to help. Second, it&#039;s a way to jokingly highlight how a hard question could appear deceptively simple.&lt;br /&gt;
&lt;br /&gt;
== Unsolved problems ==&lt;br /&gt;
&lt;br /&gt;
=== 1. {{TM|1RB1RE_1LC0RA_0RD1LB_---1RC_1LF1RE_0LB0LE|undecided}} ===&lt;br /&gt;
&lt;br /&gt;
Let &amp;lt;math&amp;gt;(a_n)_{n \ge 1}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;(b_n)_{n \ge 1}&amp;lt;/math&amp;gt; be two sequences such that &amp;lt;math&amp;gt;(a_1, b_1) = (1, 2)&amp;lt;/math&amp;gt; and&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;(a_{n+1}, b_{n+1}) = \begin{cases}&lt;br /&gt;
(a_n-b_n, 4b_n+2) &amp;amp; \text{if }a_n \ge b_n \\&lt;br /&gt;
(2a_n+1, b_n-a_n) &amp;amp; \text{if }a_n &amp;lt; b_n&lt;br /&gt;
\end{cases}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
for all positive integers &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;. Does there exist a positive integer &amp;lt;math&amp;gt;i&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;a_i = b_i&amp;lt;/math&amp;gt;?&lt;br /&gt;
&lt;br /&gt;
The first 10 values of &amp;lt;math&amp;gt;(a_n, b_n)&amp;lt;/math&amp;gt; are &amp;lt;math&amp;gt;(1, 2), (3, 1), (2, 6), (5, 4), (1, 18), (3, 17), (7, 14), (15, 7), (8, 30), (17, 22)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== 2. [[Hydra]] and [[Antihydra]] ===&lt;br /&gt;
&lt;br /&gt;
Let &amp;lt;math&amp;gt;(a_n)_{n \ge 0}&amp;lt;/math&amp;gt; be a sequence such that &amp;lt;math&amp;gt;a_{n+1} = a_n+\left\lfloor\frac{a_n}{2}\right\rfloor&amp;lt;/math&amp;gt; for all non-negative integers &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
# If &amp;lt;math&amp;gt;a_0=3&amp;lt;/math&amp;gt;, does there exist a non-negative integer &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt; such that the list of numbers &amp;lt;math&amp;gt;a_0, a_1, a_2, \dots, a_k&amp;lt;/math&amp;gt; have more than twice as many even numbers as odd numbers? ([[Hydra]])&lt;br /&gt;
# If &amp;lt;math&amp;gt;a_0=8&amp;lt;/math&amp;gt;, does there exist a non-negative integer &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt; such that the list of numbers &amp;lt;math&amp;gt;a_0, a_1, a_2, \dots, a_k&amp;lt;/math&amp;gt; have more than twice as many odd numbers as even numbers? ([[Antihydra]])&lt;br /&gt;
&lt;br /&gt;
=== 5. {{TM|1RB0LD_1LC0RA_1RA1LB_1LA1LE_1RF0LC_---0RE|undecided}} ===&lt;br /&gt;
&lt;br /&gt;
Let &amp;lt;math&amp;gt;(a_n)_{n \ge 1}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;(b_n)_{n \ge 1}&amp;lt;/math&amp;gt; be two sequences such that &amp;lt;math&amp;gt;(a_1, b_1) = (0, 5)&amp;lt;/math&amp;gt; and&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;(a_{n+1}, b_{n+1}) = \begin{cases}&lt;br /&gt;
(a_n+1, b_n-f(a_n)) &amp;amp; \text{if } b_n \ge f(a_n) \\&lt;br /&gt;
(a_n, 3b_n+a_n+5) &amp;amp; \text{if } b_n &amp;lt; f(a_n)&lt;br /&gt;
\end{cases}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;f(x)=10\cdot 2^x-1&amp;lt;/math&amp;gt; for all non-negative integers &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
Does there exist a positive integer &amp;lt;math&amp;gt;i&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;b_i = f(a_i)-1&amp;lt;/math&amp;gt;?&lt;br /&gt;
&lt;br /&gt;
=== 6. {{TM|1RB1LA_1LC0RE_1LF1LD_0RB0LA_1RC1RE_---0LD|undecided}} ===&lt;br /&gt;
Let &amp;lt;math&amp;gt;f(b) = b + k + 3a&amp;lt;/math&amp;gt;, where &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; are non-negative integers satisfying &amp;lt;math&amp;gt;b = (2a+1)\cdot 2^k&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Now consider the iterated application of the function &amp;lt;math&amp;gt;f^{n+1}(b) = f(f^n(b))&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;f^0(b)=b&amp;lt;/math&amp;gt;. Does there exist a non-negative integer &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;f^n(6)&amp;lt;/math&amp;gt; equals a power of 2?&lt;br /&gt;
&lt;br /&gt;
=== 8. {{TM|1RB0LD_0RC0RF_0RD0RA_1LE0RD_1LF---_0LA1LA|undecided}} ===&lt;br /&gt;
&lt;br /&gt;
Let &amp;lt;math&amp;gt;(a_n)_{n \ge 1}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;(b_n)_{n \ge 1}&amp;lt;/math&amp;gt; be two sequences such that &amp;lt;math&amp;gt;(a_1, b_1) = (10, 12)&amp;lt;/math&amp;gt; and&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;(a_{n+1}, b_{n+1}) = \begin{cases}&lt;br /&gt;
(a_n-\lfloor\frac{b_n}{2}\rfloor-3, 3\lfloor\frac{b_n+1}{2}\rfloor+6) &amp;amp; \text{if }a_n &amp;gt; \lfloor\frac{b_n}{2}\rfloor \\&lt;br /&gt;
(3a_n+5, b_n-2a_n) &amp;amp; \text{if }a_n \le \lfloor\frac{b_n}{2}\rfloor&lt;br /&gt;
\end{cases}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
for all positive integers &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;. Does there exist a positive integer &amp;lt;math&amp;gt;i&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;a_n = \lfloor\frac{b_n}{2}\rfloor + 1&amp;lt;/math&amp;gt;?&lt;br /&gt;
&lt;br /&gt;
== Solved problems ==&lt;br /&gt;
&lt;br /&gt;
=== 3. {{TM|1RB0RB3LA4LA2RA_2LB3RA---3RA4RB|non-halt}} and {{TM|1RB1RB3LA4LA2RA_2LB3RA---3RA4RB|non-halt}} ===&lt;br /&gt;
&lt;br /&gt;
Let &amp;lt;math&amp;gt;v_2(n)&amp;lt;/math&amp;gt; be the largest integer &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;2^k&amp;lt;/math&amp;gt; divides &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;. Let &amp;lt;math&amp;gt;(a_n)_{n \ge 0}&amp;lt;/math&amp;gt; be a sequence such that&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;a_n = \begin{cases}&lt;br /&gt;
2 &amp;amp; \text{if } n=0 \\&lt;br /&gt;
a_{n-1}+2^{v_2(a_{n-1})+2}-1 &amp;amp; \text{if } n \ge 1&lt;br /&gt;
\end{cases}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
for all non-negative integers &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;. Is there an integer &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;a_n=4^k&amp;lt;/math&amp;gt; for some positive integer &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt;?&lt;br /&gt;
&lt;br /&gt;
Link to Discord discussion: https://discord.com/channels/960643023006490684/1084047886494470185/1252634913220591728&lt;br /&gt;
&lt;br /&gt;
Formalised solution: [https://discord.com/channels/960643023006490684/1259770421046411285/1488737894943166604 Initial announcement], [https://discord.com/channels/960643023006490684/1259770421046411285/1488743526882738276 Lean proof], [https://discord.com/channels/960643023006490684/1259770421046411285/1488781537699696821 LLM-translated Rocq proof], [https://discord.com/channels/960643023006490684/1259770421046411285/1488898995865784442 Proof of closure of existing mid-level rules].&lt;br /&gt;
&lt;br /&gt;
=== 4. {{TM|1RB3RB---1LB0LA_2LA4RA3LA4RB1LB|non-halt}} ===&lt;br /&gt;
&lt;br /&gt;
Bonnie the beaver was bored, so she tried to construct a sequence of integers &amp;lt;math&amp;gt;\{a_n\}_{n \ge 0}&amp;lt;/math&amp;gt;. She first defined &amp;lt;math&amp;gt;a_0=2&amp;lt;/math&amp;gt;, then defined &amp;lt;math&amp;gt;a_{n+1}&amp;lt;/math&amp;gt; depending on &amp;lt;math&amp;gt;a_n&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; using the following rules:&lt;br /&gt;
&lt;br /&gt;
* If &amp;lt;math&amp;gt;a_n \equiv 0\text{ (mod 3)}&amp;lt;/math&amp;gt;, then &amp;lt;math&amp;gt;a_{n+1}=\frac{a_n}{3}+2^n+1&amp;lt;/math&amp;gt;.&lt;br /&gt;
* If &amp;lt;math&amp;gt;a_n \equiv 2\text{ (mod 3)}&amp;lt;/math&amp;gt;, then &amp;lt;math&amp;gt;a_{n+1}=\frac{a_n-2}{3}+2^n-1&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
With these two rules alone, Bonnie calculates the first few terms in the sequence: &amp;lt;math&amp;gt;2, 0, 3, 6, 11, 18, 39, 78, 155, 306, \dots&amp;lt;/math&amp;gt;. At this point, Bonnie plans to continue writing terms until a term becomes &amp;lt;math&amp;gt;1\text{ (mod 3)}&amp;lt;/math&amp;gt;. If Bonnie sticks to her plan, will she ever finish?&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;toccolours mw-collapsible mw-collapsed&amp;quot;&amp;gt;&#039;&#039;&#039;Solution&#039;&#039;&#039;&amp;lt;div class=&amp;quot;mw-collapsible-content&amp;quot;&amp;gt;&lt;br /&gt;
How to guess the closed-form solution: Firstly, notice that &amp;lt;math&amp;gt;a_n \approx \frac{3}{5} \times 2^n&amp;lt;/math&amp;gt;. Secondly, calculate the error term &amp;lt;math&amp;gt;a_n - \frac{3}{5} \times 2^n&amp;lt;/math&amp;gt;. The error term appears to have a period of 4. This leads to the following guess:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;a_n=\frac{3}{5}\begin{cases}&lt;br /&gt;
2^n+\frac{7}{3} &amp;amp;\text{if } n\equiv 0 \pmod{4}\\&lt;br /&gt;
2^n-2 &amp;amp;\text{if } n\equiv 1 \pmod{4}\\&lt;br /&gt;
2^n+1 &amp;amp;\text{if } n\equiv 2 \pmod{4}\\&lt;br /&gt;
2^n+2 &amp;amp;\text{if } n\equiv 3 \pmod{4}&lt;br /&gt;
\end{cases}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This closed-form solution can be proven correct by induction. Unfortunately, the induction may require a lot of tedious calculations.&lt;br /&gt;
&lt;br /&gt;
For all &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt;, we have &amp;lt;math&amp;gt;a_{4k} \equiv 2\text{ (mod 3)}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;a_{4k+1} \equiv a_{4k+2} \equiv a_{4k+3} \equiv 0\text{ (mod 3)}&amp;lt;/math&amp;gt;. Therefore, Bonnie will never finish.&lt;br /&gt;
&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== 7. {{TM|1RB1RF_1RC0RA_1LD1RC_1LE0LE_0RA0LD_0RB---|non-halt}} ===&lt;br /&gt;
Let &amp;lt;math&amp;gt;v_2(n)&amp;lt;/math&amp;gt; be the largest integer &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;2^k&amp;lt;/math&amp;gt; divides &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Let &amp;lt;math&amp;gt;f(n) = n+1+(v_2(n+1) \bmod 2)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Now consider the iterated application of the function &amp;lt;math&amp;gt;f^{n+1}(b) = f(f^n(b)))&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;f^0(b)=b&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Let &amp;lt;math&amp;gt;(a_n)_{n \ge 0}&amp;lt;/math&amp;gt; be a sequence such that &amp;lt;math&amp;gt;a_0=1&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;a_{n+1} = f^{n+2}\left(\left\lfloor\frac{a_n}{2}\right\rfloor\right)&amp;lt;/math&amp;gt; for all non-negative integers &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Does there exist a non-negative integer &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;a_k&amp;lt;/math&amp;gt; is even?&lt;br /&gt;
&lt;br /&gt;
(for simplicity, this question is slightly stronger than the halting problem of this TM)&lt;br /&gt;
&lt;br /&gt;
Link to Discord discussion: https://discord.com/channels/960643023006490684/1421782442213376000/1431483206208852001&lt;br /&gt;
&lt;br /&gt;
== Practice Problems ==&lt;br /&gt;
Problems that are not BMO-level, but provide counter-examples to certain [[probvious]] intuition:&lt;br /&gt;
&lt;br /&gt;
* {{TM|1RB0LE_1LC1RA_---1LD_0RB1LF_1RD1LA_0LA0RD}}&lt;br /&gt;
* {{TM|1RB0RD_0LC1RA_0RA1LB_1RE1LB_1LF1LB_---1LE}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Individual machines]]&lt;/div&gt;</summary>
		<author><name>Mxdys</name></author>
	</entry>
	<entry>
		<id>https://wiki.bbchallenge.org/w/index.php?title=Beaver_Math_Olympiad&amp;diff=7098</id>
		<title>Beaver Math Olympiad</title>
		<link rel="alternate" type="text/html" href="https://wiki.bbchallenge.org/w/index.php?title=Beaver_Math_Olympiad&amp;diff=7098"/>
		<updated>2026-04-10T05:21:07Z</updated>

		<summary type="html">&lt;p&gt;Mxdys: /* 8. {{TM|1RB0LD_0RC0RF_0RD0RA_1LE0RD_1LF---_0LA1LA|undecided}} */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;Beaver Mathematical Olympiad&#039;&#039;&#039; (BMO) is an attempt to re-formulate the halting problem for some particular Turing machines as a mathematical problem in a style suitable for a hypothetical math olympiad. &lt;br /&gt;
&lt;br /&gt;
The purpose of the BMO is twofold. First, statements where non-essential details (related to tape encoding, number of steps, etc.) are discarded are more suitable to be shared with mathematicians who perhaps are able to help. Second, it&#039;s a way to jokingly highlight how a hard question could appear deceptively simple.&lt;br /&gt;
&lt;br /&gt;
== Unsolved problems ==&lt;br /&gt;
&lt;br /&gt;
=== 1. {{TM|1RB1RE_1LC0RA_0RD1LB_---1RC_1LF1RE_0LB0LE|undecided}} ===&lt;br /&gt;
&lt;br /&gt;
Let &amp;lt;math&amp;gt;(a_n)_{n \ge 1}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;(b_n)_{n \ge 1}&amp;lt;/math&amp;gt; be two sequences such that &amp;lt;math&amp;gt;(a_1, b_1) = (1, 2)&amp;lt;/math&amp;gt; and&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;(a_{n+1}, b_{n+1}) = \begin{cases}&lt;br /&gt;
(a_n-b_n, 4b_n+2) &amp;amp; \text{if }a_n \ge b_n \\&lt;br /&gt;
(2a_n+1, b_n-a_n) &amp;amp; \text{if }a_n &amp;lt; b_n&lt;br /&gt;
\end{cases}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
for all positive integers &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;. Does there exist a positive integer &amp;lt;math&amp;gt;i&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;a_i = b_i&amp;lt;/math&amp;gt;?&lt;br /&gt;
&lt;br /&gt;
The first 10 values of &amp;lt;math&amp;gt;(a_n, b_n)&amp;lt;/math&amp;gt; are &amp;lt;math&amp;gt;(1, 2), (3, 1), (2, 6), (5, 4), (1, 18), (3, 17), (7, 14), (15, 7), (8, 30), (17, 22)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== 2. [[Hydra]] and [[Antihydra]] ===&lt;br /&gt;
&lt;br /&gt;
Let &amp;lt;math&amp;gt;(a_n)_{n \ge 0}&amp;lt;/math&amp;gt; be a sequence such that &amp;lt;math&amp;gt;a_{n+1} = a_n+\left\lfloor\frac{a_n}{2}\right\rfloor&amp;lt;/math&amp;gt; for all non-negative integers &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
# If &amp;lt;math&amp;gt;a_0=3&amp;lt;/math&amp;gt;, does there exist a non-negative integer &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt; such that the list of numbers &amp;lt;math&amp;gt;a_0, a_1, a_2, \dots, a_k&amp;lt;/math&amp;gt; have more than twice as many even numbers as odd numbers? ([[Hydra]])&lt;br /&gt;
# If &amp;lt;math&amp;gt;a_0=8&amp;lt;/math&amp;gt;, does there exist a non-negative integer &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt; such that the list of numbers &amp;lt;math&amp;gt;a_0, a_1, a_2, \dots, a_k&amp;lt;/math&amp;gt; have more than twice as many odd numbers as even numbers? ([[Antihydra]])&lt;br /&gt;
&lt;br /&gt;
=== 5. {{TM|1RB0LD_1LC0RA_1RA1LB_1LA1LE_1RF0LC_---0RE|undecided}} ===&lt;br /&gt;
&lt;br /&gt;
Let &amp;lt;math&amp;gt;(a_n)_{n \ge 1}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;(b_n)_{n \ge 1}&amp;lt;/math&amp;gt; be two sequences such that &amp;lt;math&amp;gt;(a_1, b_1) = (0, 5)&amp;lt;/math&amp;gt; and&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;(a_{n+1}, b_{n+1}) = \begin{cases}&lt;br /&gt;
(a_n+1, b_n-f(a_n)) &amp;amp; \text{if } b_n \ge f(a_n) \\&lt;br /&gt;
(a_n, 3b_n+a_n+5) &amp;amp; \text{if } b_n &amp;lt; f(a_n)&lt;br /&gt;
\end{cases}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;f(x)=10\cdot 2^x-1&amp;lt;/math&amp;gt; for all non-negative integers &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
Does there exist a positive integer &amp;lt;math&amp;gt;i&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;b_i = f(a_i)-1&amp;lt;/math&amp;gt;?&lt;br /&gt;
&lt;br /&gt;
=== 6. {{TM|1RB1LA_1LC0RE_1LF1LD_0RB0LA_1RC1RE_---0LD|undecided}} ===&lt;br /&gt;
Let &amp;lt;math&amp;gt;f(b) = b + k + 3a&amp;lt;/math&amp;gt;, where &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; are non-negative integers satisfying &amp;lt;math&amp;gt;b = (2a+1)\cdot 2^k&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Now consider the iterated application of the function &amp;lt;math&amp;gt;f^{n+1}(b) = f(f^n(b))&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;f^0(b)=b&amp;lt;/math&amp;gt;. Does there exist a non-negative integer &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;f^n(6)&amp;lt;/math&amp;gt; equals a power of 2?&lt;br /&gt;
&lt;br /&gt;
=== 8. {{TM|1RB0LD_0RC0RF_0RD0RA_1LE0RD_1LF---_0LA1LA|undecided}} ===&lt;br /&gt;
&lt;br /&gt;
Let &amp;lt;math&amp;gt;(a_n)_{n \ge 1}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;(b_n)_{n \ge 1}&amp;lt;/math&amp;gt; be two sequences such that &amp;lt;math&amp;gt;(a_1, b_1) = (10, 12)&amp;lt;/math&amp;gt; and&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;(a_{n+1}, b_{n+1}) = \begin{cases}&lt;br /&gt;
(a_n-\lfloor\frac{b_n}{2}\rfloor-3, 3\lfloor\frac{b_n+1}{2}\rfloor+6) &amp;amp; \text{if }a_n \ge \lfloor\frac{b_n}{2}\rfloor + 2 \\&lt;br /&gt;
(0, 0) &amp;amp; \text{if }a_n = \lfloor\frac{b_n}{2}\rfloor + 1 \\&lt;br /&gt;
(3a_n+5, b_n-2a_n) &amp;amp; \text{if }a_n \le \lfloor\frac{b_n}{2}\rfloor&lt;br /&gt;
\end{cases}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
for all positive integers &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;. Does there exist a positive integer &amp;lt;math&amp;gt;i&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;a_i = b_i = 0&amp;lt;/math&amp;gt;?&lt;br /&gt;
&lt;br /&gt;
== Solved problems ==&lt;br /&gt;
&lt;br /&gt;
=== 3. {{TM|1RB0RB3LA4LA2RA_2LB3RA---3RA4RB|non-halt}} and {{TM|1RB1RB3LA4LA2RA_2LB3RA---3RA4RB|non-halt}} ===&lt;br /&gt;
&lt;br /&gt;
Let &amp;lt;math&amp;gt;v_2(n)&amp;lt;/math&amp;gt; be the largest integer &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;2^k&amp;lt;/math&amp;gt; divides &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;. Let &amp;lt;math&amp;gt;(a_n)_{n \ge 0}&amp;lt;/math&amp;gt; be a sequence such that&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;a_n = \begin{cases}&lt;br /&gt;
2 &amp;amp; \text{if } n=0 \\&lt;br /&gt;
a_{n-1}+2^{v_2(a_{n-1})+2}-1 &amp;amp; \text{if } n \ge 1&lt;br /&gt;
\end{cases}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
for all non-negative integers &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;. Is there an integer &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;a_n=4^k&amp;lt;/math&amp;gt; for some positive integer &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt;?&lt;br /&gt;
&lt;br /&gt;
Link to Discord discussion: https://discord.com/channels/960643023006490684/1084047886494470185/1252634913220591728&lt;br /&gt;
&lt;br /&gt;
Formalised solution: [https://discord.com/channels/960643023006490684/1259770421046411285/1488737894943166604 Initial announcement], [https://discord.com/channels/960643023006490684/1259770421046411285/1488743526882738276 Lean proof], [https://discord.com/channels/960643023006490684/1259770421046411285/1488781537699696821 LLM-translated Rocq proof], [https://discord.com/channels/960643023006490684/1259770421046411285/1488898995865784442 Proof of closure of existing mid-level rules].&lt;br /&gt;
&lt;br /&gt;
=== 4. {{TM|1RB3RB---1LB0LA_2LA4RA3LA4RB1LB|non-halt}} ===&lt;br /&gt;
&lt;br /&gt;
Bonnie the beaver was bored, so she tried to construct a sequence of integers &amp;lt;math&amp;gt;\{a_n\}_{n \ge 0}&amp;lt;/math&amp;gt;. She first defined &amp;lt;math&amp;gt;a_0=2&amp;lt;/math&amp;gt;, then defined &amp;lt;math&amp;gt;a_{n+1}&amp;lt;/math&amp;gt; depending on &amp;lt;math&amp;gt;a_n&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; using the following rules:&lt;br /&gt;
&lt;br /&gt;
* If &amp;lt;math&amp;gt;a_n \equiv 0\text{ (mod 3)}&amp;lt;/math&amp;gt;, then &amp;lt;math&amp;gt;a_{n+1}=\frac{a_n}{3}+2^n+1&amp;lt;/math&amp;gt;.&lt;br /&gt;
* If &amp;lt;math&amp;gt;a_n \equiv 2\text{ (mod 3)}&amp;lt;/math&amp;gt;, then &amp;lt;math&amp;gt;a_{n+1}=\frac{a_n-2}{3}+2^n-1&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
With these two rules alone, Bonnie calculates the first few terms in the sequence: &amp;lt;math&amp;gt;2, 0, 3, 6, 11, 18, 39, 78, 155, 306, \dots&amp;lt;/math&amp;gt;. At this point, Bonnie plans to continue writing terms until a term becomes &amp;lt;math&amp;gt;1\text{ (mod 3)}&amp;lt;/math&amp;gt;. If Bonnie sticks to her plan, will she ever finish?&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;toccolours mw-collapsible mw-collapsed&amp;quot;&amp;gt;&#039;&#039;&#039;Solution&#039;&#039;&#039;&amp;lt;div class=&amp;quot;mw-collapsible-content&amp;quot;&amp;gt;&lt;br /&gt;
How to guess the closed-form solution: Firstly, notice that &amp;lt;math&amp;gt;a_n \approx \frac{3}{5} \times 2^n&amp;lt;/math&amp;gt;. Secondly, calculate the error term &amp;lt;math&amp;gt;a_n - \frac{3}{5} \times 2^n&amp;lt;/math&amp;gt;. The error term appears to have a period of 4. This leads to the following guess:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;a_n=\frac{3}{5}\begin{cases}&lt;br /&gt;
2^n+\frac{7}{3} &amp;amp;\text{if } n\equiv 0 \pmod{4}\\&lt;br /&gt;
2^n-2 &amp;amp;\text{if } n\equiv 1 \pmod{4}\\&lt;br /&gt;
2^n+1 &amp;amp;\text{if } n\equiv 2 \pmod{4}\\&lt;br /&gt;
2^n+2 &amp;amp;\text{if } n\equiv 3 \pmod{4}&lt;br /&gt;
\end{cases}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This closed-form solution can be proven correct by induction. Unfortunately, the induction may require a lot of tedious calculations.&lt;br /&gt;
&lt;br /&gt;
For all &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt;, we have &amp;lt;math&amp;gt;a_{4k} \equiv 2\text{ (mod 3)}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;a_{4k+1} \equiv a_{4k+2} \equiv a_{4k+3} \equiv 0\text{ (mod 3)}&amp;lt;/math&amp;gt;. Therefore, Bonnie will never finish.&lt;br /&gt;
&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== 7. {{TM|1RB1RF_1RC0RA_1LD1RC_1LE0LE_0RA0LD_0RB---|non-halt}} ===&lt;br /&gt;
Let &amp;lt;math&amp;gt;v_2(n)&amp;lt;/math&amp;gt; be the largest integer &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;2^k&amp;lt;/math&amp;gt; divides &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Let &amp;lt;math&amp;gt;f(n) = n+1+(v_2(n+1) \bmod 2)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Now consider the iterated application of the function &amp;lt;math&amp;gt;f^{n+1}(b) = f(f^n(b)))&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;f^0(b)=b&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Let &amp;lt;math&amp;gt;(a_n)_{n \ge 0}&amp;lt;/math&amp;gt; be a sequence such that &amp;lt;math&amp;gt;a_0=1&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;a_{n+1} = f^{n+2}\left(\left\lfloor\frac{a_n}{2}\right\rfloor\right)&amp;lt;/math&amp;gt; for all non-negative integers &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Does there exist a non-negative integer &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;a_k&amp;lt;/math&amp;gt; is even?&lt;br /&gt;
&lt;br /&gt;
(for simplicity, this question is slightly stronger than the halting problem of this TM)&lt;br /&gt;
&lt;br /&gt;
Link to Discord discussion: https://discord.com/channels/960643023006490684/1421782442213376000/1431483206208852001&lt;br /&gt;
&lt;br /&gt;
== Practice Problems ==&lt;br /&gt;
Problems that are not BMO-level, but provide counter-examples to certain [[probvious]] intuition:&lt;br /&gt;
&lt;br /&gt;
* {{TM|1RB0LE_1LC1RA_---1LD_0RB1LF_1RD1LA_0LA0RD}}&lt;br /&gt;
* {{TM|1RB0RD_0LC1RA_0RA1LB_1RE1LB_1LF1LB_---1LE}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Individual machines]]&lt;/div&gt;</summary>
		<author><name>Mxdys</name></author>
	</entry>
	<entry>
		<id>https://wiki.bbchallenge.org/w/index.php?title=Beaver_Math_Olympiad&amp;diff=7097</id>
		<title>Beaver Math Olympiad</title>
		<link rel="alternate" type="text/html" href="https://wiki.bbchallenge.org/w/index.php?title=Beaver_Math_Olympiad&amp;diff=7097"/>
		<updated>2026-04-10T05:12:00Z</updated>

		<summary type="html">&lt;p&gt;Mxdys: /* Unsolved problems */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;Beaver Mathematical Olympiad&#039;&#039;&#039; (BMO) is an attempt to re-formulate the halting problem for some particular Turing machines as a mathematical problem in a style suitable for a hypothetical math olympiad. &lt;br /&gt;
&lt;br /&gt;
The purpose of the BMO is twofold. First, statements where non-essential details (related to tape encoding, number of steps, etc.) are discarded are more suitable to be shared with mathematicians who perhaps are able to help. Second, it&#039;s a way to jokingly highlight how a hard question could appear deceptively simple.&lt;br /&gt;
&lt;br /&gt;
== Unsolved problems ==&lt;br /&gt;
&lt;br /&gt;
=== 1. {{TM|1RB1RE_1LC0RA_0RD1LB_---1RC_1LF1RE_0LB0LE|undecided}} ===&lt;br /&gt;
&lt;br /&gt;
Let &amp;lt;math&amp;gt;(a_n)_{n \ge 1}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;(b_n)_{n \ge 1}&amp;lt;/math&amp;gt; be two sequences such that &amp;lt;math&amp;gt;(a_1, b_1) = (1, 2)&amp;lt;/math&amp;gt; and&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;(a_{n+1}, b_{n+1}) = \begin{cases}&lt;br /&gt;
(a_n-b_n, 4b_n+2) &amp;amp; \text{if }a_n \ge b_n \\&lt;br /&gt;
(2a_n+1, b_n-a_n) &amp;amp; \text{if }a_n &amp;lt; b_n&lt;br /&gt;
\end{cases}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
for all positive integers &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;. Does there exist a positive integer &amp;lt;math&amp;gt;i&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;a_i = b_i&amp;lt;/math&amp;gt;?&lt;br /&gt;
&lt;br /&gt;
The first 10 values of &amp;lt;math&amp;gt;(a_n, b_n)&amp;lt;/math&amp;gt; are &amp;lt;math&amp;gt;(1, 2), (3, 1), (2, 6), (5, 4), (1, 18), (3, 17), (7, 14), (15, 7), (8, 30), (17, 22)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== 2. [[Hydra]] and [[Antihydra]] ===&lt;br /&gt;
&lt;br /&gt;
Let &amp;lt;math&amp;gt;(a_n)_{n \ge 0}&amp;lt;/math&amp;gt; be a sequence such that &amp;lt;math&amp;gt;a_{n+1} = a_n+\left\lfloor\frac{a_n}{2}\right\rfloor&amp;lt;/math&amp;gt; for all non-negative integers &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
# If &amp;lt;math&amp;gt;a_0=3&amp;lt;/math&amp;gt;, does there exist a non-negative integer &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt; such that the list of numbers &amp;lt;math&amp;gt;a_0, a_1, a_2, \dots, a_k&amp;lt;/math&amp;gt; have more than twice as many even numbers as odd numbers? ([[Hydra]])&lt;br /&gt;
# If &amp;lt;math&amp;gt;a_0=8&amp;lt;/math&amp;gt;, does there exist a non-negative integer &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt; such that the list of numbers &amp;lt;math&amp;gt;a_0, a_1, a_2, \dots, a_k&amp;lt;/math&amp;gt; have more than twice as many odd numbers as even numbers? ([[Antihydra]])&lt;br /&gt;
&lt;br /&gt;
=== 5. {{TM|1RB0LD_1LC0RA_1RA1LB_1LA1LE_1RF0LC_---0RE|undecided}} ===&lt;br /&gt;
&lt;br /&gt;
Let &amp;lt;math&amp;gt;(a_n)_{n \ge 1}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;(b_n)_{n \ge 1}&amp;lt;/math&amp;gt; be two sequences such that &amp;lt;math&amp;gt;(a_1, b_1) = (0, 5)&amp;lt;/math&amp;gt; and&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;(a_{n+1}, b_{n+1}) = \begin{cases}&lt;br /&gt;
(a_n+1, b_n-f(a_n)) &amp;amp; \text{if } b_n \ge f(a_n) \\&lt;br /&gt;
(a_n, 3b_n+a_n+5) &amp;amp; \text{if } b_n &amp;lt; f(a_n)&lt;br /&gt;
\end{cases}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;f(x)=10\cdot 2^x-1&amp;lt;/math&amp;gt; for all non-negative integers &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
Does there exist a positive integer &amp;lt;math&amp;gt;i&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;b_i = f(a_i)-1&amp;lt;/math&amp;gt;?&lt;br /&gt;
&lt;br /&gt;
=== 6. {{TM|1RB1LA_1LC0RE_1LF1LD_0RB0LA_1RC1RE_---0LD|undecided}} ===&lt;br /&gt;
Let &amp;lt;math&amp;gt;f(b) = b + k + 3a&amp;lt;/math&amp;gt;, where &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; are non-negative integers satisfying &amp;lt;math&amp;gt;b = (2a+1)\cdot 2^k&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Now consider the iterated application of the function &amp;lt;math&amp;gt;f^{n+1}(b) = f(f^n(b))&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;f^0(b)=b&amp;lt;/math&amp;gt;. Does there exist a non-negative integer &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;f^n(6)&amp;lt;/math&amp;gt; equals a power of 2?&lt;br /&gt;
&lt;br /&gt;
=== 8. {{TM|1RB0LD_0RC0RF_0RD0RA_1LE0RD_1LF---_0LA1LA|undecided}} ===&lt;br /&gt;
&lt;br /&gt;
Let &amp;lt;math&amp;gt;(a_n)_{n \ge 1}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;(b_n)_{n \ge 1}&amp;lt;/math&amp;gt; be two sequences such that &amp;lt;math&amp;gt;(a_1, b_1) = (10, 12)&amp;lt;/math&amp;gt; and&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;(a_{n+1}, b_{n+1}) = \begin{cases}&lt;br /&gt;
(a_n-\lfloor\frac{b_n}{2}\rfloor-3, 3\lfloor\frac{b_n+1}{2}\rfloor+6) &amp;amp; \text{if }a_n \ge \lfloor\frac{b_n}{2}\rfloor + 3 \\&lt;br /&gt;
(2, 3\lfloor\frac{b_n+1}{2}\rfloor+8) &amp;amp; \text{if }a_n = \lfloor\frac{b_n}{2}\rfloor + 2 \\&lt;br /&gt;
(0, 0) &amp;amp; \text{if }a_n = \lfloor\frac{b_n}{2}\rfloor + 1 \\&lt;br /&gt;
(3a_n+5, b_n-2a_n) &amp;amp; \text{if }a_n \le \lfloor\frac{b_n}{2}\rfloor&lt;br /&gt;
\end{cases}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
for all positive integers &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;. Does there exist a positive integer &amp;lt;math&amp;gt;i&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;a_i = b_i = 0&amp;lt;/math&amp;gt;?&lt;br /&gt;
&lt;br /&gt;
== Solved problems ==&lt;br /&gt;
&lt;br /&gt;
=== 3. {{TM|1RB0RB3LA4LA2RA_2LB3RA---3RA4RB|non-halt}} and {{TM|1RB1RB3LA4LA2RA_2LB3RA---3RA4RB|non-halt}} ===&lt;br /&gt;
&lt;br /&gt;
Let &amp;lt;math&amp;gt;v_2(n)&amp;lt;/math&amp;gt; be the largest integer &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;2^k&amp;lt;/math&amp;gt; divides &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;. Let &amp;lt;math&amp;gt;(a_n)_{n \ge 0}&amp;lt;/math&amp;gt; be a sequence such that&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;a_n = \begin{cases}&lt;br /&gt;
2 &amp;amp; \text{if } n=0 \\&lt;br /&gt;
a_{n-1}+2^{v_2(a_{n-1})+2}-1 &amp;amp; \text{if } n \ge 1&lt;br /&gt;
\end{cases}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
for all non-negative integers &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;. Is there an integer &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;a_n=4^k&amp;lt;/math&amp;gt; for some positive integer &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt;?&lt;br /&gt;
&lt;br /&gt;
Link to Discord discussion: https://discord.com/channels/960643023006490684/1084047886494470185/1252634913220591728&lt;br /&gt;
&lt;br /&gt;
Formalised solution: [https://discord.com/channels/960643023006490684/1259770421046411285/1488737894943166604 Initial announcement], [https://discord.com/channels/960643023006490684/1259770421046411285/1488743526882738276 Lean proof], [https://discord.com/channels/960643023006490684/1259770421046411285/1488781537699696821 LLM-translated Rocq proof], [https://discord.com/channels/960643023006490684/1259770421046411285/1488898995865784442 Proof of closure of existing mid-level rules].&lt;br /&gt;
&lt;br /&gt;
=== 4. {{TM|1RB3RB---1LB0LA_2LA4RA3LA4RB1LB|non-halt}} ===&lt;br /&gt;
&lt;br /&gt;
Bonnie the beaver was bored, so she tried to construct a sequence of integers &amp;lt;math&amp;gt;\{a_n\}_{n \ge 0}&amp;lt;/math&amp;gt;. She first defined &amp;lt;math&amp;gt;a_0=2&amp;lt;/math&amp;gt;, then defined &amp;lt;math&amp;gt;a_{n+1}&amp;lt;/math&amp;gt; depending on &amp;lt;math&amp;gt;a_n&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; using the following rules:&lt;br /&gt;
&lt;br /&gt;
* If &amp;lt;math&amp;gt;a_n \equiv 0\text{ (mod 3)}&amp;lt;/math&amp;gt;, then &amp;lt;math&amp;gt;a_{n+1}=\frac{a_n}{3}+2^n+1&amp;lt;/math&amp;gt;.&lt;br /&gt;
* If &amp;lt;math&amp;gt;a_n \equiv 2\text{ (mod 3)}&amp;lt;/math&amp;gt;, then &amp;lt;math&amp;gt;a_{n+1}=\frac{a_n-2}{3}+2^n-1&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
With these two rules alone, Bonnie calculates the first few terms in the sequence: &amp;lt;math&amp;gt;2, 0, 3, 6, 11, 18, 39, 78, 155, 306, \dots&amp;lt;/math&amp;gt;. At this point, Bonnie plans to continue writing terms until a term becomes &amp;lt;math&amp;gt;1\text{ (mod 3)}&amp;lt;/math&amp;gt;. If Bonnie sticks to her plan, will she ever finish?&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;toccolours mw-collapsible mw-collapsed&amp;quot;&amp;gt;&#039;&#039;&#039;Solution&#039;&#039;&#039;&amp;lt;div class=&amp;quot;mw-collapsible-content&amp;quot;&amp;gt;&lt;br /&gt;
How to guess the closed-form solution: Firstly, notice that &amp;lt;math&amp;gt;a_n \approx \frac{3}{5} \times 2^n&amp;lt;/math&amp;gt;. Secondly, calculate the error term &amp;lt;math&amp;gt;a_n - \frac{3}{5} \times 2^n&amp;lt;/math&amp;gt;. The error term appears to have a period of 4. This leads to the following guess:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;a_n=\frac{3}{5}\begin{cases}&lt;br /&gt;
2^n+\frac{7}{3} &amp;amp;\text{if } n\equiv 0 \pmod{4}\\&lt;br /&gt;
2^n-2 &amp;amp;\text{if } n\equiv 1 \pmod{4}\\&lt;br /&gt;
2^n+1 &amp;amp;\text{if } n\equiv 2 \pmod{4}\\&lt;br /&gt;
2^n+2 &amp;amp;\text{if } n\equiv 3 \pmod{4}&lt;br /&gt;
\end{cases}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This closed-form solution can be proven correct by induction. Unfortunately, the induction may require a lot of tedious calculations.&lt;br /&gt;
&lt;br /&gt;
For all &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt;, we have &amp;lt;math&amp;gt;a_{4k} \equiv 2\text{ (mod 3)}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;a_{4k+1} \equiv a_{4k+2} \equiv a_{4k+3} \equiv 0\text{ (mod 3)}&amp;lt;/math&amp;gt;. Therefore, Bonnie will never finish.&lt;br /&gt;
&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== 7. {{TM|1RB1RF_1RC0RA_1LD1RC_1LE0LE_0RA0LD_0RB---|non-halt}} ===&lt;br /&gt;
Let &amp;lt;math&amp;gt;v_2(n)&amp;lt;/math&amp;gt; be the largest integer &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;2^k&amp;lt;/math&amp;gt; divides &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Let &amp;lt;math&amp;gt;f(n) = n+1+(v_2(n+1) \bmod 2)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Now consider the iterated application of the function &amp;lt;math&amp;gt;f^{n+1}(b) = f(f^n(b)))&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;f^0(b)=b&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Let &amp;lt;math&amp;gt;(a_n)_{n \ge 0}&amp;lt;/math&amp;gt; be a sequence such that &amp;lt;math&amp;gt;a_0=1&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;a_{n+1} = f^{n+2}\left(\left\lfloor\frac{a_n}{2}\right\rfloor\right)&amp;lt;/math&amp;gt; for all non-negative integers &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Does there exist a non-negative integer &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;a_k&amp;lt;/math&amp;gt; is even?&lt;br /&gt;
&lt;br /&gt;
(for simplicity, this question is slightly stronger than the halting problem of this TM)&lt;br /&gt;
&lt;br /&gt;
Link to Discord discussion: https://discord.com/channels/960643023006490684/1421782442213376000/1431483206208852001&lt;br /&gt;
&lt;br /&gt;
== Practice Problems ==&lt;br /&gt;
Problems that are not BMO-level, but provide counter-examples to certain [[probvious]] intuition:&lt;br /&gt;
&lt;br /&gt;
* {{TM|1RB0LE_1LC1RA_---1LD_0RB1LF_1RD1LA_0LA0RD}}&lt;br /&gt;
* {{TM|1RB0RD_0LC1RA_0RA1LB_1RE1LB_1LF1LB_---1LE}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Individual machines]]&lt;/div&gt;</summary>
		<author><name>Mxdys</name></author>
	</entry>
	<entry>
		<id>https://wiki.bbchallenge.org/w/index.php?title=1RB1LA_1RC1RE_1LD0RB_1LA0LC_0RF0RD_0RB---&amp;diff=5230</id>
		<title>1RB1LA 1RC1RE 1LD0RB 1LA0LC 0RF0RD 0RB---</title>
		<link rel="alternate" type="text/html" href="https://wiki.bbchallenge.org/w/index.php?title=1RB1LA_1RC1RE_1LD0RB_1LA0LC_0RF0RD_0RB---&amp;diff=5230"/>
		<updated>2025-11-29T09:34:51Z</updated>

		<summary type="html">&lt;p&gt;Mxdys: /* Analysis by mxdys */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{TM|1RB1LA_1RC1RE_1LD0RB_1LA0LC_0RF0RD_0RB---|undecided}} is a [[BB(6)]] holdout.&lt;br /&gt;
&lt;br /&gt;
=Analysis by mxdys=&lt;br /&gt;
https://discord.com/channels/960643023006490684/1239205785913790465/1441124403801755730&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
1RB1LA_1RC1RE_1LD0RB_1LA0LC_0RF0RD_0RB---&lt;br /&gt;
&lt;br /&gt;
start: S(18)&lt;br /&gt;
&lt;br /&gt;
S(n) --&amp;gt; S((n+(3^i*6+i+4))/2), n mod 2 = i mod 2, 3^i*2-i-2 &amp;lt;= n &amp;lt;= 3^i*6-i-6&lt;br /&gt;
S(n) --&amp;gt; S(3^i*12-1), n mod 2 = (i+1) mod 2, 3^i*2-i &amp;lt;= n &amp;lt;= 3^i*6-i-10&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
These rules are closed if &amp;lt;pre&amp;gt;(3^i*2+i+5)/(2^v2(3^i*2+i+5))&amp;gt;=2i+14 for all i&amp;gt;=50 &amp;lt;/pre&amp;gt;&lt;br /&gt;
= Further Analysis (Pomme, Autumn Pan, et al.) =&lt;br /&gt;
Although it has not been proven in Rocq, it is known that the inequality holds. This has been proven informally by Pomme, and an alternative proof is underway by Autumn Pan.&lt;/div&gt;</summary>
		<author><name>Mxdys</name></author>
	</entry>
	<entry>
		<id>https://wiki.bbchallenge.org/w/index.php?title=1RB---_0RC1RD_1LA0LA_1LE0RB_1LF1LE_1LC0LD&amp;diff=4207</id>
		<title>1RB--- 0RC1RD 1LA0LA 1LE0RB 1LF1LE 1LC0LD</title>
		<link rel="alternate" type="text/html" href="https://wiki.bbchallenge.org/w/index.php?title=1RB---_0RC1RD_1LA0LA_1LE0RB_1LF1LE_1LC0LD&amp;diff=4207"/>
		<updated>2025-10-03T19:59:25Z</updated>

		<summary type="html">&lt;p&gt;Mxdys: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{machine|1RB---_0RC1RD_1LA0LA_1LE0RB_1LF1LE_1LC0LD}}{{Stub}}&lt;br /&gt;
{{TM|1RB---_0RC1RD_1LA0LA_1LE0RB_1LF1LE_1LC0LD}} is an undecided [[BB(6)]] machine. @mxdys referred to it as &amp;quot;chaotic 1dCA in bell&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
1D — CA, look like rule 30 or rule 110 but doesn&#039;t work in the same way.&lt;br /&gt;
&lt;br /&gt;
When the TM starts on any starting state, it exhibits the same behaviour:&lt;br /&gt;
&lt;br /&gt;
* When the starting state is A, the [[Tree Normal Form|TNF]] is {{TM|1RB---_0RC1RD_1LA0LA_1LE0RB_1LF1LE_1LC0LD}}.&lt;br /&gt;
* When the starting state is B, the TNF is not in TNF-1RB format, and can be (mostly) ignored.&lt;br /&gt;
* When the starting state is C, the TNF is {{TM|1RB0RB_1LC---_0LA1LD_1RE0LC_1RF1RE_1RA0RD}}.&lt;br /&gt;
* When the starting state is D, the TNF is {{TM|1RB0LF_1RC1RB_1RD0RA_1RE0RE_1LF---_0LD1LA}}.&lt;br /&gt;
* When the starting state is E, the TNF is {{TM|1RB1RA_1RC0RF_1RD0RD_1LE---_0LC1LF_1RA0LE}}.&lt;br /&gt;
* When the starting state is F, the TNF is {{TM|1RB0RE_1RC0RC_1LD---_0LB1LE_1RF0LD_1RA1RF}}.&lt;br /&gt;
&lt;br /&gt;
[[Category:BB(6)]]&lt;/div&gt;</summary>
		<author><name>Mxdys</name></author>
	</entry>
	<entry>
		<id>https://wiki.bbchallenge.org/w/index.php?title=1RB---_0RC1RD_1LA0LA_1LE0RB_1LF1LE_1LC0LD&amp;diff=4206</id>
		<title>1RB--- 0RC1RD 1LA0LA 1LE0RB 1LF1LE 1LC0LD</title>
		<link rel="alternate" type="text/html" href="https://wiki.bbchallenge.org/w/index.php?title=1RB---_0RC1RD_1LA0LA_1LE0RB_1LF1LE_1LC0LD&amp;diff=4206"/>
		<updated>2025-10-03T19:58:13Z</updated>

		<summary type="html">&lt;p&gt;Mxdys: Undo revision 4205 by Mxdys (talk)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{machine|1RB---_0RC1RD_1LA0LA_1LE0RB_1LF1LE_1LC0LD}}{{Stub}}&lt;br /&gt;
{{TM|1RB---_0RC1RD_1LA0LA_1LE0RB_1LF1LE_1LC0LD}} is an undecided [[BB(6)]] machine. @mxdys referred to it as &amp;quot;chaotic 1dCA in bell&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
1D — CA, rule 30 or rule 110.&lt;br /&gt;
&lt;br /&gt;
When the TM starts on any starting state, it exhibits the same behaviour:&lt;br /&gt;
&lt;br /&gt;
* When the starting state is A, the [[Tree Normal Form|TNF]] is {{TM|1RB---_0RC1RD_1LA0LA_1LE0RB_1LF1LE_1LC0LD}}.&lt;br /&gt;
* When the starting state is B, the TNF is not in TNF-1RB format, and can be (mostly) ignored.&lt;br /&gt;
* When the starting state is C, the TNF is {{TM|1RB0RB_1LC---_0LA1LD_1RE0LC_1RF1RE_1RA0RD}}.&lt;br /&gt;
* When the starting state is D, the TNF is {{TM|1RB0LF_1RC1RB_1RD0RA_1RE0RE_1LF---_0LD1LA}}.&lt;br /&gt;
* When the starting state is E, the TNF is {{TM|1RB1RA_1RC0RF_1RD0RD_1LE---_0LC1LF_1RA0LE}}.&lt;br /&gt;
* When the starting state is F, the TNF is {{TM|1RB0RE_1RC0RC_1LD---_0LB1LE_1RF0LD_1RA1RF}}.&lt;br /&gt;
&lt;br /&gt;
[[Category:BB(6)]]&lt;/div&gt;</summary>
		<author><name>Mxdys</name></author>
	</entry>
	<entry>
		<id>https://wiki.bbchallenge.org/w/index.php?title=1RB---_0RC1RD_1LA0LA_1LE0RB_1LF1LE_1LC0LD&amp;diff=4205</id>
		<title>1RB--- 0RC1RD 1LA0LA 1LE0RB 1LF1LE 1LC0LD</title>
		<link rel="alternate" type="text/html" href="https://wiki.bbchallenge.org/w/index.php?title=1RB---_0RC1RD_1LA0LA_1LE0RB_1LF1LE_1LC0LD&amp;diff=4205"/>
		<updated>2025-10-03T19:57:30Z</updated>

		<summary type="html">&lt;p&gt;Mxdys: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{machine|1RB---_0RC1RD_1LA0LA_1LE0RB_1LF1LE_1LC0LD}}&lt;br /&gt;
&lt;br /&gt;
1D — CA, look like rule 30 or rule 110&lt;br /&gt;
[[Category:Stub]]&lt;/div&gt;</summary>
		<author><name>Mxdys</name></author>
	</entry>
	<entry>
		<id>https://wiki.bbchallenge.org/w/index.php?title=Beaver_Math_Olympiad&amp;diff=4020</id>
		<title>Beaver Math Olympiad</title>
		<link rel="alternate" type="text/html" href="https://wiki.bbchallenge.org/w/index.php?title=Beaver_Math_Olympiad&amp;diff=4020"/>
		<updated>2025-09-28T10:19:09Z</updated>

		<summary type="html">&lt;p&gt;Mxdys: /* 7. 1RB1RF_1RC0RA_1LD1RC_1LE0LE_0RA0LD_0RB--- (bbch) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;Beaver Mathematical Olympiad&#039;&#039;&#039; (BMO) is an attempt to re-formulate the halting problem for some particular Turing machines as a mathematical problem in a style suitable for a hypothetical math olympiad. &lt;br /&gt;
&lt;br /&gt;
The purpose of the BMO is twofold. First, statements where non-essential details (related to tape encoding, number of steps, etc.) are discarded are more suitable to be shared with mathematicians who perhaps are able to help. Second, it&#039;s a way to jokingly highlight how a hard question could appear deceptively simple.&lt;br /&gt;
&lt;br /&gt;
== Unsolved problems ==&lt;br /&gt;
&lt;br /&gt;
=== 1. {{TM|1RB1RE_1LC0RA_0RD1LB_---1RC_1LF1RE_0LB0LE|undecided}} ===&lt;br /&gt;
&lt;br /&gt;
Let &amp;lt;math&amp;gt;(a_n)_{n \ge 1}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;(b_n)_{n \ge 1}&amp;lt;/math&amp;gt; be two sequences such that &amp;lt;math&amp;gt;(a_1, b_1) = (1, 2)&amp;lt;/math&amp;gt; and&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;(a_{n+1}, b_{n+1}) = \begin{cases}&lt;br /&gt;
(a_n-b_n, 4b_n+2) &amp;amp; \text{if }a_n \ge b_n \\&lt;br /&gt;
(2a_n+1, b_n-a_n) &amp;amp; \text{if }a_n &amp;lt; b_n&lt;br /&gt;
\end{cases}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
for all positive integers &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;. Does there exist a positive integer &amp;lt;math&amp;gt;i&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;a_i = b_i&amp;lt;/math&amp;gt;?&lt;br /&gt;
&lt;br /&gt;
The first 10 values of &amp;lt;math&amp;gt;(a_n, b_n)&amp;lt;/math&amp;gt; are &amp;lt;math&amp;gt;(1, 2), (3, 1), (2, 6), (5, 4), (1, 18), (3, 17), (7, 14), (15, 7), (8, 30), (17, 22)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== 2. [[Hydra]] and [[Antihydra]] ===&lt;br /&gt;
&lt;br /&gt;
Let &amp;lt;math&amp;gt;(a_n)_{n \ge 0}&amp;lt;/math&amp;gt; be a sequence such that &amp;lt;math&amp;gt;a_{n+1} = a_n+\left\lfloor\frac{a_n}{2}\right\rfloor&amp;lt;/math&amp;gt; for all non-negative integers &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
# If &amp;lt;math&amp;gt;a_0=3&amp;lt;/math&amp;gt;, does there exist a non-negative integer &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt; such that the list of numbers &amp;lt;math&amp;gt;a_0, a_1, a_2, \dots, a_k&amp;lt;/math&amp;gt; have more than twice as many even numbers as odd numbers? ([[Hydra]])&lt;br /&gt;
# If &amp;lt;math&amp;gt;a_0=8&amp;lt;/math&amp;gt;, does there exist a non-negative integer &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt; such that the list of numbers &amp;lt;math&amp;gt;a_0, a_1, a_2, \dots, a_k&amp;lt;/math&amp;gt; have more than twice as many odd numbers as even numbers? ([[Antihydra]])&lt;br /&gt;
&lt;br /&gt;
=== 5. {{TM|1RB0LD_1LC0RA_1RA1LB_1LA1LE_1RF0LC_---0RE|undecided}} ===&lt;br /&gt;
&lt;br /&gt;
Let &amp;lt;math&amp;gt;(a_n)_{n \ge 1}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;(b_n)_{n \ge 1}&amp;lt;/math&amp;gt; be two sequences such that &amp;lt;math&amp;gt;(a_1, b_1) = (0, 5)&amp;lt;/math&amp;gt; and&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;(a_{n+1}, b_{n+1}) = \begin{cases}&lt;br /&gt;
(a_n+1, b_n-f(a_n)) &amp;amp; \text{if } b_n \ge f(a_n) \\&lt;br /&gt;
(a_n, 3b_n+a_n+5) &amp;amp; \text{if } b_n &amp;lt; f(a_n)&lt;br /&gt;
\end{cases}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;f(x)=10\cdot 2^x-1&amp;lt;/math&amp;gt; for all non-negative integers &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
Does there exist a positive integer &amp;lt;math&amp;gt;i&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;b_i = f(a_i)-1&amp;lt;/math&amp;gt;?&lt;br /&gt;
&lt;br /&gt;
=== 6. {{TM|1RB1LA_1LC0RE_1LF1LD_0RB0LA_1RC1RE_---0LD|undecided}} ===&lt;br /&gt;
Let &amp;lt;math&amp;gt;f(b) = b + k + 3a&amp;lt;/math&amp;gt;, where &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; are non-negative integers satisfying &amp;lt;math&amp;gt;b = (2a+1)\cdot 2^k&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Now consider the iterated application of the function &amp;lt;math&amp;gt;f^{n+1}(b) = f(f^n(b)))&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;f^0(b)=b&amp;lt;/math&amp;gt;. Does there exist a non-negative integer &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;f^n(6)&amp;lt;/math&amp;gt; equals a power of 2?&lt;br /&gt;
&lt;br /&gt;
=== 7. {{TM|1RB1RF_1RC0RA_1LD1RC_1LE0LE_0RA0LD_0RB---|undecided}} ===&lt;br /&gt;
Let &amp;lt;math&amp;gt;v_2(n)&amp;lt;/math&amp;gt; be the largest integer &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;2^k&amp;lt;/math&amp;gt; divides &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Let &amp;lt;math&amp;gt;f(n) = n+1+(v_2(n+1) \bmod 2)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Now consider the iterated application of the function &amp;lt;math&amp;gt;f^{n+1}(b) = f(f^n(b)))&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;f^0(b)=b&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Let &amp;lt;math&amp;gt;(a_n)_{n \ge 0}&amp;lt;/math&amp;gt; be a sequence such that &amp;lt;math&amp;gt;a_0=1&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;a_{n+1} = f^{n+2}\left(\left\lfloor\frac{a_n}{2}\right\rfloor\right)&amp;lt;/math&amp;gt; for all non-negative integers &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Does there exist a non-negative integer &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;a_k&amp;lt;/math&amp;gt; is even?&lt;br /&gt;
&lt;br /&gt;
(for simplicity, this question is slightly stronger than the halting problem of this TM)&lt;br /&gt;
&lt;br /&gt;
== Solved problems ==&lt;br /&gt;
&lt;br /&gt;
=== 3. {{TM|1RB0RB3LA4LA2RA_2LB3RA---3RA4RB|non-halt}} and {{TM|1RB1RB3LA4LA2RA_2LB3RA---3RA4RB|non-halt}} ===&lt;br /&gt;
&lt;br /&gt;
Let &amp;lt;math&amp;gt;v_2(n)&amp;lt;/math&amp;gt; be the largest integer &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;2^k&amp;lt;/math&amp;gt; divides &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;. Let &amp;lt;math&amp;gt;(a_n)_{n \ge 0}&amp;lt;/math&amp;gt; be a sequence such that&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;a_n = \begin{cases}&lt;br /&gt;
2 &amp;amp; \text{if } n=0 \\&lt;br /&gt;
a_{n-1}+2^{v_2(a_{n-1})+2}-1 &amp;amp; \text{if } n \ge 1&lt;br /&gt;
\end{cases}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
for all non-negative integers &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;. Is there an integer &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;a_n=4^k&amp;lt;/math&amp;gt; for some positive integer &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt;?&lt;br /&gt;
&lt;br /&gt;
Link to Discord discussion: https://discord.com/channels/960643023006490684/1084047886494470185/1252634913220591728&lt;br /&gt;
&lt;br /&gt;
=== 4. {{TM|1RB3RB---1LB0LA_2LA4RA3LA4RB1LB|non-halt}} ===&lt;br /&gt;
&lt;br /&gt;
Bonnie the beaver was bored, so she tried to construct a sequence of integers &amp;lt;math&amp;gt;\{a_n\}_{n \ge 0}&amp;lt;/math&amp;gt;. She first defined &amp;lt;math&amp;gt;a_0=2&amp;lt;/math&amp;gt;, then defined &amp;lt;math&amp;gt;a_{n+1}&amp;lt;/math&amp;gt; depending on &amp;lt;math&amp;gt;a_n&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; using the following rules:&lt;br /&gt;
&lt;br /&gt;
* If &amp;lt;math&amp;gt;a_n \equiv 0\text{ (mod 3)}&amp;lt;/math&amp;gt;, then &amp;lt;math&amp;gt;a_{n+1}=\frac{a_n}{3}+2^n+1&amp;lt;/math&amp;gt;.&lt;br /&gt;
* If &amp;lt;math&amp;gt;a_n \equiv 2\text{ (mod 3)}&amp;lt;/math&amp;gt;, then &amp;lt;math&amp;gt;a_{n+1}=\frac{a_n-2}{3}+2^n-1&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
With these two rules alone, Bonnie calculates the first few terms in the sequence: &amp;lt;math&amp;gt;2, 0, 3, 6, 11, 18, 39, 78, 155, 306, \dots&amp;lt;/math&amp;gt;. At this point, Bonnie plans to continue writing terms until a term becomes &amp;lt;math&amp;gt;1\text{ (mod 3)}&amp;lt;/math&amp;gt;. If Bonnie sticks to her plan, will she ever finish?&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;toccolours mw-collapsible mw-collapsed&amp;quot;&amp;gt;&#039;&#039;&#039;Solution&#039;&#039;&#039;&amp;lt;div class=&amp;quot;mw-collapsible-content&amp;quot;&amp;gt;&lt;br /&gt;
How to guess the closed-form solution: Firstly, notice that &amp;lt;math&amp;gt;a_n \approx \frac{3}{5} \times 2^n&amp;lt;/math&amp;gt;. Secondly, calculate the error term &amp;lt;math&amp;gt;a_n - \frac{3}{5} \times 2^n&amp;lt;/math&amp;gt;. The error term appears to have a period of 4. This leads to the following guess:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;a_n=\frac{3}{5}\begin{cases}&lt;br /&gt;
2^n+\frac{7}{3} &amp;amp;\text{if } n\equiv 0 \pmod{4}\\&lt;br /&gt;
2^n-2 &amp;amp;\text{if } n\equiv 1 \pmod{4}\\&lt;br /&gt;
2^n+1 &amp;amp;\text{if } n\equiv 2 \pmod{4}\\&lt;br /&gt;
2^n+2 &amp;amp;\text{if } n\equiv 3 \pmod{4}\\&lt;br /&gt;
\end{cases}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This closed-form solution can be proven correct by induction. Unfortunately, the induction may require a lot of tedious calculations.&lt;br /&gt;
&lt;br /&gt;
For all &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt;, we have &amp;lt;math&amp;gt;a_{4k} \equiv 2\text{ (mod 3)}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;a_{4k+1} \equiv a_{4k+2} \equiv a_{4k+3} \equiv 0\text{ (mod 3)}&amp;lt;/math&amp;gt;. Therefore, Bonnie will never finish.&lt;br /&gt;
&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;&lt;/div&gt;</summary>
		<author><name>Mxdys</name></author>
	</entry>
	<entry>
		<id>https://wiki.bbchallenge.org/w/index.php?title=Beaver_Math_Olympiad&amp;diff=4003</id>
		<title>Beaver Math Olympiad</title>
		<link rel="alternate" type="text/html" href="https://wiki.bbchallenge.org/w/index.php?title=Beaver_Math_Olympiad&amp;diff=4003"/>
		<updated>2025-09-28T09:34:07Z</updated>

		<summary type="html">&lt;p&gt;Mxdys: /* 7. 1RB1RF_1RC0RA_1LD1RC_1LE0LE_0RA0LD_0RB--- (bbch) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;Beaver Mathematical Olympiad&#039;&#039;&#039; (BMO) is an attempt to re-formulate the halting problem for some particular Turing machines as a mathematical problem in a style suitable for a hypothetical math olympiad. &lt;br /&gt;
&lt;br /&gt;
The purpose of the BMO is twofold. First, statements where non-essential details (related to tape encoding, number of steps, etc.) are discarded are more suitable to be shared with mathematicians who perhaps are able to help. Second, it&#039;s a way to jokingly highlight how a hard question could appear deceptively simple.&lt;br /&gt;
&lt;br /&gt;
== Unsolved problems ==&lt;br /&gt;
&lt;br /&gt;
=== 1. {{TM|1RB1RE_1LC0RA_0RD1LB_---1RC_1LF1RE_0LB0LE|undecided}} ===&lt;br /&gt;
&lt;br /&gt;
Let &amp;lt;math&amp;gt;(a_n)_{n \ge 1}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;(b_n)_{n \ge 1}&amp;lt;/math&amp;gt; be two sequences such that &amp;lt;math&amp;gt;(a_1, b_1) = (1, 2)&amp;lt;/math&amp;gt; and&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;(a_{n+1}, b_{n+1}) = \begin{cases}&lt;br /&gt;
(a_n-b_n, 4b_n+2) &amp;amp; \text{if }a_n \ge b_n \\&lt;br /&gt;
(2a_n+1, b_n-a_n) &amp;amp; \text{if }a_n &amp;lt; b_n&lt;br /&gt;
\end{cases}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
for all positive integers &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;. Does there exist a positive integer &amp;lt;math&amp;gt;i&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;a_i = b_i&amp;lt;/math&amp;gt;?&lt;br /&gt;
&lt;br /&gt;
The first 10 values of &amp;lt;math&amp;gt;(a_n, b_n)&amp;lt;/math&amp;gt; are &amp;lt;math&amp;gt;(1, 2), (3, 1), (2, 6), (5, 4), (1, 18), (3, 17), (7, 14), (15, 7), (8, 30), (17, 22)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== 2. [[Hydra]] and [[Antihydra]] ===&lt;br /&gt;
&lt;br /&gt;
Let &amp;lt;math&amp;gt;(a_n)_{n \ge 0}&amp;lt;/math&amp;gt; be a sequence such that &amp;lt;math&amp;gt;a_{n+1} = a_n+\left\lfloor\frac{a_n}{2}\right\rfloor&amp;lt;/math&amp;gt; for all non-negative integers &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
# If &amp;lt;math&amp;gt;a_0=3&amp;lt;/math&amp;gt;, does there exist a non-negative integer &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt; such that the list of numbers &amp;lt;math&amp;gt;a_0, a_1, a_2, \dots, a_k&amp;lt;/math&amp;gt; have more than twice as many even numbers as odd numbers? ([[Hydra]])&lt;br /&gt;
# If &amp;lt;math&amp;gt;a_0=8&amp;lt;/math&amp;gt;, does there exist a non-negative integer &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt; such that the list of numbers &amp;lt;math&amp;gt;a_0, a_1, a_2, \dots, a_k&amp;lt;/math&amp;gt; have more than twice as many odd numbers as even numbers? ([[Antihydra]])&lt;br /&gt;
&lt;br /&gt;
=== 5. {{TM|1RB0LD_1LC0RA_1RA1LB_1LA1LE_1RF0LC_---0RE|undecided}} ===&lt;br /&gt;
&lt;br /&gt;
Let &amp;lt;math&amp;gt;(a_n)_{n \ge 1}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;(b_n)_{n \ge 1}&amp;lt;/math&amp;gt; be two sequences such that &amp;lt;math&amp;gt;(a_1, b_1) = (0, 5)&amp;lt;/math&amp;gt; and&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;(a_{n+1}, b_{n+1}) = \begin{cases}&lt;br /&gt;
(a_n+1, b_n-f(a_n)) &amp;amp; \text{if } b_n \ge f(a_n) \\&lt;br /&gt;
(a_n, 3b_n+a_n+5) &amp;amp; \text{if } b_n &amp;lt; f(a_n)&lt;br /&gt;
\end{cases}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;f(x)=10\cdot 2^x-1&amp;lt;/math&amp;gt; for all non-negative integers &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
Does there exist a positive integer &amp;lt;math&amp;gt;i&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;b_i = f(a_i)-1&amp;lt;/math&amp;gt;?&lt;br /&gt;
&lt;br /&gt;
=== 6. {{TM|1RB1LA_1LC0RE_1LF1LD_0RB0LA_1RC1RE_---0LD|undecided}} ===&lt;br /&gt;
Let &amp;lt;math&amp;gt;f(b) = b + k + 3a&amp;lt;/math&amp;gt;, where &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; are non-negative integers satisfying &amp;lt;math&amp;gt;b = (2a+1)\cdot 2^k&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Now consider the iterated application of the function &amp;lt;math&amp;gt;f^{n+1}(b) = f(f^n(b)))&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;f^0(b)=b&amp;lt;/math&amp;gt;. Does there exist a non-negative integer &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;f^n(6)&amp;lt;/math&amp;gt; equals a power of 2?&lt;br /&gt;
&lt;br /&gt;
=== 7. {{TM|1RB1RF_1RC0RA_1LD1RC_1LE0LE_0RA0LD_0RB---|undecided}} ===&lt;br /&gt;
Let &amp;lt;math&amp;gt;v_2(n)&amp;lt;/math&amp;gt; be the largest integer &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;2^k&amp;lt;/math&amp;gt; divides &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Let &amp;lt;math&amp;gt;f(n) = n+1+(v_2(n+1) \bmod 2)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Now consider the iterated application of the function &amp;lt;math&amp;gt;f^{n+1}(b) = f(f^n(b)))&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;f^0(b)=b&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Let &amp;lt;math&amp;gt;(a_n)_{n \ge 0}&amp;lt;/math&amp;gt; be a sequence such that &amp;lt;math&amp;gt;a_0=1&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;a_{n+1} = f^{n+2}\left(\left\lfloor\frac{a_n}{2}\right\rfloor\right)&amp;lt;/math&amp;gt; for all non-negative integers &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Does there exist a non-negative integer &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;a_k&amp;lt;/math&amp;gt; is even?&lt;br /&gt;
&lt;br /&gt;
== Solved problems ==&lt;br /&gt;
&lt;br /&gt;
=== 3. {{TM|1RB0RB3LA4LA2RA_2LB3RA---3RA4RB|non-halt}} and {{TM|1RB1RB3LA4LA2RA_2LB3RA---3RA4RB|non-halt}} ===&lt;br /&gt;
&lt;br /&gt;
Let &amp;lt;math&amp;gt;v_2(n)&amp;lt;/math&amp;gt; be the largest integer &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;2^k&amp;lt;/math&amp;gt; divides &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;. Let &amp;lt;math&amp;gt;(a_n)_{n \ge 0}&amp;lt;/math&amp;gt; be a sequence such that&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;a_n = \begin{cases}&lt;br /&gt;
2 &amp;amp; \text{if } n=0 \\&lt;br /&gt;
a_{n-1}+2^{v_2(a_{n-1})+2}-1 &amp;amp; \text{if } n \ge 1&lt;br /&gt;
\end{cases}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
for all non-negative integers &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;. Is there an integer &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;a_n=4^k&amp;lt;/math&amp;gt; for some positive integer &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt;?&lt;br /&gt;
&lt;br /&gt;
Link to Discord discussion: https://discord.com/channels/960643023006490684/1084047886494470185/1252634913220591728&lt;br /&gt;
&lt;br /&gt;
=== 4. {{TM|1RB3RB---1LB0LA_2LA4RA3LA4RB1LB|non-halt}} ===&lt;br /&gt;
&lt;br /&gt;
Bonnie the beaver was bored, so she tried to construct a sequence of integers &amp;lt;math&amp;gt;\{a_n\}_{n \ge 0}&amp;lt;/math&amp;gt;. She first defined &amp;lt;math&amp;gt;a_0=2&amp;lt;/math&amp;gt;, then defined &amp;lt;math&amp;gt;a_{n+1}&amp;lt;/math&amp;gt; depending on &amp;lt;math&amp;gt;a_n&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; using the following rules:&lt;br /&gt;
&lt;br /&gt;
* If &amp;lt;math&amp;gt;a_n \equiv 0\text{ (mod 3)}&amp;lt;/math&amp;gt;, then &amp;lt;math&amp;gt;a_{n+1}=\frac{a_n}{3}+2^n+1&amp;lt;/math&amp;gt;.&lt;br /&gt;
* If &amp;lt;math&amp;gt;a_n \equiv 2\text{ (mod 3)}&amp;lt;/math&amp;gt;, then &amp;lt;math&amp;gt;a_{n+1}=\frac{a_n-2}{3}+2^n-1&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
With these two rules alone, Bonnie calculates the first few terms in the sequence: &amp;lt;math&amp;gt;2, 0, 3, 6, 11, 18, 39, 78, 155, 306, \dots&amp;lt;/math&amp;gt;. At this point, Bonnie plans to continue writing terms until a term becomes &amp;lt;math&amp;gt;1\text{ (mod 3)}&amp;lt;/math&amp;gt;. If Bonnie sticks to her plan, will she ever finish?&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;toccolours mw-collapsible mw-collapsed&amp;quot;&amp;gt;&#039;&#039;&#039;Solution&#039;&#039;&#039;&amp;lt;div class=&amp;quot;mw-collapsible-content&amp;quot;&amp;gt;&lt;br /&gt;
How to guess the closed-form solution: Firstly, notice that &amp;lt;math&amp;gt;a_n \approx \frac{3}{5} \times 2^n&amp;lt;/math&amp;gt;. Secondly, calculate the error term &amp;lt;math&amp;gt;a_n - \frac{3}{5} \times 2^n&amp;lt;/math&amp;gt;. The error term appears to have a period of 4. This leads to the following guess:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;a_n=\frac{3}{5}\begin{cases}&lt;br /&gt;
2^n+\frac{7}{3} &amp;amp;\text{if } n\equiv 0 \pmod{4}\\&lt;br /&gt;
2^n-2 &amp;amp;\text{if } n\equiv 1 \pmod{4}\\&lt;br /&gt;
2^n+1 &amp;amp;\text{if } n\equiv 2 \pmod{4}\\&lt;br /&gt;
2^n+2 &amp;amp;\text{if } n\equiv 3 \pmod{4}\\&lt;br /&gt;
\end{cases}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This closed-form solution can be proven correct by induction. Unfortunately, the induction may require a lot of tedious calculations.&lt;br /&gt;
&lt;br /&gt;
For all &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt;, we have &amp;lt;math&amp;gt;a_{4k} \equiv 2\text{ (mod 3)}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;a_{4k+1} \equiv a_{4k+2} \equiv a_{4k+3} \equiv 0\text{ (mod 3)}&amp;lt;/math&amp;gt;. Therefore, Bonnie will never finish.&lt;br /&gt;
&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;&lt;/div&gt;</summary>
		<author><name>Mxdys</name></author>
	</entry>
	<entry>
		<id>https://wiki.bbchallenge.org/w/index.php?title=Beaver_Math_Olympiad&amp;diff=4002</id>
		<title>Beaver Math Olympiad</title>
		<link rel="alternate" type="text/html" href="https://wiki.bbchallenge.org/w/index.php?title=Beaver_Math_Olympiad&amp;diff=4002"/>
		<updated>2025-09-28T09:31:41Z</updated>

		<summary type="html">&lt;p&gt;Mxdys: add BMO7&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;Beaver Mathematical Olympiad&#039;&#039;&#039; (BMO) is an attempt to re-formulate the halting problem for some particular Turing machines as a mathematical problem in a style suitable for a hypothetical math olympiad. &lt;br /&gt;
&lt;br /&gt;
The purpose of the BMO is twofold. First, statements where non-essential details (related to tape encoding, number of steps, etc.) are discarded are more suitable to be shared with mathematicians who perhaps are able to help. Second, it&#039;s a way to jokingly highlight how a hard question could appear deceptively simple.&lt;br /&gt;
&lt;br /&gt;
== Unsolved problems ==&lt;br /&gt;
&lt;br /&gt;
=== 1. {{TM|1RB1RE_1LC0RA_0RD1LB_---1RC_1LF1RE_0LB0LE|undecided}} ===&lt;br /&gt;
&lt;br /&gt;
Let &amp;lt;math&amp;gt;(a_n)_{n \ge 1}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;(b_n)_{n \ge 1}&amp;lt;/math&amp;gt; be two sequences such that &amp;lt;math&amp;gt;(a_1, b_1) = (1, 2)&amp;lt;/math&amp;gt; and&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;(a_{n+1}, b_{n+1}) = \begin{cases}&lt;br /&gt;
(a_n-b_n, 4b_n+2) &amp;amp; \text{if }a_n \ge b_n \\&lt;br /&gt;
(2a_n+1, b_n-a_n) &amp;amp; \text{if }a_n &amp;lt; b_n&lt;br /&gt;
\end{cases}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
for all positive integers &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;. Does there exist a positive integer &amp;lt;math&amp;gt;i&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;a_i = b_i&amp;lt;/math&amp;gt;?&lt;br /&gt;
&lt;br /&gt;
The first 10 values of &amp;lt;math&amp;gt;(a_n, b_n)&amp;lt;/math&amp;gt; are &amp;lt;math&amp;gt;(1, 2), (3, 1), (2, 6), (5, 4), (1, 18), (3, 17), (7, 14), (15, 7), (8, 30), (17, 22)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== 2. [[Hydra]] and [[Antihydra]] ===&lt;br /&gt;
&lt;br /&gt;
Let &amp;lt;math&amp;gt;(a_n)_{n \ge 0}&amp;lt;/math&amp;gt; be a sequence such that &amp;lt;math&amp;gt;a_{n+1} = a_n+\left\lfloor\frac{a_n}{2}\right\rfloor&amp;lt;/math&amp;gt; for all non-negative integers &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
# If &amp;lt;math&amp;gt;a_0=3&amp;lt;/math&amp;gt;, does there exist a non-negative integer &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt; such that the list of numbers &amp;lt;math&amp;gt;a_0, a_1, a_2, \dots, a_k&amp;lt;/math&amp;gt; have more than twice as many even numbers as odd numbers? ([[Hydra]])&lt;br /&gt;
# If &amp;lt;math&amp;gt;a_0=8&amp;lt;/math&amp;gt;, does there exist a non-negative integer &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt; such that the list of numbers &amp;lt;math&amp;gt;a_0, a_1, a_2, \dots, a_k&amp;lt;/math&amp;gt; have more than twice as many odd numbers as even numbers? ([[Antihydra]])&lt;br /&gt;
&lt;br /&gt;
=== 5. {{TM|1RB0LD_1LC0RA_1RA1LB_1LA1LE_1RF0LC_---0RE|undecided}} ===&lt;br /&gt;
&lt;br /&gt;
Let &amp;lt;math&amp;gt;(a_n)_{n \ge 1}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;(b_n)_{n \ge 1}&amp;lt;/math&amp;gt; be two sequences such that &amp;lt;math&amp;gt;(a_1, b_1) = (0, 5)&amp;lt;/math&amp;gt; and&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;(a_{n+1}, b_{n+1}) = \begin{cases}&lt;br /&gt;
(a_n+1, b_n-f(a_n)) &amp;amp; \text{if } b_n \ge f(a_n) \\&lt;br /&gt;
(a_n, 3b_n+a_n+5) &amp;amp; \text{if } b_n &amp;lt; f(a_n)&lt;br /&gt;
\end{cases}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;f(x)=10\cdot 2^x-1&amp;lt;/math&amp;gt; for all non-negative integers &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
Does there exist a positive integer &amp;lt;math&amp;gt;i&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;b_i = f(a_i)-1&amp;lt;/math&amp;gt;?&lt;br /&gt;
&lt;br /&gt;
=== 6. {{TM|1RB1LA_1LC0RE_1LF1LD_0RB0LA_1RC1RE_---0LD|undecided}} ===&lt;br /&gt;
Let &amp;lt;math&amp;gt;f(b) = b + k + 3a&amp;lt;/math&amp;gt;, where &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; are non-negative integers satisfying &amp;lt;math&amp;gt;b = (2a+1)\cdot 2^k&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Now consider the iterated application of the function &amp;lt;math&amp;gt;f^{n+1}(b) = f(f^n(b)))&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;f^0(b)=b&amp;lt;/math&amp;gt;. Does there exist a non-negative integer &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;f^n(6)&amp;lt;/math&amp;gt; equals a power of 2?&lt;br /&gt;
&lt;br /&gt;
=== 7. {{TM|1RB1RF_1RC0RA_1LD1RC_1LE0LE_0RA0LD_0RB---|undecided}} ===&lt;br /&gt;
Let &amp;lt;math&amp;gt;v_2(n)&amp;lt;/math&amp;gt; be the largest integer &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;2^k&amp;lt;/math&amp;gt; divides &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;.&lt;br /&gt;
Let &amp;lt;math&amp;gt;f(n) = n+1+(v_2(n+1) \bmod 2)&amp;lt;/math&amp;gt;.&lt;br /&gt;
Now consider the iterated application of the function &amp;lt;math&amp;gt;f^{n+1}(b) = f(f^n(b)))&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;f^0(b)=b&amp;lt;/math&amp;gt;.&lt;br /&gt;
Let &amp;lt;math&amp;gt;(a_n)_{n \ge 0}&amp;lt;/math&amp;gt; be a sequence such that &amp;lt;math&amp;gt;a_0=1&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;a_{n+1} = f^{n+2}\left(\left\lfloor\frac{a_n}{2}\right\rfloor\right)&amp;lt;/math&amp;gt; for all non-negative integers &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;.&lt;br /&gt;
Does there exist a non-negative integer &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt; is even?&lt;br /&gt;
&lt;br /&gt;
== Solved problems ==&lt;br /&gt;
&lt;br /&gt;
=== 3. {{TM|1RB0RB3LA4LA2RA_2LB3RA---3RA4RB|non-halt}} and {{TM|1RB1RB3LA4LA2RA_2LB3RA---3RA4RB|non-halt}} ===&lt;br /&gt;
&lt;br /&gt;
Let &amp;lt;math&amp;gt;v_2(n)&amp;lt;/math&amp;gt; be the largest integer &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;2^k&amp;lt;/math&amp;gt; divides &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;. Let &amp;lt;math&amp;gt;(a_n)_{n \ge 0}&amp;lt;/math&amp;gt; be a sequence such that&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;a_n = \begin{cases}&lt;br /&gt;
2 &amp;amp; \text{if } n=0 \\&lt;br /&gt;
a_{n-1}+2^{v_2(a_{n-1})+2}-1 &amp;amp; \text{if } n \ge 1&lt;br /&gt;
\end{cases}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
for all non-negative integers &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;. Is there an integer &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;a_n=4^k&amp;lt;/math&amp;gt; for some positive integer &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt;?&lt;br /&gt;
&lt;br /&gt;
Link to Discord discussion: https://discord.com/channels/960643023006490684/1084047886494470185/1252634913220591728&lt;br /&gt;
&lt;br /&gt;
=== 4. {{TM|1RB3RB---1LB0LA_2LA4RA3LA4RB1LB|non-halt}} ===&lt;br /&gt;
&lt;br /&gt;
Bonnie the beaver was bored, so she tried to construct a sequence of integers &amp;lt;math&amp;gt;\{a_n\}_{n \ge 0}&amp;lt;/math&amp;gt;. She first defined &amp;lt;math&amp;gt;a_0=2&amp;lt;/math&amp;gt;, then defined &amp;lt;math&amp;gt;a_{n+1}&amp;lt;/math&amp;gt; depending on &amp;lt;math&amp;gt;a_n&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; using the following rules:&lt;br /&gt;
&lt;br /&gt;
* If &amp;lt;math&amp;gt;a_n \equiv 0\text{ (mod 3)}&amp;lt;/math&amp;gt;, then &amp;lt;math&amp;gt;a_{n+1}=\frac{a_n}{3}+2^n+1&amp;lt;/math&amp;gt;.&lt;br /&gt;
* If &amp;lt;math&amp;gt;a_n \equiv 2\text{ (mod 3)}&amp;lt;/math&amp;gt;, then &amp;lt;math&amp;gt;a_{n+1}=\frac{a_n-2}{3}+2^n-1&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
With these two rules alone, Bonnie calculates the first few terms in the sequence: &amp;lt;math&amp;gt;2, 0, 3, 6, 11, 18, 39, 78, 155, 306, \dots&amp;lt;/math&amp;gt;. At this point, Bonnie plans to continue writing terms until a term becomes &amp;lt;math&amp;gt;1\text{ (mod 3)}&amp;lt;/math&amp;gt;. If Bonnie sticks to her plan, will she ever finish?&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;toccolours mw-collapsible mw-collapsed&amp;quot;&amp;gt;&#039;&#039;&#039;Solution&#039;&#039;&#039;&amp;lt;div class=&amp;quot;mw-collapsible-content&amp;quot;&amp;gt;&lt;br /&gt;
How to guess the closed-form solution: Firstly, notice that &amp;lt;math&amp;gt;a_n \approx \frac{3}{5} \times 2^n&amp;lt;/math&amp;gt;. Secondly, calculate the error term &amp;lt;math&amp;gt;a_n - \frac{3}{5} \times 2^n&amp;lt;/math&amp;gt;. The error term appears to have a period of 4. This leads to the following guess:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;a_n=\frac{3}{5}\begin{cases}&lt;br /&gt;
2^n+\frac{7}{3} &amp;amp;\text{if } n\equiv 0 \pmod{4}\\&lt;br /&gt;
2^n-2 &amp;amp;\text{if } n\equiv 1 \pmod{4}\\&lt;br /&gt;
2^n+1 &amp;amp;\text{if } n\equiv 2 \pmod{4}\\&lt;br /&gt;
2^n+2 &amp;amp;\text{if } n\equiv 3 \pmod{4}\\&lt;br /&gt;
\end{cases}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This closed-form solution can be proven correct by induction. Unfortunately, the induction may require a lot of tedious calculations.&lt;br /&gt;
&lt;br /&gt;
For all &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt;, we have &amp;lt;math&amp;gt;a_{4k} \equiv 2\text{ (mod 3)}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;a_{4k+1} \equiv a_{4k+2} \equiv a_{4k+3} \equiv 0\text{ (mod 3)}&amp;lt;/math&amp;gt;. Therefore, Bonnie will never finish.&lt;br /&gt;
&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;&lt;/div&gt;</summary>
		<author><name>Mxdys</name></author>
	</entry>
	<entry>
		<id>https://wiki.bbchallenge.org/w/index.php?title=TMBR:_August_2025&amp;diff=3597</id>
		<title>TMBR: August 2025</title>
		<link rel="alternate" type="text/html" href="https://wiki.bbchallenge.org/w/index.php?title=TMBR:_August_2025&amp;diff=3597"/>
		<updated>2025-09-02T14:07:55Z</updated>

		<summary type="html">&lt;p&gt;Mxdys: /* Holdouts */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:Conference poster for DNA31 by Tristan Stérin.png|thumb|396x396px|Conference poster for the [https://dna31.sciencesconf.org/ 31st International Conference on DNA Computing and Molecular Programming], [https://discord.com/channels/960643023006490684/960643023530762341/1409904231468761159 made by Tristan Stérin (cosmo)]]]&lt;br /&gt;
&lt;br /&gt;
[[:Category:This Month in Beaver Research|This Month in Beaver Research]] for August 2025. This month, Tristan Stérin presented a poster (see right) at DNA 31, there were significant holdouts reduction in numerous domains, a fast algorithm for Antihydra (and similar Collatz-like problems) was re-discovered, and multisymbol support was added to the Blaze TM visualizer.&lt;br /&gt;
&lt;br /&gt;
== Cryptids ==&lt;br /&gt;
A fast algorithm for [[Consistent Collatz]] simulation was re-discovered and popularized. Using it:&lt;br /&gt;
* apgoucher simulated [[Antihydra]] to &amp;lt;math&amp;gt;2^{38}&amp;lt;/math&amp;gt; iterations. This is actually a result from one year ago, but was rediscovered and added to the wiki. https://discord.com/channels/960643023006490684/1026577255754903572/1271528180246773883&lt;br /&gt;
* Shawn Ligocki simulated {{TM|1RB1RA_0RC1RC_1LD0LF_0LE1LE_1RA0LB_---0LC}} out to one additional Collatz reset, demonstrating that (if they halt, which they probviously should) they will have sigma scores &amp;lt;math&amp;gt;&amp;gt; 10^{10^{10^7}}&amp;lt;/math&amp;gt;.&lt;br /&gt;
This algorithm has near linear runtime (in the number of iterations simulated), but also linear memory growth since the parameters grow exponentially. This memory limit seems to be the main bottleneck to simulating Antihydra and other Consistent Collatz iterations further. There has been some discussion on more efficient memory usage or a distributed algorithm to support further scaling, but no results are available yet.&lt;br /&gt;
&lt;br /&gt;
== Holdouts ==&lt;br /&gt;
In August there were significant reductions in [[Holdouts lists]] across many [[BB Domains]]&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+BB Holdout Reduction by Domain&lt;br /&gt;
!Domain&lt;br /&gt;
!New Holdout Count&lt;br /&gt;
!July Holdout Count&lt;br /&gt;
!# TMs Decided&lt;br /&gt;
!% Reduction&lt;br /&gt;
|-&lt;br /&gt;
|[[BB(6)]]&lt;br /&gt;
|2,592&lt;br /&gt;
|2,728&lt;br /&gt;
|136&lt;br /&gt;
|5.0%&lt;br /&gt;
|-&lt;br /&gt;
|[[BB(2,6)]]&lt;br /&gt;
|18,054,938&lt;br /&gt;
|22,302,296&lt;br /&gt;
|4,247,358&lt;br /&gt;
|19.0%&lt;br /&gt;
|-&lt;br /&gt;
|[[BB(7)]]&lt;br /&gt;
|59,727,905&lt;br /&gt;
|86,129,304&lt;br /&gt;
|26,401,399&lt;br /&gt;
|30.7%&lt;br /&gt;
|}&lt;br /&gt;
* [[BB(6)]] holdouts: Reduced by a total of 136 holdouts by 4 people.&lt;br /&gt;
** XnoobSpeakable found 9 new halting TMs in the high exponential runtime range (~&amp;lt;math&amp;gt;10^{100000}&amp;lt;/math&amp;gt;) by running Enumerate.py out to extremely high parameters. https://discord.com/channels/960643023006490684/1239205785913790465/1401470301467836556&lt;br /&gt;
** [https://discord.com/channels/960643023006490684/1239205785913790465/1407580922831831152 Andrew Ducharme found a surprisingly short running halting TM] in the [[BB(6)]] holdouts list with runtime ~&amp;lt;math&amp;gt;10^{78}&amp;lt;/math&amp;gt;, to which [https://discord.com/channels/960643023006490684/1239205785913790465/1407659104910053387 Peacemaker replied with another TM] that was almost identical, and soon, simulation showed it to halt in the same number of steps. Later on the 28th, [https://discord.com/channels/960643023006490684/1239205785913790465/1410465964528504872 Ducharme found another one] with surprisingly low runtime: ~&amp;lt;math&amp;gt;10^{11}&amp;lt;/math&amp;gt;. In response, [https://discord.com/channels/960643023006490684/1239205785913790465/1410475867200815114 Peacemaker found an almost identical machine], which also halts with similar runtime.&lt;br /&gt;
** Peacemaker shared a list of BB(6) holdouts and how many steps are required to use all defined transitions. https://discord.com/channels/960643023006490684/1239205785913790465/1410437756777398344&lt;br /&gt;
** @mxdys shared a list of 7 holdouts that he solved using [https://github.com/ccz181078/busycoq/blob/b1e53d74e5053c3379645aaf75fa8c7a72d00547/verify/RWLAcc.v his RWLAcc decider in Rocq] (previously known as Coq). https://discord.com/channels/960643023006490684/1239205785913790465/1408304281039409212 He also shared results featuring 6 holdouts that were solved in &amp;quot;50 Random Holdouts&amp;quot;, see https://discord.com/channels/960643023006490684/1400456788955893840/1409115537631613020&lt;br /&gt;
** On August 30, @mxdys shared the [https://wiki.bbchallenge.org/wiki/Holdouts_lists#Downloadable_Holdout_Lists new holdouts list], consisting of 2,592 TMs. (The additional 110 TMs not listed here were solved by @mxdys using deciders or individual proofs.)&lt;br /&gt;
*After the [[BB(7)#Phase 1|enumeration of BB(7)]] was completed, Andrew Ducharme ran [[BB(7)#Phase 2|several deciders]] on the holdouts list, filtering the original 86,129,304 holdouts down to 59,727,905 in 10 days. https://drive.google.com/drive/u/0/folders/17U0BRpJHTMLtB0poBlOSZhGGp4FkCHIO&lt;br /&gt;
*[[BB(3,3)|BB(3,3):]] 9 holdouts were proven non-halting in Rocq (previously known as Coq) by mxdys. [https://wiki.bbchallenge.org/wiki/BB(3,3)#Holdouts 10 holdouts remain, 4 of them solved with moderate rigor.] https://discord.com/channels/960643023006490684/1259770474897080380/1410308974275985428&lt;br /&gt;
*[https://discord.com/channels/960643023006490684/1259770421046411285/1411488532500971631 @mxdys proved] 2 [[BB(2,5)]] machines are non-halting in Rocq.&lt;br /&gt;
*Andrew Ducharme reduced the [[BB(2,6)]] holdouts from 22,302,296 to 18,054,938. https://discord.com/channels/960643023006490684/1084047886494470185/1412345770241163294&lt;br /&gt;
&lt;br /&gt;
==BB Adjacent==&lt;br /&gt;
*John Tromp introduced the &amp;lt;math&amp;gt;BB \lambda _1(n)&amp;lt;/math&amp;gt; function for [[Busy Beaver for lambda calculus#Oracle Busy Beaver|Busy Beaver for lambda calculus with an oracle]] and computed it up to &amp;lt;math&amp;gt;BB \lambda _1(22)&amp;lt;/math&amp;gt;.&lt;br /&gt;
* Instruction-Limited Greedy Busy Beaver gBBi(n) and an [[Instruction-Limited Busy Beaver#Instruction-Limited Busy Beaver Variants|Instruction-Limited variant]] of the [[Blanking Busy Beaver]] (BLBi(n)) were introduced. gBBi(n) was computed up to n = 13 and BLBi(n) was computed up to n = 7.&lt;br /&gt;
&lt;br /&gt;
== Misc ==&lt;br /&gt;
* Iijil shared an algorithm for converting an arbitrary n-state m-symbol TM into a 2-state TM with 3(n+1)m symbols. https://gist.github.com/Iijil1/0d611dbf0a9d52984f72cb14e66a4b28&lt;br /&gt;
* Carl K updated his TM web-visualizer to support multi-symbol machines. [https://carlkcarlk.github.io/busy_beaver_blaze/v0.2.6/index.html#palette=edit&amp;amp;colors=000000%2Cff0000%2Cffff00%2Cff00ff%2C00ffff&amp;amp;run=true https://carlkcarlk.github.io/busy_beaver_blaze/v0.2.6/index.html] He also extended his series of videos showing TM simulation accompanied by classical music out to some multi-symbol TMs:&lt;br /&gt;
** [[Bigfoot]]: https://youtu.be/YvOHWbQNMoY&lt;br /&gt;
** [[Surprise in a Box|Brady&#039;s Surprise in a Box]]: https://youtu.be/vIG2CvJShRc&lt;br /&gt;
** [[1RB3LA4RB0RB2LA 1LB2LA3LA1RA1RZ|BB(2,5) champ:]] https://youtu.be/QpYBzYDdLEY&lt;br /&gt;
** Some interesting BB(2,5) machines: https://youtu.be/CSEKxTpXrDE&lt;br /&gt;
*@mxdys Introduced &amp;quot;50 Random Holdouts&amp;quot;, a thread on the Discord server, where 50 random TMs are selected from the BB(6) holdout list, and everybody focuses on these 50 machines. This month, 6/50 TMs were solved by @mxdys single-handedly.&lt;br /&gt;
*The community (especially, Andrew Ducharme) [https://discord.com/channels/960643023006490684/992572017683472514/1408559249067479145 proposed a concept &amp;quot;BB(n,m) month&amp;quot;,] where the community mainly focuses on a single domain, i.e. BB(3,3). The motive of this focused month is to make genuine progress in the one selected domain, with the ultimate goal to reduce all holdouts to [[Cryptids]], with all remaining TMs having been proven in Rocq.&lt;br /&gt;
&lt;br /&gt;
==Blog Posts==&lt;br /&gt;
* 1 Sep 2025. Katelyn Doucette. [https://katelyndoucette.com/articles/all-about-space-needle All About Space Needle].&lt;br /&gt;
&lt;br /&gt;
==In the News==&lt;br /&gt;
* 22 Aug 2025. Ben Brubaker. Quanta Magazine. [https://www.quantamagazine.org/busy-beaver-hunters-reach-numbers-that-overwhelm-ordinary-math-20250822/ Busy Beaver Hunters Reach Numbers That Overwhelm Ordinary Math].&lt;br /&gt;
&lt;br /&gt;
==Interesting TMs==&lt;br /&gt;
A collection of interesting TMs that were mentioned on Discord, mostly because of their space-time diagrams or general behavior.&lt;br /&gt;
&lt;br /&gt;
* {{TM|1RB0LE_1RC0RF_1RD---_0LA1RB_1RB1LE_1LD1RF}}: Wavy Machine&lt;br /&gt;
* {{TM|1RB0LD_1RC1RA_1LD0RB_1LE1LA_1RF0RC_---1RE}}: [[Probviously]] halting Cryptid&lt;br /&gt;
* &amp;lt;code&amp;gt;[[1RB1LE_1LC0RA_0RF0LD_1LE1LA_1RC0LB_---1RC]]&amp;lt;/code&amp;gt; ([https://bbchallenge.org/1RB1LE_1LC0RA_0RF0LD_1LE1LA_1RC0LB_---1RC bbch]): Unsolved BB(6) TM with pseudorandom behaviour&lt;br /&gt;
&lt;br /&gt;
[[Category:This Month in Beaver Research|2025-08]]&lt;/div&gt;</summary>
		<author><name>Mxdys</name></author>
	</entry>
	<entry>
		<id>https://wiki.bbchallenge.org/w/index.php?title=Beaver_Math_Olympiad&amp;diff=3505</id>
		<title>Beaver Math Olympiad</title>
		<link rel="alternate" type="text/html" href="https://wiki.bbchallenge.org/w/index.php?title=Beaver_Math_Olympiad&amp;diff=3505"/>
		<updated>2025-08-29T15:47:39Z</updated>

		<summary type="html">&lt;p&gt;Mxdys: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;Beaver Mathematical Olympiad&#039;&#039;&#039; (BMO) is an attempt to re-formulate the halting problem for some particular Turing machines as a mathematical problem in a style suitable for a hypothetical math olympiad. &lt;br /&gt;
&lt;br /&gt;
The purpose of the BMO is twofold. First, statements where non-essential details (related to tape encoding, number of steps, etc.) are discarded are more suitable to be shared with mathematicians who perhaps are able to help. Second, it&#039;s a way to jokingly highlight how a hard question could appear deceptively simple.&lt;br /&gt;
&lt;br /&gt;
== Unsolved problems ==&lt;br /&gt;
&lt;br /&gt;
=== 1. {{TM|1RB1RE_1LC0RA_0RD1LB_---1RC_1LF1RE_0LB0LE|undecided}} ===&lt;br /&gt;
&lt;br /&gt;
Let &amp;lt;math&amp;gt;(a_n)_{n \ge 1}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;(b_n)_{n \ge 1}&amp;lt;/math&amp;gt; be two sequences such that &amp;lt;math&amp;gt;(a_1, b_1) = (1, 2)&amp;lt;/math&amp;gt; and&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;(a_{n+1}, b_{n+1}) = \begin{cases}&lt;br /&gt;
(a_n-b_n, 4b_n+2) &amp;amp; \text{if }a_n \ge b_n \\&lt;br /&gt;
(2a_n+1, b_n-a_n) &amp;amp; \text{if }a_n &amp;lt; b_n&lt;br /&gt;
\end{cases}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
for all positive integers &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;. Does there exist a positive integer &amp;lt;math&amp;gt;i&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;a_i = b_i&amp;lt;/math&amp;gt;?&lt;br /&gt;
&lt;br /&gt;
The first 10 values of &amp;lt;math&amp;gt;(a_n, b_n)&amp;lt;/math&amp;gt; are &amp;lt;math&amp;gt;(1, 2), (3, 1), (2, 6), (5, 4), (1, 18), (3, 17), (7, 14), (15, 7), (8, 30), (17, 22)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== 2. [[Hydra]] and [[Antihydra]] ===&lt;br /&gt;
&lt;br /&gt;
Let &amp;lt;math&amp;gt;(a_n)_{n \ge 0}&amp;lt;/math&amp;gt; be a sequence such that &amp;lt;math&amp;gt;a_{n+1} = a_n+\left\lfloor\frac{a_n}{2}\right\rfloor&amp;lt;/math&amp;gt; for all non-negative integers &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
# If &amp;lt;math&amp;gt;a_0=3&amp;lt;/math&amp;gt;, does there exist a non-negative integer &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt; such that the list of numbers &amp;lt;math&amp;gt;a_0, a_1, a_2, \dots, a_k&amp;lt;/math&amp;gt; have more than twice as many even numbers as odd numbers? ([[Hydra]])&lt;br /&gt;
# If &amp;lt;math&amp;gt;a_0=8&amp;lt;/math&amp;gt;, does there exist a non-negative integer &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt; such that the list of numbers &amp;lt;math&amp;gt;a_0, a_1, a_2, \dots, a_k&amp;lt;/math&amp;gt; have more than twice as many odd numbers as even numbers? ([[Antihydra]])&lt;br /&gt;
&lt;br /&gt;
=== 5. {{TM|1RB0LD_1LC0RA_1RA1LB_1LA1LE_1RF0LC_---0RE|undecided}} ===&lt;br /&gt;
&lt;br /&gt;
Let &amp;lt;math&amp;gt;(a_n)_{n \ge 1}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;(b_n)_{n \ge 1}&amp;lt;/math&amp;gt; be two sequences such that &amp;lt;math&amp;gt;(a_1, b_1) = (0, 5)&amp;lt;/math&amp;gt; and&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;(a_{n+1}, b_{n+1}) = \begin{cases}&lt;br /&gt;
(a_n+1, b_n-f(a_n)) &amp;amp; \text{if } b_n \ge f(a_n) \\&lt;br /&gt;
(a_n, 3b_n+a_n+5) &amp;amp; \text{if } b_n &amp;lt; f(a_n)&lt;br /&gt;
\end{cases}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;f(x)=10\cdot 2^x-1&amp;lt;/math&amp;gt; for all non-negative integers &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
Does there exist a positive integer &amp;lt;math&amp;gt;i&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;b_i = f(a_i)-1&amp;lt;/math&amp;gt;?&lt;br /&gt;
&lt;br /&gt;
=== 6. {{TM|1RB1LA_1LC0RE_1LF1LD_0RB0LA_1RC1RE_---0LD|undecided}} ===&lt;br /&gt;
Let &amp;lt;math&amp;gt;f(b) = b + k + 3a&amp;lt;/math&amp;gt;, where &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; are non-negative integers satisfying &amp;lt;math&amp;gt;b = (2a+1)\cdot 2^k&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Now consider the iterated application of the function &amp;lt;math&amp;gt;f^{n+1}(b) = f(f^n(b)))&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;f^0(b)=b&amp;lt;/math&amp;gt;. Does there exist a non-negative integer &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;f^n(6)&amp;lt;/math&amp;gt; equals a power of 2?&lt;br /&gt;
&lt;br /&gt;
== Solved problems ==&lt;br /&gt;
&lt;br /&gt;
=== 3. {{TM|1RB0RB3LA4LA2RA_2LB3RA---3RA4RB|non-halt}} and {{TM|1RB1RB3LA4LA2RA_2LB3RA---3RA4RB|non-halt}} ===&lt;br /&gt;
&lt;br /&gt;
Let &amp;lt;math&amp;gt;v_2(n)&amp;lt;/math&amp;gt; be the largest integer &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;2^k&amp;lt;/math&amp;gt; divides &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;. Let &amp;lt;math&amp;gt;(a_n)_{n \ge 0}&amp;lt;/math&amp;gt; be a sequence such that&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;a_n = \begin{cases}&lt;br /&gt;
2 &amp;amp; \text{if } n=0 \\&lt;br /&gt;
a_{n-1}+2^{v_2(a_{n-1})+2}-1 &amp;amp; \text{if } n \ge 1&lt;br /&gt;
\end{cases}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
for all non-negative integers &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;. Is there an integer &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;a_n=4^k&amp;lt;/math&amp;gt; for some positive integer &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt;?&lt;br /&gt;
&lt;br /&gt;
Link to Discord discussion: https://discord.com/channels/960643023006490684/1084047886494470185/1252634913220591728&lt;br /&gt;
&lt;br /&gt;
=== 4. {{TM|1RB3RB---1LB0LA_2LA4RA3LA4RB1LB|non-halt}} ===&lt;br /&gt;
&lt;br /&gt;
Bonnie the beaver was bored, so she tried to construct a sequence of integers &amp;lt;math&amp;gt;\{a_n\}_{n \ge 0}&amp;lt;/math&amp;gt;. She first defined &amp;lt;math&amp;gt;a_0=2&amp;lt;/math&amp;gt;, then defined &amp;lt;math&amp;gt;a_{n+1}&amp;lt;/math&amp;gt; depending on &amp;lt;math&amp;gt;a_n&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; using the following rules:&lt;br /&gt;
&lt;br /&gt;
* If &amp;lt;math&amp;gt;a_n \equiv 0\text{ (mod 3)}&amp;lt;/math&amp;gt;, then &amp;lt;math&amp;gt;a_{n+1}=\frac{a_n}{3}+2^n+1&amp;lt;/math&amp;gt;.&lt;br /&gt;
* If &amp;lt;math&amp;gt;a_n \equiv 2\text{ (mod 3)}&amp;lt;/math&amp;gt;, then &amp;lt;math&amp;gt;a_{n+1}=\frac{a_n-2}{3}+2^n-1&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
With these two rules alone, Bonnie calculates the first few terms in the sequence: &amp;lt;math&amp;gt;2, 0, 3, 6, 11, 18, 39, 78, 155, 306, \dots&amp;lt;/math&amp;gt;. At this point, Bonnie plans to continue writing terms until a term becomes &amp;lt;math&amp;gt;1\text{ (mod 3)}&amp;lt;/math&amp;gt;. If Bonnie sticks to her plan, will she ever finish?&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;toccolours mw-collapsible mw-collapsed&amp;quot;&amp;gt;&#039;&#039;&#039;Solution&#039;&#039;&#039;&amp;lt;div class=&amp;quot;mw-collapsible-content&amp;quot;&amp;gt;&lt;br /&gt;
How to guess the closed-form solution: Firstly, notice that &amp;lt;math&amp;gt;a_n \approx \frac{3}{5} \times 2^n&amp;lt;/math&amp;gt;. Secondly, calculate the error term &amp;lt;math&amp;gt;a_n - \frac{3}{5} \times 2^n&amp;lt;/math&amp;gt;. The error term appears to have a period of 4. This leads to the following guess:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;a_n=\frac{3}{5}\begin{cases}&lt;br /&gt;
2^n+\frac{7}{3} &amp;amp;\text{if } n\equiv 0 \pmod{4}\\&lt;br /&gt;
2^n-2 &amp;amp;\text{if } n\equiv 1 \pmod{4}\\&lt;br /&gt;
2^n+1 &amp;amp;\text{if } n\equiv 2 \pmod{4}\\&lt;br /&gt;
2^n+2 &amp;amp;\text{if } n\equiv 3 \pmod{4}\\&lt;br /&gt;
\end{cases}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This closed-form solution can be proven correct by induction. Unfortunately, the induction may require a lot of tedious calculations.&lt;br /&gt;
&lt;br /&gt;
For all &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt;, we have &amp;lt;math&amp;gt;a_{4k} \equiv 2\text{ (mod 3)}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;a_{4k+1} \equiv a_{4k+2} \equiv a_{4k+3} \equiv 0\text{ (mod 3)}&amp;lt;/math&amp;gt;. Therefore, Bonnie will never finish.&lt;br /&gt;
&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;&lt;/div&gt;</summary>
		<author><name>Mxdys</name></author>
	</entry>
	<entry>
		<id>https://wiki.bbchallenge.org/w/index.php?title=Beaver_Math_Olympiad&amp;diff=3504</id>
		<title>Beaver Math Olympiad</title>
		<link rel="alternate" type="text/html" href="https://wiki.bbchallenge.org/w/index.php?title=Beaver_Math_Olympiad&amp;diff=3504"/>
		<updated>2025-08-29T15:46:43Z</updated>

		<summary type="html">&lt;p&gt;Mxdys: f^0 is necessary for the inductive definition of iteration&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;Beaver Mathematical Olympiad&#039;&#039;&#039; (BMO) is an attempt to re-formulate the halting problem for some particular Turing machines as a mathematical problem in a style suitable for a hypothetical math olympiad. &lt;br /&gt;
&lt;br /&gt;
The purpose of the BMO is twofold. First, statements where non-essential details (related to tape encoding, number of steps, etc.) are discarded are more suitable to be shared with mathematicians who perhaps are able to help. Second, it&#039;s a way to jokingly highlight how a hard question could appear deceptively simple.&lt;br /&gt;
&lt;br /&gt;
== Unsolved problems ==&lt;br /&gt;
&lt;br /&gt;
=== 1. {{TM|1RB1RE_1LC0RA_0RD1LB_---1RC_1LF1RE_0LB0LE|undecided}} ===&lt;br /&gt;
&lt;br /&gt;
Let &amp;lt;math&amp;gt;(a_n)_{n \ge 1}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;(b_n)_{n \ge 1}&amp;lt;/math&amp;gt; be two sequences such that &amp;lt;math&amp;gt;(a_1, b_1) = (1, 2)&amp;lt;/math&amp;gt; and&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;(a_{n+1}, b_{n+1}) = \begin{cases}&lt;br /&gt;
(a_n-b_n, 4b_n+2) &amp;amp; \text{if }a_n \ge b_n \\&lt;br /&gt;
(2a_n+1, b_n-a_n) &amp;amp; \text{if }a_n &amp;lt; b_n&lt;br /&gt;
\end{cases}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
for all positive integers &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;. Does there exist a positive integer &amp;lt;math&amp;gt;i&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;a_i = b_i&amp;lt;/math&amp;gt;?&lt;br /&gt;
&lt;br /&gt;
The first 10 values of &amp;lt;math&amp;gt;(a_n, b_n)&amp;lt;/math&amp;gt; are &amp;lt;math&amp;gt;(1, 2), (3, 1), (2, 6), (5, 4), (1, 18), (3, 17), (7, 14), (15, 7), (8, 30), (17, 22)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== 2. [[Hydra]] and [[Antihydra]] ===&lt;br /&gt;
&lt;br /&gt;
Let &amp;lt;math&amp;gt;(a_n)_{n \ge 0}&amp;lt;/math&amp;gt; be a sequence such that &amp;lt;math&amp;gt;a_{n+1} = a_n+\left\lfloor\frac{a_n}{2}\right\rfloor&amp;lt;/math&amp;gt; for all non-negative integers &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
# If &amp;lt;math&amp;gt;a_0=3&amp;lt;/math&amp;gt;, does there exist a non-negative integer &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt; such that the list of numbers &amp;lt;math&amp;gt;a_0, a_1, a_2, \dots, a_k&amp;lt;/math&amp;gt; have more than twice as many even numbers as odd numbers? ([[Hydra]])&lt;br /&gt;
# If &amp;lt;math&amp;gt;a_0=8&amp;lt;/math&amp;gt;, does there exist a non-negative integer &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt; such that the list of numbers &amp;lt;math&amp;gt;a_0, a_1, a_2, \dots, a_k&amp;lt;/math&amp;gt; have more than twice as many odd numbers as even numbers? ([[Antihydra]])&lt;br /&gt;
&lt;br /&gt;
=== 5. {{TM|1RB0LD_1LC0RA_1RA1LB_1LA1LE_1RF0LC_---0RE|undecided}} ===&lt;br /&gt;
&lt;br /&gt;
Let &amp;lt;math&amp;gt;(a_n)_{n \ge 1}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;(b_n)_{n \ge 1}&amp;lt;/math&amp;gt; be two sequences such that &amp;lt;math&amp;gt;(a_1, b_1) = (0, 5)&amp;lt;/math&amp;gt; and&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;(a_{n+1}, b_{n+1}) = \begin{cases}&lt;br /&gt;
(a_n+1, b_n-f(a_n)) &amp;amp; \text{if } b_n \ge f(a_n) \\&lt;br /&gt;
(a_n, 3b_n+a_n+5) &amp;amp; \text{if } b_n &amp;lt; f(a_n)&lt;br /&gt;
\end{cases}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;f(x)=10\cdot 2^x-1&amp;lt;/math&amp;gt; for all non-negative integers &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
Does there exist a positive integer &amp;lt;math&amp;gt;i&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;b_i = f(a_i)-1&amp;lt;/math&amp;gt;?&lt;br /&gt;
&lt;br /&gt;
=== 6. {{TM|1RB1LA_1LC0RE_1LF1LD_0RB0LA_1RC1RE_---0LD|undecided}} ===&lt;br /&gt;
Let &amp;lt;math&amp;gt;f(b) = b + k + 3a&amp;lt;/math&amp;gt;, where &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; are non-negative integers satisfying &amp;lt;math&amp;gt;b = (2a+1)\cdot 2^k&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Now consider the iterated application of the function &amp;lt;math&amp;gt;f^{n+1}(b) = f(f^n(b)))&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;f^0(b)=b&amp;lt;/math&amp;gt;. Does there exist a non-negative integer &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;f^n(6)&amp;lt;/math&amp;gt; equal a power of 2?&lt;br /&gt;
&lt;br /&gt;
== Solved problems ==&lt;br /&gt;
&lt;br /&gt;
=== 3. {{TM|1RB0RB3LA4LA2RA_2LB3RA---3RA4RB|non-halt}} and {{TM|1RB1RB3LA4LA2RA_2LB3RA---3RA4RB|non-halt}} ===&lt;br /&gt;
&lt;br /&gt;
Let &amp;lt;math&amp;gt;v_2(n)&amp;lt;/math&amp;gt; be the largest integer &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;2^k&amp;lt;/math&amp;gt; divides &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;. Let &amp;lt;math&amp;gt;(a_n)_{n \ge 0}&amp;lt;/math&amp;gt; be a sequence such that&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;a_n = \begin{cases}&lt;br /&gt;
2 &amp;amp; \text{if } n=0 \\&lt;br /&gt;
a_{n-1}+2^{v_2(a_{n-1})+2}-1 &amp;amp; \text{if } n \ge 1&lt;br /&gt;
\end{cases}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
for all non-negative integers &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;. Is there an integer &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;a_n=4^k&amp;lt;/math&amp;gt; for some positive integer &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt;?&lt;br /&gt;
&lt;br /&gt;
Link to Discord discussion: https://discord.com/channels/960643023006490684/1084047886494470185/1252634913220591728&lt;br /&gt;
&lt;br /&gt;
=== 4. {{TM|1RB3RB---1LB0LA_2LA4RA3LA4RB1LB|non-halt}} ===&lt;br /&gt;
&lt;br /&gt;
Bonnie the beaver was bored, so she tried to construct a sequence of integers &amp;lt;math&amp;gt;\{a_n\}_{n \ge 0}&amp;lt;/math&amp;gt;. She first defined &amp;lt;math&amp;gt;a_0=2&amp;lt;/math&amp;gt;, then defined &amp;lt;math&amp;gt;a_{n+1}&amp;lt;/math&amp;gt; depending on &amp;lt;math&amp;gt;a_n&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; using the following rules:&lt;br /&gt;
&lt;br /&gt;
* If &amp;lt;math&amp;gt;a_n \equiv 0\text{ (mod 3)}&amp;lt;/math&amp;gt;, then &amp;lt;math&amp;gt;a_{n+1}=\frac{a_n}{3}+2^n+1&amp;lt;/math&amp;gt;.&lt;br /&gt;
* If &amp;lt;math&amp;gt;a_n \equiv 2\text{ (mod 3)}&amp;lt;/math&amp;gt;, then &amp;lt;math&amp;gt;a_{n+1}=\frac{a_n-2}{3}+2^n-1&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
With these two rules alone, Bonnie calculates the first few terms in the sequence: &amp;lt;math&amp;gt;2, 0, 3, 6, 11, 18, 39, 78, 155, 306, \dots&amp;lt;/math&amp;gt;. At this point, Bonnie plans to continue writing terms until a term becomes &amp;lt;math&amp;gt;1\text{ (mod 3)}&amp;lt;/math&amp;gt;. If Bonnie sticks to her plan, will she ever finish?&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;toccolours mw-collapsible mw-collapsed&amp;quot;&amp;gt;&#039;&#039;&#039;Solution&#039;&#039;&#039;&amp;lt;div class=&amp;quot;mw-collapsible-content&amp;quot;&amp;gt;&lt;br /&gt;
How to guess the closed-form solution: Firstly, notice that &amp;lt;math&amp;gt;a_n \approx \frac{3}{5} \times 2^n&amp;lt;/math&amp;gt;. Secondly, calculate the error term &amp;lt;math&amp;gt;a_n - \frac{3}{5} \times 2^n&amp;lt;/math&amp;gt;. The error term appears to have a period of 4. This leads to the following guess:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;a_n=\frac{3}{5}\begin{cases}&lt;br /&gt;
2^n+\frac{7}{3} &amp;amp;\text{if } n\equiv 0 \pmod{4}\\&lt;br /&gt;
2^n-2 &amp;amp;\text{if } n\equiv 1 \pmod{4}\\&lt;br /&gt;
2^n+1 &amp;amp;\text{if } n\equiv 2 \pmod{4}\\&lt;br /&gt;
2^n+2 &amp;amp;\text{if } n\equiv 3 \pmod{4}\\&lt;br /&gt;
\end{cases}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This closed-form solution can be proven correct by induction. Unfortunately, the induction may require a lot of tedious calculations.&lt;br /&gt;
&lt;br /&gt;
For all &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt;, we have &amp;lt;math&amp;gt;a_{4k} \equiv 2\text{ (mod 3)}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;a_{4k+1} \equiv a_{4k+2} \equiv a_{4k+3} \equiv 0\text{ (mod 3)}&amp;lt;/math&amp;gt;. Therefore, Bonnie will never finish.&lt;br /&gt;
&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;&lt;/div&gt;</summary>
		<author><name>Mxdys</name></author>
	</entry>
	<entry>
		<id>https://wiki.bbchallenge.org/w/index.php?title=Beaver_Math_Olympiad&amp;diff=3426</id>
		<title>Beaver Math Olympiad</title>
		<link rel="alternate" type="text/html" href="https://wiki.bbchallenge.org/w/index.php?title=Beaver_Math_Olympiad&amp;diff=3426"/>
		<updated>2025-08-27T18:17:13Z</updated>

		<summary type="html">&lt;p&gt;Mxdys: /* 6. 1RB1LA_1LC0RE_1LF1LD_0RB0LA_1RC1RE_---0LD (bbch) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;Beaver Mathematical Olympiad&#039;&#039;&#039; (BMO) is an attempt to re-formulate the halting problem for some particular Turing machines as a mathematical problem in a style suitable for a hypothetical math olympiad. &lt;br /&gt;
&lt;br /&gt;
The purpose of the BMO is twofold. First, statements where non-essential details (related to tape encoding, number of steps, etc.) are discarded are more suitable to be shared with mathematicians who perhaps are able to help. Second, it&#039;s a way to jokingly highlight how a hard question could appear deceptively simple.&lt;br /&gt;
&lt;br /&gt;
== Unsolved problems ==&lt;br /&gt;
&lt;br /&gt;
=== 1. {{TM|1RB1RE_1LC0RA_0RD1LB_---1RC_1LF1RE_0LB0LE|undecided}} ===&lt;br /&gt;
&lt;br /&gt;
Let &amp;lt;math&amp;gt;(a_n)_{n \ge 1}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;(b_n)_{n \ge 1}&amp;lt;/math&amp;gt; be two sequences such that &amp;lt;math&amp;gt;(a_1, b_1) = (1, 2)&amp;lt;/math&amp;gt; and&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;(a_{n+1}, b_{n+1}) = \begin{cases}&lt;br /&gt;
(a_n-b_n, 4b_n+2) &amp;amp; \text{if }a_n \ge b_n \\&lt;br /&gt;
(2a_n+1, b_n-a_n) &amp;amp; \text{if }a_n &amp;lt; b_n&lt;br /&gt;
\end{cases}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
for all positive integers &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;. Does there exist a positive integer &amp;lt;math&amp;gt;i&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;a_i = b_i&amp;lt;/math&amp;gt;?&lt;br /&gt;
&lt;br /&gt;
The first 10 values of &amp;lt;math&amp;gt;(a_n, b_n)&amp;lt;/math&amp;gt; are &amp;lt;math&amp;gt;(1, 2), (3, 1), (2, 6), (5, 4), (1, 18), (3, 17), (7, 14), (15, 7), (8, 30), (17, 22)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== 2. [[Hydra]] and [[Antihydra]] ===&lt;br /&gt;
&lt;br /&gt;
Let &amp;lt;math&amp;gt;(a_n)_{n \ge 0}&amp;lt;/math&amp;gt; be a sequence such that &amp;lt;math&amp;gt;a_{n+1} = a_n+\left\lfloor\frac{a_n}{2}\right\rfloor&amp;lt;/math&amp;gt; for all non-negative integers &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
# If &amp;lt;math&amp;gt;a_0=3&amp;lt;/math&amp;gt;, does there exist a non-negative integer &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt; such that the list of numbers &amp;lt;math&amp;gt;a_0, a_1, a_2, \dots, a_k&amp;lt;/math&amp;gt; have more than twice as many even numbers as odd numbers? ([[Hydra]])&lt;br /&gt;
# If &amp;lt;math&amp;gt;a_0=8&amp;lt;/math&amp;gt;, does there exist a non-negative integer &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt; such that the list of numbers &amp;lt;math&amp;gt;a_0, a_1, a_2, \dots, a_k&amp;lt;/math&amp;gt; have more than twice as many odd numbers as even numbers? ([[Antihydra]])&lt;br /&gt;
&lt;br /&gt;
=== 5. {{TM|1RB0LD_1LC0RA_1RA1LB_1LA1LE_1RF0LC_---0RE|undecided}} ===&lt;br /&gt;
&lt;br /&gt;
Let &amp;lt;math&amp;gt;(a_n)_{n \ge 1}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;(b_n)_{n \ge 1}&amp;lt;/math&amp;gt; be two sequences such that &amp;lt;math&amp;gt;(a_1, b_1) = (0, 5)&amp;lt;/math&amp;gt; and&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;(a_{n+1}, b_{n+1}) = \begin{cases}&lt;br /&gt;
(a_n+1, b_n-f(a_n)) &amp;amp; \text{if } b_n \ge f(a_n) \\&lt;br /&gt;
(a_n, 3b_n+a_n+5) &amp;amp; \text{if } b_n &amp;lt; f(a_n)&lt;br /&gt;
\end{cases}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;f(x)=10\cdot 2^x-1&amp;lt;/math&amp;gt; for all non-negative integers &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
Does there exist a positive integer &amp;lt;math&amp;gt;i&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;b_i = f(a_i)-1&amp;lt;/math&amp;gt;?&lt;br /&gt;
&lt;br /&gt;
=== 6. {{TM|1RB1LA_1LC0RE_1LF1LD_0RB0LA_1RC1RE_---0LD|undecided}} ===&lt;br /&gt;
Let &amp;lt;math&amp;gt;f(b) = b + k + 3a&amp;lt;/math&amp;gt;, where &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; are non-negative integers satisfying &amp;lt;math&amp;gt;b = (2a+1)\cdot 2^k&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Now consider the iterated application of the function &amp;lt;math&amp;gt;f^{n+1}(b) = f(f^n(b)))&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;f^0(b)=b&amp;lt;/math&amp;gt;. Does there exist a non-negative integer &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;f^n(6)&amp;lt;/math&amp;gt; equal a power of 2?&lt;br /&gt;
&lt;br /&gt;
== Solved problems ==&lt;br /&gt;
&lt;br /&gt;
=== 3. {{TM|1RB0RB3LA4LA2RA_2LB3RA---3RA4RB|non-halt}} and {{TM|1RB1RB3LA4LA2RA_2LB3RA---3RA4RB|non-halt}} ===&lt;br /&gt;
&lt;br /&gt;
Let &amp;lt;math&amp;gt;v_2(n)&amp;lt;/math&amp;gt; be the largest integer &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;2^k&amp;lt;/math&amp;gt; divides &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;. Let &amp;lt;math&amp;gt;(a_n)_{n \ge 0}&amp;lt;/math&amp;gt; be a sequence such that&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;a_n = \begin{cases}&lt;br /&gt;
2 &amp;amp; \text{if } n=0 \\&lt;br /&gt;
a_{n-1}+2^{v_2(a_{n-1})+2}-1 &amp;amp; \text{if } n \ge 1&lt;br /&gt;
\end{cases}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
for all non-negative integers &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;. Is there an integer &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;a_n=4^k&amp;lt;/math&amp;gt; for some positive integer &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt;?&lt;br /&gt;
&lt;br /&gt;
Link to Discord discussion: https://discord.com/channels/960643023006490684/1084047886494470185/1252634913220591728&lt;br /&gt;
&lt;br /&gt;
=== 4. {{TM|1RB3RB---1LB0LA_2LA4RA3LA4RB1LB|non-halt}} ===&lt;br /&gt;
&lt;br /&gt;
Bonnie the beaver was bored, so she tried to construct a sequence of integers &amp;lt;math&amp;gt;\{a_n\}_{n \ge 0}&amp;lt;/math&amp;gt;. She first defined &amp;lt;math&amp;gt;a_0=2&amp;lt;/math&amp;gt;, then defined &amp;lt;math&amp;gt;a_{n+1}&amp;lt;/math&amp;gt; depending on &amp;lt;math&amp;gt;a_n&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; using the following rules:&lt;br /&gt;
&lt;br /&gt;
* If &amp;lt;math&amp;gt;a_n \equiv 0\text{ (mod 3)}&amp;lt;/math&amp;gt;, then &amp;lt;math&amp;gt;a_{n+1}=\frac{a_n}{3}+2^n+1&amp;lt;/math&amp;gt;.&lt;br /&gt;
* If &amp;lt;math&amp;gt;a_n \equiv 2\text{ (mod 3)}&amp;lt;/math&amp;gt;, then &amp;lt;math&amp;gt;a_{n+1}=\frac{a_n-2}{3}+2^n-1&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
With these two rules alone, Bonnie calculates the first few terms in the sequence: &amp;lt;math&amp;gt;2, 0, 3, 6, 11, 18, 39, 78, 155, 306, \dots&amp;lt;/math&amp;gt;. At this point, Bonnie plans to continue writing terms until a term becomes &amp;lt;math&amp;gt;1\text{ (mod 3)}&amp;lt;/math&amp;gt;. If Bonnie sticks to her plan, will she ever finish?&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;toccolours mw-collapsible mw-collapsed&amp;quot;&amp;gt;&#039;&#039;&#039;Solution&#039;&#039;&#039;&amp;lt;div class=&amp;quot;mw-collapsible-content&amp;quot;&amp;gt;&lt;br /&gt;
How to guess the closed-form solution: Firstly, notice that &amp;lt;math&amp;gt;a_n \approx \frac{3}{5} \times 2^n&amp;lt;/math&amp;gt;. Secondly, calculate the error term &amp;lt;math&amp;gt;a_n - \frac{3}{5} \times 2^n&amp;lt;/math&amp;gt;. The error term appears to have a period of 4. This leads to the following guess:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;a_n=\frac{3}{5}\begin{cases}&lt;br /&gt;
2^n+\frac{7}{3} &amp;amp;\text{if } n\equiv 0 \pmod{4}\\&lt;br /&gt;
2^n-2 &amp;amp;\text{if } n\equiv 1 \pmod{4}\\&lt;br /&gt;
2^n+1 &amp;amp;\text{if } n\equiv 2 \pmod{4}\\&lt;br /&gt;
2^n+2 &amp;amp;\text{if } n\equiv 3 \pmod{4}\\&lt;br /&gt;
\end{cases}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This closed-form solution can be proven correct by induction. Unfortunately, the induction may require a lot of tedious calculations.&lt;br /&gt;
&lt;br /&gt;
For all &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt;, we have &amp;lt;math&amp;gt;a_{4k} \equiv 2\text{ (mod 3)}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;a_{4k+1} \equiv a_{4k+2} \equiv a_{4k+3} \equiv 0\text{ (mod 3)}&amp;lt;/math&amp;gt;. Therefore, Bonnie will never finish.&lt;br /&gt;
&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;&lt;/div&gt;</summary>
		<author><name>Mxdys</name></author>
	</entry>
	<entry>
		<id>https://wiki.bbchallenge.org/w/index.php?title=Beaver_Math_Olympiad&amp;diff=3425</id>
		<title>Beaver Math Olympiad</title>
		<link rel="alternate" type="text/html" href="https://wiki.bbchallenge.org/w/index.php?title=Beaver_Math_Olympiad&amp;diff=3425"/>
		<updated>2025-08-27T18:12:39Z</updated>

		<summary type="html">&lt;p&gt;Mxdys: /* 6. 1RB1LA_1LC0RE_1LF1LD_0RB0LA_1RC1RE_---0LD (bbch) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;Beaver Mathematical Olympiad&#039;&#039;&#039; (BMO) is an attempt to re-formulate the halting problem for some particular Turing machines as a mathematical problem in a style suitable for a hypothetical math olympiad. &lt;br /&gt;
&lt;br /&gt;
The purpose of the BMO is twofold. First, statements where non-essential details (related to tape encoding, number of steps, etc.) are discarded are more suitable to be shared with mathematicians who perhaps are able to help. Second, it&#039;s a way to jokingly highlight how a hard question could appear deceptively simple.&lt;br /&gt;
&lt;br /&gt;
== Unsolved problems ==&lt;br /&gt;
&lt;br /&gt;
=== 1. {{TM|1RB1RE_1LC0RA_0RD1LB_---1RC_1LF1RE_0LB0LE|undecided}} ===&lt;br /&gt;
&lt;br /&gt;
Let &amp;lt;math&amp;gt;(a_n)_{n \ge 1}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;(b_n)_{n \ge 1}&amp;lt;/math&amp;gt; be two sequences such that &amp;lt;math&amp;gt;(a_1, b_1) = (1, 2)&amp;lt;/math&amp;gt; and&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;(a_{n+1}, b_{n+1}) = \begin{cases}&lt;br /&gt;
(a_n-b_n, 4b_n+2) &amp;amp; \text{if }a_n \ge b_n \\&lt;br /&gt;
(2a_n+1, b_n-a_n) &amp;amp; \text{if }a_n &amp;lt; b_n&lt;br /&gt;
\end{cases}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
for all positive integers &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;. Does there exist a positive integer &amp;lt;math&amp;gt;i&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;a_i = b_i&amp;lt;/math&amp;gt;?&lt;br /&gt;
&lt;br /&gt;
The first 10 values of &amp;lt;math&amp;gt;(a_n, b_n)&amp;lt;/math&amp;gt; are &amp;lt;math&amp;gt;(1, 2), (3, 1), (2, 6), (5, 4), (1, 18), (3, 17), (7, 14), (15, 7), (8, 30), (17, 22)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== 2. [[Hydra]] and [[Antihydra]] ===&lt;br /&gt;
&lt;br /&gt;
Let &amp;lt;math&amp;gt;(a_n)_{n \ge 0}&amp;lt;/math&amp;gt; be a sequence such that &amp;lt;math&amp;gt;a_{n+1} = a_n+\left\lfloor\frac{a_n}{2}\right\rfloor&amp;lt;/math&amp;gt; for all non-negative integers &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
# If &amp;lt;math&amp;gt;a_0=3&amp;lt;/math&amp;gt;, does there exist a non-negative integer &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt; such that the list of numbers &amp;lt;math&amp;gt;a_0, a_1, a_2, \dots, a_k&amp;lt;/math&amp;gt; have more than twice as many even numbers as odd numbers? ([[Hydra]])&lt;br /&gt;
# If &amp;lt;math&amp;gt;a_0=8&amp;lt;/math&amp;gt;, does there exist a non-negative integer &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt; such that the list of numbers &amp;lt;math&amp;gt;a_0, a_1, a_2, \dots, a_k&amp;lt;/math&amp;gt; have more than twice as many odd numbers as even numbers? ([[Antihydra]])&lt;br /&gt;
&lt;br /&gt;
=== 5. {{TM|1RB0LD_1LC0RA_1RA1LB_1LA1LE_1RF0LC_---0RE|undecided}} ===&lt;br /&gt;
&lt;br /&gt;
Let &amp;lt;math&amp;gt;(a_n)_{n \ge 1}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;(b_n)_{n \ge 1}&amp;lt;/math&amp;gt; be two sequences such that &amp;lt;math&amp;gt;(a_1, b_1) = (0, 5)&amp;lt;/math&amp;gt; and&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;(a_{n+1}, b_{n+1}) = \begin{cases}&lt;br /&gt;
(a_n+1, b_n-f(a_n)) &amp;amp; \text{if } b_n \ge f(a_n) \\&lt;br /&gt;
(a_n, 3b_n+a_n+5) &amp;amp; \text{if } b_n &amp;lt; f(a_n)&lt;br /&gt;
\end{cases}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;f(x)=10\cdot 2^x-1&amp;lt;/math&amp;gt; for all non-negative integers &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
Does there exist a positive integer &amp;lt;math&amp;gt;i&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;b_i = f(a_i)-1&amp;lt;/math&amp;gt;?&lt;br /&gt;
&lt;br /&gt;
=== 6. {{TM|1RB1LA_1LC0RE_1LF1LD_0RB0LA_1RC1RE_---0LD|undecided}} ===&lt;br /&gt;
Let &amp;lt;math&amp;gt;f(b) = b + k + 3a&amp;lt;/math&amp;gt;, where &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; are integers satisfying &amp;lt;math&amp;gt;b = (2a+1)*2^k&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Now consider the iterated application of the function &amp;lt;math&amp;gt;f^{n+1}(b) = f(f^n(b)))&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;f^0(b)=b&amp;lt;/math&amp;gt;. Does there exist a non-negative integer &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;f^n(6)&amp;lt;/math&amp;gt; equal a power of 2?&lt;br /&gt;
&lt;br /&gt;
== Solved problems ==&lt;br /&gt;
&lt;br /&gt;
=== 3. {{TM|1RB0RB3LA4LA2RA_2LB3RA---3RA4RB|non-halt}} and {{TM|1RB1RB3LA4LA2RA_2LB3RA---3RA4RB|non-halt}} ===&lt;br /&gt;
&lt;br /&gt;
Let &amp;lt;math&amp;gt;v_2(n)&amp;lt;/math&amp;gt; be the largest integer &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;2^k&amp;lt;/math&amp;gt; divides &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;. Let &amp;lt;math&amp;gt;(a_n)_{n \ge 0}&amp;lt;/math&amp;gt; be a sequence such that&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;a_n = \begin{cases}&lt;br /&gt;
2 &amp;amp; \text{if } n=0 \\&lt;br /&gt;
a_{n-1}+2^{v_2(a_{n-1})+2}-1 &amp;amp; \text{if } n \ge 1&lt;br /&gt;
\end{cases}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
for all non-negative integers &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;. Is there an integer &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;a_n=4^k&amp;lt;/math&amp;gt; for some positive integer &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt;?&lt;br /&gt;
&lt;br /&gt;
Link to Discord discussion: https://discord.com/channels/960643023006490684/1084047886494470185/1252634913220591728&lt;br /&gt;
&lt;br /&gt;
=== 4. {{TM|1RB3RB---1LB0LA_2LA4RA3LA4RB1LB|non-halt}} ===&lt;br /&gt;
&lt;br /&gt;
Bonnie the beaver was bored, so she tried to construct a sequence of integers &amp;lt;math&amp;gt;\{a_n\}_{n \ge 0}&amp;lt;/math&amp;gt;. She first defined &amp;lt;math&amp;gt;a_0=2&amp;lt;/math&amp;gt;, then defined &amp;lt;math&amp;gt;a_{n+1}&amp;lt;/math&amp;gt; depending on &amp;lt;math&amp;gt;a_n&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; using the following rules:&lt;br /&gt;
&lt;br /&gt;
* If &amp;lt;math&amp;gt;a_n \equiv 0\text{ (mod 3)}&amp;lt;/math&amp;gt;, then &amp;lt;math&amp;gt;a_{n+1}=\frac{a_n}{3}+2^n+1&amp;lt;/math&amp;gt;.&lt;br /&gt;
* If &amp;lt;math&amp;gt;a_n \equiv 2\text{ (mod 3)}&amp;lt;/math&amp;gt;, then &amp;lt;math&amp;gt;a_{n+1}=\frac{a_n-2}{3}+2^n-1&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
With these two rules alone, Bonnie calculates the first few terms in the sequence: &amp;lt;math&amp;gt;2, 0, 3, 6, 11, 18, 39, 78, 155, 306, \dots&amp;lt;/math&amp;gt;. At this point, Bonnie plans to continue writing terms until a term becomes &amp;lt;math&amp;gt;1\text{ (mod 3)}&amp;lt;/math&amp;gt;. If Bonnie sticks to her plan, will she ever finish?&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;toccolours mw-collapsible mw-collapsed&amp;quot;&amp;gt;&#039;&#039;&#039;Solution&#039;&#039;&#039;&amp;lt;div class=&amp;quot;mw-collapsible-content&amp;quot;&amp;gt;&lt;br /&gt;
How to guess the closed-form solution: Firstly, notice that &amp;lt;math&amp;gt;a_n \approx \frac{3}{5} \times 2^n&amp;lt;/math&amp;gt;. Secondly, calculate the error term &amp;lt;math&amp;gt;a_n - \frac{3}{5} \times 2^n&amp;lt;/math&amp;gt;. The error term appears to have a period of 4. This leads to the following guess:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;a_n=\frac{3}{5}\begin{cases}&lt;br /&gt;
2^n+\frac{7}{3} &amp;amp;\text{if } n\equiv 0 \pmod{4}\\&lt;br /&gt;
2^n-2 &amp;amp;\text{if } n\equiv 1 \pmod{4}\\&lt;br /&gt;
2^n+1 &amp;amp;\text{if } n\equiv 2 \pmod{4}\\&lt;br /&gt;
2^n+2 &amp;amp;\text{if } n\equiv 3 \pmod{4}\\&lt;br /&gt;
\end{cases}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This closed-form solution can be proven correct by induction. Unfortunately, the induction may require a lot of tedious calculations.&lt;br /&gt;
&lt;br /&gt;
For all &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt;, we have &amp;lt;math&amp;gt;a_{4k} \equiv 2\text{ (mod 3)}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;a_{4k+1} \equiv a_{4k+2} \equiv a_{4k+3} \equiv 0\text{ (mod 3)}&amp;lt;/math&amp;gt;. Therefore, Bonnie will never finish.&lt;br /&gt;
&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;&lt;/div&gt;</summary>
		<author><name>Mxdys</name></author>
	</entry>
	<entry>
		<id>https://wiki.bbchallenge.org/w/index.php?title=1RB1RA_1RC1RZ_1LD0RF_1RA0LE_0LD1RC_1RA0RE&amp;diff=2306</id>
		<title>1RB1RA 1RC1RZ 1LD0RF 1RA0LE 0LD1RC 1RA0RE</title>
		<link rel="alternate" type="text/html" href="https://wiki.bbchallenge.org/w/index.php?title=1RB1RA_1RC1RZ_1LD0RF_1RA0LE_0LD1RC_1RA0RE&amp;diff=2306"/>
		<updated>2025-06-28T13:59:45Z</updated>

		<summary type="html">&lt;p&gt;Mxdys: /* Analysis by mxdys */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{machine|1RB1RA_1RC1RZ_1LD0RF_1RA0LE_0LD1RC_1RA0RE}}&lt;br /&gt;
{{TM|1RB1RA_1RC1RZ_1LD0RF_1RA0LE_0LD1RC_1RA0RE|halt}}&lt;br /&gt;
&lt;br /&gt;
Current [[BB(6)]] Champion. Discovered by mxdys on 25 June 2025.&lt;br /&gt;
&lt;br /&gt;
It&#039;s in a family of 4 machines with the halting time and sigma score between 2↑↑2↑↑2↑↑10 and 2↑↑2↑↑2↑↑11:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
1RB1RA_1RC---_1LD0RF_1RA0LE_0LD1RC_1RA0RE (hereafter referred to as TM1)&lt;br /&gt;
1RB---_1LC0RF_1RE0LD_0LC1RB_1RA1RE_1RE0RD (TM2)&lt;br /&gt;
1RB0LE_1RC1RB_1RD---_1LA0RF_0LA1RD_1RB0RE (TM3)&lt;br /&gt;
1RB0RF_1RC1RB_1RD---_1LE0RA_1RB0LF_0LE1RD (TM4)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Analysis by mxdys ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Inc2:&lt;br /&gt;
S1(len0,a0+1,2,a    ,b    ) --&amp;gt;&lt;br /&gt;
S1(len0,a0  ,1,a+b+2,2^b-1)&lt;br /&gt;
&lt;br /&gt;
Inc1:&lt;br /&gt;
S1(len0,a0+1,1,a    ,b    ) --&amp;gt;&lt;br /&gt;
S1(len0,a0  ,0,a+b+2,2^b-1)&lt;br /&gt;
&lt;br /&gt;
Inc0:&lt;br /&gt;
S1(len0,a0+1,0,a    ,b    ) --&amp;gt;&lt;br /&gt;
S1(len0,a0  ,2,a+b+1,2^b-1)&lt;br /&gt;
&lt;br /&gt;
Rst0:&lt;br /&gt;
S1(a0,0,0,a,b) --&amp;gt;&lt;br /&gt;
halt&lt;br /&gt;
&lt;br /&gt;
Rst1:&lt;br /&gt;
S1(a0,0,1,a,b) --&amp;gt;&lt;br /&gt;
S1(a0+a+2,(2^(a0+2)-1)*2^a-1,2,b,2^b-1)&lt;br /&gt;
&lt;br /&gt;
start: S1(3,7,2,6,63)&lt;br /&gt;
&lt;br /&gt;
the rules are used in the following order:&lt;br /&gt;
Inc2,Inc1,Inc0, Inc2,Inc1,Inc0, Inc2, Rst1,&lt;br /&gt;
Inc2,Inc1,Inc0, ..., Inc2,Inc1,Inc0, Inc2, Rst1,&lt;br /&gt;
Inc2,Inc1,Inc0, ..., Inc2,Inc1,Inc0, Inc2,Inc1, Rst0.&lt;br /&gt;
&lt;br /&gt;
where&lt;br /&gt;
S1(len0,a0,m,a,b) = 0^inf LH LC(len0,a0) d0 10 1^m LC(a,0) &amp;lt;X 0 11100 111^(1+b) 0^inf&lt;br /&gt;
d0 = 100&lt;br /&gt;
d1 = 111&lt;br /&gt;
LC(0,0) = &amp;quot;&amp;quot;&lt;br /&gt;
LC(n+1,2x) = LC(n,x) d1&lt;br /&gt;
LC(n+1,2x+1) = LC(n,x) d0&lt;br /&gt;
for TM2, X=D, LH=111011&lt;br /&gt;
for TM3, X=E, LH=11&lt;br /&gt;
&lt;br /&gt;
TM1 is equivalent to TM2 after several steps&lt;br /&gt;
TM4 is equivalent to TM3 after several steps&lt;br /&gt;
TM1 has the highest halting time among this family&lt;br /&gt;
TM1,TM2 have the highest sigma score among this family&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
estimation of time/score:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Inc2,Inc1,Inc0, ..., Inc2,Inc1,Inc0, Inc2&lt;br /&gt;
n mod 3 = 1:&lt;br /&gt;
S1(len0,n,2,b,2^b-1) --&amp;gt;&lt;br /&gt;
S1(len0,0,1,st2(n,b)+floor(n/3)*5+2,t2(n+1,b))&lt;br /&gt;
&lt;br /&gt;
Inc2,Inc1,Inc0, ..., Inc2,Inc1,Inc0, Inc2,Inc1, Rst0&lt;br /&gt;
n mod 3 = 2:&lt;br /&gt;
S1(len0,n,2,b,2^b-1) --&amp;gt;&lt;br /&gt;
S1(len0,0,0,st2(n,b)+floor(n/3)*5+4,t2(n+1,b)) --&amp;gt;&lt;br /&gt;
halt&lt;br /&gt;
&lt;br /&gt;
Rst1:&lt;br /&gt;
S1(len0,0,1,a,b) --&amp;gt;&lt;br /&gt;
S1(len0+a+2,2^(len0+a+2)-2^a-1,2,b,2^b-1)&lt;br /&gt;
&lt;br /&gt;
where&lt;br /&gt;
t2(0,b) = b, t2(a+1,b) = 2^t2(a,b)-1&lt;br /&gt;
st2(a,b) = t2(0,b) + t2(1,b) + ... + t2(a,b)&lt;br /&gt;
&lt;br /&gt;
S1(3,7,2,6,63) --&amp;gt;&lt;br /&gt;
S1(3,0,1,st2(7,6)+12,t2(8,6)) --&amp;gt;&lt;br /&gt;
S1(≈t2(7,6),≈t2(8,6),2,_,_) --&amp;gt;&lt;br /&gt;
S1(≈t2(7,6),0,1,≈2^^t2(8,6),_) --&amp;gt;&lt;br /&gt;
S1(≈2^^t2(8,6),≈2^^t2(8,6),2,_,_) --&amp;gt;&lt;br /&gt;
S1(≈2^^t2(8,6),0,1,≈2^^2^^t2(8,6),≈2^^2^^t2(8,6)) --&amp;gt;&lt;br /&gt;
halt with time/score ≈2^^2^^((2^)^8 6)&lt;br /&gt;
2^^^5 &amp;lt; 2^^2^^2^^10 &amp;lt; 2^^2^^((2^)^8 6) &amp;lt; 2^^2^^2^^11 &amp;lt; 2^^^6&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Mxdys</name></author>
	</entry>
	<entry>
		<id>https://wiki.bbchallenge.org/w/index.php?title=BB(6)&amp;diff=2276</id>
		<title>BB(6)</title>
		<link rel="alternate" type="text/html" href="https://wiki.bbchallenge.org/w/index.php?title=BB(6)&amp;diff=2276"/>
		<updated>2025-06-26T10:39:07Z</updated>

		<summary type="html">&lt;p&gt;Mxdys: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The 6-state, 2-symbol Busy Beaver problem, &#039;&#039;&#039;BB(6)&#039;&#039;&#039;, refers to the unsolved 6&amp;lt;sup&amp;gt;th&amp;lt;/sup&amp;gt; value of the [[Busy Beaver function]]. With the discovery of the [[Cryptid]] machine [[Antihydra]] in June 2024, we now know that we must solve a [[Collatz-like]] problem in order to solve BB(6) and thus [https://www.sligocki.com/2024/07/06/bb-6-2-is-hard.html BB(6) is Hard].&lt;br /&gt;
&lt;br /&gt;
The current BB(6) champion {{TM|1RB1RA_1RC---_1LD0RF_1RA0LE_0LD1RC_1RA0RE|halt}} was discovered by mxdys in June 2025, proving the lower bound:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;S(6) &amp;gt; \Sigma(6) &amp;gt; 2 \uparrow\uparrow\uparrow 5&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Techniques ==&lt;br /&gt;
Simulating tetrational machines, such as the former champion {{TM|1RB0LD_1RC0RF_1LC1LA_0LE1RZ_1LF0RB_0RC0RE|halt}}, requires [[Accelerated simulator|accelerated simulation]] that can handle Collatz Level 2 [[Inductive rule|inductive rules]]. In other words, it requires a simulator that can prove the rules:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\begin{array}{lcl}&lt;br /&gt;
  C(4k)   &amp;amp; \to &amp;amp; {\operatorname{Halt}}\Big(\frac{3^{k+3} - 11}{2}\Big) \\&lt;br /&gt;
  C(4k+1) &amp;amp; \to &amp;amp; C\Big(\frac{3^{k+3} - 11}{2}\Big) \\&lt;br /&gt;
  C(4k+2) &amp;amp; \to &amp;amp; C\Big(\frac{3^{k+3} - 11}{2}\Big) \\&lt;br /&gt;
  C(4k+3) &amp;amp; \to &amp;amp; C\Big(\frac{3^{k+3} + 1}{2}\Big) \\&lt;br /&gt;
\end{array}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and also compute the remainder mod 3 of numbers produced by applying these rules 15 times (which requires some fancy math related to [[wikipedia:Euler&#039;s_totient_function|Euler&#039;s totient function]]).&lt;br /&gt;
&lt;br /&gt;
== Cryptids ==&lt;br /&gt;
Several [[Turing machines]] have been found that are [[Cryptids]], considered so because each of them have a [[Collatz-like]] halting problem, a type of problem that is generally difficult to solve. However, probabilistic arguments have allowed all but one of them to be categorized as [[probviously]] halting or probviously non-halting.&lt;br /&gt;
&lt;br /&gt;
Probviously non-halting Cryptids:&lt;br /&gt;
&lt;br /&gt;
* {{TM|1RB1RA_0LC1LE_1LD1LC_1LA0LB_1LF1RE_---0RA}}, [[Antihydra]]&lt;br /&gt;
* {{TM|1RB1RC_1LC1LE_1RA1RD_0RF0RE_1LA0LB_---1RA|undecided}}, a variant of [[Hydra]] and Antihydra&lt;br /&gt;
* {{TM|1RB1LD_1RC1RE_0LA1LB_0LD1LC_1RF0RA_---0RC|undecided}}, similar to Antihydra&lt;br /&gt;
* {{TM|1RB0LD_1RC1RF_1LA0RA_0LA0LE_1LD1LA_0RB---|undecided}}, similar to Antihydra&lt;br /&gt;
* {{TM|1RB0LB_1LC0RE_1LA1LD_0LC---_0RB0RF_1RE1RB|undecided}}, similar to Antihydra&lt;br /&gt;
&lt;br /&gt;
Probviously halting Cryptids:&lt;br /&gt;
&lt;br /&gt;
* {{TM|1RB0RD_0RC1RE_1RD0LA_1LE1LC_1RF0LD_---0RA}}, [[Lucy&#039;s Moonlight]]&lt;br /&gt;
* {{TM|1RB1RA_0RC1RC_1LD0LF_0LE1LE_1RA0LB_---0LC|undecided}}, a family of 16 related TMs&lt;br /&gt;
* {{TM|1RB1RE_1LC1LD_---1LA_1LB1LE_0RF0RA_1LD1RF}}&lt;br /&gt;
* {{TM|1RB0RE_1LC1LD_0RA0LD_1LB0LA_1RF1RA_---1LB}}&lt;br /&gt;
* {{TM|1RB0LC_0LC0RF_1RD1LC_0RA1LE_---0LD_1LF1LA}}&lt;br /&gt;
* {{TM|1RB0LC_1LC0RD_1LF1LA_1LB1RE_1RB1LE_---0LE}}&lt;br /&gt;
Although {{TM|1RB1LE_0LC0LB_1RD1LC_1RD1RA_1RF0LA_---1RE}} behaves similarly to the probviously halting Cryptids, it is estimated to have a 3/5 chance of becoming a [[translated cycler]] and a 2/5 chance of halting.&lt;br /&gt;
&lt;br /&gt;
There are a few machines considered notable for their chaotic behaviour, but which have not been classified as Cryptids due to seemingly lacking a connection to any known open mathematical problems, such as Collatz-like problems.&lt;br /&gt;
&lt;br /&gt;
Potential Cryptids:&lt;br /&gt;
&lt;br /&gt;
* {{TM|1RB1RE_1LC0RA_0RD1LB_---1RC_1LF1RE_0LB0LE|undecided}}&lt;br /&gt;
* {{TM|1RB0LD_1LC0RA_1RA1LB_1LA1LE_1RF0LC_---0RE|undecided}}&lt;br /&gt;
* {{TM|1RB0RB_1LC1RE_1LF0LD_1RA1LD_1RC1RB_---1LC|undecided}}&lt;br /&gt;
* {{TM|1RB1LA_1LC0RE_1LF1LD_0RB0LA_1RC1RE_---0LD}}&lt;br /&gt;
&lt;br /&gt;
== Top Halters ==&lt;br /&gt;
Below is a table of the machines with the 10 highest known runtimes.&amp;lt;ref&amp;gt;Shawn Ligocki&#039;s list of 6-state, 2-symbol machines with large runtimes ([https://github.com/sligocki/busy-beaver/blob/main/Machines/bb/6x2.txt Link])&amp;lt;/ref&amp;gt; Their sigma scores are expressed using an extension of Knuth&#039;s up-arrow notation.&amp;lt;ref&amp;gt;Shawn Ligocki. 2022. [https://www.sligocki.com/2022/06/25/ext-up-notation.html &amp;quot;Extending Up-arrow Notation&amp;quot;]&amp;lt;/ref&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+Top Known BB(6) Halters&lt;br /&gt;
!Standard format&lt;br /&gt;
!(approximate) Σ&lt;br /&gt;
|-&lt;br /&gt;
|{{TM|1RB1LC_1LA1RE_0RD0LA_1RZ1LB_1LD0RF_0RD1RB|halt}}&lt;br /&gt;
|10 ↑↑ 11010000&lt;br /&gt;
|-&lt;br /&gt;
|{{TM|1RB0LD_1RC0RF_1LC1LA_0LE1RZ_1LF0RB_0RC0RE}}&lt;br /&gt;
|10 ↑↑ 15.60465&lt;br /&gt;
|-&lt;br /&gt;
|{{TM|1RB0LF_1RC1RB_1LD0RA_1LB0LE_1RZ0LC_1LA1LF}}&lt;br /&gt;
|10 ↑↑ 7.52390&lt;br /&gt;
|-&lt;br /&gt;
|{{TM|1RB0LF_1RC1RB_1LD0RA_1RF0LE_1RZ0LC_1LA1LF}}&lt;br /&gt;
|10 ↑↑ 7.52390&lt;br /&gt;
|-&lt;br /&gt;
|{{TM|1RB0LF_1RC1RB_1LD0RA_1LF0LE_1RZ0LC_1LA1LF}}&lt;br /&gt;
|10 ↑↑ 7.52390&lt;br /&gt;
|-&lt;br /&gt;
|{{TM|1RB1RC_1LC1RE_1LD0LB_1RE1LC_1LE0RF_1RZ1RA}}&lt;br /&gt;
|10 ↑↑ 7.23619&lt;br /&gt;
|-&lt;br /&gt;
|{{TM|1RB1RA_1LC1LE_1RE0LD_1LC0LF_1RZ0RA_0RA0LB}}&lt;br /&gt;
|10 ↑↑ 6.96745&lt;br /&gt;
|-&lt;br /&gt;
|{{TM|1RB0RF_1LC0RA_1RZ0LD_1LE1LD_1RB1RC_0LD0RE}}&lt;br /&gt;
|10 ↑↑ 5.77573&lt;br /&gt;
|-&lt;br /&gt;
|{{TM|1RB0LA_1LC1LF_0LD0LC_0LE0LB_1RE0RA_1RZ1LD}}&lt;br /&gt;
|10 ↑↑ 5.63534&lt;br /&gt;
|-&lt;br /&gt;
|{{TM|1RB1RE_1LC1LF_1RD0LB_1LE0RC_1RA0LD_1RZ1LC}}&lt;br /&gt;
|10 ↑↑ 5.56344&lt;br /&gt;
|}&lt;br /&gt;
The runtimes are presumed to be about &amp;lt;math&amp;gt;\text{score}^2&amp;lt;/math&amp;gt; which is roughly indistinguishable in tetration notation.&lt;br /&gt;
&lt;br /&gt;
== Holdouts ==&lt;br /&gt;
@mxdys&#039;s informal [[Holdouts lists|holdouts list]] has 3335 machines up to equivalence as of June 2025.&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&amp;lt;references /&amp;gt;&lt;br /&gt;
[[Category:BB Domain]]&lt;/div&gt;</summary>
		<author><name>Mxdys</name></author>
	</entry>
	<entry>
		<id>https://wiki.bbchallenge.org/w/index.php?title=1RB1LC_1LA1RE_0RD0LA_1RZ1LB_1LD0RF_0RD1RB&amp;diff=2275</id>
		<title>1RB1LC 1LA1RE 0RD0LA 1RZ1LB 1LD0RF 0RD1RB</title>
		<link rel="alternate" type="text/html" href="https://wiki.bbchallenge.org/w/index.php?title=1RB1LC_1LA1RE_0RD0LA_1RZ1LB_1LD0RF_0RD1RB&amp;diff=2275"/>
		<updated>2025-06-26T10:36:49Z</updated>

		<summary type="html">&lt;p&gt;Mxdys: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{machine|1RB1LC_1LA1RE_0RD0LA_1RZ1LB_1LD0RF_0RD1RB}}&lt;br /&gt;
{{TM|1RB1LC_1LA1RE_0RD0LA_1RZ1LB_1LD0RF_0RD1RB|halt}}&lt;br /&gt;
&lt;br /&gt;
Former [[BB(6)]] Champion. Discovered by mxdys on 16 June 2025.&lt;br /&gt;
&lt;br /&gt;
It&#039;s in a family of 7 machines with the halting time and sigma score between 10↑↑11010000 and 10↑↑11011000:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
1RB1LC_1LA1RE_0RD0LA_---1LB_1LD0RF_0RD1RB&lt;br /&gt;
1RB1LC_1LA1RE_0RD0LA_---1LB_1LE0RF_0RD1RB&lt;br /&gt;
1RB1LC_1LA1RD_1LA0LA_1LD0RE_0RF1RB_---1LB&lt;br /&gt;
1RB1LC_1LA1RD_1LA0LA_1LD0RE_0RF1RB_---1LC&lt;br /&gt;
1RB1LC_1LA1RD_1LA0LA_1LF0RE_0RF1RB_---1LB&lt;br /&gt;
1RB1LD_1LC1RE_---1LD_1LA0LA_1LE0RF_0RC1RB&lt;br /&gt;
1RB1LE_1LC0RA_1RB1LD_1LC0LC_1RF0LB_---1RE&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Analysis ==&lt;br /&gt;
It&#039;s behavior can be described by the python code below:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;python&amp;quot; line=&amp;quot;1&amp;quot;&amp;gt;&lt;br /&gt;
def LBS(x):&lt;br /&gt;
    if x==&#039;H1&#039;: return &#039;H1&#039;,1,1&lt;br /&gt;
    if x==&#039;H2&#039;: return &#039;H4&#039;,2,2&lt;br /&gt;
    if x==&#039;H3&#039;: print(&#039;Halted&#039;); exit()&lt;br /&gt;
    if x==&#039;H4&#039;: return &#039;H5&#039;,1,1&lt;br /&gt;
    if x==&#039;H5&#039;: return &#039;H1&#039;,1,2&lt;br /&gt;
    w,k0,x = x&lt;br /&gt;
    if w==&#039;W1&#039;:&lt;br /&gt;
        if k0==0 and x==&#039;H1&#039;: return &#039;H5&#039;,1,2&lt;br /&gt;
        x0,n,k = LBS(x)&lt;br /&gt;
        k1=k0+k-2&lt;br /&gt;
        return (&#039;W1&#039;,k1,x0),((n+1)*(1&amp;lt;&amp;lt;k1)-2)*4+5,2&lt;br /&gt;
    if w==&#039;W2&#039;:&lt;br /&gt;
        if k0==0 and x==&#039;H1&#039;: return &#039;H3&#039;,1,3&lt;br /&gt;
        if k0==1 and x==&#039;H1&#039;: return &#039;H2&#039;,1,3&lt;br /&gt;
        x0,n,k = LBS(x)&lt;br /&gt;
        k1=k0+k-3&lt;br /&gt;
        return (&#039;W2&#039;,k1,x0),((n+1)*(1&amp;lt;&amp;lt;k1)-2)*8+5,3&lt;br /&gt;
    assert 0&lt;br /&gt;
&lt;br /&gt;
a,b,x = 57,5,&#039;H1&#039;&lt;br /&gt;
while 1:&lt;br /&gt;
    r,m2 = a%3,a//3&lt;br /&gt;
    x0,n,k = LBS(x)&lt;br /&gt;
    if r==2:&lt;br /&gt;
        m1 = b-3&lt;br /&gt;
        a,b,x = ((((n+1)*(1&amp;lt;&amp;lt;(m1+k))-2)*4+2)*(1&amp;lt;&amp;lt;(m2+1))+1), m2, (&#039;W2&#039;,m1+k,x0)&lt;br /&gt;
    elif r==1:&lt;br /&gt;
        m1 = b-2&lt;br /&gt;
        a,b,x = ((((n+1)*(1&amp;lt;&amp;lt;(m1+k))-2)*2+2)*(1&amp;lt;&amp;lt;(m2+1))+1), m2, (&#039;W1&#039;,m1+k,x0)&lt;br /&gt;
    elif r==0:&lt;br /&gt;
        m1 = b-1&lt;br /&gt;
        a,b,x = ((((n+1)*(1&amp;lt;&amp;lt;(m1+k))-1))*(1&amp;lt;&amp;lt;(m2+1))+1), (m2+m1+k+1), x0&lt;br /&gt;
    else: assert 0&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tape encoding (reversed):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
H1 = 0^inf 1^7&lt;br /&gt;
H2 = 0^inf 1^5 101111 111111 1111&lt;br /&gt;
H3 = 0^inf 1^5 111111 1111&lt;br /&gt;
H4 = 0^inf 1^7 10 111111&lt;br /&gt;
H5 = 0^inf 1^7 111111&lt;br /&gt;
(W1,n,l) = l 111111^n 10 111111^2&lt;br /&gt;
(W2,n,l) = l 111111^n 1010 111111^3&lt;br /&gt;
&lt;br /&gt;
(a,b,x) = x 111111^b &amp;lt;F0 11^1+a 0^inf&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Execution process (shared by these 7 TMs):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
(57,5,H1) --&amp;gt;&lt;br /&gt;
(66060289,25,H1) --&amp;gt;&lt;br /&gt;
(_,22020096,(W1,24,H1)) --&amp;gt;&lt;br /&gt;
(_,_,(W2,22020095,(W1,23,H1))) --&amp;gt; ...&lt;br /&gt;
(_,_,(...(W2,22020074,(W1,2,H1))...)) --&amp;gt;&lt;br /&gt;
(_,_,(...(W2,22020073,(W1,1,H1))...)) --&amp;gt;&lt;br /&gt;
(_,_,(...(W2,22020072,(W1,0,H1))...)) --&amp;gt;&lt;br /&gt;
(_,_,(...(W2,22020071,H5)...)) --&amp;gt;&lt;br /&gt;
(_,_,(...(W2,22020070,H1)...)) --&amp;gt; ...&lt;br /&gt;
(_,_,(...(W2,4,H1)...)) --&amp;gt;&lt;br /&gt;
(_,_,(...(W2,2,H1)...)) --&amp;gt;&lt;br /&gt;
(_,_,(...(W2,0,H1)...)) --&amp;gt;&lt;br /&gt;
(_,_,(...H3...)) --&amp;gt;&lt;br /&gt;
halt&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In each iteration of (a,b,x) --&amp;gt; (a&#039;,b&#039;,x&#039;), a&#039;≈2^a. It halts after 11010064 iterations of (a,b,x) --&amp;gt; (a&#039;,b&#039;,x&#039;). The omitted numbers in x and b are much smaller than a, and much larger than 66060289.&lt;br /&gt;
&lt;br /&gt;
The halting config (reversed):&amp;lt;pre&amp;gt;&lt;br /&gt;
H3 = 0^inf 1 Z&amp;gt; 00110 110110^2&lt;br /&gt;
(W1,n,l) = l 110110^n 11 110110^2&lt;br /&gt;
(W2,n,l) = l 110110^n 1111 110110^3&lt;br /&gt;
&lt;br /&gt;
(a,b,x) = x 110110^b 11^1+a 0^inf&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where a is between 10↑↑11010000 and 10↑↑11011000.&lt;br /&gt;
&lt;br /&gt;
The first 6 TMs in this family have exactly the same halting config, while &amp;lt;code&amp;gt;1RB1LE_1LC0RA_1RB1LD_1LC0LC_1RF0LB_---1RE&amp;lt;/code&amp;gt; has &amp;lt;code&amp;gt;H3 = 0^inf 1 Z&amp;gt; 11110 110110^2&amp;lt;/code&amp;gt;, which results in a sigma score increase of 2.&lt;br /&gt;
&lt;br /&gt;
We can see by looking at the space-time diagram that &amp;lt;code&amp;gt;1RB1LC_1LA1RE_0RD0LA_---1LB_1LD0RF_0RD1RB&amp;lt;/code&amp;gt; takes the longest time to halt.&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
&amp;lt;references /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Mxdys</name></author>
	</entry>
	<entry>
		<id>https://wiki.bbchallenge.org/w/index.php?title=Main_Page&amp;diff=2274</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://wiki.bbchallenge.org/w/index.php?title=Main_Page&amp;diff=2274"/>
		<updated>2025-06-26T10:36:31Z</updated>

		<summary type="html">&lt;p&gt;Mxdys: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The [[Busy Beaver function]] BB (called &#039;&#039;S&#039;&#039; originally) was introduced by [https://en.wikipedia.org/wiki/Tibor_Rad%C3%B3 Tibor Radó] in 1962 for 2-symbol [[Turing machines]] and later generalised to &#039;&#039;m&#039;&#039;-symbol Turing machines:&amp;lt;ref&amp;gt;Rado, T. (1962), On Non-Computable Functions. Bell System Technical Journal, 41: 877-884. https://doi.org/10.1002/j.1538-7305.1962.tb00480.x&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;Brady, Allen H, and the Meaning of Life, &#039;The Busy Beaver Game and the Meaning of Life&#039;, in Rolf Herken (ed.), The Universal Turing Machine: A Half-Century Survey (Oxford, 1990; online edn, Oxford Academic, 31 Oct. 2023), https://doi.org/10.1093/oso/9780198537748.003.0009, accessed 8 June 2024.&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| BB(&#039;&#039;n&#039;&#039;, &#039;&#039;m&#039;&#039;) = Maximum number of steps taken by a halting &#039;&#039;n&#039;&#039;-state, &#039;&#039;m&#039;&#039;-symbol Turing machine starting from a blank (all 0) tape&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The 2-symbol case BB(&#039;&#039;n&#039;&#039;, 2) is abbreviated as BB(&#039;&#039;n&#039;&#039;). The busy beaver function is not computable, but a few of its values are known:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ Small busy beaver values&amp;lt;ref&amp;gt;P. Michel, &amp;quot;[https://bbchallenge.org/~pascal.michel/ha.html Historical survey of Busy Beavers]&amp;quot;.&amp;lt;/ref&amp;gt;&lt;br /&gt;
! !!2-state!!3-state !!4-state!!5-state!!6-state &lt;br /&gt;
!7-state&lt;br /&gt;
|-  &lt;br /&gt;
! 2-symbol &lt;br /&gt;
| [[BB(2)]] = 6 &lt;br /&gt;
| [[BB(3)]] = 21&lt;br /&gt;
| [[BB(4)]] = 107 &lt;br /&gt;
| [[BB(5)]] = 47,176,870 &lt;br /&gt;
| style=&amp;quot;background: orange;&amp;quot; | [[BB(6)]] &amp;gt; &amp;lt;math&amp;gt;2 \uparrow \uparrow \uparrow 5&amp;lt;/math&amp;gt;&lt;br /&gt;
| style=&amp;quot;background: #ffe4b2;&amp;quot; | [[BB(7)]] &amp;gt; &amp;lt;math&amp;gt;2 \uparrow^{11} 2 \uparrow^{11} 3&amp;lt;/math&amp;gt; &lt;br /&gt;
|-&lt;br /&gt;
! 3-symbol&lt;br /&gt;
| [[BB(2,3)]] = 38 &lt;br /&gt;
| style=&amp;quot;background: orange;&amp;quot; | [[BB(3,3)]] &amp;gt; &amp;lt;math&amp;gt;10^{17}&amp;lt;/math&amp;gt;&lt;br /&gt;
| style=&amp;quot;background: #ffe4b2;&amp;quot; | [[BB(4,3)]] &amp;gt; &amp;lt;math&amp;gt;2 \uparrow\uparrow\uparrow 2^{2^{32}}&amp;lt;/math&amp;gt;&lt;br /&gt;
| style=&amp;quot;background: #ffe4b2;&amp;quot; |&lt;br /&gt;
| style=&amp;quot;background: #ffe4b2;&amp;quot; |&lt;br /&gt;
| style=&amp;quot;background: #ffe4b2;&amp;quot; |&lt;br /&gt;
|-&lt;br /&gt;
! 4-symbol  &lt;br /&gt;
| [[BB(2,4)]] = 3,932,964&lt;br /&gt;
| style=&amp;quot;background: #ffe4b2;&amp;quot; | [[BB(3,4)]] &amp;gt; &amp;lt;math&amp;gt;2 \uparrow^{15} 5&amp;lt;/math&amp;gt;&lt;br /&gt;
| style=&amp;quot;background: #ffe4b2;&amp;quot; |&lt;br /&gt;
| style=&amp;quot;background: #ffe4b2;&amp;quot; |&lt;br /&gt;
| style=&amp;quot;background: #ffe4b2;&amp;quot; |&lt;br /&gt;
| style=&amp;quot;background: #ffe4b2;&amp;quot; |&lt;br /&gt;
|-&lt;br /&gt;
! 5-symbol &lt;br /&gt;
| style=&amp;quot;background: orange;&amp;quot; | [[BB(2,5)]] &amp;gt; &amp;lt;math&amp;gt;10\uparrow\uparrow 4&amp;lt;/math&amp;gt;&lt;br /&gt;
| style=&amp;quot;background: #ffe4b2;&amp;quot; |&lt;br /&gt;
| style=&amp;quot;background: #ffe4b2;&amp;quot; |&lt;br /&gt;
| style=&amp;quot;background: #ffe4b2;&amp;quot; |&lt;br /&gt;
| style=&amp;quot;background: #ffe4b2;&amp;quot; |&lt;br /&gt;
| style=&amp;quot;background: #ffe4b2;&amp;quot; |&lt;br /&gt;
|-&lt;br /&gt;
! 6-symbol &lt;br /&gt;
| style=&amp;quot;background: #ffe4b2;&amp;quot; | [[BB(2,6)]] &amp;gt; &amp;lt;math&amp;gt;10 \uparrow\uparrow\uparrow 3&amp;lt;/math&amp;gt;&lt;br /&gt;
| style=&amp;quot;background: #ffe4b2;&amp;quot; |&lt;br /&gt;
| style=&amp;quot;background: #ffe4b2;&amp;quot; |&lt;br /&gt;
| style=&amp;quot;background: #ffe4b2;&amp;quot; |&lt;br /&gt;
| style=&amp;quot;background: #ffe4b2;&amp;quot; |&lt;br /&gt;
| style=&amp;quot;background: #ffe4b2;&amp;quot; |&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
In the above table, &amp;lt;span style=&amp;quot;background: orange&amp;quot;&amp;gt;cells are highlighted in orange&amp;lt;/span&amp;gt; when there are known [[Cryptids]] (mathematically-hard machines) in that class, and &amp;lt;span style=&amp;quot;background: #ffe4b2&amp;quot;&amp;gt;cells are highlighted in light orange&amp;lt;/span&amp;gt; when the existence of a Cryptid is given by using a known one with less states or symbols.&lt;br /&gt;
&lt;br /&gt;
== About bbchallenge ==&lt;br /&gt;
[https://www.bbchallenge.org bbchallenge] is a massively collaborative research project whose general goal is to obtain more knowledge on the [[Busy Beaver function]]. In practice, it mainly consists in collaboratively building [[Deciders]], programs that automatically prove that some Turing machines do not halt.  Other efforts also include:&lt;br /&gt;
&lt;br /&gt;
* Formalising results using theorem provers (such as [https://en.wikipedia.org/wiki/Coq_(software) Coq])&lt;br /&gt;
* Maintaining [[Holdouts lists]] for small busy beaver values&lt;br /&gt;
* Proving the behavior of [[:Category:Individual Machines|Individual machines]]&lt;br /&gt;
* Finding [[Cryptids]] (mathematically-hard machines)&lt;br /&gt;
* Searching for new [[Champions]]&lt;br /&gt;
* Building [[Accelerated Simulator]]s to simulate halting machines faster&lt;br /&gt;
* Writing papers and giving talks about busy beaver, see [[Papers &amp;amp; Talks]]&lt;br /&gt;
&lt;br /&gt;
In June 2024, bbchallenge achieved a significant milestone by proving in Coq / Rocq that the 5th busy beaver value, [[BB(5)]], is equal to the lower bound found in 1989: 47,176,870.&amp;lt;ref&amp;gt;H. Marxen and J. Buntrock. Attacking the Busy Beaver 5.&lt;br /&gt;
Bulletin of the EATCS, 40, pages 247-251, February 1990. https://turbotm.de/~heiner/BB/mabu90.html&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Contribute to this wiki ==&lt;br /&gt;
This wiki is collaborative, feel free to contribute by editing existing pages or creating new ones:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;inputbox&amp;gt;&lt;br /&gt;
type=create&lt;br /&gt;
width=100&lt;br /&gt;
break=no&lt;br /&gt;
buttonlabel=Create new article&lt;br /&gt;
default=(Article title)&lt;br /&gt;
&amp;lt;/inputbox&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Notes==&lt;br /&gt;
&amp;lt;references /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Mxdys</name></author>
	</entry>
	<entry>
		<id>https://wiki.bbchallenge.org/w/index.php?title=1RB1RA_1RC1RZ_1LD0RF_1RA0LE_0LD1RC_1RA0RE&amp;diff=2273</id>
		<title>1RB1RA 1RC1RZ 1LD0RF 1RA0LE 0LD1RC 1RA0RE</title>
		<link rel="alternate" type="text/html" href="https://wiki.bbchallenge.org/w/index.php?title=1RB1RA_1RC1RZ_1LD0RF_1RA0LE_0LD1RC_1RA0RE&amp;diff=2273"/>
		<updated>2025-06-26T10:35:03Z</updated>

		<summary type="html">&lt;p&gt;Mxdys: Created page with &amp;quot;{{machine|1RB1RA_1RC1RZ_1LD0RF_1RA0LE_0LD1RC_1RA0RE}} {{TM|1RB1RA_1RC1RZ_1LD0RF_1RA0LE_0LD1RC_1RA0RE|halt}}  Current BB(6) Champion. Discovered by mxdys on 25 June 2025.  It&amp;#039;s in a family of 4 machines with the halting time and sigma score between 2↑↑2↑↑2↑↑9 and 2↑↑2↑↑2↑↑10: &amp;lt;pre&amp;gt; 1RB1RA_1RC---_1LD0RF_1RA0LE_0LD1RC_1RA0RE (hereafter referred to as TM1) 1RB---_1LC0RF_1RE0LD_0LC1RB_1RA1RE_1RE0RD (TM2) 1RB0LE_1RC1RB_1RD---_1LA0RF_0LA1RD_1RB0RE (T...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{machine|1RB1RA_1RC1RZ_1LD0RF_1RA0LE_0LD1RC_1RA0RE}}&lt;br /&gt;
{{TM|1RB1RA_1RC1RZ_1LD0RF_1RA0LE_0LD1RC_1RA0RE|halt}}&lt;br /&gt;
&lt;br /&gt;
Current [[BB(6)]] Champion. Discovered by mxdys on 25 June 2025.&lt;br /&gt;
&lt;br /&gt;
It&#039;s in a family of 4 machines with the halting time and sigma score between 2↑↑2↑↑2↑↑9 and 2↑↑2↑↑2↑↑10:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
1RB1RA_1RC---_1LD0RF_1RA0LE_0LD1RC_1RA0RE (hereafter referred to as TM1)&lt;br /&gt;
1RB---_1LC0RF_1RE0LD_0LC1RB_1RA1RE_1RE0RD (TM2)&lt;br /&gt;
1RB0LE_1RC1RB_1RD---_1LA0RF_0LA1RD_1RB0RE (TM3)&lt;br /&gt;
1RB0RF_1RC1RB_1RD---_1LE0RA_1RB0LF_0LE1RD (TM4)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Analysis ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Inc2:&lt;br /&gt;
S1(len0,a0+1,2,a    ,b    ) --&amp;gt;&lt;br /&gt;
S1(len0,a0  ,1,a+b+2,2^b-1)&lt;br /&gt;
&lt;br /&gt;
Inc1:&lt;br /&gt;
S1(len0,a0+1,1,a    ,b    ) --&amp;gt;&lt;br /&gt;
S1(len0,a0  ,0,a+b+2,2^b-1)&lt;br /&gt;
&lt;br /&gt;
Inc0:&lt;br /&gt;
S1(len0,a0+1,0,a    ,b    ) --&amp;gt;&lt;br /&gt;
S1(len0,a0  ,2,a+b+1,2^b-1)&lt;br /&gt;
&lt;br /&gt;
Rst0:&lt;br /&gt;
S1(a0,0,0,a,b) --&amp;gt;&lt;br /&gt;
halt&lt;br /&gt;
&lt;br /&gt;
Rst1:&lt;br /&gt;
S1(a0,0,1,a,b) --&amp;gt;&lt;br /&gt;
S1(a0+a+2,(2^(a0+2)-1)*2^a-1,2,b,2^b-1)&lt;br /&gt;
&lt;br /&gt;
start: S1(3,7,2,6,63)&lt;br /&gt;
&lt;br /&gt;
the rules are used in the following order:&lt;br /&gt;
Inc2,Inc1,Inc0, Inc2,Inc1,Inc0, Inc2, Rst1,&lt;br /&gt;
Inc2,Inc1,Inc0, ..., Inc2,Inc1,Inc0, Inc2, Rst1,&lt;br /&gt;
Inc2,Inc1,Inc0, ..., Inc2,Inc1,Inc0, Inc2,Inc1, Rst0.&lt;br /&gt;
&lt;br /&gt;
where&lt;br /&gt;
S1(len0,a0,m,a,b) = 0^inf LH LC(len0,a0) d0 10 1^m LC(a,0) &amp;lt;X 0 11100 111^(1+b) 0^inf&lt;br /&gt;
d0 = 100&lt;br /&gt;
d1 = 111&lt;br /&gt;
LC(0,0) = &amp;quot;&amp;quot;&lt;br /&gt;
LC(n+1,2x) = LC(n,x) d1&lt;br /&gt;
LC(n+1,2x+1) = LC(n,x) d0&lt;br /&gt;
for TM2, X=D, LH=111011&lt;br /&gt;
for TM3, X=E, LH=11&lt;br /&gt;
&lt;br /&gt;
TM1 is equivalent to TM2 after several steps&lt;br /&gt;
TM4 is equivalent to TM3 after several steps&lt;br /&gt;
TM1 has the highest halting time among this family&lt;br /&gt;
TM1,TM2 have the highest sigma score among this family&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Mxdys</name></author>
	</entry>
	<entry>
		<id>https://wiki.bbchallenge.org/w/index.php?title=1RB1LC_1LA1RE_0RD0LA_1RZ1LB_1LD0RF_0RD1RB&amp;diff=2246</id>
		<title>1RB1LC 1LA1RE 0RD0LA 1RZ1LB 1LD0RF 0RD1RB</title>
		<link rel="alternate" type="text/html" href="https://wiki.bbchallenge.org/w/index.php?title=1RB1LC_1LA1RE_0RD0LA_1RZ1LB_1LD0RF_0RD1RB&amp;diff=2246"/>
		<updated>2025-06-20T18:13:11Z</updated>

		<summary type="html">&lt;p&gt;Mxdys: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{machine|1RB1LC_1LA1RE_0RD0LA_1RZ1LB_1LD0RF_0RD1RB}}&lt;br /&gt;
{{TM|1RB1LC_1LA1RE_0RD0LA_1RZ1LB_1LD0RF_0RD1RB|halt}}&lt;br /&gt;
&lt;br /&gt;
Current [[BB(6)]] Champion. Discovered by mxdys on 16 June 2025.&lt;br /&gt;
&lt;br /&gt;
It&#039;s in a family of 7 machines with the halting time and sigma score between 10↑↑11010000 and 10↑↑11011000:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
1RB1LC_1LA1RE_0RD0LA_---1LB_1LD0RF_0RD1RB&lt;br /&gt;
1RB1LC_1LA1RE_0RD0LA_---1LB_1LE0RF_0RD1RB&lt;br /&gt;
1RB1LC_1LA1RD_1LA0LA_1LD0RE_0RF1RB_---1LB&lt;br /&gt;
1RB1LC_1LA1RD_1LA0LA_1LD0RE_0RF1RB_---1LC&lt;br /&gt;
1RB1LC_1LA1RD_1LA0LA_1LF0RE_0RF1RB_---1LB&lt;br /&gt;
1RB1LD_1LC1RE_---1LD_1LA0LA_1LE0RF_0RC1RB&lt;br /&gt;
1RB1LE_1LC0RA_1RB1LD_1LC0LC_1RF0LB_---1RE&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Analysis ==&lt;br /&gt;
It&#039;s behavior can be described by the python code below:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;python&amp;quot; line=&amp;quot;1&amp;quot;&amp;gt;&lt;br /&gt;
def LBS(x):&lt;br /&gt;
    if x==&#039;H1&#039;: return &#039;H1&#039;,1,1&lt;br /&gt;
    if x==&#039;H2&#039;: return &#039;H4&#039;,2,2&lt;br /&gt;
    if x==&#039;H3&#039;: print(&#039;Halted&#039;); exit()&lt;br /&gt;
    if x==&#039;H4&#039;: return &#039;H5&#039;,1,1&lt;br /&gt;
    if x==&#039;H5&#039;: return &#039;H1&#039;,1,2&lt;br /&gt;
    w,k0,x = x&lt;br /&gt;
    if w==&#039;W1&#039;:&lt;br /&gt;
        if k0==0 and x==&#039;H1&#039;: return &#039;H5&#039;,1,2&lt;br /&gt;
        x0,n,k = LBS(x)&lt;br /&gt;
        k1=k0+k-2&lt;br /&gt;
        return (&#039;W1&#039;,k1,x0),((n+1)*(1&amp;lt;&amp;lt;k1)-2)*4+5,2&lt;br /&gt;
    if w==&#039;W2&#039;:&lt;br /&gt;
        if k0==0 and x==&#039;H1&#039;: return &#039;H3&#039;,1,3&lt;br /&gt;
        if k0==1 and x==&#039;H1&#039;: return &#039;H2&#039;,1,3&lt;br /&gt;
        x0,n,k = LBS(x)&lt;br /&gt;
        k1=k0+k-3&lt;br /&gt;
        return (&#039;W2&#039;,k1,x0),((n+1)*(1&amp;lt;&amp;lt;k1)-2)*8+5,3&lt;br /&gt;
    assert 0&lt;br /&gt;
&lt;br /&gt;
a,b,x = 57,5,&#039;H1&#039;&lt;br /&gt;
while 1:&lt;br /&gt;
    r,m2 = a%3,a//3&lt;br /&gt;
    x0,n,k = LBS(x)&lt;br /&gt;
    if r==2:&lt;br /&gt;
        m1 = b-3&lt;br /&gt;
        a,b,x = ((((n+1)*(1&amp;lt;&amp;lt;(m1+k))-2)*4+2)*(1&amp;lt;&amp;lt;(m2+1))+1), m2, (&#039;W2&#039;,m1+k,x0)&lt;br /&gt;
    elif r==1:&lt;br /&gt;
        m1 = b-2&lt;br /&gt;
        a,b,x = ((((n+1)*(1&amp;lt;&amp;lt;(m1+k))-2)*2+2)*(1&amp;lt;&amp;lt;(m2+1))+1), m2, (&#039;W1&#039;,m1+k,x0)&lt;br /&gt;
    elif r==0:&lt;br /&gt;
        m1 = b-1&lt;br /&gt;
        a,b,x = ((((n+1)*(1&amp;lt;&amp;lt;(m1+k))-1))*(1&amp;lt;&amp;lt;(m2+1))+1), (m2+m1+k+1), x0&lt;br /&gt;
    else: assert 0&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tape encoding (reversed):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
H1 = 0^inf 1^7&lt;br /&gt;
H2 = 0^inf 1^5 101111 111111 1111&lt;br /&gt;
H3 = 0^inf 1^5 111111 1111&lt;br /&gt;
H4 = 0^inf 1^7 10 111111&lt;br /&gt;
H5 = 0^inf 1^7 111111&lt;br /&gt;
(W1,n,l) = l 111111^n 10 111111^2&lt;br /&gt;
(W2,n,l) = l 111111^n 1010 111111^3&lt;br /&gt;
&lt;br /&gt;
(a,b,x) = x 111111^b &amp;lt;F0 11^1+a 0^inf&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Execution process (shared by these 7 TMs):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
(57,5,H1) --&amp;gt;&lt;br /&gt;
(66060289,25,H1) --&amp;gt;&lt;br /&gt;
(_,22020096,(W1,24,H1)) --&amp;gt;&lt;br /&gt;
(_,_,(W2,22020095,(W1,23,H1))) --&amp;gt; ...&lt;br /&gt;
(_,_,(...(W2,22020074,(W1,2,H1))...)) --&amp;gt;&lt;br /&gt;
(_,_,(...(W2,22020073,(W1,1,H1))...)) --&amp;gt;&lt;br /&gt;
(_,_,(...(W2,22020072,(W1,0,H1))...)) --&amp;gt;&lt;br /&gt;
(_,_,(...(W2,22020071,H5)...)) --&amp;gt;&lt;br /&gt;
(_,_,(...(W2,22020070,H1)...)) --&amp;gt; ...&lt;br /&gt;
(_,_,(...(W2,4,H1)...)) --&amp;gt;&lt;br /&gt;
(_,_,(...(W2,2,H1)...)) --&amp;gt;&lt;br /&gt;
(_,_,(...(W2,0,H1)...)) --&amp;gt;&lt;br /&gt;
(_,_,(...H3...)) --&amp;gt;&lt;br /&gt;
halt&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In each iteration of (a,b,x) --&amp;gt; (a&#039;,b&#039;,x&#039;), a&#039;≈2^a. It halts after 11010064 iterations of (a,b,x) --&amp;gt; (a&#039;,b&#039;,x&#039;). The omitted numbers in x and b are much smaller than a, and much larger than 66060289.&lt;br /&gt;
&lt;br /&gt;
The halting config (reversed):&amp;lt;pre&amp;gt;&lt;br /&gt;
H3 = 0^inf 1 Z&amp;gt; 00110 110110^2&lt;br /&gt;
(W1,n,l) = l 110110^n 11 110110^2&lt;br /&gt;
(W2,n,l) = l 110110^n 1111 110110^3&lt;br /&gt;
&lt;br /&gt;
(a,b,x) = x 110110^b 11^1+a 0^inf&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where a is between 10↑↑11010000 and 10↑↑11011000.&lt;br /&gt;
&lt;br /&gt;
The first 6 TMs in this family have exactly the same halting config, while &amp;lt;code&amp;gt;1RB1LE_1LC0RA_1RB1LD_1LC0LC_1RF0LB_---1RE&amp;lt;/code&amp;gt; has &amp;lt;code&amp;gt;H3 = 0^inf 1 Z&amp;gt; 11110 110110^2&amp;lt;/code&amp;gt;, which results in a sigma score increase of 2.&lt;br /&gt;
&lt;br /&gt;
We can see by looking at the space-time diagram that &amp;lt;code&amp;gt;1RB1LC_1LA1RE_0RD0LA_---1LB_1LD0RF_0RD1RB&amp;lt;/code&amp;gt; takes the longest time to halt.&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
&amp;lt;references /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Mxdys</name></author>
	</entry>
	<entry>
		<id>https://wiki.bbchallenge.org/w/index.php?title=1RB1LC_1LA1RE_0RD0LA_1RZ1LB_1LD0RF_0RD1RB&amp;diff=2228</id>
		<title>1RB1LC 1LA1RE 0RD0LA 1RZ1LB 1LD0RF 0RD1RB</title>
		<link rel="alternate" type="text/html" href="https://wiki.bbchallenge.org/w/index.php?title=1RB1LC_1LA1RE_0RD0LA_1RZ1LB_1LD0RF_0RD1RB&amp;diff=2228"/>
		<updated>2025-06-18T05:47:07Z</updated>

		<summary type="html">&lt;p&gt;Mxdys: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{machine|1RB1LC_1LA1RE_0RD0LA_1RZ1LB_1LD0RF_0RD1RB}}&lt;br /&gt;
{{TM|1RB1LC_1LA1RE_0RD0LA_1RZ1LB_1LD0RF_0RD1RB|halt}}&lt;br /&gt;
&lt;br /&gt;
Current [[BB(6)]] Champion. Discovered by mxdys on 16 June 2025.&lt;br /&gt;
&lt;br /&gt;
It&#039;s in a family of 6 machines with the halting time and sigma score between 10↑↑11010000 and 10↑↑11011000:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
1RB1LC_1LA1RE_0RD0LA_---1LB_1LD0RF_0RD1RB&lt;br /&gt;
1RB1LC_1LA1RE_0RD0LA_---1LB_1LE0RF_0RD1RB&lt;br /&gt;
1RB1LC_1LA1RD_1LA0LA_1LD0RE_0RF1RB_---1LB&lt;br /&gt;
1RB1LC_1LA1RD_1LA0LA_1LD0RE_0RF1RB_---1LC&lt;br /&gt;
1RB1LC_1LA1RD_1LA0LA_1LF0RE_0RF1RB_---1LB&lt;br /&gt;
1RB1LD_1LC1RE_---1LD_1LA0LA_1LE0RF_0RC1RB&lt;br /&gt;
1RB1LE_1LC0RA_1RB1LD_1LC0LC_1RF0LB_---1RE&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Analysis ==&lt;br /&gt;
It&#039;s behavior can be described by the python code below:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;python&amp;quot; line=&amp;quot;1&amp;quot;&amp;gt;&lt;br /&gt;
def LBS(x):&lt;br /&gt;
    if x==&#039;H1&#039;: return &#039;H1&#039;,1,1&lt;br /&gt;
    if x==&#039;H2&#039;: return &#039;H4&#039;,2,2&lt;br /&gt;
    if x==&#039;H3&#039;: print(&#039;Halted&#039;); exit()&lt;br /&gt;
    if x==&#039;H4&#039;: return &#039;H5&#039;,1,1&lt;br /&gt;
    if x==&#039;H5&#039;: return &#039;H1&#039;,1,2&lt;br /&gt;
    w,k0,x = x&lt;br /&gt;
    if w==&#039;W1&#039;:&lt;br /&gt;
        if k0==0 and x==&#039;H1&#039;: return &#039;H5&#039;,1,2&lt;br /&gt;
        x0,n,k = LBS(x)&lt;br /&gt;
        k1=k0+k-2&lt;br /&gt;
        return (&#039;W1&#039;,k1,x0),((n+1)*(1&amp;lt;&amp;lt;k1)-2)*4+5,2&lt;br /&gt;
    if w==&#039;W2&#039;:&lt;br /&gt;
        if k0==0 and x==&#039;H1&#039;: return &#039;H3&#039;,1,3&lt;br /&gt;
        if k0==1 and x==&#039;H1&#039;: return &#039;H2&#039;,1,3&lt;br /&gt;
        x0,n,k = LBS(x)&lt;br /&gt;
        k1=k0+k-3&lt;br /&gt;
        return (&#039;W2&#039;,k1,x0),((n+1)*(1&amp;lt;&amp;lt;k1)-2)*8+5,3&lt;br /&gt;
    assert 0&lt;br /&gt;
&lt;br /&gt;
a,b,x = 57,5,&#039;H1&#039;&lt;br /&gt;
while 1:&lt;br /&gt;
    r,m2 = a%3,a//3&lt;br /&gt;
    x0,n,k = LBS(x)&lt;br /&gt;
    if r==2:&lt;br /&gt;
        m1 = b-3&lt;br /&gt;
        a,b,x = ((((n+1)*(1&amp;lt;&amp;lt;(m1+k))-2)*4+2)*(1&amp;lt;&amp;lt;(m2+1))+1), m2, (&#039;W2&#039;,m1+k,x0)&lt;br /&gt;
    elif r==1:&lt;br /&gt;
        m1 = b-2&lt;br /&gt;
        a,b,x = ((((n+1)*(1&amp;lt;&amp;lt;(m1+k))-2)*2+2)*(1&amp;lt;&amp;lt;(m2+1))+1), m2, (&#039;W1&#039;,m1+k,x0)&lt;br /&gt;
    elif r==0:&lt;br /&gt;
        m1 = b-1&lt;br /&gt;
        a,b,x = ((((n+1)*(1&amp;lt;&amp;lt;(m1+k))-1))*(1&amp;lt;&amp;lt;(m2+1))+1), (m2+m1+k+1), x0&lt;br /&gt;
    else: assert 0&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tape encoding (reversed):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
H1 = 0^inf 1^7&lt;br /&gt;
H2 = 0^inf 1^5 101111 111111 1111&lt;br /&gt;
H3 = 0^inf 1^5 111111 1111&lt;br /&gt;
H4 = 0^inf 1^7 10 111111&lt;br /&gt;
H5 = 0^inf 1^7 111111&lt;br /&gt;
(W1,n,l) = l 111111^n 10 111111^2&lt;br /&gt;
(W2,n,l) = l 111111^n 1010 111111^3&lt;br /&gt;
&lt;br /&gt;
(a,b,x) = x 111111^b &amp;lt;F0 11^1+a 0^inf&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Execution process:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
(57,5,H1) --&amp;gt;&lt;br /&gt;
(66060289,25,H1) --&amp;gt;&lt;br /&gt;
(_,22020096,(W1,24,H1)) --&amp;gt;&lt;br /&gt;
(_,_,(W2,22020095,(W1,23,H1))) --&amp;gt; ...&lt;br /&gt;
(_,_,(...(W2,22020074,(W1,2,H1))...)) --&amp;gt;&lt;br /&gt;
(_,_,(...(W2,22020073,(W1,1,H1))...)) --&amp;gt;&lt;br /&gt;
(_,_,(...(W2,22020072,(W1,0,H1))...)) --&amp;gt;&lt;br /&gt;
(_,_,(...(W2,22020071,H5)...)) --&amp;gt;&lt;br /&gt;
(_,_,(...(W2,22020070,H1)...)) --&amp;gt; ...&lt;br /&gt;
(_,_,(...(W2,4,H1)...)) --&amp;gt;&lt;br /&gt;
(_,_,(...(W2,2,H1)...)) --&amp;gt;&lt;br /&gt;
(_,_,(...(W2,0,H1)...)) --&amp;gt;&lt;br /&gt;
(_,_,(...H3...)) --&amp;gt;&lt;br /&gt;
halt&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In each iteration of (a,b,x) --&amp;gt; (a&#039;,b&#039;,x&#039;), a&#039;≈2^a. It halts after 11010064 iterations of (a,b,x) --&amp;gt; (a&#039;,b&#039;,x&#039;). The omitted numbers in x and b are much smaller than a, and much larger than 66060289.&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
&amp;lt;references /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Stub]]&lt;/div&gt;</summary>
		<author><name>Mxdys</name></author>
	</entry>
	<entry>
		<id>https://wiki.bbchallenge.org/w/index.php?title=1RB1LC_1LA1RE_0RD0LA_1RZ1LB_1LD0RF_0RD1RB&amp;diff=2225</id>
		<title>1RB1LC 1LA1RE 0RD0LA 1RZ1LB 1LD0RF 0RD1RB</title>
		<link rel="alternate" type="text/html" href="https://wiki.bbchallenge.org/w/index.php?title=1RB1LC_1LA1RE_0RD0LA_1RZ1LB_1LD0RF_0RD1RB&amp;diff=2225"/>
		<updated>2025-06-17T13:17:09Z</updated>

		<summary type="html">&lt;p&gt;Mxdys: /* Analysis */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{machine|1RB1LC_1LA1RE_0RD0LA_1RZ1LB_1LD0RF_0RD1RB}}&lt;br /&gt;
{{TM|1RB1LC_1LA1RE_0RD0LA_1RZ1LB_1LD0RF_0RD1RB|halt}}&lt;br /&gt;
&lt;br /&gt;
Current [[BB(6)]] Champion. Discovered by mxdys on 16 June 2025.&lt;br /&gt;
&lt;br /&gt;
It&#039;s in a family of 6 machines with the halting time and sigma score between 10↑↑11010000 and 10↑↑11011000:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
1RB1LC_1LA1RE_0RD0LA_---1LB_1LD0RF_0RD1RB&lt;br /&gt;
1RB1LC_1LA1RE_0RD0LA_---1LB_1LE0RF_0RD1RB&lt;br /&gt;
1RB1LC_1LA1RD_1LA0LA_1LD0RE_0RF1RB_---1LB&lt;br /&gt;
1RB1LC_1LA1RD_1LA0LA_1LD0RE_0RF1RB_---1LC&lt;br /&gt;
1RB1LC_1LA1RD_1LA0LA_1LF0RE_0RF1RB_---1LB&lt;br /&gt;
1RB1LD_1LC1RE_---1LD_1LA0LA_1LE0RF_0RC1RB&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Analysis ==&lt;br /&gt;
It&#039;s behavior can be described by the python code below:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;python&amp;quot; line=&amp;quot;1&amp;quot;&amp;gt;&lt;br /&gt;
def LBS(x):&lt;br /&gt;
    if x==&#039;H1&#039;: return &#039;H1&#039;,1,1&lt;br /&gt;
    if x==&#039;H2&#039;: return &#039;H4&#039;,2,2&lt;br /&gt;
    if x==&#039;H3&#039;: print(&#039;Halted&#039;); exit()&lt;br /&gt;
    if x==&#039;H4&#039;: return &#039;H5&#039;,1,1&lt;br /&gt;
    if x==&#039;H5&#039;: return &#039;H1&#039;,1,2&lt;br /&gt;
    w,k0,x = x&lt;br /&gt;
    if w==&#039;W1&#039;:&lt;br /&gt;
        if k0==0 and x==&#039;H1&#039;: return &#039;H5&#039;,1,2&lt;br /&gt;
        x0,n,k = LBS(x)&lt;br /&gt;
        k1=k0+k-2&lt;br /&gt;
        return (&#039;W1&#039;,k1,x0),((n+1)*(1&amp;lt;&amp;lt;k1)-2)*4+5,2&lt;br /&gt;
    if w==&#039;W2&#039;:&lt;br /&gt;
        if k0==0 and x==&#039;H1&#039;: return &#039;H3&#039;,1,3&lt;br /&gt;
        if k0==1 and x==&#039;H1&#039;: return &#039;H2&#039;,1,3&lt;br /&gt;
        x0,n,k = LBS(x)&lt;br /&gt;
        k1=k0+k-3&lt;br /&gt;
        return (&#039;W2&#039;,k1,x0),((n+1)*(1&amp;lt;&amp;lt;k1)-2)*8+5,3&lt;br /&gt;
    assert 0&lt;br /&gt;
&lt;br /&gt;
a,b,x = 57,5,&#039;H1&#039;&lt;br /&gt;
while 1:&lt;br /&gt;
    r,m2 = a%3,a//3&lt;br /&gt;
    x0,n,k = LBS(x)&lt;br /&gt;
    if r==2:&lt;br /&gt;
        m1 = b-3&lt;br /&gt;
        a,b,x = ((((n+1)*(1&amp;lt;&amp;lt;(m1+k))-2)*4+2)*(1&amp;lt;&amp;lt;(m2+1))+1), m2, (&#039;W2&#039;,m1+k,x0)&lt;br /&gt;
    elif r==1:&lt;br /&gt;
        m1 = b-2&lt;br /&gt;
        a,b,x = ((((n+1)*(1&amp;lt;&amp;lt;(m1+k))-2)*2+2)*(1&amp;lt;&amp;lt;(m2+1))+1), m2, (&#039;W1&#039;,m1+k,x0)&lt;br /&gt;
    elif r==0:&lt;br /&gt;
        m1 = b-1&lt;br /&gt;
        a,b,x = ((((n+1)*(1&amp;lt;&amp;lt;(m1+k))-1))*(1&amp;lt;&amp;lt;(m2+1))+1), (m2+m1+k+1), x0&lt;br /&gt;
    else: assert 0&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tape encoding (reversed):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
H1 = 0^inf 1^7&lt;br /&gt;
H2 = 0^inf 1^5 101111 111111 1111&lt;br /&gt;
H3 = 0^inf 1^5 111111 1111&lt;br /&gt;
H4 = 0^inf 1^7 10 111111&lt;br /&gt;
H5 = 0^inf 1^7 111111&lt;br /&gt;
(W1,n,l) = l 111111^n 10 111111^2&lt;br /&gt;
(W2,n,l) = l 111111^n 1010 111111^3&lt;br /&gt;
&lt;br /&gt;
(a,b,x) = x 111111^b &amp;lt;F0 11^1+a 0^inf&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Execution process:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
(57,5,H1) --&amp;gt;&lt;br /&gt;
(66060289,25,H1) --&amp;gt;&lt;br /&gt;
(_,22020096,(W1,24,H1)) --&amp;gt;&lt;br /&gt;
(_,_,(W2,22020095,(W1,23,H1))) --&amp;gt; ...&lt;br /&gt;
(_,_,(...(W2,22020074,(W1,2,H1))...)) --&amp;gt;&lt;br /&gt;
(_,_,(...(W2,22020073,(W1,1,H1))...)) --&amp;gt;&lt;br /&gt;
(_,_,(...(W2,22020072,(W1,0,H1))...)) --&amp;gt;&lt;br /&gt;
(_,_,(...(W2,22020071,H5)...)) --&amp;gt;&lt;br /&gt;
(_,_,(...(W2,22020070,H1)...)) --&amp;gt; ...&lt;br /&gt;
(_,_,(...(W2,4,H1)...)) --&amp;gt;&lt;br /&gt;
(_,_,(...(W2,2,H1)...)) --&amp;gt;&lt;br /&gt;
(_,_,(...(W2,0,H1)...)) --&amp;gt;&lt;br /&gt;
(_,_,(...H3...)) --&amp;gt;&lt;br /&gt;
halt&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In each iteration of (a,b,x) --&amp;gt; (a&#039;,b&#039;,x&#039;), a&#039;≈2^a. It halts after 11010064 iterations of (a,b,x) --&amp;gt; (a&#039;,b&#039;,x&#039;). The omitted numbers in x and b are much smaller than a, and much larger than 66060289.&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
&amp;lt;references /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Stub]]&lt;/div&gt;</summary>
		<author><name>Mxdys</name></author>
	</entry>
	<entry>
		<id>https://wiki.bbchallenge.org/w/index.php?title=1RB1LC_1LA1RE_0RD0LA_1RZ1LB_1LD0RF_0RD1RB&amp;diff=2224</id>
		<title>1RB1LC 1LA1RE 0RD0LA 1RZ1LB 1LD0RF 0RD1RB</title>
		<link rel="alternate" type="text/html" href="https://wiki.bbchallenge.org/w/index.php?title=1RB1LC_1LA1RE_0RD0LA_1RZ1LB_1LD0RF_0RD1RB&amp;diff=2224"/>
		<updated>2025-06-17T13:16:38Z</updated>

		<summary type="html">&lt;p&gt;Mxdys: /* Analysis */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{machine|1RB1LC_1LA1RE_0RD0LA_1RZ1LB_1LD0RF_0RD1RB}}&lt;br /&gt;
{{TM|1RB1LC_1LA1RE_0RD0LA_1RZ1LB_1LD0RF_0RD1RB|halt}}&lt;br /&gt;
&lt;br /&gt;
Current [[BB(6)]] Champion. Discovered by mxdys on 16 June 2025.&lt;br /&gt;
&lt;br /&gt;
It&#039;s in a family of 6 machines with the halting time and sigma score between 10↑↑11010000 and 10↑↑11011000:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
1RB1LC_1LA1RE_0RD0LA_---1LB_1LD0RF_0RD1RB&lt;br /&gt;
1RB1LC_1LA1RE_0RD0LA_---1LB_1LE0RF_0RD1RB&lt;br /&gt;
1RB1LC_1LA1RD_1LA0LA_1LD0RE_0RF1RB_---1LB&lt;br /&gt;
1RB1LC_1LA1RD_1LA0LA_1LD0RE_0RF1RB_---1LC&lt;br /&gt;
1RB1LC_1LA1RD_1LA0LA_1LF0RE_0RF1RB_---1LB&lt;br /&gt;
1RB1LD_1LC1RE_---1LD_1LA0LA_1LE0RF_0RC1RB&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Analysis ==&lt;br /&gt;
It&#039;s behavior can be described by the python code below:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;python&amp;quot; line=&amp;quot;1&amp;quot;&amp;gt;&lt;br /&gt;
def LBS(x):&lt;br /&gt;
    if x==&#039;H1&#039;: return &#039;H1&#039;,1,1&lt;br /&gt;
    if x==&#039;H2&#039;: return &#039;H4&#039;,2,2&lt;br /&gt;
    if x==&#039;H3&#039;: print(&#039;Halted&#039;); exit()&lt;br /&gt;
    if x==&#039;H4&#039;: return &#039;H5&#039;,1,1&lt;br /&gt;
    if x==&#039;H5&#039;: return &#039;H1&#039;,1,2&lt;br /&gt;
    w,k0,x = x&lt;br /&gt;
    if w==&#039;W1&#039;:&lt;br /&gt;
        if k0==0 and x==&#039;H1&#039;: return &#039;H5&#039;,1,2&lt;br /&gt;
        x0,n,k = LBS(x)&lt;br /&gt;
        k1=k0+k-2&lt;br /&gt;
        return (&#039;W1&#039;,k1,x0),((n+1)*(1&amp;lt;&amp;lt;k1)-2)*4+5,2&lt;br /&gt;
    if w==&#039;W2&#039;:&lt;br /&gt;
        if k0==0 and x==&#039;H1&#039;: return &#039;H3&#039;,1,3&lt;br /&gt;
        if k0==1 and x==&#039;H1&#039;: return &#039;H2&#039;,1,3&lt;br /&gt;
        x0,n,k = LBS(x)&lt;br /&gt;
        k1=k0+k-3&lt;br /&gt;
        return (&#039;W2&#039;,k1,x0),((n+1)*(1&amp;lt;&amp;lt;k1)-2)*8+5,3&lt;br /&gt;
    assert 0&lt;br /&gt;
&lt;br /&gt;
a,b,x = 57,5,&#039;H1&#039;&lt;br /&gt;
while 1:&lt;br /&gt;
    r,m2 = a%3,a//3&lt;br /&gt;
    x0,n,k = LBS(x)&lt;br /&gt;
    if r==2:&lt;br /&gt;
        m1 = b-3&lt;br /&gt;
        a,b,x = ((((n+1)*(1&amp;lt;&amp;lt;(m1+k))-2)*4+2)*(1&amp;lt;&amp;lt;(m2+1))+1), m2, (&#039;W2&#039;,m1+k,x0)&lt;br /&gt;
    elif r==1:&lt;br /&gt;
        m1 = b-2&lt;br /&gt;
        a,b,x = ((((n+1)*(1&amp;lt;&amp;lt;(m1+k))-2)*2+2)*(1&amp;lt;&amp;lt;(m2+1))+1), m2, (&#039;W1&#039;,m1+k,x0)&lt;br /&gt;
    elif r==0:&lt;br /&gt;
        m1 = b-1&lt;br /&gt;
        a,b,x = ((((n+1)*(1&amp;lt;&amp;lt;(m1+k))-1))*(1&amp;lt;&amp;lt;(m2+1))+1), (m2+m1+k+1), x0&lt;br /&gt;
    else: assert 0&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tape encoding (reversed):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
H1 = 0^inf 1^7&lt;br /&gt;
H2 = 0^inf 1^5 101111 111111 1111&lt;br /&gt;
H3 = 0^inf 1^5 111111 1111&lt;br /&gt;
H4 = 0^inf 1^7 10 111111&lt;br /&gt;
H5 = 0^inf 1^7 111111&lt;br /&gt;
(W1,n,l) = l 111111^n 10 111111^2&lt;br /&gt;
(W2,n,l) = l 111111^n 1010 111111^3&lt;br /&gt;
&lt;br /&gt;
(a,b,x) = x 111111^b &amp;lt;F0 11^1+a 0^inf&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Execution process:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
(57,5,H1) --&amp;gt;&lt;br /&gt;
(66060289,25,H1) --&amp;gt;&lt;br /&gt;
(_,22020096,(W1,24,H1)) --&amp;gt;&lt;br /&gt;
(_,_,(W2,22020095,(W1,23,H1))) --&amp;gt; ...&lt;br /&gt;
(_,_,(...(W2,22020074,(W1,2,H1))...)) --&amp;gt;&lt;br /&gt;
(_,_,(...(W2,22020073,(W1,1,H1))...)) --&amp;gt;&lt;br /&gt;
(_,_,(...(W2,22020072,(W1,0,H1))...)) --&amp;gt;&lt;br /&gt;
(_,_,(...(W2,22020071,H5)...)) --&amp;gt;&lt;br /&gt;
(_,_,(...(W2,22020070,H1)...)) --&amp;gt; ...&lt;br /&gt;
(_,_,(...(W2,4,H1)...)) --&amp;gt;&lt;br /&gt;
(_,_,(...(W2,2,H1)...)) --&amp;gt;&lt;br /&gt;
(_,_,(...(W2,0,H1)...)) --&amp;gt;&lt;br /&gt;
(_,_,(...H3...)) --&amp;gt;&lt;br /&gt;
halt&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In each iteration of (a,b,x) --&amp;gt; (a&#039;,b&#039;,x&#039;), a&#039;≈2^a. It halts after 11010064 iterations of (a,b,x) --&amp;gt; (a&#039;,b&#039;,x&#039;).The omitted numbers in x and b are much smaller than a, and much larger than 66060289.&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
&amp;lt;references /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Stub]]&lt;/div&gt;</summary>
		<author><name>Mxdys</name></author>
	</entry>
	<entry>
		<id>https://wiki.bbchallenge.org/w/index.php?title=1RB1LC_1LA1RE_0RD0LA_1RZ1LB_1LD0RF_0RD1RB&amp;diff=2223</id>
		<title>1RB1LC 1LA1RE 0RD0LA 1RZ1LB 1LD0RF 0RD1RB</title>
		<link rel="alternate" type="text/html" href="https://wiki.bbchallenge.org/w/index.php?title=1RB1LC_1LA1RE_0RD0LA_1RZ1LB_1LD0RF_0RD1RB&amp;diff=2223"/>
		<updated>2025-06-17T12:44:49Z</updated>

		<summary type="html">&lt;p&gt;Mxdys: fix typo&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{machine|1RB1LC_1LA1RE_0RD0LA_1RZ1LB_1LD0RF_0RD1RB}}&lt;br /&gt;
{{TM|1RB1LC_1LA1RE_0RD0LA_1RZ1LB_1LD0RF_0RD1RB|halt}}&lt;br /&gt;
&lt;br /&gt;
Current [[BB(6)]] Champion. Discovered by mxdys on 16 June 2025.&lt;br /&gt;
&lt;br /&gt;
It&#039;s in a family of 6 machines with the halting time and sigma score between 10↑↑11010000 and 10↑↑11011000:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
1RB1LC_1LA1RE_0RD0LA_---1LB_1LD0RF_0RD1RB&lt;br /&gt;
1RB1LC_1LA1RE_0RD0LA_---1LB_1LE0RF_0RD1RB&lt;br /&gt;
1RB1LC_1LA1RD_1LA0LA_1LD0RE_0RF1RB_---1LB&lt;br /&gt;
1RB1LC_1LA1RD_1LA0LA_1LD0RE_0RF1RB_---1LC&lt;br /&gt;
1RB1LC_1LA1RD_1LA0LA_1LF0RE_0RF1RB_---1LB&lt;br /&gt;
1RB1LD_1LC1RE_---1LD_1LA0LA_1LE0RF_0RC1RB&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Analysis ==&lt;br /&gt;
It&#039;s behavior can be described by the python code below:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;python&amp;quot; line=&amp;quot;1&amp;quot;&amp;gt;&lt;br /&gt;
def LBS(x):&lt;br /&gt;
    if x==&#039;H1&#039;: return &#039;H1&#039;,1,1&lt;br /&gt;
    if x==&#039;H2&#039;: return &#039;H4&#039;,2,2&lt;br /&gt;
    if x==&#039;H3&#039;: print(&#039;Halted&#039;); exit()&lt;br /&gt;
    if x==&#039;H4&#039;: return &#039;H5&#039;,1,1&lt;br /&gt;
    if x==&#039;H5&#039;: return &#039;H1&#039;,1,2&lt;br /&gt;
    w,k0,x = x&lt;br /&gt;
    if w==&#039;W1&#039;:&lt;br /&gt;
        if k0==0 and x==&#039;H1&#039;: return &#039;H5&#039;,1,2&lt;br /&gt;
        x0,n,k = LBS(x)&lt;br /&gt;
        k1=k0+k-2&lt;br /&gt;
        return (&#039;W1&#039;,k1,x0),((n+1)*(1&amp;lt;&amp;lt;k1)-2)*4+5,2&lt;br /&gt;
    if w==&#039;W2&#039;:&lt;br /&gt;
        if k0==0 and x==&#039;H1&#039;: return &#039;H3&#039;,1,3&lt;br /&gt;
        if k0==1 and x==&#039;H1&#039;: return &#039;H2&#039;,1,3&lt;br /&gt;
        x0,n,k = LBS(x)&lt;br /&gt;
        k1=k0+k-3&lt;br /&gt;
        return (&#039;W2&#039;,k1,x0),((n+1)*(1&amp;lt;&amp;lt;k1)-2)*8+5,3&lt;br /&gt;
    assert 0&lt;br /&gt;
&lt;br /&gt;
a,b,x = 57,5,&#039;H1&#039;&lt;br /&gt;
while 1:&lt;br /&gt;
    r,m2 = a%3,a//3&lt;br /&gt;
    x0,n,k = LBS(x)&lt;br /&gt;
    if r==2:&lt;br /&gt;
        m1 = b-3&lt;br /&gt;
        a,b,x = ((((n+1)*(1&amp;lt;&amp;lt;(m1+k))-2)*4+2)*(1&amp;lt;&amp;lt;(m2+1))+1), m2, (&#039;W2&#039;,m1+k,x0)&lt;br /&gt;
    elif r==1:&lt;br /&gt;
        m1 = b-2&lt;br /&gt;
        a,b,x = ((((n+1)*(1&amp;lt;&amp;lt;(m1+k))-2)*2+2)*(1&amp;lt;&amp;lt;(m2+1))+1), m2, (&#039;W1&#039;,m1+k,x0)&lt;br /&gt;
    elif r==0:&lt;br /&gt;
        m1 = b-1&lt;br /&gt;
        a,b,x = ((((n+1)*(1&amp;lt;&amp;lt;(m1+k))-1))*(1&amp;lt;&amp;lt;(m2+1))+1), (m2+m1+k+1), x0&lt;br /&gt;
        pass&lt;br /&gt;
    else: assert 0&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
tape encoding (reversed):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
H1 = 0^inf 1^7&lt;br /&gt;
H2 = 0^inf 1^5 101111 111111 1111&lt;br /&gt;
H3 = 0^inf 1^5 111111 1111&lt;br /&gt;
H4 = 0^inf 1^7 10 111111&lt;br /&gt;
H5 = 0^inf 1^7 111111&lt;br /&gt;
(W1,n,l) = l 111111^n 10 111111^2&lt;br /&gt;
(W2,n,l) = l 111111^n 1010 111111^3&lt;br /&gt;
&lt;br /&gt;
(a,b,x) = x 111111^b &amp;lt;F0 11^1+a 0^inf&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
execution process:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
(57,5,H1) --&amp;gt;&lt;br /&gt;
(66060289,25,H1) --&amp;gt;&lt;br /&gt;
(_,22020096,(W1,24,H1)) --&amp;gt;&lt;br /&gt;
(_,_,(W2,22020095,(W1,23,H1))) --&amp;gt; ...&lt;br /&gt;
(_,_,(...(W2,22020074,(W1,2,H1))...)) --&amp;gt;&lt;br /&gt;
(_,_,(...(W2,22020073,(W1,1,H1))...)) --&amp;gt;&lt;br /&gt;
(_,_,(...(W2,22020072,(W1,0,H1))...)) --&amp;gt;&lt;br /&gt;
(_,_,(...(W2,22020071,H5)...)) --&amp;gt;&lt;br /&gt;
(_,_,(...(W2,22020070,H1)...)) --&amp;gt; ...&lt;br /&gt;
(_,_,(...(W2,4,H1)...)) --&amp;gt;&lt;br /&gt;
(_,_,(...(W2,2,H1)...)) --&amp;gt;&lt;br /&gt;
(_,_,(...(W2,0,H1)...)) --&amp;gt;&lt;br /&gt;
(_,_,(...H3...)) --&amp;gt;&lt;br /&gt;
halt&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
==References==&lt;br /&gt;
&amp;lt;references /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Stub]]&lt;/div&gt;</summary>
		<author><name>Mxdys</name></author>
	</entry>
	<entry>
		<id>https://wiki.bbchallenge.org/w/index.php?title=1RB1LC_1LA1RE_0RD0LA_1RZ1LB_1LD0RF_0RD1RB&amp;diff=2218</id>
		<title>1RB1LC 1LA1RE 0RD0LA 1RZ1LB 1LD0RF 0RD1RB</title>
		<link rel="alternate" type="text/html" href="https://wiki.bbchallenge.org/w/index.php?title=1RB1LC_1LA1RE_0RD0LA_1RZ1LB_1LD0RF_0RD1RB&amp;diff=2218"/>
		<updated>2025-06-17T06:17:03Z</updated>

		<summary type="html">&lt;p&gt;Mxdys: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{machine|1RB1LC_1LA1RE_0RD0LA_1RZ1LB_1LD0RF_0RD1RB}}&lt;br /&gt;
{{TM|1RB1LC_1LA1RE_0RD0LA_1RZ1LB_1LD0RF_0RD1RB|halt}}&lt;br /&gt;
&lt;br /&gt;
Current [[BB(6)]] Champion. Discovered by mxdys on 16 June 2025.&lt;br /&gt;
&lt;br /&gt;
It&#039;s in a family of 6 machines with the halting time and sigma score between 10↑↑11010000 and 10↑↑11011000:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
1RB1LC_1LA1RE_0RD0LA_---1LB_1LD0RF_0RD1RB&lt;br /&gt;
1RB1LC_1LA1RE_0RD0LA_---1LB_1LE0RF_0RD1RB&lt;br /&gt;
1RB1LC_1LA1RD_1LA0LA_1LD0RE_0RF1RB_---1LB&lt;br /&gt;
1RB1LC_1LA1RD_1LA0LA_1LD0RE_0RF1RB_---1LC&lt;br /&gt;
1RB1LC_1LA1RD_1LA0LA_1LF0RE_0RF1RB_---1LB&lt;br /&gt;
1RB1LD_1LC1RE_---1LD_1LA0LA_1LE0RF_0RC1RB&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Analysis ==&lt;br /&gt;
It&#039;s behavior can be described by the python code below:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;python&amp;quot; line=&amp;quot;1&amp;quot;&amp;gt;&lt;br /&gt;
def LBS(x):&lt;br /&gt;
    if x==&#039;H1&#039;: return &#039;H1&#039;,1,1&lt;br /&gt;
    if x==&#039;H2&#039;: return &#039;H4&#039;,2,2&lt;br /&gt;
    if x==&#039;H3&#039;: print(&#039;Halted&#039;); exit()&lt;br /&gt;
    if x==&#039;H4&#039;: return &#039;H5&#039;,1,1&lt;br /&gt;
    if x==&#039;H5&#039;: return &#039;H1&#039;,1,2&lt;br /&gt;
    w,k0,x = x&lt;br /&gt;
    if w==&#039;W1&#039;:&lt;br /&gt;
        if k0==0 and x==&#039;H1&#039;: return &#039;H5&#039;,1,2&lt;br /&gt;
        x0,n,k = LBS(x)&lt;br /&gt;
        k1=k0+k-2&lt;br /&gt;
        return (&#039;W1&#039;,k1,x0),((n+1)*(1&amp;lt;&amp;lt;k1)-2)*4+5,2&lt;br /&gt;
    if w==&#039;W2&#039;:&lt;br /&gt;
        if k0==0 and x==&#039;H1&#039;: return &#039;H3&#039;,1,3&lt;br /&gt;
        if k0==1 and x==&#039;H1&#039;: return &#039;H2&#039;,1,3&lt;br /&gt;
        x0,n,k = LBS(x)&lt;br /&gt;
        k1=k0+k-3&lt;br /&gt;
        return (&#039;W2&#039;,k1,x0),((n+1)*(1&amp;lt;&amp;lt;k1)-2)*8+5,3&lt;br /&gt;
    assert 0&lt;br /&gt;
&lt;br /&gt;
a,b,x = 57,5,&#039;H1&#039;&lt;br /&gt;
while 1:&lt;br /&gt;
    r,m2 = a%3,a//3&lt;br /&gt;
    x0,n,k = LBS(x)&lt;br /&gt;
    if r==2:&lt;br /&gt;
        m1 = b-3&lt;br /&gt;
        a,b,x = ((((n+1)*(1&amp;lt;&amp;lt;(m1+k))-2)*4+2)*(1&amp;lt;&amp;lt;(m2+1))+1), m2, (&#039;W2&#039;,m1+k,x0)&lt;br /&gt;
    elif r==1:&lt;br /&gt;
        m1 = b-2&lt;br /&gt;
        a,b,x = ((((n+1)*(1&amp;lt;&amp;lt;(m1+k))-2)*2+2)*(1&amp;lt;&amp;lt;(m2+1))+1), m2, (&#039;W1&#039;,m1+k,x0)&lt;br /&gt;
    elif r==0:&lt;br /&gt;
        m1 = b-1&lt;br /&gt;
        a,b,x = ((((n+1)*(1&amp;lt;&amp;lt;(m1+k))-1))*(1&amp;lt;&amp;lt;(m2+1))+1), (m2+m1+k+1), x0&lt;br /&gt;
        pass&lt;br /&gt;
    else: assert 0&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
tape encoding (reversed):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
H1 = 0^inf 1^7&lt;br /&gt;
H2 = 0^inf 1^5 101111 111111 1111&lt;br /&gt;
H3 = 0^inf 1^5 111111 1111&lt;br /&gt;
H4 = 0^inf 1^7 10 111111&lt;br /&gt;
H5 = 0^inf 1^7 111111&lt;br /&gt;
(W1,n,l) = l 111111^n 10 111111^2&lt;br /&gt;
(W2,n,l) = l 111111^n 1010 111111^3&lt;br /&gt;
&lt;br /&gt;
(a,b,x) = x 111111^b &amp;lt;F0 11^1+a 0^inf&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
execution process:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
(57,5,H1) --&amp;gt;&lt;br /&gt;
(66060289,25,H1) --&amp;gt;&lt;br /&gt;
(_,22020096,(W1,24,H1)) --&amp;gt;&lt;br /&gt;
(_,_,(W2,22020095 (W1,23,H1))) --&amp;gt; ...&lt;br /&gt;
(_,_,(...(W2,22020074,(W1,2,H1))...)) --&amp;gt;&lt;br /&gt;
(_,_,(...(W2,22020073,(W1,1,H1))...)) --&amp;gt;&lt;br /&gt;
(_,_,(...(W2,22020072,(W1,0,H1))...)) --&amp;gt;&lt;br /&gt;
(_,_,(...(W2,22020071,H5)...)) --&amp;gt;&lt;br /&gt;
(_,_,(...(W2,22020070,H1)...)) --&amp;gt; ...&lt;br /&gt;
(_,_,(...(W2,4,H1)...)) --&amp;gt;&lt;br /&gt;
(_,_,(...(W2,2,H1)...)) --&amp;gt;&lt;br /&gt;
(_,_,(...(W2,0,H1)...)) --&amp;gt;&lt;br /&gt;
(_,_,(...H3...)) --&amp;gt;&lt;br /&gt;
halt&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
==References==&lt;br /&gt;
&amp;lt;references /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Stub]]&lt;/div&gt;</summary>
		<author><name>Mxdys</name></author>
	</entry>
	<entry>
		<id>https://wiki.bbchallenge.org/w/index.php?title=1RB1LC_1LA1RE_0RD0LA_1RZ1LB_1LD0RF_0RD1RB&amp;diff=2217</id>
		<title>1RB1LC 1LA1RE 0RD0LA 1RZ1LB 1LD0RF 0RD1RB</title>
		<link rel="alternate" type="text/html" href="https://wiki.bbchallenge.org/w/index.php?title=1RB1LC_1LA1RE_0RD0LA_1RZ1LB_1LD0RF_0RD1RB&amp;diff=2217"/>
		<updated>2025-06-17T06:15:45Z</updated>

		<summary type="html">&lt;p&gt;Mxdys: Created page with &amp;quot;{{machine|1RB1LC_1LA1RE_0RD0LA_1RZ1LB_1LD0RF_0RD1RB}} {{TM|1RB1LC_1LA1RE_0RD0LA_1RZ1LB_1LD0RF_0RD1RB|halt}}  Current BB(6) Champion. Discovered by mxdys on 16 June 2025. The halting t  steps.  It&amp;#039;s in a family of 6 machines with the halting time and sigma score between 10↑↑11010000 and 10↑↑11011000: &amp;lt;pre&amp;gt; 1RB1LC_1LA1RE_0RD0LA_---1LB_1LD0RF_0RD1RB 1RB1LC_1LA1RE_0RD0LA_---1LB_1LE0RF_0RD1RB 1RB1LC_1LA1RD_1LA0LA_1LD0RE_0RF1RB_---1LB 1RB1LC_1LA1RD_1LA0LA_1LD0RE_0R...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{machine|1RB1LC_1LA1RE_0RD0LA_1RZ1LB_1LD0RF_0RD1RB}}&lt;br /&gt;
{{TM|1RB1LC_1LA1RE_0RD0LA_1RZ1LB_1LD0RF_0RD1RB|halt}}&lt;br /&gt;
&lt;br /&gt;
Current [[BB(6)]] Champion. Discovered by mxdys on 16 June 2025. The halting t  steps.&lt;br /&gt;
&lt;br /&gt;
It&#039;s in a family of 6 machines with the halting time and sigma score between 10↑↑11010000 and 10↑↑11011000:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
1RB1LC_1LA1RE_0RD0LA_---1LB_1LD0RF_0RD1RB&lt;br /&gt;
1RB1LC_1LA1RE_0RD0LA_---1LB_1LE0RF_0RD1RB&lt;br /&gt;
1RB1LC_1LA1RD_1LA0LA_1LD0RE_0RF1RB_---1LB&lt;br /&gt;
1RB1LC_1LA1RD_1LA0LA_1LD0RE_0RF1RB_---1LC&lt;br /&gt;
1RB1LC_1LA1RD_1LA0LA_1LF0RE_0RF1RB_---1LB&lt;br /&gt;
1RB1LD_1LC1RE_---1LD_1LA0LA_1LE0RF_0RC1RB&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Analysis ==&lt;br /&gt;
It&#039;s behavior can be described by the python code below:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;python&amp;quot; line=&amp;quot;1&amp;quot;&amp;gt;&lt;br /&gt;
def LBS(x):&lt;br /&gt;
    if x==&#039;H1&#039;: return &#039;H1&#039;,1,1&lt;br /&gt;
    if x==&#039;H2&#039;: return &#039;H4&#039;,2,2&lt;br /&gt;
    if x==&#039;H3&#039;: print(&#039;Halted&#039;); exit()&lt;br /&gt;
    if x==&#039;H4&#039;: return &#039;H5&#039;,1,1&lt;br /&gt;
    if x==&#039;H5&#039;: return &#039;H1&#039;,1,2&lt;br /&gt;
    w,k0,x = x&lt;br /&gt;
    if w==&#039;W1&#039;:&lt;br /&gt;
        if k0==0 and x==&#039;H1&#039;: return &#039;H5&#039;,1,2&lt;br /&gt;
        x0,n,k = LBS(x)&lt;br /&gt;
        k1=k0+k-2&lt;br /&gt;
        return (&#039;W1&#039;,k1,x0),((n+1)*(1&amp;lt;&amp;lt;k1)-2)*4+5,2&lt;br /&gt;
    if w==&#039;W2&#039;:&lt;br /&gt;
        if k0==0 and x==&#039;H1&#039;: return &#039;H3&#039;,1,3&lt;br /&gt;
        if k0==1 and x==&#039;H1&#039;: return &#039;H2&#039;,1,3&lt;br /&gt;
        x0,n,k = LBS(x)&lt;br /&gt;
        k1=k0+k-3&lt;br /&gt;
        return (&#039;W2&#039;,k1,x0),((n+1)*(1&amp;lt;&amp;lt;k1)-2)*8+5,3&lt;br /&gt;
    assert 0&lt;br /&gt;
&lt;br /&gt;
a,b,x = 57,5,&#039;H1&#039;&lt;br /&gt;
while 1:&lt;br /&gt;
    r,m2 = a%3,a//3&lt;br /&gt;
    x0,n,k = LBS(x)&lt;br /&gt;
    if r==2:&lt;br /&gt;
        m1 = b-3&lt;br /&gt;
        a,b,x = ((((n+1)*(1&amp;lt;&amp;lt;(m1+k))-2)*4+2)*(1&amp;lt;&amp;lt;(m2+1))+1), m2, (&#039;W2&#039;,m1+k,x0)&lt;br /&gt;
    elif r==1:&lt;br /&gt;
        m1 = b-2&lt;br /&gt;
        a,b,x = ((((n+1)*(1&amp;lt;&amp;lt;(m1+k))-2)*2+2)*(1&amp;lt;&amp;lt;(m2+1))+1), m2, (&#039;W1&#039;,m1+k,x0)&lt;br /&gt;
    elif r==0:&lt;br /&gt;
        m1 = b-1&lt;br /&gt;
        a,b,x = ((((n+1)*(1&amp;lt;&amp;lt;(m1+k))-1))*(1&amp;lt;&amp;lt;(m2+1))+1), (m2+m1+k+1), x0&lt;br /&gt;
        pass&lt;br /&gt;
    else: assert 0&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
tape encoding (reversed):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
H1 = 0^inf 1^7&lt;br /&gt;
H2 = 0^inf 1^5 101111 111111 1111&lt;br /&gt;
H3 = 0^inf 1^5 111111 1111&lt;br /&gt;
H4 = 0^inf 1^7 10 111111&lt;br /&gt;
H5 = 0^inf 1^7 111111&lt;br /&gt;
(W1,n,l) = l 111111^n 10 111111^2&lt;br /&gt;
(W2,n,l) = l 111111^n 1010 111111^3&lt;br /&gt;
&lt;br /&gt;
(a,b,x) = x 111111^b &amp;lt;F0 11^1+a 0^inf&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
execution process:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
(57,5,H1) --&amp;gt;&lt;br /&gt;
(66060289,25,H1) --&amp;gt;&lt;br /&gt;
(_,22020096,(W1,24,H1)) --&amp;gt;&lt;br /&gt;
(_,_,(W2,22020095 (W1,23,H1))) --&amp;gt; ...&lt;br /&gt;
(_,_,(...(W2,22020074,(W1,2,H1))...)) --&amp;gt;&lt;br /&gt;
(_,_,(...(W2,22020073,(W1,1,H1))...)) --&amp;gt;&lt;br /&gt;
(_,_,(...(W2,22020072,(W1,0,H1))...)) --&amp;gt;&lt;br /&gt;
(_,_,(...(W2,22020071,H5)...)) --&amp;gt;&lt;br /&gt;
(_,_,(...(W2,22020070,H1)...)) --&amp;gt; ...&lt;br /&gt;
(_,_,(...(W2,4,H1)...)) --&amp;gt;&lt;br /&gt;
(_,_,(...(W2,2,H1)...)) --&amp;gt;&lt;br /&gt;
(_,_,(...(W2,0,H1)...)) --&amp;gt;&lt;br /&gt;
(_,_,(...H3...)) --&amp;gt;&lt;br /&gt;
halt&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
==References==&lt;br /&gt;
&amp;lt;references /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Stub]]&lt;/div&gt;</summary>
		<author><name>Mxdys</name></author>
	</entry>
	<entry>
		<id>https://wiki.bbchallenge.org/w/index.php?title=Main_Page&amp;diff=2214</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://wiki.bbchallenge.org/w/index.php?title=Main_Page&amp;diff=2214"/>
		<updated>2025-06-17T05:11:46Z</updated>

		<summary type="html">&lt;p&gt;Mxdys: update BB(6) lower bound&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The [[Busy Beaver function]] BB (called &#039;&#039;S&#039;&#039; originally) was introduced by [https://en.wikipedia.org/wiki/Tibor_Rad%C3%B3 Tibor Radó] in 1962 for 2-symbol [[Turing machines]] and later generalised to &#039;&#039;m&#039;&#039;-symbol Turing machines:&amp;lt;ref&amp;gt;Rado, T. (1962), On Non-Computable Functions. Bell System Technical Journal, 41: 877-884. https://doi.org/10.1002/j.1538-7305.1962.tb00480.x&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;Brady, Allen H, and the Meaning of Life, &#039;The Busy Beaver Game and the Meaning of Life&#039;, in Rolf Herken (ed.), The Universal Turing Machine: A Half-Century Survey (Oxford, 1990; online edn, Oxford Academic, 31 Oct. 2023), https://doi.org/10.1093/oso/9780198537748.003.0009, accessed 8 June 2024.&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| BB(&#039;&#039;n&#039;&#039;, &#039;&#039;m&#039;&#039;) = Maximum number of steps taken by a halting &#039;&#039;n&#039;&#039;-state, &#039;&#039;m&#039;&#039;-symbol Turing machine starting from a blank (all 0) tape&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The 2-symbol case BB(&#039;&#039;n&#039;&#039;, 2) is abbreviated as BB(&#039;&#039;n&#039;&#039;). The busy beaver function is not computable, but a few of its values are known:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ Small busy beaver values&amp;lt;ref&amp;gt;P. Michel, &amp;quot;[https://bbchallenge.org/~pascal.michel/ha.html Historical survey of Busy Beavers]&amp;quot;.&amp;lt;/ref&amp;gt;&lt;br /&gt;
! !!2-state!!3-state !!4-state!!5-state!!6-state &lt;br /&gt;
!7-state&lt;br /&gt;
|-  &lt;br /&gt;
! 2-symbol &lt;br /&gt;
| [[BB(2)]] = 6 &lt;br /&gt;
| [[BB(3)]] = 21&lt;br /&gt;
| [[BB(4)]] = 107 &lt;br /&gt;
| [[BB(5)]] = 47,176,870 &lt;br /&gt;
| style=&amp;quot;background: orange;&amp;quot; | [[BB(6)]] &amp;gt; &amp;lt;math&amp;gt;10 \uparrow \uparrow 10^7&amp;lt;/math&amp;gt;&lt;br /&gt;
| style=&amp;quot;background: #ffe4b2;&amp;quot; | [[BB(7)]] &amp;gt; &amp;lt;math&amp;gt;2 \uparrow^{11} 2 \uparrow^{11} 3&amp;lt;/math&amp;gt; &lt;br /&gt;
|-&lt;br /&gt;
! 3-symbol&lt;br /&gt;
| [[BB(2,3)]] = 38 &lt;br /&gt;
| style=&amp;quot;background: orange;&amp;quot; | [[BB(3,3)]] &amp;gt; &amp;lt;math&amp;gt;10^{17}&amp;lt;/math&amp;gt;&lt;br /&gt;
| style=&amp;quot;background: #ffe4b2;&amp;quot; | [[BB(4,3)]] &amp;gt; &amp;lt;math&amp;gt;2 \uparrow\uparrow\uparrow 2^{2^{32}}&amp;lt;/math&amp;gt;&lt;br /&gt;
| style=&amp;quot;background: #ffe4b2;&amp;quot; |&lt;br /&gt;
| style=&amp;quot;background: #ffe4b2;&amp;quot; |&lt;br /&gt;
| style=&amp;quot;background: #ffe4b2;&amp;quot; |&lt;br /&gt;
|-&lt;br /&gt;
! 4-symbol  &lt;br /&gt;
| [[BB(2,4)]] = 3,932,964&lt;br /&gt;
| style=&amp;quot;background: #ffe4b2;&amp;quot; | [[BB(3,4)]] &amp;gt; &amp;lt;math&amp;gt;2 \uparrow^{15} 5&amp;lt;/math&amp;gt;&lt;br /&gt;
| style=&amp;quot;background: #ffe4b2;&amp;quot; |&lt;br /&gt;
| style=&amp;quot;background: #ffe4b2;&amp;quot; |&lt;br /&gt;
| style=&amp;quot;background: #ffe4b2;&amp;quot; |&lt;br /&gt;
| style=&amp;quot;background: #ffe4b2;&amp;quot; |&lt;br /&gt;
|-&lt;br /&gt;
! 5-symbol &lt;br /&gt;
| style=&amp;quot;background: orange;&amp;quot; | [[BB(2,5)]] &amp;gt; &amp;lt;math&amp;gt;10\uparrow\uparrow 4&amp;lt;/math&amp;gt;&lt;br /&gt;
| style=&amp;quot;background: #ffe4b2;&amp;quot; |&lt;br /&gt;
| style=&amp;quot;background: #ffe4b2;&amp;quot; |&lt;br /&gt;
| style=&amp;quot;background: #ffe4b2;&amp;quot; |&lt;br /&gt;
| style=&amp;quot;background: #ffe4b2;&amp;quot; |&lt;br /&gt;
| style=&amp;quot;background: #ffe4b2;&amp;quot; |&lt;br /&gt;
|-&lt;br /&gt;
! 6-symbol &lt;br /&gt;
| style=&amp;quot;background: #ffe4b2;&amp;quot; | [[BB(2,6)]] &amp;gt; &amp;lt;math&amp;gt;10 \uparrow\uparrow\uparrow 3&amp;lt;/math&amp;gt;&lt;br /&gt;
| style=&amp;quot;background: #ffe4b2;&amp;quot; |&lt;br /&gt;
| style=&amp;quot;background: #ffe4b2;&amp;quot; |&lt;br /&gt;
| style=&amp;quot;background: #ffe4b2;&amp;quot; |&lt;br /&gt;
| style=&amp;quot;background: #ffe4b2;&amp;quot; |&lt;br /&gt;
| style=&amp;quot;background: #ffe4b2;&amp;quot; |&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
In the above table, &amp;lt;span style=&amp;quot;background: orange&amp;quot;&amp;gt;cells are highlighted in orange&amp;lt;/span&amp;gt; when there are known [[Cryptids]] (mathematically-hard machines) in that class, and &amp;lt;span style=&amp;quot;background: #ffe4b2&amp;quot;&amp;gt;cells are highlighted in light orange&amp;lt;/span&amp;gt; when the existence of a Cryptid is given by using a known one with less states or symbols.&lt;br /&gt;
&lt;br /&gt;
== About bbchallenge ==&lt;br /&gt;
[https://www.bbchallenge.org bbchallenge] is a massively collaborative research project whose general goal is to obtain more knowledge on the [[Busy Beaver function]]. In practice, it mainly consists in collaboratively building [[Deciders]], programs that automatically prove that some Turing machines do not halt.  Other efforts also include:&lt;br /&gt;
&lt;br /&gt;
* Formalising results using theorem provers (such as [https://en.wikipedia.org/wiki/Coq_(software) Coq])&lt;br /&gt;
* Maintaining [[Holdouts lists]] for small busy beaver values&lt;br /&gt;
* Proving the behavior of [[:Category:Individual Machines|Individual machines]]&lt;br /&gt;
* Finding [[Cryptids]] (mathematically-hard machines)&lt;br /&gt;
* Searching for new [[Champions]]&lt;br /&gt;
* Building [[Accelerated Simulator]]s to simulate halting machines faster&lt;br /&gt;
* Writing papers and giving talks about busy beaver, see [[Papers &amp;amp; Talks]]&lt;br /&gt;
&lt;br /&gt;
In June 2024, bbchallenge achieved a significant milestone by proving in Coq / Rocq that the 5th busy beaver value, [[BB(5)]], is equal to the lower bound found in 1989: 47,176,870.&amp;lt;ref&amp;gt;H. Marxen and J. Buntrock. Attacking the Busy Beaver 5.&lt;br /&gt;
Bulletin of the EATCS, 40, pages 247-251, February 1990. https://turbotm.de/~heiner/BB/mabu90.html&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Contribute to this wiki ==&lt;br /&gt;
This wiki is collaborative, feel free to contribute by editing existing pages or creating new ones:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;inputbox&amp;gt;&lt;br /&gt;
type=create&lt;br /&gt;
width=100&lt;br /&gt;
break=no&lt;br /&gt;
buttonlabel=Create new article&lt;br /&gt;
default=(Article title)&lt;br /&gt;
&amp;lt;/inputbox&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Notes==&lt;br /&gt;
&amp;lt;references /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Mxdys</name></author>
	</entry>
	<entry>
		<id>https://wiki.bbchallenge.org/w/index.php?title=Closed_Tape_Language&amp;diff=1885</id>
		<title>Closed Tape Language</title>
		<link rel="alternate" type="text/html" href="https://wiki.bbchallenge.org/w/index.php?title=Closed_Tape_Language&amp;diff=1885"/>
		<updated>2025-05-08T18:35:00Z</updated>

		<summary type="html">&lt;p&gt;Mxdys: /* DFA generator */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Closed tape language (CTL) is a class of methods to prove that a Turing machine does not stop. A Turing machine may go through an infinite number of configurations while running, but we can classify them into a finite number of classes in a suitable way, and prove that each configuration in a class reaches another configuration (instead of halting) in some class after running for one step.&lt;br /&gt;
&lt;br /&gt;
== regular CTL ==&lt;br /&gt;
See also: https://www.sligocki.com/2022/06/10/ctl.html&lt;br /&gt;
&lt;br /&gt;
We use two DFAs (one with state sets L and R respectively) and an accepting set A to describe each classes.&lt;br /&gt;
&lt;br /&gt;
The elements in set A have the form (l,r,q,s): L×R×Q×Σ, where Q is the state set of the TM, Σ is the symbol set of the TM, and (l,r,q,s) means the class of configurations in the form of 0^inf x q&amp;gt; s y 0^inf s.t. the DFA L gets state l when the string x is input, the DFA R gets state r when the string y (reversed) is input.&lt;br /&gt;
&lt;br /&gt;
A variant is use (l,r,q,d): L×R×Q×{-1,+1}, and d=-1 means 0^inf x &amp;lt;nowiki&amp;gt;&amp;lt;q y 0^inf, d=+1 means 0^inf x q&amp;gt; y 0^inf.&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== DFA generator ===&lt;br /&gt;
Assume we have set S, function f:S×Σ→S and s0∈S, we can build a DFA incrementally: the starting state of the DFA is s0, the transtion (s0,0) is defined as s0, all other transitions are undefined at the beginning, and whenever we need to use a transition (a,b): S×Σ, we define it as f(a,b).&lt;br /&gt;
&lt;br /&gt;
The DFA L,R and the accepting set A can be generated using this method.&lt;br /&gt;
&lt;br /&gt;
Initially we have A={(s0,s0,q0,+1)}, where q0∈Q is the initial state of the TM, then we update A until it&#039;s closed under running for one step:&lt;br /&gt;
&lt;br /&gt;
If (l,f(r,s),q,+1)∈A, and r is a visited state in R, and TM(q,s) = (q&#039;,s&#039;,+1), we add (f(l,s&#039;),r,q&#039;,+1) to A.&lt;br /&gt;
&lt;br /&gt;
If (l,f(r,s),q,+1)∈A, and r is a visited state in R, and TM(q,s) = (q&#039;,s&#039;,-1), we add (l,f(r,s&#039;),q&#039;,-1) to A.&lt;br /&gt;
&lt;br /&gt;
If (f(l,s),r,q,-1)∈A, and l is a visited state in L, and TM(q,s) = (q&#039;,s&#039;,-1), we add (l,f(r,s&#039;),q&#039;,-1) to A.&lt;br /&gt;
&lt;br /&gt;
If (f(l,s),r,q,-1)∈A, and l is a visited state in L, and TM(q,s) = (q&#039;,s&#039;,+1), we add (f(l,s&#039;),r,q&#039;,+1) to A.&lt;br /&gt;
&lt;br /&gt;
A state of a DFA is visited iff it appears at least once in A.&lt;br /&gt;
&lt;br /&gt;
If we visit TM(q,s) and it&#039;s a halting transition, this method failed.&lt;br /&gt;
&lt;br /&gt;
TM: Q×Σ→Q×Σ×{-1,+1} is the transition table of the turing machine.&lt;br /&gt;
&lt;br /&gt;
This algorithm may not halt when |S| is infinite (or very slow when |S| is large), so we usually add a time limit or step limit to it.&lt;br /&gt;
&lt;br /&gt;
==== RWL_mod ====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
s0 = []&lt;br /&gt;
f([(x,n,m)]+z,x) = g([(x,min(n+1,N),(m+1)%M)]+z)&lt;br /&gt;
f(z,x) = g([(x,1,1)]+z), otherwise&lt;br /&gt;
g(a+[b]) = a, len(a+[b])&amp;gt;=L&lt;br /&gt;
g(a) = a, len(a)&amp;lt;L&lt;br /&gt;
where L,N,M are parameters, typical values ​​are N=2, M=1,2,3, 1&amp;lt;=L&amp;lt;=16.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== CPS_LRU ====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
s0 = ([],[],[])&lt;br /&gt;
f((s1,s2,        s3),x) = (s1,s2,[x]+s3), len(s3)&amp;lt;N3&lt;br /&gt;
f((s1,s2,        s3),x) = ([x]+s1,s2,s3), len(s1)&amp;lt;N1&lt;br /&gt;
f((s1,s2+[z],    s3),x) = (s1&#039;,[y]+s2,s3), len(s2+[z])=N2 and y not in s2 and [x]+s1=s1&#039;+[y]&lt;br /&gt;
f((s1,s2,        s3),x) = (s1&#039;,[y]+s2,s3), y not in s2 and [x]+s1=s1&#039;+[y]&lt;br /&gt;
f((s1,s2+[y]+s2&#039;,s3),x) = (s1&#039;,[y]+s2+s2&#039;,s3), y not in s2 and [x]+s1=s1&#039;+[y]&lt;br /&gt;
when multiple rules match, take the first one.&lt;br /&gt;
s1 is a queue, s2 is an LRU cache, s3 is a stack that never pops.&lt;br /&gt;
N1,N2,N3 are parameters, typical values are N1=0,1, N3=0,1, N2=0,1,2,3.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== n-gram CPS ====&lt;br /&gt;
n-gram CPS is the special case of CPS_LRU where N2=N3=0, N1=n.&lt;br /&gt;
&lt;br /&gt;
=== FAR-direct ===&lt;br /&gt;
TODO&lt;br /&gt;
&lt;br /&gt;
See https://github.com/bbchallenge/bbchallenge-deciders/tree/main/decider-finite-automata-reduction&lt;br /&gt;
&lt;br /&gt;
=== machine transform ===&lt;br /&gt;
n-gram CPS can be much more powerful if we transform the TM properly. Such a transformation should not cause a halting Turing machine to nonhalt.&lt;br /&gt;
&lt;br /&gt;
==== macro machine ====&lt;br /&gt;
Divide the tape into fixed size blocks, each block is a symbol in the transformed machine.&lt;br /&gt;
&lt;br /&gt;
==== local transition history ====&lt;br /&gt;
The Turing machine can be modified to write down and update extra data at each step. We use the f defined in CPS_LRU (update the extra data as f(h,(q,s)) when the machine is at state q, read symbol (s,h) where s is the original symbol and h is extra data).&lt;br /&gt;
&lt;br /&gt;
== MITMWFAR ==&lt;br /&gt;
TODO&lt;br /&gt;
&lt;br /&gt;
See https://github.com/Iijil1/MITMWFAR&lt;br /&gt;
[[Category:Deciders]]&lt;br /&gt;
[[Category:Stub]]&lt;/div&gt;</summary>
		<author><name>Mxdys</name></author>
	</entry>
	<entry>
		<id>https://wiki.bbchallenge.org/w/index.php?title=Busy_Beaver_for_lambda_calculus&amp;diff=1788</id>
		<title>Busy Beaver for lambda calculus</title>
		<link rel="alternate" type="text/html" href="https://wiki.bbchallenge.org/w/index.php?title=Busy_Beaver_for_lambda_calculus&amp;diff=1788"/>
		<updated>2025-04-12T19:22:33Z</updated>

		<summary type="html">&lt;p&gt;Mxdys: update BBλ(46) champion (trivial)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;Busy Beaver for lambda calculus&#039;&#039;&#039; (&#039;&#039;&#039;BBλ&#039;&#039;&#039;) is a variation of the [[Busy Beaver]] problem for [https://en.wikipedia.org/wiki/Lambda_calculus lambda calculus] invented by John Tromp. BBλ(n) = the maximum normal form size of any closed lambda term of size n. If you are not familiar with lambda calculus and beta-reduction, I recommend starting with that article.&lt;br /&gt;
&lt;br /&gt;
Size is measured in bits using [https://tromp.github.io/cl/Binary_lambda_calculus.html Binary Lambda Calculus] which is a binary prefix-free encoding for all closed lambda calculus terms.&lt;br /&gt;
&lt;br /&gt;
== Analogy to Turing machines ==&lt;br /&gt;
We evaluate terms by applying &#039;&#039;beta-reductions&#039;&#039; until they reach a &#039;&#039;normal form&#039;&#039;. As an analogy to [[Turing machines]]:&lt;br /&gt;
* &#039;&#039;Lambda terms&#039;&#039; are like TM configurations (tape + state + position).&lt;br /&gt;
* Applying &#039;&#039;beta-reduction&#039;&#039; to a term is like taking a TM step.&lt;br /&gt;
* A term is in &#039;&#039;normal form&#039;&#039; if no beta-reductions can be applied. This is like saying the term has halted.&lt;br /&gt;
* A term may or may not be reducible to a normal form. If it is, this is like saying the term halts.&lt;br /&gt;
* Determining whether a term is reducible to a normal form is an undecidable problem equivalent to the halting problem.&lt;br /&gt;
&lt;br /&gt;
Note: That unlike for Turing machines, evaluating lambda terms is non-deterministic. Specifically, there may be multiple beta-reductions possible in a given term. However, if a term can be reduced to a normal form, that normal form is unique. It is not possible to reduce the original term to any different normal form. A term is &#039;&#039;&#039;strongly normalizing&#039;&#039;&#039; if any choice of beta-reductions will lead to this normal form and &#039;&#039;&#039;weakly normalizing&#039;&#039;&#039; if there exist divergent reduction paths which never reach the normal form.&lt;br /&gt;
&lt;br /&gt;
== Binary Lambda Encoding ==&lt;br /&gt;
A lambda term using [https://en.wikipedia.org/wiki/De_Bruijn_indices De Bruijn indexes] is defined inductively as:&lt;br /&gt;
* Variables: For any &amp;lt;math&amp;gt;n \in \mathbb{Z}^+&amp;lt;/math&amp;gt;, Var(&#039;&#039;n&#039;&#039;) is a term. It represents a variable bound by the lambda expression &#039;&#039;n&#039;&#039; above this one (the De Bruijn index). It is typically written simply as &amp;lt;code&amp;gt;n&amp;lt;/code&amp;gt;.&lt;br /&gt;
* Lambdas: For any term &#039;&#039;T&#039;&#039;, Lam(&#039;&#039;T&#039;&#039;) is a term. It represents a unary function with function body &#039;&#039;T&#039;&#039;. It is typically written &amp;lt;math&amp;gt;\lambda T&amp;lt;/math&amp;gt; or &amp;lt;code&amp;gt;\T&amp;lt;/code&amp;gt;.&lt;br /&gt;
* Applications: For any terms &#039;&#039;T, U&#039;&#039;, App(&#039;&#039;T, U&#039;&#039;) is a term. It represents applying function &#039;&#039;T&#039;&#039; to argument &#039;&#039;U&#039;&#039;. It is typically written &amp;lt;code&amp;gt;(T U)&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
We can think of this as a tree where each variable is a leaf, a lambda is a node with one child and applications are nodes with 2 children. A term is &#039;&#039;&#039;closed&#039;&#039;&#039; if every variable is bound. In other words, for every Var(&#039;&#039;n&#039;&#039;) leaf node, there exists &#039;&#039;n&#039;&#039; Lam() nodes above it in the tree of the term.&lt;br /&gt;
&lt;br /&gt;
Encoding (&#039;&#039;blc()&#039;&#039;) is defined recursively:&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\begin{array}{l}&lt;br /&gt;
  blc(Var(n)) &amp;amp; = &amp;amp; 1^n 0 \\&lt;br /&gt;
  blc(Lam(T)) &amp;amp; = &amp;amp; 00 \; blc(T) \\&lt;br /&gt;
  blc(App(T, U)) &amp;amp; = &amp;amp; 01 \; blc(T) \; blc(U) \\&lt;br /&gt;
\end{array}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For example, the [https://en.wikipedia.org/wiki/Church_encoding#Church_numerals Church numeral] 2: &amp;lt;math&amp;gt;\lambda f x. (f \; (f \; x))&amp;lt;/math&amp;gt; =  &amp;lt;code&amp;gt;\\(2 (2 1))&amp;lt;/code&amp;gt; = &amp;lt;code&amp;gt;Lam(Lam(App(Var(2), App(Var(2), Var(1))))&amp;lt;/code&amp;gt; is encoded as &amp;lt;code&amp;gt;00 00 01 110 01 110 10&amp;lt;/code&amp;gt; or simply &amp;lt;code&amp;gt;0000011100111010&amp;lt;/code&amp;gt; (spaces are not part of the encoding, only used for demonstration purposes) and thus has size 16 bits.&lt;br /&gt;
&lt;br /&gt;
== Text Encoding conventions ==&lt;br /&gt;
For human readability, a text encoding and set of conventions is used in this article. As described earlier we encode a lambda term as:&lt;br /&gt;
* Var(&#039;&#039;n&#039;&#039;) -&amp;gt; &amp;lt;code&amp;gt;n&amp;lt;/code&amp;gt;&lt;br /&gt;
* Lam(&#039;&#039;T&#039;&#039;) -&amp;gt; &amp;lt;code&amp;gt;(\T)&amp;lt;/code&amp;gt;&lt;br /&gt;
* App(&#039;&#039;T, U&#039;&#039;) -&amp;gt; &amp;lt;code&amp;gt;(T U)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
However, parentheses are also dropped in certain cases by convention:&lt;br /&gt;
* The outermost parentheses are dropped: &amp;lt;code&amp;gt;Lam(1)&amp;lt;/code&amp;gt; -&amp;gt; &amp;lt;code&amp;gt;\1&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;App(1, 2)&amp;lt;/code&amp;gt; -&amp;gt; &amp;lt;code&amp;gt;1 2&amp;lt;/code&amp;gt;.&lt;br /&gt;
* Parentheses are dropped immediately inside a Lam: &amp;lt;code&amp;gt;Lam(Lam(1))&amp;lt;/code&amp;gt; -&amp;gt; &amp;lt;code&amp;gt;\\1&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;Lam(App(1, 1))&amp;lt;/code&amp;gt; -&amp;gt; &amp;lt;code&amp;gt;\1 1&amp;lt;/code&amp;gt;.&lt;br /&gt;
* Parentheses are dropped in nested Apps using left associativity: &amp;lt;code&amp;gt;App(App(1, 2), 3)&amp;lt;/code&amp;gt; -&amp;gt; &amp;lt;code&amp;gt;1 2 3&amp;lt;/code&amp;gt;. (Note: parentheses are still required for &amp;lt;code&amp;gt;App(1, App(2, 3))&amp;lt;/code&amp;gt; -&amp;gt; &amp;lt;code&amp;gt;1 (2 3)&amp;lt;/code&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
This is the convention used in John Tromp&#039;s code and so is used here for consistency.&lt;br /&gt;
&lt;br /&gt;
== Champions ==&lt;br /&gt;
There are no closed lambda terms of size 0, 1, 2, 3 or 5 and so BBλ(n) is not defined for those values. The smallest closed lambda term is &amp;lt;code&amp;gt;\1&amp;lt;/code&amp;gt; which has size 4.&lt;br /&gt;
&lt;br /&gt;
For the rest of n ≤ 20: BBλ(n) = n is trivial and can be achieved via picking any n bit term already in normal form. For example &amp;lt;code&amp;gt;\\...\1&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;\\...\2&amp;lt;/code&amp;gt; with k lambdas has size 2k+2 and 2k+3 respectively (for k ≥ 1 and k ≥ 2 respectively).&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!n&lt;br /&gt;
!BBλ(n)&lt;br /&gt;
!Champion&lt;br /&gt;
!# Beta reductions&lt;br /&gt;
!Normal form&lt;br /&gt;
!Discovered By&lt;br /&gt;
|-&lt;br /&gt;
|21 || = 22 || &amp;lt;code&amp;gt;\(\1 1) (1 (\2))&amp;lt;/code&amp;gt;&lt;br /&gt;
|1|| &amp;lt;code&amp;gt;\(1 (\2)) (1 (\2))&amp;lt;/code&amp;gt; || John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
|22 || = 24 || &amp;lt;code&amp;gt;\(\1 1) (1 (\\1))&amp;lt;/code&amp;gt;&lt;br /&gt;
|1|| &amp;lt;code&amp;gt;\(1 (\\1)) (1 (\\1))&amp;lt;/code&amp;gt; ||Shawn Ligocki&lt;br /&gt;
|-&lt;br /&gt;
|   ||      || &amp;lt;code&amp;gt;\(\1 1 1) (1 1)&amp;lt;/code&amp;gt;&lt;br /&gt;
|1|| &amp;lt;code&amp;gt;\(1 1) (1 1) (1 1)&amp;lt;/code&amp;gt; || John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
|23 || = 26 || &amp;lt;code&amp;gt;\(\1 1) (1 (\\2))&amp;lt;/code&amp;gt;&lt;br /&gt;
|1|| &amp;lt;code&amp;gt;\(1 (\\2)) (1 (\\2))&amp;lt;/code&amp;gt; || John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
|24 || = 30 || &amp;lt;code&amp;gt;\(\1 1 1) (1 (\1))&amp;lt;/code&amp;gt;&lt;br /&gt;
|1|| &amp;lt;code&amp;gt;\(1 (\1)) (1 (\1)) (1 (\1))&amp;lt;/code&amp;gt; || John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
|25 || = 42 || &amp;lt;code&amp;gt;\(\1 1) (\1 (2 1))&amp;lt;/code&amp;gt; &lt;br /&gt;
|3|| &amp;lt;code&amp;gt;\1 (\1 (2 1)) (1 (1 (\1 (2 1))))&amp;lt;/code&amp;gt; || John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
|26 || = 52 || &amp;lt;code&amp;gt;(\1 1) (\\2 (1 2))&amp;lt;/code&amp;gt; &lt;br /&gt;
|3|| &amp;lt;code&amp;gt;\\2 (\\2 (1 2)) (1 (2 (\\2 (1 2))))&amp;lt;/code&amp;gt; || John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
|27 || = 44 || &amp;lt;code&amp;gt;\\(\1 1) (\1 (2 1))&amp;lt;/code&amp;gt; &lt;br /&gt;
|3|| &amp;lt;code&amp;gt;\\1 (\1 (2 1)) (1 (1 (\1 (2 1))))&amp;lt;/code&amp;gt; || John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
|28 || = 58 || &amp;lt;code&amp;gt;\(\1 1) (\1 (2 (\2))))&amp;lt;/code&amp;gt; &lt;br /&gt;
|3|| &amp;lt;code&amp;gt;\1 (\\1 (3 (\2))) (1 (\2 (\\1 (4 (\2)))))&amp;lt;/code&amp;gt;|| John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
| 29 || = 223|| &amp;lt;code&amp;gt;\(\1 1) (\1 (1 (2 1)))&amp;lt;/code&amp;gt;&lt;br /&gt;
|4|| &amp;lt;pre&amp;gt;&lt;br /&gt;
\B (B (1 B))&lt;br /&gt;
  where:&lt;br /&gt;
    B = (A (A (1 A)))&lt;br /&gt;
    A = (1 (\1 (1 (2 1))))&lt;br /&gt;
&amp;lt;/pre&amp;gt;||John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
|30&lt;br /&gt;
|= 160&lt;br /&gt;
|&amp;lt;code&amp;gt;(\1 1 1) (\\2 (1 2))&amp;lt;/code&amp;gt;&lt;br /&gt;
|7&lt;br /&gt;
|&amp;lt;pre&amp;gt;&lt;br /&gt;
\\2 B A (1 (2 B A))&lt;br /&gt;
  where:&lt;br /&gt;
    B = (\\2 A (1 (2 A)))&lt;br /&gt;
    A = (\\2 (1 2))&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;code&amp;gt;(\1 (1 1)) (\\2 (1 2))&amp;lt;/code&amp;gt;&lt;br /&gt;
|5&lt;br /&gt;
|Same as above&lt;br /&gt;
|Shawn Ligocki&lt;br /&gt;
|-&lt;br /&gt;
|31&lt;br /&gt;
|= 267&lt;br /&gt;
|&amp;lt;code&amp;gt;(\1 1) (\\2 (2 (1 2)))&amp;lt;/code&amp;gt;&lt;br /&gt;
|6&lt;br /&gt;
|&amp;lt;pre&amp;gt;&lt;br /&gt;
\\2 A (2 A (C (2 A)))&lt;br /&gt;
  where:&lt;br /&gt;
    C = (2 A (2 A (1 B (2 A))))&lt;br /&gt;
    B = (\3 A (3 A (1 (3 A))))&lt;br /&gt;
    A = (\\2 (2 (1 2)))&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
|32&lt;br /&gt;
|= 298&lt;br /&gt;
|&amp;lt;code&amp;gt;\(\1 1) (\1 (1 (2 (\2))))&amp;lt;/code&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
|33&lt;br /&gt;
|= 1812&lt;br /&gt;
|&amp;lt;code&amp;gt;\(\1 1) (\1 (1 (1 (2 1))))&amp;lt;/code&amp;gt;&lt;br /&gt;
|5&lt;br /&gt;
|&amp;lt;pre&amp;gt;&lt;br /&gt;
\C (C (C (1 C)))&lt;br /&gt;
  where:&lt;br /&gt;
    C = (B (B (B (1 B)))&lt;br /&gt;
    B = (A (A (A (1 A)))&lt;br /&gt;
    A = (1 (\1 (1 (1 (2 1)))))&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
|34 || &amp;lt;math&amp;gt;= \ 5 \left(2^{2^{2^2}}\right) + 6 = 327\,686&amp;lt;/math&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;(\1 1 1 1) (\\2 (2 1))&amp;lt;/code&amp;gt; &lt;br /&gt;
| || &amp;lt;math&amp;gt;C(2^{2^{2^2}})&amp;lt;/math&amp;gt; || John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
|35 || &amp;lt;math&amp;gt;\ge 5 \left(3^{3^3}\right) + 6 &amp;gt; 3.8 \times 10^{13}&amp;lt;/math&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;(\1 1 1) (\\2 (2 (2 1)))&amp;lt;/code&amp;gt; &lt;br /&gt;
| || &amp;lt;math&amp;gt;C(3^{3^3})&amp;lt;/math&amp;gt; || John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
|36 || &amp;lt;math&amp;gt;\ge 5 \left(2^{2^{2^3}}\right) + 6 &amp;gt; 5.7 \times 10^{77}&amp;lt;/math&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;(\1 1) (\1 (1 (\\2 (2 1))))&amp;lt;/code&amp;gt;&lt;br /&gt;
| || &amp;lt;math&amp;gt;C(2^{2^{2^3}})&amp;lt;/math&amp;gt;|| John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
|37 || &lt;br /&gt;
|  &lt;br /&gt;
| || ||&lt;br /&gt;
|-&lt;br /&gt;
|38 || &amp;lt;math&amp;gt;\ge 5 \left(2^{2^{2^{2^2}}}\right) + 6 &amp;gt; 10^{10^4}&amp;lt;/math&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;(\1 1 1 1 1) (\\2 (2 1))&amp;lt;/code&amp;gt; &lt;br /&gt;
| || &amp;lt;math&amp;gt;C(2^{2^{2^{2^2}}})&amp;lt;/math&amp;gt; || John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
|39 || &amp;lt;math&amp;gt;\ge 5 \left(3^{3^{3^3}}\right) + 6 &amp;gt; 10^{10^{12}}&amp;lt;/math&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;(\1 1 1 1) (\\2 (2 (2 1)))&amp;lt;/code&amp;gt; &lt;br /&gt;
| || &amp;lt;math&amp;gt;C(3^{3^{3^3}})&amp;lt;/math&amp;gt; || John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
|40 || &amp;lt;math&amp;gt; &amp;gt; (2\uparrow\uparrow)^{15} 33 &amp;gt; 10 \uparrow\uparrow\uparrow 16&amp;lt;/math&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;(\1 1 1) (\1 (\\2 (2 1)) 1)&amp;lt;/code&amp;gt;&lt;br /&gt;
| || &amp;lt;math&amp;gt;\lambda x.T(k)&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;T(0)=x,\;T(n+1)=T(n)\;C(2)\;T(n)&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;k &amp;gt; (2\uparrow\uparrow)^{15} 33&amp;lt;/math&amp;gt; || mxdys and racheline&lt;br /&gt;
|-&lt;br /&gt;
|41 || &amp;lt;math&amp;gt;\ge 5 \left(3^{3^{85}}\right) + 6 &amp;gt; 10^{10^{40}}&amp;lt;/math&amp;gt;&lt;br /&gt;
|  &amp;lt;code&amp;gt;(\1 (\1 1) 1) (\\2 (2 (2 1)))&amp;lt;/code&amp;gt;&lt;br /&gt;
| || &amp;lt;math&amp;gt;C(3^{3^{85}})&amp;lt;/math&amp;gt;||mxdys&lt;br /&gt;
|-&lt;br /&gt;
|42 ||&amp;lt;math&amp;gt; \ge BB\lambda(40)+2&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;\(\1 1 1) (\1 (\\2 (2 1)) 1)&amp;lt;/code&amp;gt;&lt;br /&gt;
| || ||&lt;br /&gt;
|-&lt;br /&gt;
|43 ||&amp;lt;math&amp;gt; &amp;gt; 2 \uparrow\uparrow\uparrow 2 \uparrow\uparrow\uparrow 2 \uparrow\uparrow 8&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;(\1 1) (\1 (\1 (\\2 (2 1)) 2))&amp;lt;/code&amp;gt;&lt;br /&gt;
| || &amp;lt;math&amp;gt;\lambda x.T(k)&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;T(0)=x,\;T(n+1)=T(n)\;(\lambda y.y\;C(2)\;T(n))&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;k &amp;gt; 2 \uparrow\uparrow\uparrow 2 \uparrow\uparrow\uparrow 2 \uparrow\uparrow 8&amp;lt;/math&amp;gt;||mxdys&lt;br /&gt;
|-&lt;br /&gt;
|44 || &amp;lt;math&amp;gt; &amp;gt; 10 \uparrow\uparrow\uparrow 10 \uparrow\uparrow\uparrow 16&amp;lt;/math&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;(\1 1 1 1) (\1 (\\2 (2 1)) 1)&amp;lt;/code&amp;gt; &lt;br /&gt;
| || &amp;lt;math&amp;gt;\lambda x.T(k)&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;T(0)=x,\;T(n+1)=T(n)\;C(2)\;T(n)&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;k &amp;gt; (2\uparrow\uparrow)^{(2\uparrow\uparrow)^{15} 33 - 1} 33&amp;lt;/math&amp;gt; ||&lt;br /&gt;
|-&lt;br /&gt;
|45 || &amp;lt;math&amp;gt; \ge BB\lambda(43)+2&amp;lt;/math&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;\(\1 1) (\1 (\1 (\\2 (2 1)) 2))&amp;lt;/code&amp;gt;&lt;br /&gt;
| || ||&lt;br /&gt;
|-&lt;br /&gt;
|46 || &amp;lt;math&amp;gt; \ge BB\lambda(44)+2&amp;lt;/math&amp;gt;&lt;br /&gt;
|  &amp;lt;code&amp;gt;\(\1 1 1 1) (\1 (\\2 (2 1)) 1)&amp;lt;/code&amp;gt;&lt;br /&gt;
| || ||&lt;br /&gt;
|-&lt;br /&gt;
|47 || &lt;br /&gt;
|  &lt;br /&gt;
| || ||&lt;br /&gt;
|-&lt;br /&gt;
|48 || &amp;lt;math&amp;gt; &amp;gt; 10 \uparrow\uparrow\uparrow 10 \uparrow\uparrow\uparrow 10 \uparrow\uparrow\uparrow 16&amp;lt;/math&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;(\1 1 1 1 1) (\1 (\\2 (2 1)) 1)&amp;lt;/code&amp;gt; &lt;br /&gt;
| || &amp;lt;math&amp;gt;\lambda x.T(k)&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;T(0)=x,\;T(n+1)=T(n)\;C(2)\;T(n)&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;k &amp;gt; (2\uparrow\uparrow)^{(2\uparrow\uparrow)^{(2\uparrow\uparrow)^{15} 33 - 1} 33 - 1} 33&amp;lt;/math&amp;gt; ||&lt;br /&gt;
|-&lt;br /&gt;
|49&lt;br /&gt;
|&amp;lt;math&amp;gt;&amp;gt; f_{\omega+1}\left(\frac{2 \uparrow\uparrow 6}{2}\right) &amp;gt; \text{Graham&#039;s number}&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;(\1 1) (\1 (1 (\\1 2 (\\2 (2 1)))))&amp;lt;/code&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;math&amp;gt;C(N) \text{ for } N \approx f_{\omega+1}\left(\frac{2 \uparrow\uparrow 6}{2}\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
|[https://github.com/tromp/AIT/blob/master/fast_growing_and_conjectures/melo.lam Gustavo Melo]&lt;br /&gt;
|-&lt;br /&gt;
|...&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|1850&lt;br /&gt;
|&amp;gt; Loader&#039;s number&lt;br /&gt;
|&amp;lt;code&amp;gt;too large to show&amp;lt;/code&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|[https://codegolf.stackexchange.com/questions/176966/golf-a-number-bigger-than-loaders-number/274634#274634 John Tromp]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Where &amp;lt;math&amp;gt;C(n)&amp;lt;/math&amp;gt; represents the Church numeral &#039;&#039;n&#039;&#039; (&amp;lt;math&amp;gt;\lambda f x. f^n(x)&amp;lt;/math&amp;gt;) written as &amp;lt;code&amp;gt;\\2 (2 ... (2 1)...)&amp;lt;/code&amp;gt; with &#039;&#039;n&#039;&#039; 2s in this text representation.&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
&lt;br /&gt;
* https://oeis.org/A333479&lt;br /&gt;
* [https://tromp.github.io/blog/2023/11/24/largest-number The largest number representable in 64 bits]. 24 Nov 2023. John Tromp.&lt;br /&gt;
* [https://tromp.github.io/cl/Binary_lambda_calculus.html Binary Lambda Calculus]. John Tromp.&lt;br /&gt;
* https://github.com/tromp/AIT/tree/master/BB&lt;/div&gt;</summary>
		<author><name>Mxdys</name></author>
	</entry>
	<entry>
		<id>https://wiki.bbchallenge.org/w/index.php?title=Busy_Beaver_for_lambda_calculus&amp;diff=1783</id>
		<title>Busy Beaver for lambda calculus</title>
		<link rel="alternate" type="text/html" href="https://wiki.bbchallenge.org/w/index.php?title=Busy_Beaver_for_lambda_calculus&amp;diff=1783"/>
		<updated>2025-04-11T17:55:02Z</updated>

		<summary type="html">&lt;p&gt;Mxdys: update BBλ(45) champion (trivial)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;Busy Beaver for lambda calculus&#039;&#039;&#039; (&#039;&#039;&#039;BBλ&#039;&#039;&#039;) is a variation of the [[Busy Beaver]] problem for [https://en.wikipedia.org/wiki/Lambda_calculus lambda calculus] invented by John Tromp. BBλ(n) = the maximum normal form size of any closed lambda term of size n. If you are not familiar with lambda calculus and beta-reduction, I recommend starting with that article.&lt;br /&gt;
&lt;br /&gt;
Size is measured in bits using [https://tromp.github.io/cl/Binary_lambda_calculus.html Binary Lambda Calculus] which is a binary prefix-free encoding for all closed lambda calculus terms.&lt;br /&gt;
&lt;br /&gt;
== Analogy to Turing machines ==&lt;br /&gt;
We evaluate terms by applying &#039;&#039;beta-reductions&#039;&#039; until they reach a &#039;&#039;normal form&#039;&#039;. As an analogy to [[Turing machines]]:&lt;br /&gt;
* &#039;&#039;Lambda terms&#039;&#039; are like TM configurations (tape + state + position).&lt;br /&gt;
* Applying &#039;&#039;beta-reduction&#039;&#039; to a term is like taking a TM step.&lt;br /&gt;
* A term is in &#039;&#039;normal form&#039;&#039; if no beta-reductions can be applied. This is like saying the term has halted.&lt;br /&gt;
* A term may or may not be reducible to a normal form. If it is, this is like saying the term halts.&lt;br /&gt;
* Determining whether a term is reducible to a normal form is an undecidable problem equivalent to the halting problem.&lt;br /&gt;
&lt;br /&gt;
Note: That unlike for Turing machines, evaluating lambda terms is non-deterministic. Specifically, there may be multiple beta-reductions possible in a given term. However, if a term can be reduced to a normal form, that normal form is unique. It is not possible to reduce the original term to any different normal form. A term is &#039;&#039;&#039;strongly normalizing&#039;&#039;&#039; if any choice of beta-reductions will lead to this normal form and &#039;&#039;&#039;weakly normalizing&#039;&#039;&#039; if there exist divergent reduction paths which never reach the normal form.&lt;br /&gt;
&lt;br /&gt;
== Binary Lambda Encoding ==&lt;br /&gt;
A lambda term using [https://en.wikipedia.org/wiki/De_Bruijn_indices De Bruijn indexes] is defined inductively as:&lt;br /&gt;
* Variables: For any &amp;lt;math&amp;gt;n \in \mathbb{Z}^+&amp;lt;/math&amp;gt;, Var(&#039;&#039;n&#039;&#039;) is a term. It represents a variable bound by the lambda expression &#039;&#039;n&#039;&#039; above this one (the De Bruijn index). It is typically written simply as &amp;lt;code&amp;gt;n&amp;lt;/code&amp;gt;.&lt;br /&gt;
* Lambdas: For any term &#039;&#039;T&#039;&#039;, Lam(&#039;&#039;T&#039;&#039;) is a term. It represents a unary function with function body &#039;&#039;T&#039;&#039;. It is typically written &amp;lt;math&amp;gt;\lambda T&amp;lt;/math&amp;gt; or &amp;lt;code&amp;gt;\T&amp;lt;/code&amp;gt;.&lt;br /&gt;
* Applications: For any terms &#039;&#039;T, U&#039;&#039;, App(&#039;&#039;T, U&#039;&#039;) is a term. It represents applying function &#039;&#039;T&#039;&#039; to argument &#039;&#039;U&#039;&#039;. It is typically written &amp;lt;code&amp;gt;(T U)&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
We can think of this as a tree where each variable is a leaf, a lambda is a node with one child and applications are nodes with 2 children. A term is &#039;&#039;&#039;closed&#039;&#039;&#039; if every variable is bound. In other words, for every Var(&#039;&#039;n&#039;&#039;) leaf node, there exists &#039;&#039;n&#039;&#039; Lam() nodes above it in the tree of the term.&lt;br /&gt;
&lt;br /&gt;
Encoding (&#039;&#039;blc()&#039;&#039;) is defined recursively:&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\begin{array}{l}&lt;br /&gt;
  blc(Var(n)) &amp;amp; = &amp;amp; 1^n 0 \\&lt;br /&gt;
  blc(Lam(T)) &amp;amp; = &amp;amp; 00 \; blc(T) \\&lt;br /&gt;
  blc(App(T, U)) &amp;amp; = &amp;amp; 01 \; blc(T) \; blc(U) \\&lt;br /&gt;
\end{array}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For example, the [https://en.wikipedia.org/wiki/Church_encoding#Church_numerals Church numeral] 2: &amp;lt;math&amp;gt;\lambda f x. (f \; (f \; x))&amp;lt;/math&amp;gt; =  &amp;lt;code&amp;gt;\\(2 (2 1))&amp;lt;/code&amp;gt; = &amp;lt;code&amp;gt;Lam(Lam(App(Var(2), App(Var(2), Var(1))))&amp;lt;/code&amp;gt; is encoded as &amp;lt;code&amp;gt;00 00 01 110 01 110 10&amp;lt;/code&amp;gt; or simply &amp;lt;code&amp;gt;0000011100111010&amp;lt;/code&amp;gt; (spaces are not part of the encoding, only used for demonstration purposes) and thus has size 16 bits.&lt;br /&gt;
&lt;br /&gt;
== Text Encoding conventions ==&lt;br /&gt;
For human readability, a text encoding and set of conventions is used in this article. As described earlier we encode a lambda term as:&lt;br /&gt;
* Var(&#039;&#039;n&#039;&#039;) -&amp;gt; &amp;lt;code&amp;gt;n&amp;lt;/code&amp;gt;&lt;br /&gt;
* Lam(&#039;&#039;T&#039;&#039;) -&amp;gt; &amp;lt;code&amp;gt;(\T)&amp;lt;/code&amp;gt;&lt;br /&gt;
* App(&#039;&#039;T, U&#039;&#039;) -&amp;gt; &amp;lt;code&amp;gt;(T U)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
However, parentheses are also dropped in certain cases by convention:&lt;br /&gt;
* The outermost parentheses are dropped: &amp;lt;code&amp;gt;Lam(1)&amp;lt;/code&amp;gt; -&amp;gt; &amp;lt;code&amp;gt;\1&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;App(1, 2)&amp;lt;/code&amp;gt; -&amp;gt; &amp;lt;code&amp;gt;1 2&amp;lt;/code&amp;gt;.&lt;br /&gt;
* Parentheses are dropped immediately inside a Lam: &amp;lt;code&amp;gt;Lam(Lam(1))&amp;lt;/code&amp;gt; -&amp;gt; &amp;lt;code&amp;gt;\\1&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;Lam(App(1, 1))&amp;lt;/code&amp;gt; -&amp;gt; &amp;lt;code&amp;gt;\1 1&amp;lt;/code&amp;gt;.&lt;br /&gt;
* Parentheses are dropped in nested Apps using left associativity: &amp;lt;code&amp;gt;App(App(1, 2), 3)&amp;lt;/code&amp;gt; -&amp;gt; &amp;lt;code&amp;gt;1 2 3&amp;lt;/code&amp;gt;. (Note: parentheses are still required for &amp;lt;code&amp;gt;App(1, App(2, 3))&amp;lt;/code&amp;gt; -&amp;gt; &amp;lt;code&amp;gt;1 (2 3)&amp;lt;/code&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
This is the convention used in John Tromp&#039;s code and so is used here for consistency.&lt;br /&gt;
&lt;br /&gt;
== Champions ==&lt;br /&gt;
There are no closed lambda terms of size 0, 1, 2, 3 or 5 and so BBλ(n) is not defined for those values. The smallest closed lambda term is &amp;lt;code&amp;gt;\1&amp;lt;/code&amp;gt; which has size 4.&lt;br /&gt;
&lt;br /&gt;
For the rest of n ≤ 20: BBλ(n) = n is trivial and can be achieved via picking any n bit term already in normal form. For example &amp;lt;code&amp;gt;\\...\1&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;\\...\2&amp;lt;/code&amp;gt; with k lambdas has size 2k+2 and 2k+3 respectively (for k ≥ 1 and k ≥ 2 respectively).&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!n&lt;br /&gt;
!BBλ(n)&lt;br /&gt;
!Champion&lt;br /&gt;
!# Beta reductions&lt;br /&gt;
!Normal form&lt;br /&gt;
!Discovered By&lt;br /&gt;
|-&lt;br /&gt;
|21 || = 22 || &amp;lt;code&amp;gt;\(\1 1) (1 (\2))&amp;lt;/code&amp;gt;&lt;br /&gt;
|1|| &amp;lt;code&amp;gt;\(1 (\2)) (1 (\2))&amp;lt;/code&amp;gt; || John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
|22 || = 24 || &amp;lt;code&amp;gt;\(\1 1) (1 (\\1))&amp;lt;/code&amp;gt;&lt;br /&gt;
|1|| &amp;lt;code&amp;gt;\(1 (\\1)) (1 (\\1))&amp;lt;/code&amp;gt; ||Shawn Ligocki&lt;br /&gt;
|-&lt;br /&gt;
|   ||      || &amp;lt;code&amp;gt;\(\1 1 1) (1 1)&amp;lt;/code&amp;gt;&lt;br /&gt;
|1|| &amp;lt;code&amp;gt;\(1 1) (1 1) (1 1)&amp;lt;/code&amp;gt; || John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
|23 || = 26 || &amp;lt;code&amp;gt;\(\1 1) (1 (\\2))&amp;lt;/code&amp;gt;&lt;br /&gt;
|1|| &amp;lt;code&amp;gt;\(1 (\\2)) (1 (\\2))&amp;lt;/code&amp;gt; || John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
|24 || = 30 || &amp;lt;code&amp;gt;\(\1 1 1) (1 (\1))&amp;lt;/code&amp;gt;&lt;br /&gt;
|1|| &amp;lt;code&amp;gt;\(1 (\1)) (1 (\1)) (1 (\1))&amp;lt;/code&amp;gt; || John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
|25 || = 42 || &amp;lt;code&amp;gt;\(\1 1) (\1 (2 1))&amp;lt;/code&amp;gt; &lt;br /&gt;
|3|| &amp;lt;code&amp;gt;\1 (\1 (2 1)) (1 (1 (\1 (2 1))))&amp;lt;/code&amp;gt; || John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
|26 || = 52 || &amp;lt;code&amp;gt;(\1 1) (\\2 (1 2))&amp;lt;/code&amp;gt; &lt;br /&gt;
|3|| &amp;lt;code&amp;gt;\\2 (\\2 (1 2)) (1 (2 (\\2 (1 2))))&amp;lt;/code&amp;gt; || John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
|27 || = 44 || &amp;lt;code&amp;gt;\\(\1 1) (\1 (2 1))&amp;lt;/code&amp;gt; &lt;br /&gt;
|3|| &amp;lt;code&amp;gt;\\1 (\1 (2 1)) (1 (1 (\1 (2 1))))&amp;lt;/code&amp;gt; || John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
|28 || = 58 || &amp;lt;code&amp;gt;\(\1 1) (\1 (2 (\2))))&amp;lt;/code&amp;gt; &lt;br /&gt;
|3|| &amp;lt;code&amp;gt;\1 (\\1 (3 (\2))) (1 (\2 (\\1 (4 (\2)))))&amp;lt;/code&amp;gt;|| John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
| 29 || = 223|| &amp;lt;code&amp;gt;\(\1 1) (\1 (1 (2 1)))&amp;lt;/code&amp;gt;&lt;br /&gt;
|4|| &amp;lt;pre&amp;gt;&lt;br /&gt;
\B (B (1 B))&lt;br /&gt;
  where:&lt;br /&gt;
    B = (A (A (1 A)))&lt;br /&gt;
    A = (1 (\1 (1 (2 1))))&lt;br /&gt;
&amp;lt;/pre&amp;gt;||John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
|30&lt;br /&gt;
|= 160&lt;br /&gt;
|&amp;lt;code&amp;gt;(\1 1 1) (\\2 (1 2))&amp;lt;/code&amp;gt;&lt;br /&gt;
|7&lt;br /&gt;
|&amp;lt;pre&amp;gt;&lt;br /&gt;
\\2 B A (1 (2 B A))&lt;br /&gt;
  where:&lt;br /&gt;
    B = (\\2 A (1 (2 A)))&lt;br /&gt;
    A = (\\2 (1 2))&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;code&amp;gt;(\1 (1 1)) (\\2 (1 2))&amp;lt;/code&amp;gt;&lt;br /&gt;
|5&lt;br /&gt;
|Same as above&lt;br /&gt;
|Shawn Ligocki&lt;br /&gt;
|-&lt;br /&gt;
|31&lt;br /&gt;
|= 267&lt;br /&gt;
|&amp;lt;code&amp;gt;(\1 1) (\\2 (2 (1 2)))&amp;lt;/code&amp;gt;&lt;br /&gt;
|6&lt;br /&gt;
|&amp;lt;pre&amp;gt;&lt;br /&gt;
\\2 A (2 A (C (2 A)))&lt;br /&gt;
  where:&lt;br /&gt;
    C = (2 A (2 A (1 B (2 A))))&lt;br /&gt;
    B = (\3 A (3 A (1 (3 A))))&lt;br /&gt;
    A = (\\2 (2 (1 2)))&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
|32&lt;br /&gt;
|= 298&lt;br /&gt;
|&amp;lt;code&amp;gt;\(\1 1) (\1 (1 (2 (\2))))&amp;lt;/code&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
|33&lt;br /&gt;
|= 1812&lt;br /&gt;
|&amp;lt;code&amp;gt;\(\1 1) (\1 (1 (1 (2 1))))&amp;lt;/code&amp;gt;&lt;br /&gt;
|5&lt;br /&gt;
|&amp;lt;pre&amp;gt;&lt;br /&gt;
\C (C (C (1 C)))&lt;br /&gt;
  where:&lt;br /&gt;
    C = (B (B (B (1 B)))&lt;br /&gt;
    B = (A (A (A (1 A)))&lt;br /&gt;
    A = (1 (\1 (1 (1 (2 1)))))&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
|34 || &amp;lt;math&amp;gt;= \ 5 \left(2^{2^{2^2}}\right) + 6 = 327\,686&amp;lt;/math&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;(\1 1 1 1) (\\2 (2 1))&amp;lt;/code&amp;gt; &lt;br /&gt;
| || &amp;lt;math&amp;gt;C(2^{2^{2^2}})&amp;lt;/math&amp;gt; || John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
|35 || &amp;lt;math&amp;gt;\ge 5 \left(3^{3^3}\right) + 6 &amp;gt; 3.8 \times 10^{13}&amp;lt;/math&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;(\1 1 1) (\\2 (2 (2 1)))&amp;lt;/code&amp;gt; &lt;br /&gt;
| || &amp;lt;math&amp;gt;C(3^{3^3})&amp;lt;/math&amp;gt; || John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
|36 || &amp;lt;math&amp;gt;\ge 5 \left(2^{2^{2^3}}\right) + 6 &amp;gt; 5.7 \times 10^{77}&amp;lt;/math&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;(\1 1) (\1 (1 (\\2 (2 1))))&amp;lt;/code&amp;gt;&lt;br /&gt;
| || &amp;lt;math&amp;gt;C(2^{2^{2^3}})&amp;lt;/math&amp;gt;|| John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
|37 || &lt;br /&gt;
|  &lt;br /&gt;
| || ||&lt;br /&gt;
|-&lt;br /&gt;
|38 || &amp;lt;math&amp;gt;\ge 5 \left(2^{2^{2^{2^2}}}\right) + 6 &amp;gt; 10^{10^4}&amp;lt;/math&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;(\1 1 1 1 1) (\\2 (2 1))&amp;lt;/code&amp;gt; &lt;br /&gt;
| || &amp;lt;math&amp;gt;C(2^{2^{2^{2^2}}})&amp;lt;/math&amp;gt; || John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
|39 || &amp;lt;math&amp;gt;\ge 5 \left(3^{3^{3^3}}\right) + 6 &amp;gt; 10^{10^{12}}&amp;lt;/math&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;(\1 1 1 1) (\\2 (2 (2 1)))&amp;lt;/code&amp;gt; &lt;br /&gt;
| || &amp;lt;math&amp;gt;C(3^{3^{3^3}})&amp;lt;/math&amp;gt; || John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
|40 || &amp;lt;math&amp;gt; &amp;gt; (2\uparrow\uparrow)^{15} 33 &amp;gt; 10 \uparrow\uparrow\uparrow 16&amp;lt;/math&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;(\1 1 1) (\1 (\\2 (2 1)) 1)&amp;lt;/code&amp;gt;&lt;br /&gt;
| || &amp;lt;math&amp;gt;\lambda x.T(k)&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;T(0)=x,\;T(n+1)=T(n)\;C(2)\;T(n)&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;k &amp;gt; (2\uparrow\uparrow)^{15} 33&amp;lt;/math&amp;gt; || mxdys and racheline&lt;br /&gt;
|-&lt;br /&gt;
|41 || &amp;lt;math&amp;gt;\ge 5 \left(3^{3^{85}}\right) + 6 &amp;gt; 10^{10^{40}}&amp;lt;/math&amp;gt;&lt;br /&gt;
|  &amp;lt;code&amp;gt;(\1 (\1 1) 1) (\\2 (2 (2 1)))&amp;lt;/code&amp;gt;&lt;br /&gt;
| || &amp;lt;math&amp;gt;C(3^{3^{85}})&amp;lt;/math&amp;gt;||mxdys&lt;br /&gt;
|-&lt;br /&gt;
|42 ||&amp;lt;math&amp;gt; \ge BB\lambda(40)+2&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;\(\1 1 1) (\1 (\\2 (2 1)) 1)&amp;lt;/code&amp;gt;&lt;br /&gt;
| || ||&lt;br /&gt;
|-&lt;br /&gt;
|43 ||&amp;lt;math&amp;gt; &amp;gt; 2 \uparrow\uparrow\uparrow 2 \uparrow\uparrow\uparrow 2 \uparrow\uparrow 8&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;(\1 1) (\1 (\1 (\\2 (2 1)) 2))&amp;lt;/code&amp;gt;&lt;br /&gt;
| || &amp;lt;math&amp;gt;\lambda x.T(k)&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;T(0)=x,\;T(n+1)=T(n)\;(\lambda y.y\;C(2)\;T(n))&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;k &amp;gt; 2 \uparrow\uparrow\uparrow 2 \uparrow\uparrow\uparrow 2 \uparrow\uparrow 8&amp;lt;/math&amp;gt;||mxdys&lt;br /&gt;
|-&lt;br /&gt;
|44 || &amp;lt;math&amp;gt; &amp;gt; 10 \uparrow\uparrow\uparrow 10 \uparrow\uparrow\uparrow 16&amp;lt;/math&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;(\1 1 1 1) (\1 (\\2 (2 1)) 1)&amp;lt;/code&amp;gt; &lt;br /&gt;
| || &amp;lt;math&amp;gt;\lambda x.T(k)&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;T(0)=x,\;T(n+1)=T(n)\;C(2)\;T(n)&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;k &amp;gt; (2\uparrow\uparrow)^{(2\uparrow\uparrow)^{15} 33 - 1} 33&amp;lt;/math&amp;gt; ||&lt;br /&gt;
|-&lt;br /&gt;
|45 || &amp;lt;math&amp;gt; \ge BB\lambda(43)+2&amp;lt;/math&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;\(\1 1) (\1 (\1 (\\2 (2 1)) 2))&amp;lt;/code&amp;gt;&lt;br /&gt;
| || ||&lt;br /&gt;
|-&lt;br /&gt;
|46 || &lt;br /&gt;
|  &lt;br /&gt;
| || ||&lt;br /&gt;
|-&lt;br /&gt;
|47 || &lt;br /&gt;
|  &lt;br /&gt;
| || ||&lt;br /&gt;
|-&lt;br /&gt;
|48 || &amp;lt;math&amp;gt; &amp;gt; 10 \uparrow\uparrow\uparrow 10 \uparrow\uparrow\uparrow 10 \uparrow\uparrow\uparrow 16&amp;lt;/math&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;(\1 1 1 1 1) (\1 (\\2 (2 1)) 1)&amp;lt;/code&amp;gt; &lt;br /&gt;
| || &amp;lt;math&amp;gt;\lambda x.T(k)&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;T(0)=x,\;T(n+1)=T(n)\;C(2)\;T(n)&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;k &amp;gt; (2\uparrow\uparrow)^{(2\uparrow\uparrow)^{(2\uparrow\uparrow)^{15} 33 - 1} 33 - 1} 33&amp;lt;/math&amp;gt; ||&lt;br /&gt;
|-&lt;br /&gt;
|49&lt;br /&gt;
|&amp;lt;math&amp;gt;&amp;gt; f_{\omega+1}\left(\frac{2 \uparrow\uparrow 6}{2}\right) &amp;gt; \text{Graham&#039;s number}&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;(\1 1) (\1 (1 (\\1 2 (\\2 (2 1)))))&amp;lt;/code&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;math&amp;gt;C(N) \text{ for } N \approx f_{\omega+1}\left(\frac{2 \uparrow\uparrow 6}{2}\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
|[https://github.com/tromp/AIT/blob/master/fast_growing_and_conjectures/melo.lam Gustavo Melo]&lt;br /&gt;
|-&lt;br /&gt;
|...&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|1850&lt;br /&gt;
|&amp;gt; Loader&#039;s number&lt;br /&gt;
|&amp;lt;code&amp;gt;too large to show&amp;lt;/code&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|[https://codegolf.stackexchange.com/questions/176966/golf-a-number-bigger-than-loaders-number/274634#274634 John Tromp]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Where &amp;lt;math&amp;gt;C(n)&amp;lt;/math&amp;gt; represents the Church numeral &#039;&#039;n&#039;&#039; (&amp;lt;math&amp;gt;\lambda f x. f^n(x)&amp;lt;/math&amp;gt;) written as &amp;lt;code&amp;gt;\\2 (2 ... (2 1)...)&amp;lt;/code&amp;gt; with &#039;&#039;n&#039;&#039; 2s in this text representation.&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
&lt;br /&gt;
* https://oeis.org/A333479&lt;br /&gt;
* [https://tromp.github.io/blog/2023/11/24/largest-number The largest number representable in 64 bits]. 24 Nov 2023. John Tromp.&lt;br /&gt;
* [https://tromp.github.io/cl/Binary_lambda_calculus.html Binary Lambda Calculus]. John Tromp.&lt;br /&gt;
* https://github.com/tromp/AIT/tree/master/BB&lt;/div&gt;</summary>
		<author><name>Mxdys</name></author>
	</entry>
	<entry>
		<id>https://wiki.bbchallenge.org/w/index.php?title=Busy_Beaver_for_lambda_calculus&amp;diff=1782</id>
		<title>Busy Beaver for lambda calculus</title>
		<link rel="alternate" type="text/html" href="https://wiki.bbchallenge.org/w/index.php?title=Busy_Beaver_for_lambda_calculus&amp;diff=1782"/>
		<updated>2025-04-11T13:46:54Z</updated>

		<summary type="html">&lt;p&gt;Mxdys: update BBλ(43) champion&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;Busy Beaver for lambda calculus&#039;&#039;&#039; (&#039;&#039;&#039;BBλ&#039;&#039;&#039;) is a variation of the [[Busy Beaver]] problem for [https://en.wikipedia.org/wiki/Lambda_calculus lambda calculus] invented by John Tromp. BBλ(n) = the maximum normal form size of any closed lambda term of size n. If you are not familiar with lambda calculus and beta-reduction, I recommend starting with that article.&lt;br /&gt;
&lt;br /&gt;
Size is measured in bits using [https://tromp.github.io/cl/Binary_lambda_calculus.html Binary Lambda Calculus] which is a binary prefix-free encoding for all closed lambda calculus terms.&lt;br /&gt;
&lt;br /&gt;
== Analogy to Turing machines ==&lt;br /&gt;
We evaluate terms by applying &#039;&#039;beta-reductions&#039;&#039; until they reach a &#039;&#039;normal form&#039;&#039;. As an analogy to [[Turing machines]]:&lt;br /&gt;
* &#039;&#039;Lambda terms&#039;&#039; are like TM configurations (tape + state + position).&lt;br /&gt;
* Applying &#039;&#039;beta-reduction&#039;&#039; to a term is like taking a TM step.&lt;br /&gt;
* A term is in &#039;&#039;normal form&#039;&#039; if no beta-reductions can be applied. This is like saying the term has halted.&lt;br /&gt;
* A term may or may not be reducible to a normal form. If it is, this is like saying the term halts.&lt;br /&gt;
* Determining whether a term is reducible to a normal form is an undecidable problem equivalent to the halting problem.&lt;br /&gt;
&lt;br /&gt;
Note: That unlike for Turing machines, evaluating lambda terms is non-deterministic. Specifically, there may be multiple beta-reductions possible in a given term. However, if a term can be reduced to a normal form, that normal form is unique. It is not possible to reduce the original term to any different normal form. A term is &#039;&#039;&#039;strongly normalizing&#039;&#039;&#039; if any choice of beta-reductions will lead to this normal form and &#039;&#039;&#039;weakly normalizing&#039;&#039;&#039; if there exist divergent reduction paths which never reach the normal form.&lt;br /&gt;
&lt;br /&gt;
== Binary Lambda Encoding ==&lt;br /&gt;
A lambda term using [https://en.wikipedia.org/wiki/De_Bruijn_indices De Bruijn indexes] is defined inductively as:&lt;br /&gt;
* Variables: For any &amp;lt;math&amp;gt;n \in \mathbb{Z}^+&amp;lt;/math&amp;gt;, Var(&#039;&#039;n&#039;&#039;) is a term. It represents a variable bound by the lambda expression &#039;&#039;n&#039;&#039; above this one (the De Bruijn index). It is typically written simply as &amp;lt;code&amp;gt;n&amp;lt;/code&amp;gt;.&lt;br /&gt;
* Lambdas: For any term &#039;&#039;T&#039;&#039;, Lam(&#039;&#039;T&#039;&#039;) is a term. It represents a unary function with function body &#039;&#039;T&#039;&#039;. It is typically written &amp;lt;math&amp;gt;\lambda T&amp;lt;/math&amp;gt; or &amp;lt;code&amp;gt;\T&amp;lt;/code&amp;gt;.&lt;br /&gt;
* Applications: For any terms &#039;&#039;T, U&#039;&#039;, App(&#039;&#039;T, U&#039;&#039;) is a term. It represents applying function &#039;&#039;T&#039;&#039; to argument &#039;&#039;U&#039;&#039;. It is typically written &amp;lt;code&amp;gt;(T U)&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
We can think of this as a tree where each variable is a leaf, a lambda is a node with one child and applications are nodes with 2 children. A term is &#039;&#039;&#039;closed&#039;&#039;&#039; if every variable is bound. In other words, for every Var(&#039;&#039;n&#039;&#039;) leaf node, there exists &#039;&#039;n&#039;&#039; Lam() nodes above it in the tree of the term.&lt;br /&gt;
&lt;br /&gt;
Encoding (&#039;&#039;blc()&#039;&#039;) is defined recursively:&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\begin{array}{l}&lt;br /&gt;
  blc(Var(n)) &amp;amp; = &amp;amp; 1^n 0 \\&lt;br /&gt;
  blc(Lam(T)) &amp;amp; = &amp;amp; 00 \; blc(T) \\&lt;br /&gt;
  blc(App(T, U)) &amp;amp; = &amp;amp; 01 \; blc(T) \; blc(U) \\&lt;br /&gt;
\end{array}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For example, the [https://en.wikipedia.org/wiki/Church_encoding#Church_numerals Church numeral] 2: &amp;lt;math&amp;gt;\lambda f x. (f \; (f \; x))&amp;lt;/math&amp;gt; =  &amp;lt;code&amp;gt;\\(2 (2 1))&amp;lt;/code&amp;gt; = &amp;lt;code&amp;gt;Lam(Lam(App(Var(2), App(Var(2), Var(1))))&amp;lt;/code&amp;gt; is encoded as &amp;lt;code&amp;gt;00 00 01 110 01 110 10&amp;lt;/code&amp;gt; or simply &amp;lt;code&amp;gt;0000011100111010&amp;lt;/code&amp;gt; (spaces are not part of the encoding, only used for demonstration purposes) and thus has size 16 bits.&lt;br /&gt;
&lt;br /&gt;
== Text Encoding conventions ==&lt;br /&gt;
For human readability, a text encoding and set of conventions is used in this article. As described earlier we encode a lambda term as:&lt;br /&gt;
* Var(&#039;&#039;n&#039;&#039;) -&amp;gt; &amp;lt;code&amp;gt;n&amp;lt;/code&amp;gt;&lt;br /&gt;
* Lam(&#039;&#039;T&#039;&#039;) -&amp;gt; &amp;lt;code&amp;gt;(\T)&amp;lt;/code&amp;gt;&lt;br /&gt;
* App(&#039;&#039;T, U&#039;&#039;) -&amp;gt; &amp;lt;code&amp;gt;(T U)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
However, parentheses are also dropped in certain cases by convention:&lt;br /&gt;
* The outermost parentheses are dropped: &amp;lt;code&amp;gt;Lam(1)&amp;lt;/code&amp;gt; -&amp;gt; &amp;lt;code&amp;gt;\1&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;App(1, 2)&amp;lt;/code&amp;gt; -&amp;gt; &amp;lt;code&amp;gt;1 2&amp;lt;/code&amp;gt;.&lt;br /&gt;
* Parentheses are dropped immediately inside a Lam: &amp;lt;code&amp;gt;Lam(Lam(1))&amp;lt;/code&amp;gt; -&amp;gt; &amp;lt;code&amp;gt;\\1&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;Lam(App(1, 1))&amp;lt;/code&amp;gt; -&amp;gt; &amp;lt;code&amp;gt;\1 1&amp;lt;/code&amp;gt;.&lt;br /&gt;
* Parentheses are dropped in nested Apps using left associativity: &amp;lt;code&amp;gt;App(App(1, 2), 3)&amp;lt;/code&amp;gt; -&amp;gt; &amp;lt;code&amp;gt;1 2 3&amp;lt;/code&amp;gt;. (Note: parentheses are still required for &amp;lt;code&amp;gt;App(1, App(2, 3))&amp;lt;/code&amp;gt; -&amp;gt; &amp;lt;code&amp;gt;1 (2 3)&amp;lt;/code&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
This is the convention used in John Tromp&#039;s code and so is used here for consistency.&lt;br /&gt;
&lt;br /&gt;
== Champions ==&lt;br /&gt;
There are no closed lambda terms of size 0, 1, 2, 3 or 5 and so BBλ(n) is not defined for those values. The smallest closed lambda term is &amp;lt;code&amp;gt;\1&amp;lt;/code&amp;gt; which has size 4.&lt;br /&gt;
&lt;br /&gt;
For the rest of n ≤ 20: BBλ(n) = n is trivial and can be achieved via picking any n bit term already in normal form. For example &amp;lt;code&amp;gt;\\...\1&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;\\...\2&amp;lt;/code&amp;gt; with k lambdas has size 2k+2 and 2k+3 respectively (for k ≥ 1 and k ≥ 2 respectively).&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!n&lt;br /&gt;
!BBλ(n)&lt;br /&gt;
!Champion&lt;br /&gt;
!# Beta reductions&lt;br /&gt;
!Normal form&lt;br /&gt;
!Discovered By&lt;br /&gt;
|-&lt;br /&gt;
|21 || = 22 || &amp;lt;code&amp;gt;\(\1 1) (1 (\2))&amp;lt;/code&amp;gt;&lt;br /&gt;
|1|| &amp;lt;code&amp;gt;\(1 (\2)) (1 (\2))&amp;lt;/code&amp;gt; || John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
|22 || = 24 || &amp;lt;code&amp;gt;\(\1 1) (1 (\\1))&amp;lt;/code&amp;gt;&lt;br /&gt;
|1|| &amp;lt;code&amp;gt;\(1 (\\1)) (1 (\\1))&amp;lt;/code&amp;gt; ||Shawn Ligocki&lt;br /&gt;
|-&lt;br /&gt;
|   ||      || &amp;lt;code&amp;gt;\(\1 1 1) (1 1)&amp;lt;/code&amp;gt;&lt;br /&gt;
|1|| &amp;lt;code&amp;gt;\(1 1) (1 1) (1 1)&amp;lt;/code&amp;gt; || John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
|23 || = 26 || &amp;lt;code&amp;gt;\(\1 1) (1 (\\2))&amp;lt;/code&amp;gt;&lt;br /&gt;
|1|| &amp;lt;code&amp;gt;\(1 (\\2)) (1 (\\2))&amp;lt;/code&amp;gt; || John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
|24 || = 30 || &amp;lt;code&amp;gt;\(\1 1 1) (1 (\1))&amp;lt;/code&amp;gt;&lt;br /&gt;
|1|| &amp;lt;code&amp;gt;\(1 (\1)) (1 (\1)) (1 (\1))&amp;lt;/code&amp;gt; || John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
|25 || = 42 || &amp;lt;code&amp;gt;\(\1 1) (\1 (2 1))&amp;lt;/code&amp;gt; &lt;br /&gt;
|3|| &amp;lt;code&amp;gt;\1 (\1 (2 1)) (1 (1 (\1 (2 1))))&amp;lt;/code&amp;gt; || John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
|26 || = 52 || &amp;lt;code&amp;gt;(\1 1) (\\2 (1 2))&amp;lt;/code&amp;gt; &lt;br /&gt;
|3|| &amp;lt;code&amp;gt;\\2 (\\2 (1 2)) (1 (2 (\\2 (1 2))))&amp;lt;/code&amp;gt; || John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
|27 || = 44 || &amp;lt;code&amp;gt;\\(\1 1) (\1 (2 1))&amp;lt;/code&amp;gt; &lt;br /&gt;
|3|| &amp;lt;code&amp;gt;\\1 (\1 (2 1)) (1 (1 (\1 (2 1))))&amp;lt;/code&amp;gt; || John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
|28 || = 58 || &amp;lt;code&amp;gt;\(\1 1) (\1 (2 (\2))))&amp;lt;/code&amp;gt; &lt;br /&gt;
|3|| &amp;lt;code&amp;gt;\1 (\\1 (3 (\2))) (1 (\2 (\\1 (4 (\2)))))&amp;lt;/code&amp;gt;|| John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
| 29 || = 223|| &amp;lt;code&amp;gt;\(\1 1) (\1 (1 (2 1)))&amp;lt;/code&amp;gt;&lt;br /&gt;
|4|| &amp;lt;pre&amp;gt;&lt;br /&gt;
\B (B (1 B))&lt;br /&gt;
  where:&lt;br /&gt;
    B = (A (A (1 A)))&lt;br /&gt;
    A = (1 (\1 (1 (2 1))))&lt;br /&gt;
&amp;lt;/pre&amp;gt;||John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
|30&lt;br /&gt;
|= 160&lt;br /&gt;
|&amp;lt;code&amp;gt;(\1 1 1) (\\2 (1 2))&amp;lt;/code&amp;gt;&lt;br /&gt;
|7&lt;br /&gt;
|&amp;lt;pre&amp;gt;&lt;br /&gt;
\\2 B A (1 (2 B A))&lt;br /&gt;
  where:&lt;br /&gt;
    B = (\\2 A (1 (2 A)))&lt;br /&gt;
    A = (\\2 (1 2))&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;code&amp;gt;(\1 (1 1)) (\\2 (1 2))&amp;lt;/code&amp;gt;&lt;br /&gt;
|5&lt;br /&gt;
|Same as above&lt;br /&gt;
|Shawn Ligocki&lt;br /&gt;
|-&lt;br /&gt;
|31&lt;br /&gt;
|= 267&lt;br /&gt;
|&amp;lt;code&amp;gt;(\1 1) (\\2 (2 (1 2)))&amp;lt;/code&amp;gt;&lt;br /&gt;
|6&lt;br /&gt;
|&amp;lt;pre&amp;gt;&lt;br /&gt;
\\2 A (2 A (C (2 A)))&lt;br /&gt;
  where:&lt;br /&gt;
    C = (2 A (2 A (1 B (2 A))))&lt;br /&gt;
    B = (\3 A (3 A (1 (3 A))))&lt;br /&gt;
    A = (\\2 (2 (1 2)))&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
|32&lt;br /&gt;
|= 298&lt;br /&gt;
|&amp;lt;code&amp;gt;\(\1 1) (\1 (1 (2 (\2))))&amp;lt;/code&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
|33&lt;br /&gt;
|= 1812&lt;br /&gt;
|&amp;lt;code&amp;gt;\(\1 1) (\1 (1 (1 (2 1))))&amp;lt;/code&amp;gt;&lt;br /&gt;
|5&lt;br /&gt;
|&amp;lt;pre&amp;gt;&lt;br /&gt;
\C (C (C (1 C)))&lt;br /&gt;
  where:&lt;br /&gt;
    C = (B (B (B (1 B)))&lt;br /&gt;
    B = (A (A (A (1 A)))&lt;br /&gt;
    A = (1 (\1 (1 (1 (2 1)))))&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
|34 || &amp;lt;math&amp;gt;= \ 5 \left(2^{2^{2^2}}\right) + 6 = 327\,686&amp;lt;/math&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;(\1 1 1 1) (\\2 (2 1))&amp;lt;/code&amp;gt; &lt;br /&gt;
| || &amp;lt;math&amp;gt;C(2^{2^{2^2}})&amp;lt;/math&amp;gt; || John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
|35 || &amp;lt;math&amp;gt;\ge 5 \left(3^{3^3}\right) + 6 &amp;gt; 3.8 \times 10^{13}&amp;lt;/math&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;(\1 1 1) (\\2 (2 (2 1)))&amp;lt;/code&amp;gt; &lt;br /&gt;
| || &amp;lt;math&amp;gt;C(3^{3^3})&amp;lt;/math&amp;gt; || John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
|36 || &amp;lt;math&amp;gt;\ge 5 \left(2^{2^{2^3}}\right) + 6 &amp;gt; 5.7 \times 10^{77}&amp;lt;/math&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;(\1 1) (\1 (1 (\\2 (2 1))))&amp;lt;/code&amp;gt;&lt;br /&gt;
| || &amp;lt;math&amp;gt;C(2^{2^{2^3}})&amp;lt;/math&amp;gt;|| John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
|37 || &lt;br /&gt;
|  &lt;br /&gt;
| || ||&lt;br /&gt;
|-&lt;br /&gt;
|38 || &amp;lt;math&amp;gt;\ge 5 \left(2^{2^{2^{2^2}}}\right) + 6 &amp;gt; 10^{10^4}&amp;lt;/math&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;(\1 1 1 1 1) (\\2 (2 1))&amp;lt;/code&amp;gt; &lt;br /&gt;
| || &amp;lt;math&amp;gt;C(2^{2^{2^{2^2}}})&amp;lt;/math&amp;gt; || John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
|39 || &amp;lt;math&amp;gt;\ge 5 \left(3^{3^{3^3}}\right) + 6 &amp;gt; 10^{10^{12}}&amp;lt;/math&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;(\1 1 1 1) (\\2 (2 (2 1)))&amp;lt;/code&amp;gt; &lt;br /&gt;
| || &amp;lt;math&amp;gt;C(3^{3^{3^3}})&amp;lt;/math&amp;gt; || John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
|40 || &amp;lt;math&amp;gt; &amp;gt; (2\uparrow\uparrow)^{15} 33 &amp;gt; 10 \uparrow\uparrow\uparrow 16&amp;lt;/math&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;(\1 1 1) (\1 (\\2 (2 1)) 1)&amp;lt;/code&amp;gt;&lt;br /&gt;
| || &amp;lt;math&amp;gt;\lambda x.T(k)&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;T(0)=x,\;T(n+1)=T(n)\;C(2)\;T(n)&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;k &amp;gt; (2\uparrow\uparrow)^{15} 33&amp;lt;/math&amp;gt; || mxdys and racheline&lt;br /&gt;
|-&lt;br /&gt;
|41 || &amp;lt;math&amp;gt;\ge 5 \left(3^{3^{85}}\right) + 6 &amp;gt; 10^{10^{40}}&amp;lt;/math&amp;gt;&lt;br /&gt;
|  &amp;lt;code&amp;gt;(\1 (\1 1) 1) (\\2 (2 (2 1)))&amp;lt;/code&amp;gt;&lt;br /&gt;
| || &amp;lt;math&amp;gt;C(3^{3^{85}})&amp;lt;/math&amp;gt;||mxdys&lt;br /&gt;
|-&lt;br /&gt;
|42 ||&amp;lt;math&amp;gt; \ge BB\lambda(40)+2&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;\(\1 1 1) (\1 (\\2 (2 1)) 1)&amp;lt;/code&amp;gt;&lt;br /&gt;
| || ||&lt;br /&gt;
|-&lt;br /&gt;
|43 ||&amp;lt;math&amp;gt; &amp;gt; 2 \uparrow\uparrow\uparrow 2 \uparrow\uparrow\uparrow 2 \uparrow\uparrow 8&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;(\1 1) (\1 (\1 (\\2 (2 1)) 2))&amp;lt;/code&amp;gt;&lt;br /&gt;
| || &amp;lt;math&amp;gt;\lambda x.T(k)&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;T(0)=x,\;T(n+1)=T(n)\;(\lambda y.y\;C(2)\;T(n))&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;k &amp;gt; 2 \uparrow\uparrow\uparrow 2 \uparrow\uparrow\uparrow 2 \uparrow\uparrow 8&amp;lt;/math&amp;gt;||mxdys&lt;br /&gt;
|-&lt;br /&gt;
|44 || &amp;lt;math&amp;gt; &amp;gt; 10 \uparrow\uparrow\uparrow 10 \uparrow\uparrow\uparrow 16&amp;lt;/math&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;(\1 1 1 1) (\1 (\\2 (2 1)) 1)&amp;lt;/code&amp;gt; &lt;br /&gt;
| || &amp;lt;math&amp;gt;\lambda x.T(k)&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;T(0)=x,\;T(n+1)=T(n)\;C(2)\;T(n)&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;k &amp;gt; (2\uparrow\uparrow)^{(2\uparrow\uparrow)^{15} 33 - 1} 33&amp;lt;/math&amp;gt; ||&lt;br /&gt;
|-&lt;br /&gt;
|45 || &amp;lt;math&amp;gt; &amp;gt; 3 \uparrow\uparrow\uparrow (3 \uparrow\uparrow 3) &amp;gt; 10 \uparrow\uparrow\uparrow (7.6 \times 10^{12})&amp;lt;/math&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;(\1 1 1) (\1 (\\2 (2 (2 1))) 1)&amp;lt;/code&amp;gt; &lt;br /&gt;
| || &amp;lt;math&amp;gt;\lambda x.T(k)&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;T(0)=x,\;T(n+1)=T(n)\;C(3)\;T(n)&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;k &amp;gt; 3 \uparrow\uparrow\uparrow (3 \uparrow\uparrow 3)&amp;lt;/math&amp;gt; ||&lt;br /&gt;
|-&lt;br /&gt;
|46 || &lt;br /&gt;
|  &lt;br /&gt;
| || ||&lt;br /&gt;
|-&lt;br /&gt;
|47 || &lt;br /&gt;
|  &lt;br /&gt;
| || ||&lt;br /&gt;
|-&lt;br /&gt;
|48 || &amp;lt;math&amp;gt; &amp;gt; 10 \uparrow\uparrow\uparrow 10 \uparrow\uparrow\uparrow 10 \uparrow\uparrow\uparrow 16&amp;lt;/math&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;(\1 1 1 1 1) (\1 (\\2 (2 1)) 1)&amp;lt;/code&amp;gt; &lt;br /&gt;
| || &amp;lt;math&amp;gt;\lambda x.T(k)&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;T(0)=x,\;T(n+1)=T(n)\;C(2)\;T(n)&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;k &amp;gt; (2\uparrow\uparrow)^{(2\uparrow\uparrow)^{(2\uparrow\uparrow)^{15} 33 - 1} 33 - 1} 33&amp;lt;/math&amp;gt; ||&lt;br /&gt;
|-&lt;br /&gt;
|49&lt;br /&gt;
|&amp;lt;math&amp;gt;&amp;gt; f_{\omega+1}\left(\frac{2 \uparrow\uparrow 6}{2}\right) &amp;gt; \text{Graham&#039;s number}&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;(\1 1) (\1 (1 (\\1 2 (\\2 (2 1)))))&amp;lt;/code&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;math&amp;gt;C(N) \text{ for } N \approx f_{\omega+1}\left(\frac{2 \uparrow\uparrow 6}{2}\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
|[https://github.com/tromp/AIT/blob/master/fast_growing_and_conjectures/melo.lam Gustavo Melo]&lt;br /&gt;
|-&lt;br /&gt;
|...&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|1850&lt;br /&gt;
|&amp;gt; Loader&#039;s number&lt;br /&gt;
|&amp;lt;code&amp;gt;too large to show&amp;lt;/code&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|[https://codegolf.stackexchange.com/questions/176966/golf-a-number-bigger-than-loaders-number/274634#274634 John Tromp]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Where &amp;lt;math&amp;gt;C(n)&amp;lt;/math&amp;gt; represents the Church numeral &#039;&#039;n&#039;&#039; (&amp;lt;math&amp;gt;\lambda f x. f^n(x)&amp;lt;/math&amp;gt;) written as &amp;lt;code&amp;gt;\\2 (2 ... (2 1)...)&amp;lt;/code&amp;gt; with &#039;&#039;n&#039;&#039; 2s in this text representation.&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
&lt;br /&gt;
* https://oeis.org/A333479&lt;br /&gt;
* [https://tromp.github.io/blog/2023/11/24/largest-number The largest number representable in 64 bits]. 24 Nov 2023. John Tromp.&lt;br /&gt;
* [https://tromp.github.io/cl/Binary_lambda_calculus.html Binary Lambda Calculus]. John Tromp.&lt;br /&gt;
* https://github.com/tromp/AIT/tree/master/BB&lt;/div&gt;</summary>
		<author><name>Mxdys</name></author>
	</entry>
	<entry>
		<id>https://wiki.bbchallenge.org/w/index.php?title=Busy_Beaver_for_lambda_calculus&amp;diff=1780</id>
		<title>Busy Beaver for lambda calculus</title>
		<link rel="alternate" type="text/html" href="https://wiki.bbchallenge.org/w/index.php?title=Busy_Beaver_for_lambda_calculus&amp;diff=1780"/>
		<updated>2025-04-11T10:54:05Z</updated>

		<summary type="html">&lt;p&gt;Mxdys: update BBλ(42) champion (trivial)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;Busy Beaver for lambda calculus&#039;&#039;&#039; (&#039;&#039;&#039;BBλ&#039;&#039;&#039;) is a variation of the [[Busy Beaver]] problem for [https://en.wikipedia.org/wiki/Lambda_calculus lambda calculus] invented by John Tromp. BBλ(n) = the maximum normal form size of any closed lambda term of size n. If you are not familiar with lambda calculus and beta-reduction, I recommend starting with that article.&lt;br /&gt;
&lt;br /&gt;
Size is measured in bits using [https://tromp.github.io/cl/Binary_lambda_calculus.html Binary Lambda Calculus] which is a binary prefix-free encoding for all closed lambda calculus terms.&lt;br /&gt;
&lt;br /&gt;
== Analogy to Turing machines ==&lt;br /&gt;
We evaluate terms by applying &#039;&#039;beta-reductions&#039;&#039; until they reach a &#039;&#039;normal form&#039;&#039;. As an analogy to [[Turing machines]]:&lt;br /&gt;
* &#039;&#039;Lambda terms&#039;&#039; are like TM configurations (tape + state + position).&lt;br /&gt;
* Applying &#039;&#039;beta-reduction&#039;&#039; to a term is like taking a TM step.&lt;br /&gt;
* A term is in &#039;&#039;normal form&#039;&#039; if no beta-reductions can be applied. This is like saying the term has halted.&lt;br /&gt;
* A term may or may not be reducible to a normal form. If it is, this is like saying the term halts.&lt;br /&gt;
* Determining whether a term is reducible to a normal form is an undecidable problem equivalent to the halting problem.&lt;br /&gt;
&lt;br /&gt;
Note: That unlike for Turing machines, evaluating lambda terms is non-deterministic. Specifically, there may be multiple beta-reductions possible in a given term. However, if a term can be reduced to a normal form, that normal form is unique. It is not possible to reduce the original term to any different normal form. A term is &#039;&#039;&#039;strongly normalizing&#039;&#039;&#039; if any choice of beta-reductions will lead to this normal form and &#039;&#039;&#039;weakly normalizing&#039;&#039;&#039; if there exist divergent reduction paths which never reach the normal form.&lt;br /&gt;
&lt;br /&gt;
== Binary Lambda Encoding ==&lt;br /&gt;
A lambda term using [https://en.wikipedia.org/wiki/De_Bruijn_indices De Bruijn indexes] is defined inductively as:&lt;br /&gt;
* Variables: For any &amp;lt;math&amp;gt;n \in \mathbb{Z}^+&amp;lt;/math&amp;gt;, Var(&#039;&#039;n&#039;&#039;) is a term. It represents a variable bound by the lambda expression &#039;&#039;n&#039;&#039; above this one (the De Bruijn index). It is typically written simply as &amp;lt;code&amp;gt;n&amp;lt;/code&amp;gt;.&lt;br /&gt;
* Lambdas: For any term &#039;&#039;T&#039;&#039;, Lam(&#039;&#039;T&#039;&#039;) is a term. It represents a unary function with function body &#039;&#039;T&#039;&#039;. It is typically written &amp;lt;math&amp;gt;\lambda T&amp;lt;/math&amp;gt; or &amp;lt;code&amp;gt;\T&amp;lt;/code&amp;gt;.&lt;br /&gt;
* Applications: For any terms &#039;&#039;T, U&#039;&#039;, App(&#039;&#039;T, U&#039;&#039;) is a term. It represents applying function &#039;&#039;T&#039;&#039; to argument &#039;&#039;U&#039;&#039;. It is typically written &amp;lt;code&amp;gt;(T U)&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
We can think of this as a tree where each variable is a leaf, a lambda is a node with one child and applications are nodes with 2 children. A term is &#039;&#039;&#039;closed&#039;&#039;&#039; if every variable is bound. In other words, for every Var(&#039;&#039;n&#039;&#039;) leaf node, there exists &#039;&#039;n&#039;&#039; Lam() nodes above it in the tree of the term.&lt;br /&gt;
&lt;br /&gt;
Encoding (&#039;&#039;blc()&#039;&#039;) is defined recursively:&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\begin{array}{l}&lt;br /&gt;
  blc(Var(n)) &amp;amp; = &amp;amp; 1^n 0 \\&lt;br /&gt;
  blc(Lam(T)) &amp;amp; = &amp;amp; 00 \; blc(T) \\&lt;br /&gt;
  blc(App(T, U)) &amp;amp; = &amp;amp; 01 \; blc(T) \; blc(U) \\&lt;br /&gt;
\end{array}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For example, the [https://en.wikipedia.org/wiki/Church_encoding#Church_numerals Church numeral] 2: &amp;lt;math&amp;gt;\lambda f x. (f \; (f \; x))&amp;lt;/math&amp;gt; =  &amp;lt;code&amp;gt;\\(2 (2 1))&amp;lt;/code&amp;gt; = &amp;lt;code&amp;gt;Lam(Lam(App(Var(2), App(Var(2), Var(1))))&amp;lt;/code&amp;gt; is encoded as &amp;lt;code&amp;gt;00 00 01 110 01 110 10&amp;lt;/code&amp;gt; or simply &amp;lt;code&amp;gt;0000011100111010&amp;lt;/code&amp;gt; (spaces are not part of the encoding, only used for demonstration purposes) and thus has size 16 bits.&lt;br /&gt;
&lt;br /&gt;
== Text Encoding conventions ==&lt;br /&gt;
For human readability, a text encoding and set of conventions is used in this article. As described earlier we encode a lambda term as:&lt;br /&gt;
* Var(&#039;&#039;n&#039;&#039;) -&amp;gt; &amp;lt;code&amp;gt;n&amp;lt;/code&amp;gt;&lt;br /&gt;
* Lam(&#039;&#039;T&#039;&#039;) -&amp;gt; &amp;lt;code&amp;gt;(\T)&amp;lt;/code&amp;gt;&lt;br /&gt;
* App(&#039;&#039;T, U&#039;&#039;) -&amp;gt; &amp;lt;code&amp;gt;(T U)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
However, parentheses are also dropped in certain cases by convention:&lt;br /&gt;
* The outermost parentheses are dropped: &amp;lt;code&amp;gt;Lam(1)&amp;lt;/code&amp;gt; -&amp;gt; &amp;lt;code&amp;gt;\1&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;App(1, 2)&amp;lt;/code&amp;gt; -&amp;gt; &amp;lt;code&amp;gt;1 2&amp;lt;/code&amp;gt;.&lt;br /&gt;
* Parentheses are dropped immediately inside a Lam: &amp;lt;code&amp;gt;Lam(Lam(1))&amp;lt;/code&amp;gt; -&amp;gt; &amp;lt;code&amp;gt;\\1&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;Lam(App(1, 1))&amp;lt;/code&amp;gt; -&amp;gt; &amp;lt;code&amp;gt;\1 1&amp;lt;/code&amp;gt;.&lt;br /&gt;
* Parentheses are dropped in nested Apps using left associativity: &amp;lt;code&amp;gt;App(App(1, 2), 3)&amp;lt;/code&amp;gt; -&amp;gt; &amp;lt;code&amp;gt;1 2 3&amp;lt;/code&amp;gt;. (Note: parentheses are still required for &amp;lt;code&amp;gt;App(1, App(2, 3))&amp;lt;/code&amp;gt; -&amp;gt; &amp;lt;code&amp;gt;1 (2 3)&amp;lt;/code&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
This is the convention used in John Tromp&#039;s code and so is used here for consistency.&lt;br /&gt;
&lt;br /&gt;
== Champions ==&lt;br /&gt;
There are no closed lambda terms of size 0, 1, 2, 3 or 5 and so BBλ(n) is not defined for those values. The smallest closed lambda term is &amp;lt;code&amp;gt;\1&amp;lt;/code&amp;gt; which has size 4.&lt;br /&gt;
&lt;br /&gt;
For the rest of n ≤ 20: BBλ(n) = n is trivial and can be achieved via picking any n bit term already in normal form. For example &amp;lt;code&amp;gt;\\...\1&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;\\...\2&amp;lt;/code&amp;gt; with k lambdas has size 2k+2 and 2k+3 respectively (for k ≥ 1 and k ≥ 2 respectively).&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!n&lt;br /&gt;
!BBλ(n)&lt;br /&gt;
!Champion&lt;br /&gt;
!# Beta reductions&lt;br /&gt;
!Normal form&lt;br /&gt;
!Discovered By&lt;br /&gt;
|-&lt;br /&gt;
|21 || = 22 || &amp;lt;code&amp;gt;\(\1 1) (1 (\2))&amp;lt;/code&amp;gt;&lt;br /&gt;
|1|| &amp;lt;code&amp;gt;\(1 (\2)) (1 (\2))&amp;lt;/code&amp;gt; || John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
|22 || = 24 || &amp;lt;code&amp;gt;\(\1 1) (1 (\\1))&amp;lt;/code&amp;gt;&lt;br /&gt;
|1|| &amp;lt;code&amp;gt;\(1 (\\1)) (1 (\\1))&amp;lt;/code&amp;gt; ||Shawn Ligocki&lt;br /&gt;
|-&lt;br /&gt;
|   ||      || &amp;lt;code&amp;gt;\(\1 1 1) (1 1)&amp;lt;/code&amp;gt;&lt;br /&gt;
|1|| &amp;lt;code&amp;gt;\(1 1) (1 1) (1 1)&amp;lt;/code&amp;gt; || John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
|23 || = 26 || &amp;lt;code&amp;gt;\(\1 1) (1 (\\2))&amp;lt;/code&amp;gt;&lt;br /&gt;
|1|| &amp;lt;code&amp;gt;\(1 (\\2)) (1 (\\2))&amp;lt;/code&amp;gt; || John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
|24 || = 30 || &amp;lt;code&amp;gt;\(\1 1 1) (1 (\1))&amp;lt;/code&amp;gt;&lt;br /&gt;
|1|| &amp;lt;code&amp;gt;\(1 (\1)) (1 (\1)) (1 (\1))&amp;lt;/code&amp;gt; || John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
|25 || = 42 || &amp;lt;code&amp;gt;\(\1 1) (\1 (2 1))&amp;lt;/code&amp;gt; &lt;br /&gt;
|3|| &amp;lt;code&amp;gt;\1 (\1 (2 1)) (1 (1 (\1 (2 1))))&amp;lt;/code&amp;gt; || John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
|26 || = 52 || &amp;lt;code&amp;gt;(\1 1) (\\2 (1 2))&amp;lt;/code&amp;gt; &lt;br /&gt;
|3|| &amp;lt;code&amp;gt;\\2 (\\2 (1 2)) (1 (2 (\\2 (1 2))))&amp;lt;/code&amp;gt; || John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
|27 || = 44 || &amp;lt;code&amp;gt;\\(\1 1) (\1 (2 1))&amp;lt;/code&amp;gt; &lt;br /&gt;
|3|| &amp;lt;code&amp;gt;\\1 (\1 (2 1)) (1 (1 (\1 (2 1))))&amp;lt;/code&amp;gt; || John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
|28 || = 58 || &amp;lt;code&amp;gt;\(\1 1) (\1 (2 (\2))))&amp;lt;/code&amp;gt; &lt;br /&gt;
|3|| &amp;lt;code&amp;gt;\1 (\\1 (3 (\2))) (1 (\2 (\\1 (4 (\2)))))&amp;lt;/code&amp;gt;|| John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
| 29 || = 223|| &amp;lt;code&amp;gt;\(\1 1) (\1 (1 (2 1)))&amp;lt;/code&amp;gt;&lt;br /&gt;
|4|| &amp;lt;pre&amp;gt;&lt;br /&gt;
\B (B (1 B))&lt;br /&gt;
  where:&lt;br /&gt;
    B = (A (A (1 A)))&lt;br /&gt;
    A = (1 (\1 (1 (2 1))))&lt;br /&gt;
&amp;lt;/pre&amp;gt;||John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
|30&lt;br /&gt;
|= 160&lt;br /&gt;
|&amp;lt;code&amp;gt;(\1 1 1) (\\2 (1 2))&amp;lt;/code&amp;gt;&lt;br /&gt;
|7&lt;br /&gt;
|&amp;lt;pre&amp;gt;&lt;br /&gt;
\\2 B A (1 (2 B A))&lt;br /&gt;
  where:&lt;br /&gt;
    B = (\\2 A (1 (2 A)))&lt;br /&gt;
    A = (\\2 (1 2))&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;code&amp;gt;(\1 (1 1)) (\\2 (1 2))&amp;lt;/code&amp;gt;&lt;br /&gt;
|5&lt;br /&gt;
|Same as above&lt;br /&gt;
|Shawn Ligocki&lt;br /&gt;
|-&lt;br /&gt;
|31&lt;br /&gt;
|= 267&lt;br /&gt;
|&amp;lt;code&amp;gt;(\1 1) (\\2 (2 (1 2)))&amp;lt;/code&amp;gt;&lt;br /&gt;
|6&lt;br /&gt;
|&amp;lt;pre&amp;gt;&lt;br /&gt;
\\2 A (2 A (C (2 A)))&lt;br /&gt;
  where:&lt;br /&gt;
    C = (2 A (2 A (1 B (2 A))))&lt;br /&gt;
    B = (\3 A (3 A (1 (3 A))))&lt;br /&gt;
    A = (\\2 (2 (1 2)))&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
|32&lt;br /&gt;
|= 298&lt;br /&gt;
|&amp;lt;code&amp;gt;\(\1 1) (\1 (1 (2 (\2))))&amp;lt;/code&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
|33&lt;br /&gt;
|= 1812&lt;br /&gt;
|&amp;lt;code&amp;gt;\(\1 1) (\1 (1 (1 (2 1))))&amp;lt;/code&amp;gt;&lt;br /&gt;
|5&lt;br /&gt;
|&amp;lt;pre&amp;gt;&lt;br /&gt;
\C (C (C (1 C)))&lt;br /&gt;
  where:&lt;br /&gt;
    C = (B (B (B (1 B)))&lt;br /&gt;
    B = (A (A (A (1 A)))&lt;br /&gt;
    A = (1 (\1 (1 (1 (2 1)))))&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
|34 || &amp;lt;math&amp;gt;= \ 5 \left(2^{2^{2^2}}\right) + 6 = 327\,686&amp;lt;/math&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;(\1 1 1 1) (\\2 (2 1))&amp;lt;/code&amp;gt; &lt;br /&gt;
| || &amp;lt;math&amp;gt;C(2^{2^{2^2}})&amp;lt;/math&amp;gt; || John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
|35 || &amp;lt;math&amp;gt;\ge 5 \left(3^{3^3}\right) + 6 &amp;gt; 3.8 \times 10^{13}&amp;lt;/math&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;(\1 1 1) (\\2 (2 (2 1)))&amp;lt;/code&amp;gt; &lt;br /&gt;
| || &amp;lt;math&amp;gt;C(3^{3^3})&amp;lt;/math&amp;gt; || John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
|36 || &amp;lt;math&amp;gt;\ge 5 \left(2^{2^{2^3}}\right) + 6 &amp;gt; 5.7 \times 10^{77}&amp;lt;/math&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;(\1 1) (\1 (1 (\\2 (2 1))))&amp;lt;/code&amp;gt;&lt;br /&gt;
| || &amp;lt;math&amp;gt;C(2^{2^{2^3}})&amp;lt;/math&amp;gt;|| John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
|37 || &lt;br /&gt;
|  &lt;br /&gt;
| || ||&lt;br /&gt;
|-&lt;br /&gt;
|38 || &amp;lt;math&amp;gt;\ge 5 \left(2^{2^{2^{2^2}}}\right) + 6 &amp;gt; 10^{10^4}&amp;lt;/math&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;(\1 1 1 1 1) (\\2 (2 1))&amp;lt;/code&amp;gt; &lt;br /&gt;
| || &amp;lt;math&amp;gt;C(2^{2^{2^{2^2}}})&amp;lt;/math&amp;gt; || John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
|39 || &amp;lt;math&amp;gt;\ge 5 \left(3^{3^{3^3}}\right) + 6 &amp;gt; 10^{10^{12}}&amp;lt;/math&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;(\1 1 1 1) (\\2 (2 (2 1)))&amp;lt;/code&amp;gt; &lt;br /&gt;
| || &amp;lt;math&amp;gt;C(3^{3^{3^3}})&amp;lt;/math&amp;gt; || John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
|40 || &amp;lt;math&amp;gt; &amp;gt; (2\uparrow\uparrow)^{15} 33 &amp;gt; 10 \uparrow\uparrow\uparrow 16&amp;lt;/math&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;(\1 1 1) (\1 (\\2 (2 1)) 1)&amp;lt;/code&amp;gt;&lt;br /&gt;
| || &amp;lt;math&amp;gt;\lambda x.T(k)&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;T(0)=x,\;T(n+1)=T(n)\;C(2)\;T(n)&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;k &amp;gt; (2\uparrow\uparrow)^{15} 33&amp;lt;/math&amp;gt; || mxdys and racheline&lt;br /&gt;
|-&lt;br /&gt;
|41 || &amp;lt;math&amp;gt;\ge 5 \left(3^{3^{85}}\right) + 6 &amp;gt; 10^{10^{40}}&amp;lt;/math&amp;gt;&lt;br /&gt;
|  &amp;lt;code&amp;gt;(\1 (\1 1) 1) (\\2 (2 (2 1)))&amp;lt;/code&amp;gt;&lt;br /&gt;
| || &amp;lt;math&amp;gt;C(3^{3^{85}})&amp;lt;/math&amp;gt;||mxdys&lt;br /&gt;
|-&lt;br /&gt;
|42 ||&amp;lt;math&amp;gt; \ge BB\lambda(40)+2&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;\(\1 1 1) (\1 (\\2 (2 1)) 1)&amp;lt;/code&amp;gt;&lt;br /&gt;
| || ||&lt;br /&gt;
|-&lt;br /&gt;
|43 ||&lt;br /&gt;
|&lt;br /&gt;
| || ||&lt;br /&gt;
|-&lt;br /&gt;
|44 || &amp;lt;math&amp;gt; &amp;gt; 10 \uparrow\uparrow\uparrow 10 \uparrow\uparrow\uparrow 16&amp;lt;/math&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;(\1 1 1 1) (\1 (\\2 (2 1)) 1)&amp;lt;/code&amp;gt; &lt;br /&gt;
| || &amp;lt;math&amp;gt;\lambda x.T(k)&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;T(0)=x,\;T(n+1)=T(n)\;C(2)\;T(n)&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;k &amp;gt; (2\uparrow\uparrow)^{(2\uparrow\uparrow)^{15} 33 - 1} 33&amp;lt;/math&amp;gt; ||&lt;br /&gt;
|-&lt;br /&gt;
|45 || &amp;lt;math&amp;gt; &amp;gt; 3 \uparrow\uparrow\uparrow (3 \uparrow\uparrow 3) &amp;gt; 10 \uparrow\uparrow\uparrow (7.6 \times 10^{12})&amp;lt;/math&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;(\1 1 1) (\1 (\\2 (2 (2 1))) 1)&amp;lt;/code&amp;gt; &lt;br /&gt;
| || &amp;lt;math&amp;gt;\lambda x.T(k)&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;T(0)=x,\;T(n+1)=T(n)\;C(3)\;T(n)&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;k &amp;gt; 3 \uparrow\uparrow\uparrow (3 \uparrow\uparrow 3)&amp;lt;/math&amp;gt; ||&lt;br /&gt;
|-&lt;br /&gt;
|46 || &lt;br /&gt;
|  &lt;br /&gt;
| || ||&lt;br /&gt;
|-&lt;br /&gt;
|47 || &lt;br /&gt;
|  &lt;br /&gt;
| || ||&lt;br /&gt;
|-&lt;br /&gt;
|48 || &amp;lt;math&amp;gt; &amp;gt; 10 \uparrow\uparrow\uparrow 10 \uparrow\uparrow\uparrow 10 \uparrow\uparrow\uparrow 16&amp;lt;/math&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;(\1 1 1 1 1) (\1 (\\2 (2 1)) 1)&amp;lt;/code&amp;gt; &lt;br /&gt;
| || &amp;lt;math&amp;gt;\lambda x.T(k)&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;T(0)=x,\;T(n+1)=T(n)\;C(2)\;T(n)&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;k &amp;gt; (2\uparrow\uparrow)^{(2\uparrow\uparrow)^{(2\uparrow\uparrow)^{15} 33 - 1} 33 - 1} 33&amp;lt;/math&amp;gt; ||&lt;br /&gt;
|-&lt;br /&gt;
|49&lt;br /&gt;
|&amp;lt;math&amp;gt;&amp;gt; f_{\omega+1}\left(\frac{2 \uparrow\uparrow 6}{2}\right) &amp;gt; \text{Graham&#039;s number}&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;(\1 1) (\1 (1 (\\1 2 (\\2 (2 1)))))&amp;lt;/code&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;math&amp;gt;C(N) \text{ for } N \approx f_{\omega+1}\left(\frac{2 \uparrow\uparrow 6}{2}\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
|[https://github.com/tromp/AIT/blob/master/fast_growing_and_conjectures/melo.lam Gustavo Melo]&lt;br /&gt;
|-&lt;br /&gt;
|...&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|1850&lt;br /&gt;
|&amp;gt; Loader&#039;s number&lt;br /&gt;
|&amp;lt;code&amp;gt;too large to show&amp;lt;/code&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|[https://codegolf.stackexchange.com/questions/176966/golf-a-number-bigger-than-loaders-number/274634#274634 John Tromp]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Where &amp;lt;math&amp;gt;C(n)&amp;lt;/math&amp;gt; represents the Church numeral &#039;&#039;n&#039;&#039; (&amp;lt;math&amp;gt;\lambda f x. f^n(x)&amp;lt;/math&amp;gt;) written as &amp;lt;code&amp;gt;\\2 (2 ... (2 1)...)&amp;lt;/code&amp;gt; with &#039;&#039;n&#039;&#039; 2s in this text representation.&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
&lt;br /&gt;
* https://oeis.org/A333479&lt;br /&gt;
* [https://tromp.github.io/blog/2023/11/24/largest-number The largest number representable in 64 bits]. 24 Nov 2023. John Tromp.&lt;br /&gt;
* [https://tromp.github.io/cl/Binary_lambda_calculus.html Binary Lambda Calculus]. John Tromp.&lt;br /&gt;
* https://github.com/tromp/AIT/tree/master/BB&lt;/div&gt;</summary>
		<author><name>Mxdys</name></author>
	</entry>
	<entry>
		<id>https://wiki.bbchallenge.org/w/index.php?title=Busy_Beaver_for_lambda_calculus&amp;diff=1779</id>
		<title>Busy Beaver for lambda calculus</title>
		<link rel="alternate" type="text/html" href="https://wiki.bbchallenge.org/w/index.php?title=Busy_Beaver_for_lambda_calculus&amp;diff=1779"/>
		<updated>2025-04-11T10:17:11Z</updated>

		<summary type="html">&lt;p&gt;Mxdys: add champion of size 41&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;Busy Beaver for lambda calculus&#039;&#039;&#039; (&#039;&#039;&#039;BBλ&#039;&#039;&#039;) is a variation of the [[Busy Beaver]] problem for [https://en.wikipedia.org/wiki/Lambda_calculus lambda calculus] invented by John Tromp. BBλ(n) = the maximum normal form size of any closed lambda term of size n. If you are not familiar with lambda calculus and beta-reduction, I recommend starting with that article.&lt;br /&gt;
&lt;br /&gt;
Size is measured in bits using [https://tromp.github.io/cl/Binary_lambda_calculus.html Binary Lambda Calculus] which is a binary prefix-free encoding for all closed lambda calculus terms.&lt;br /&gt;
&lt;br /&gt;
== Analogy to Turing machines ==&lt;br /&gt;
We evaluate terms by applying &#039;&#039;beta-reductions&#039;&#039; until they reach a &#039;&#039;normal form&#039;&#039;. As an analogy to [[Turing machines]]:&lt;br /&gt;
* &#039;&#039;Lambda terms&#039;&#039; are like TM configurations (tape + state + position).&lt;br /&gt;
* Applying &#039;&#039;beta-reduction&#039;&#039; to a term is like taking a TM step.&lt;br /&gt;
* A term is in &#039;&#039;normal form&#039;&#039; if no beta-reductions can be applied. This is like saying the term has halted.&lt;br /&gt;
* A term may or may not be reducible to a normal form. If it is, this is like saying the term halts.&lt;br /&gt;
* Determining whether a term is reducible to a normal form is an undecidable problem equivalent to the halting problem.&lt;br /&gt;
&lt;br /&gt;
Note: That unlike for Turing machines, evaluating lambda terms is non-deterministic. Specifically, there may be multiple beta-reductions possible in a given term. However, if a term can be reduced to a normal form, that normal form is unique. It is not possible to reduce the original term to any different normal form. A term is &#039;&#039;&#039;strongly normalizing&#039;&#039;&#039; if any choice of beta-reductions will lead to this normal form and &#039;&#039;&#039;weakly normalizing&#039;&#039;&#039; if there exist divergent reduction paths which never reach the normal form.&lt;br /&gt;
&lt;br /&gt;
== Binary Lambda Encoding ==&lt;br /&gt;
A lambda term using [https://en.wikipedia.org/wiki/De_Bruijn_indices De Bruijn indexes] is defined inductively as:&lt;br /&gt;
* Variables: For any &amp;lt;math&amp;gt;n \in \mathbb{Z}^+&amp;lt;/math&amp;gt;, Var(&#039;&#039;n&#039;&#039;) is a term. It represents a variable bound by the lambda expression &#039;&#039;n&#039;&#039; above this one (the De Bruijn index). It is typically written simply as &amp;lt;code&amp;gt;n&amp;lt;/code&amp;gt;.&lt;br /&gt;
* Lambdas: For any term &#039;&#039;T&#039;&#039;, Lam(&#039;&#039;T&#039;&#039;) is a term. It represents a unary function with function body &#039;&#039;T&#039;&#039;. It is typically written &amp;lt;math&amp;gt;\lambda T&amp;lt;/math&amp;gt; or &amp;lt;code&amp;gt;\T&amp;lt;/code&amp;gt;.&lt;br /&gt;
* Applications: For any terms &#039;&#039;T, U&#039;&#039;, App(&#039;&#039;T, U&#039;&#039;) is a term. It represents applying function &#039;&#039;T&#039;&#039; to argument &#039;&#039;U&#039;&#039;. It is typically written &amp;lt;code&amp;gt;(T U)&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
We can think of this as a tree where each variable is a leaf, a lambda is a node with one child and applications are nodes with 2 children. A term is &#039;&#039;&#039;closed&#039;&#039;&#039; if every variable is bound. In other words, for every Var(&#039;&#039;n&#039;&#039;) leaf node, there exists &#039;&#039;n&#039;&#039; Lam() nodes above it in the tree of the term.&lt;br /&gt;
&lt;br /&gt;
Encoding (&#039;&#039;blc()&#039;&#039;) is defined recursively:&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\begin{array}{l}&lt;br /&gt;
  blc(Var(n)) &amp;amp; = &amp;amp; 1^n 0 \\&lt;br /&gt;
  blc(Lam(T)) &amp;amp; = &amp;amp; 00 \; blc(T) \\&lt;br /&gt;
  blc(App(T, U)) &amp;amp; = &amp;amp; 01 \; blc(T) \; blc(U) \\&lt;br /&gt;
\end{array}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For example, the [https://en.wikipedia.org/wiki/Church_encoding#Church_numerals Church numeral] 2: &amp;lt;math&amp;gt;\lambda f x. (f \; (f \; x))&amp;lt;/math&amp;gt; =  &amp;lt;code&amp;gt;\\(2 (2 1))&amp;lt;/code&amp;gt; = &amp;lt;code&amp;gt;Lam(Lam(App(Var(2), App(Var(2), Var(1))))&amp;lt;/code&amp;gt; is encoded as &amp;lt;code&amp;gt;00 00 01 110 01 110 10&amp;lt;/code&amp;gt; or simply &amp;lt;code&amp;gt;0000011100111010&amp;lt;/code&amp;gt; (spaces are not part of the encoding, only used for demonstration purposes) and thus has size 16 bits.&lt;br /&gt;
&lt;br /&gt;
== Text Encoding conventions ==&lt;br /&gt;
For human readability, a text encoding and set of conventions is used in this article. As described earlier we encode a lambda term as:&lt;br /&gt;
* Var(&#039;&#039;n&#039;&#039;) -&amp;gt; &amp;lt;code&amp;gt;n&amp;lt;/code&amp;gt;&lt;br /&gt;
* Lam(&#039;&#039;T&#039;&#039;) -&amp;gt; &amp;lt;code&amp;gt;(\T)&amp;lt;/code&amp;gt;&lt;br /&gt;
* App(&#039;&#039;T, U&#039;&#039;) -&amp;gt; &amp;lt;code&amp;gt;(T U)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
However, parentheses are also dropped in certain cases by convention:&lt;br /&gt;
* The outermost parentheses are dropped: &amp;lt;code&amp;gt;Lam(1)&amp;lt;/code&amp;gt; -&amp;gt; &amp;lt;code&amp;gt;\1&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;App(1, 2)&amp;lt;/code&amp;gt; -&amp;gt; &amp;lt;code&amp;gt;1 2&amp;lt;/code&amp;gt;.&lt;br /&gt;
* Parentheses are dropped immediately inside a Lam: &amp;lt;code&amp;gt;Lam(Lam(1))&amp;lt;/code&amp;gt; -&amp;gt; &amp;lt;code&amp;gt;\\1&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;Lam(App(1, 1))&amp;lt;/code&amp;gt; -&amp;gt; &amp;lt;code&amp;gt;\1 1&amp;lt;/code&amp;gt;.&lt;br /&gt;
* Parentheses are dropped in nested Apps using left associativity: &amp;lt;code&amp;gt;App(App(1, 2), 3)&amp;lt;/code&amp;gt; -&amp;gt; &amp;lt;code&amp;gt;1 2 3&amp;lt;/code&amp;gt;. (Note: parentheses are still required for &amp;lt;code&amp;gt;App(1, App(2, 3))&amp;lt;/code&amp;gt; -&amp;gt; &amp;lt;code&amp;gt;1 (2 3)&amp;lt;/code&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
This is the convention used in John Tromp&#039;s code and so is used here for consistency.&lt;br /&gt;
&lt;br /&gt;
== Champions ==&lt;br /&gt;
There are no closed lambda terms of size 0, 1, 2, 3 or 5 and so BBλ(n) is not defined for those values. The smallest closed lambda term is &amp;lt;code&amp;gt;\1&amp;lt;/code&amp;gt; which has size 4.&lt;br /&gt;
&lt;br /&gt;
For the rest of n ≤ 20: BBλ(n) = n is trivial and can be achieved via picking any n bit term already in normal form. For example &amp;lt;code&amp;gt;\\...\1&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;\\...\2&amp;lt;/code&amp;gt; with k lambdas has size 2k+2 and 2k+3 respectively (for k ≥ 1 and k ≥ 2 respectively).&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!n&lt;br /&gt;
!BBλ(n)&lt;br /&gt;
!Champion&lt;br /&gt;
!# Beta reductions&lt;br /&gt;
!Normal form&lt;br /&gt;
!Discovered By&lt;br /&gt;
|-&lt;br /&gt;
|21 || = 22 || &amp;lt;code&amp;gt;\(\1 1) (1 (\2))&amp;lt;/code&amp;gt;&lt;br /&gt;
|1|| &amp;lt;code&amp;gt;\(1 (\2)) (1 (\2))&amp;lt;/code&amp;gt; || John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
|22 || = 24 || &amp;lt;code&amp;gt;\(\1 1) (1 (\\1))&amp;lt;/code&amp;gt;&lt;br /&gt;
|1|| &amp;lt;code&amp;gt;\(1 (\\1)) (1 (\\1))&amp;lt;/code&amp;gt; ||Shawn Ligocki&lt;br /&gt;
|-&lt;br /&gt;
|   ||      || &amp;lt;code&amp;gt;\(\1 1 1) (1 1)&amp;lt;/code&amp;gt;&lt;br /&gt;
|1|| &amp;lt;code&amp;gt;\(1 1) (1 1) (1 1)&amp;lt;/code&amp;gt; || John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
|23 || = 26 || &amp;lt;code&amp;gt;\(\1 1) (1 (\\2))&amp;lt;/code&amp;gt;&lt;br /&gt;
|1|| &amp;lt;code&amp;gt;\(1 (\\2)) (1 (\\2))&amp;lt;/code&amp;gt; || John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
|24 || = 30 || &amp;lt;code&amp;gt;\(\1 1 1) (1 (\1))&amp;lt;/code&amp;gt;&lt;br /&gt;
|1|| &amp;lt;code&amp;gt;\(1 (\1)) (1 (\1)) (1 (\1))&amp;lt;/code&amp;gt; || John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
|25 || = 42 || &amp;lt;code&amp;gt;\(\1 1) (\1 (2 1))&amp;lt;/code&amp;gt; &lt;br /&gt;
|3|| &amp;lt;code&amp;gt;\1 (\1 (2 1)) (1 (1 (\1 (2 1))))&amp;lt;/code&amp;gt; || John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
|26 || = 52 || &amp;lt;code&amp;gt;(\1 1) (\\2 (1 2))&amp;lt;/code&amp;gt; &lt;br /&gt;
|3|| &amp;lt;code&amp;gt;\\2 (\\2 (1 2)) (1 (2 (\\2 (1 2))))&amp;lt;/code&amp;gt; || John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
|27 || = 44 || &amp;lt;code&amp;gt;\\(\1 1) (\1 (2 1))&amp;lt;/code&amp;gt; &lt;br /&gt;
|3|| &amp;lt;code&amp;gt;\\1 (\1 (2 1)) (1 (1 (\1 (2 1))))&amp;lt;/code&amp;gt; || John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
|28 || = 58 || &amp;lt;code&amp;gt;\(\1 1) (\1 (2 (\2))))&amp;lt;/code&amp;gt; &lt;br /&gt;
|3|| &amp;lt;code&amp;gt;\1 (\\1 (3 (\2))) (1 (\2 (\\1 (4 (\2)))))&amp;lt;/code&amp;gt;|| John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
| 29 || = 223|| &amp;lt;code&amp;gt;\(\1 1) (\1 (1 (2 1)))&amp;lt;/code&amp;gt;&lt;br /&gt;
|4|| &amp;lt;pre&amp;gt;&lt;br /&gt;
\B (B (1 B))&lt;br /&gt;
  where:&lt;br /&gt;
    B = (A (A (1 A)))&lt;br /&gt;
    A = (1 (\1 (1 (2 1))))&lt;br /&gt;
&amp;lt;/pre&amp;gt;||John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
|30&lt;br /&gt;
|= 160&lt;br /&gt;
|&amp;lt;code&amp;gt;(\1 1 1) (\\2 (1 2))&amp;lt;/code&amp;gt;&lt;br /&gt;
|7&lt;br /&gt;
|&amp;lt;pre&amp;gt;&lt;br /&gt;
\\2 B A (1 (2 B A))&lt;br /&gt;
  where:&lt;br /&gt;
    B = (\\2 A (1 (2 A)))&lt;br /&gt;
    A = (\\2 (1 2))&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;code&amp;gt;(\1 (1 1)) (\\2 (1 2))&amp;lt;/code&amp;gt;&lt;br /&gt;
|5&lt;br /&gt;
|Same as above&lt;br /&gt;
|Shawn Ligocki&lt;br /&gt;
|-&lt;br /&gt;
|31&lt;br /&gt;
|= 267&lt;br /&gt;
|&amp;lt;code&amp;gt;(\1 1) (\\2 (2 (1 2)))&amp;lt;/code&amp;gt;&lt;br /&gt;
|6&lt;br /&gt;
|&amp;lt;pre&amp;gt;&lt;br /&gt;
\\2 A (2 A (C (2 A)))&lt;br /&gt;
  where:&lt;br /&gt;
    C = (2 A (2 A (1 B (2 A))))&lt;br /&gt;
    B = (\3 A (3 A (1 (3 A))))&lt;br /&gt;
    A = (\\2 (2 (1 2)))&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
|32&lt;br /&gt;
|= 298&lt;br /&gt;
|&amp;lt;code&amp;gt;\(\1 1) (\1 (1 (2 (\2))))&amp;lt;/code&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
|33&lt;br /&gt;
|= 1812&lt;br /&gt;
|&amp;lt;code&amp;gt;\(\1 1) (\1 (1 (1 (2 1))))&amp;lt;/code&amp;gt;&lt;br /&gt;
|5&lt;br /&gt;
|&amp;lt;pre&amp;gt;&lt;br /&gt;
\C (C (C (1 C)))&lt;br /&gt;
  where:&lt;br /&gt;
    C = (B (B (B (1 B)))&lt;br /&gt;
    B = (A (A (A (1 A)))&lt;br /&gt;
    A = (1 (\1 (1 (1 (2 1)))))&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
|34 || &amp;lt;math&amp;gt;= \ 5 \left(2^{2^{2^2}}\right) + 6 = 327\,686&amp;lt;/math&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;(\1 1 1 1) (\\2 (2 1))&amp;lt;/code&amp;gt; &lt;br /&gt;
| || &amp;lt;math&amp;gt;C(2^{2^{2^2}})&amp;lt;/math&amp;gt; || John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
|35 || &amp;lt;math&amp;gt;\ge 5 \left(3^{3^3}\right) + 6 &amp;gt; 3.8 \times 10^{13}&amp;lt;/math&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;(\1 1 1) (\\2 (2 (2 1)))&amp;lt;/code&amp;gt; &lt;br /&gt;
| || &amp;lt;math&amp;gt;C(3^{3^3})&amp;lt;/math&amp;gt; || John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
|36 || &amp;lt;math&amp;gt;\ge 5 \left(2^{2^{2^3}}\right) + 6 &amp;gt; 5.7 \times 10^{77}&amp;lt;/math&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;(\1 1) (\1 (1 (\\2 (2 1))))&amp;lt;/code&amp;gt;&lt;br /&gt;
| || &amp;lt;math&amp;gt;C(2^{2^{2^3}})&amp;lt;/math&amp;gt;|| John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
|37 || &lt;br /&gt;
|  &lt;br /&gt;
| || ||&lt;br /&gt;
|-&lt;br /&gt;
|38 || &amp;lt;math&amp;gt;\ge 5 \left(2^{2^{2^{2^2}}}\right) + 6 &amp;gt; 10^{10^4}&amp;lt;/math&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;(\1 1 1 1 1) (\\2 (2 1))&amp;lt;/code&amp;gt; &lt;br /&gt;
| || &amp;lt;math&amp;gt;C(2^{2^{2^{2^2}}})&amp;lt;/math&amp;gt; || John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
|39 || &amp;lt;math&amp;gt;\ge 5 \left(3^{3^{3^3}}\right) + 6 &amp;gt; 10^{10^{12}}&amp;lt;/math&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;(\1 1 1 1) (\\2 (2 (2 1)))&amp;lt;/code&amp;gt; &lt;br /&gt;
| || &amp;lt;math&amp;gt;C(3^{3^{3^3}})&amp;lt;/math&amp;gt; || John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
|40 || &amp;lt;math&amp;gt; &amp;gt; (2\uparrow\uparrow)^{15} 33 &amp;gt; 10 \uparrow\uparrow\uparrow 16&amp;lt;/math&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;(\1 1 1) (\1 (\\2 (2 1)) 1)&amp;lt;/code&amp;gt;&lt;br /&gt;
| || &amp;lt;math&amp;gt;\lambda x.T(k)&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;T(0)=x,\;T(n+1)=T(n)\;C(2)\;T(n)&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;k &amp;gt; (2\uparrow\uparrow)^{15} 33&amp;lt;/math&amp;gt; || mxdys and racheline&lt;br /&gt;
|-&lt;br /&gt;
|41 || &amp;lt;math&amp;gt;\ge 5 \left(3^{3^{85}}\right) + 6 &amp;gt; 10^{10^{40}}&amp;lt;/math&amp;gt;&lt;br /&gt;
|  &amp;lt;code&amp;gt;(\1 (\1 1) 1) (\\2 (2 (2 1)))&amp;lt;/code&amp;gt;&lt;br /&gt;
| || &amp;lt;math&amp;gt;C(3^{3^{85}})&amp;lt;/math&amp;gt;||mxdys&lt;br /&gt;
|-&lt;br /&gt;
|42 ||&lt;br /&gt;
|&lt;br /&gt;
| || ||&lt;br /&gt;
|-&lt;br /&gt;
|43 ||&lt;br /&gt;
|&lt;br /&gt;
| || ||&lt;br /&gt;
|-&lt;br /&gt;
|44 || &amp;lt;math&amp;gt; &amp;gt; 10 \uparrow\uparrow\uparrow 10 \uparrow\uparrow\uparrow 16&amp;lt;/math&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;(\1 1 1 1) (\1 (\\2 (2 1)) 1)&amp;lt;/code&amp;gt; &lt;br /&gt;
| || &amp;lt;math&amp;gt;\lambda x.T(k)&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;T(0)=x,\;T(n+1)=T(n)\;C(2)\;T(n)&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;k &amp;gt; (2\uparrow\uparrow)^{(2\uparrow\uparrow)^{15} 33 - 1} 33&amp;lt;/math&amp;gt; ||&lt;br /&gt;
|-&lt;br /&gt;
|45 || &amp;lt;math&amp;gt; &amp;gt; 3 \uparrow\uparrow\uparrow (3 \uparrow\uparrow 3) &amp;gt; 10 \uparrow\uparrow\uparrow (7.6 \times 10^{12})&amp;lt;/math&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;(\1 1 1) (\1 (\\2 (2 (2 1))) 1)&amp;lt;/code&amp;gt; &lt;br /&gt;
| || &amp;lt;math&amp;gt;\lambda x.T(k)&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;T(0)=x,\;T(n+1)=T(n)\;C(3)\;T(n)&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;k &amp;gt; 3 \uparrow\uparrow\uparrow (3 \uparrow\uparrow 3)&amp;lt;/math&amp;gt; ||&lt;br /&gt;
|-&lt;br /&gt;
|46 || &lt;br /&gt;
|  &lt;br /&gt;
| || ||&lt;br /&gt;
|-&lt;br /&gt;
|47 || &lt;br /&gt;
|  &lt;br /&gt;
| || ||&lt;br /&gt;
|-&lt;br /&gt;
|48 || &amp;lt;math&amp;gt; &amp;gt; 10 \uparrow\uparrow\uparrow 10 \uparrow\uparrow\uparrow 10 \uparrow\uparrow\uparrow 16&amp;lt;/math&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;(\1 1 1 1 1) (\1 (\\2 (2 1)) 1)&amp;lt;/code&amp;gt; &lt;br /&gt;
| || &amp;lt;math&amp;gt;\lambda x.T(k)&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;T(0)=x,\;T(n+1)=T(n)\;C(2)\;T(n)&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;k &amp;gt; (2\uparrow\uparrow)^{(2\uparrow\uparrow)^{(2\uparrow\uparrow)^{15} 33 - 1} 33 - 1} 33&amp;lt;/math&amp;gt; ||&lt;br /&gt;
|-&lt;br /&gt;
|49&lt;br /&gt;
|&amp;lt;math&amp;gt;&amp;gt; f_{\omega+1}\left(\frac{2 \uparrow\uparrow 6}{2}\right) &amp;gt; \text{Graham&#039;s number}&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;(\1 1) (\1 (1 (\\1 2 (\\2 (2 1)))))&amp;lt;/code&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;math&amp;gt;C(N) \text{ for } N \approx f_{\omega+1}\left(\frac{2 \uparrow\uparrow 6}{2}\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
|[https://github.com/tromp/AIT/blob/master/fast_growing_and_conjectures/melo.lam Gustavo Melo]&lt;br /&gt;
|-&lt;br /&gt;
|...&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|1850&lt;br /&gt;
|&amp;gt; Loader&#039;s number&lt;br /&gt;
|&amp;lt;code&amp;gt;too large to show&amp;lt;/code&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|[https://codegolf.stackexchange.com/questions/176966/golf-a-number-bigger-than-loaders-number/274634#274634 John Tromp]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Where &amp;lt;math&amp;gt;C(n)&amp;lt;/math&amp;gt; represents the Church numeral &#039;&#039;n&#039;&#039; (&amp;lt;math&amp;gt;\lambda f x. f^n(x)&amp;lt;/math&amp;gt;) written as &amp;lt;code&amp;gt;\\2 (2 ... (2 1)...)&amp;lt;/code&amp;gt; with &#039;&#039;n&#039;&#039; 2s in this text representation.&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
&lt;br /&gt;
* https://oeis.org/A333479&lt;br /&gt;
* [https://tromp.github.io/blog/2023/11/24/largest-number The largest number representable in 64 bits]. 24 Nov 2023. John Tromp.&lt;br /&gt;
* [https://tromp.github.io/cl/Binary_lambda_calculus.html Binary Lambda Calculus]. John Tromp.&lt;br /&gt;
* https://github.com/tromp/AIT/tree/master/BB&lt;/div&gt;</summary>
		<author><name>Mxdys</name></author>
	</entry>
	<entry>
		<id>https://wiki.bbchallenge.org/w/index.php?title=Busy_Beaver_for_lambda_calculus&amp;diff=1776</id>
		<title>Busy Beaver for lambda calculus</title>
		<link rel="alternate" type="text/html" href="https://wiki.bbchallenge.org/w/index.php?title=Busy_Beaver_for_lambda_calculus&amp;diff=1776"/>
		<updated>2025-04-10T20:04:08Z</updated>

		<summary type="html">&lt;p&gt;Mxdys: update BBλ(40) champion&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;Busy Beaver for lambda calculus&#039;&#039;&#039; (&#039;&#039;&#039;BBλ&#039;&#039;&#039;) is a variation of the [[Busy Beaver]] problem for [https://en.wikipedia.org/wiki/Lambda_calculus lambda calculus] invented by John Tromp. BBλ(n) = the maximum normal form size of any closed lambda term of size n. If you are not familiar with lambda calculus and beta-reduction, I recommend starting with that article.&lt;br /&gt;
&lt;br /&gt;
Size is measured in bits using [https://tromp.github.io/cl/Binary_lambda_calculus.html Binary Lambda Calculus] which is a binary prefix-free encoding for all closed lambda calculus terms.&lt;br /&gt;
&lt;br /&gt;
== Analogy to Turing machines ==&lt;br /&gt;
We evaluate terms by applying &#039;&#039;beta-reductions&#039;&#039; until they reach a &#039;&#039;normal form&#039;&#039;. As an analogy to [[Turing machines]]:&lt;br /&gt;
* &#039;&#039;Lambda terms&#039;&#039; are like TM configurations (tape + state + position).&lt;br /&gt;
* Applying &#039;&#039;beta-reduction&#039;&#039; to a term is like taking a TM step.&lt;br /&gt;
* A term is in &#039;&#039;normal form&#039;&#039; if no beta-reductions can be applied. This is like saying the term has halted.&lt;br /&gt;
* A term may or may not be reducible to a normal form. If it is, this is like saying the term halts.&lt;br /&gt;
* Determining whether a term is reducible to a normal form is an undecidable problem equivalent to the halting problem.&lt;br /&gt;
&lt;br /&gt;
Note: That unlike for Turing machines, evaluating lambda terms is non-deterministic. Specifically, there may be multiple beta-reductions possible in a given term. However, if a term can be reduced to a normal form, that normal form is unique. It is not possible to reduce the original term to any different normal form. A term is &#039;&#039;&#039;strongly normalizing&#039;&#039;&#039; if any choice of beta-reductions will lead to this normal form and &#039;&#039;&#039;weakly normalizing&#039;&#039;&#039; if there exist divergent reduction paths which never reach the normal form.&lt;br /&gt;
&lt;br /&gt;
== Binary Lambda Encoding ==&lt;br /&gt;
A lambda term using [https://en.wikipedia.org/wiki/De_Bruijn_indices De Bruijn indexes] is defined inductively as:&lt;br /&gt;
* Variables: For any &amp;lt;math&amp;gt;n \in \mathbb{Z}^+&amp;lt;/math&amp;gt;, Var(&#039;&#039;n&#039;&#039;) is a term. It represents a variable bound by the lambda expression &#039;&#039;n&#039;&#039; above this one (the De Bruijn index). It is typically written simply as &amp;lt;code&amp;gt;n&amp;lt;/code&amp;gt;.&lt;br /&gt;
* Lambdas: For any term &#039;&#039;T&#039;&#039;, Lam(&#039;&#039;T&#039;&#039;) is a term. It represents a unary function with function body &#039;&#039;T&#039;&#039;. It is typically written &amp;lt;math&amp;gt;\lambda T&amp;lt;/math&amp;gt; or &amp;lt;code&amp;gt;\T&amp;lt;/code&amp;gt;.&lt;br /&gt;
* Applications: For any terms &#039;&#039;T, U&#039;&#039;, App(&#039;&#039;T, U&#039;&#039;) is a term. It represents applying function &#039;&#039;T&#039;&#039; to argument &#039;&#039;U&#039;&#039;. It is typically written &amp;lt;code&amp;gt;(T U)&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
We can think of this as a tree where each variable is a leaf, a lambda is a node with one child and applications are nodes with 2 children. A term is &#039;&#039;&#039;closed&#039;&#039;&#039; if every variable is bound. In other words, for every Var(&#039;&#039;n&#039;&#039;) leaf node, there exists &#039;&#039;n&#039;&#039; Lam() nodes above it in the tree of the term.&lt;br /&gt;
&lt;br /&gt;
Encoding (&#039;&#039;blc()&#039;&#039;) is defined recursively:&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\begin{array}{l}&lt;br /&gt;
  blc(Var(n)) &amp;amp; = &amp;amp; 1^n 0 \\&lt;br /&gt;
  blc(Lam(T)) &amp;amp; = &amp;amp; 00 \; blc(T) \\&lt;br /&gt;
  blc(App(T, U)) &amp;amp; = &amp;amp; 01 \; blc(T) \; blc(U) \\&lt;br /&gt;
\end{array}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For example, the [https://en.wikipedia.org/wiki/Church_encoding#Church_numerals Church numeral] 2: &amp;lt;math&amp;gt;\lambda f x. (f \; (f \; x))&amp;lt;/math&amp;gt; =  &amp;lt;code&amp;gt;\\(2 (2 1))&amp;lt;/code&amp;gt; = &amp;lt;code&amp;gt;Lam(Lam(App(Var(2), App(Var(2), Var(1))))&amp;lt;/code&amp;gt; is encoded as &amp;lt;code&amp;gt;00 00 01 110 01 110 10&amp;lt;/code&amp;gt; or simply &amp;lt;code&amp;gt;0000011100111010&amp;lt;/code&amp;gt; (spaces are not part of the encoding, only used for demonstration purposes) and thus has size 16 bits.&lt;br /&gt;
&lt;br /&gt;
== Text Encoding conventions ==&lt;br /&gt;
For human readability, a text encoding and set of conventions is used in this article. As described earlier we encode a lambda term as:&lt;br /&gt;
* Var(&#039;&#039;n&#039;&#039;) -&amp;gt; &amp;lt;code&amp;gt;n&amp;lt;/code&amp;gt;&lt;br /&gt;
* Lam(&#039;&#039;T&#039;&#039;) -&amp;gt; &amp;lt;code&amp;gt;(\T)&amp;lt;/code&amp;gt;&lt;br /&gt;
* App(&#039;&#039;T, U&#039;&#039;) -&amp;gt; &amp;lt;code&amp;gt;(T U)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
However, parentheses are also dropped in certain cases by convention:&lt;br /&gt;
* The outermost parentheses are dropped: &amp;lt;code&amp;gt;Lam(1)&amp;lt;/code&amp;gt; -&amp;gt; &amp;lt;code&amp;gt;\1&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;App(1, 2)&amp;lt;/code&amp;gt; -&amp;gt; &amp;lt;code&amp;gt;1 2&amp;lt;/code&amp;gt;.&lt;br /&gt;
* Parentheses are dropped immediately inside a Lam: &amp;lt;code&amp;gt;Lam(Lam(1))&amp;lt;/code&amp;gt; -&amp;gt; &amp;lt;code&amp;gt;\\1&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;Lam(App(1, 1))&amp;lt;/code&amp;gt; -&amp;gt; &amp;lt;code&amp;gt;\1 1&amp;lt;/code&amp;gt;.&lt;br /&gt;
* Parentheses are dropped in nested Apps using left associativity: &amp;lt;code&amp;gt;App(App(1, 2), 3)&amp;lt;/code&amp;gt; -&amp;gt; &amp;lt;code&amp;gt;1 2 3&amp;lt;/code&amp;gt;. (Note: parentheses are still required for &amp;lt;code&amp;gt;App(1, App(2, 3))&amp;lt;/code&amp;gt; -&amp;gt; &amp;lt;code&amp;gt;1 (2 3)&amp;lt;/code&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
This is the convention used in John Tromp&#039;s code and so is used here for consistency.&lt;br /&gt;
&lt;br /&gt;
== Champions ==&lt;br /&gt;
There are no closed lambda terms of size 0, 1, 2, 3 or 5 and so BBλ(n) is not defined for those values. The smallest closed lambda term is &amp;lt;code&amp;gt;\1&amp;lt;/code&amp;gt; which has size 4.&lt;br /&gt;
&lt;br /&gt;
For the rest of n ≤ 20: BBλ(n) = n is trivial and can be achieved via picking any n bit term already in normal form. For example &amp;lt;code&amp;gt;\\...\1&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;\\...\2&amp;lt;/code&amp;gt; with k lambdas has size 2k+2 and 2k+3 respectively (for k ≥ 1 and k ≥ 2 respectively).&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!n&lt;br /&gt;
!BBλ(n)&lt;br /&gt;
!Champion&lt;br /&gt;
!# Beta reductions&lt;br /&gt;
!Normal form&lt;br /&gt;
!Discovered By&lt;br /&gt;
|-&lt;br /&gt;
|21 || = 22 || &amp;lt;code&amp;gt;\(\1 1) (1 (\2))&amp;lt;/code&amp;gt;&lt;br /&gt;
|1|| &amp;lt;code&amp;gt;\(1 (\2)) (1 (\2))&amp;lt;/code&amp;gt; || John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
|22 || = 24 || &amp;lt;code&amp;gt;\(\1 1) (1 (\\1))&amp;lt;/code&amp;gt;&lt;br /&gt;
|1|| &amp;lt;code&amp;gt;\(1 (\\1)) (1 (\\1))&amp;lt;/code&amp;gt; ||Shawn Ligocki&lt;br /&gt;
|-&lt;br /&gt;
|   ||      || &amp;lt;code&amp;gt;\(\1 1 1) (1 1)&amp;lt;/code&amp;gt;&lt;br /&gt;
|1|| &amp;lt;code&amp;gt;\(1 1) (1 1) (1 1)&amp;lt;/code&amp;gt; || John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
|23 || = 26 || &amp;lt;code&amp;gt;\(\1 1) (1 (\\2))&amp;lt;/code&amp;gt;&lt;br /&gt;
|1|| &amp;lt;code&amp;gt;\(1 (\\2)) (1 (\\2))&amp;lt;/code&amp;gt; || John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
|24 || = 30 || &amp;lt;code&amp;gt;\(\1 1 1) (1 (\1))&amp;lt;/code&amp;gt;&lt;br /&gt;
|1|| &amp;lt;code&amp;gt;\(1 (\1)) (1 (\1)) (1 (\1))&amp;lt;/code&amp;gt; || John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
|25 || = 42 || &amp;lt;code&amp;gt;\(\1 1) (\1 (2 1))&amp;lt;/code&amp;gt; &lt;br /&gt;
|3|| &amp;lt;code&amp;gt;\1 (\1 (2 1)) (1 (1 (\1 (2 1))))&amp;lt;/code&amp;gt; || John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
|26 || = 52 || &amp;lt;code&amp;gt;(\1 1) (\\2 (1 2))&amp;lt;/code&amp;gt; &lt;br /&gt;
|3|| &amp;lt;code&amp;gt;\\2 (\\2 (1 2)) (1 (2 (\\2 (1 2))))&amp;lt;/code&amp;gt; || John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
|27 || = 44 || &amp;lt;code&amp;gt;\\(\1 1) (\1 (2 1))&amp;lt;/code&amp;gt; &lt;br /&gt;
|3|| &amp;lt;code&amp;gt;\\1 (\1 (2 1)) (1 (1 (\1 (2 1))))&amp;lt;/code&amp;gt; || John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
|28 || = 58 || &amp;lt;code&amp;gt;\(\1 1) (\1 (2 (\2))))&amp;lt;/code&amp;gt; &lt;br /&gt;
|3|| &amp;lt;code&amp;gt;\1 (\\1 (3 (\2))) (1 (\2 (\\1 (4 (\2)))))&amp;lt;/code&amp;gt;|| John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
| 29 || = 223|| &amp;lt;code&amp;gt;\(\1 1) (\1 (1 (2 1)))&amp;lt;/code&amp;gt;&lt;br /&gt;
|4|| &amp;lt;pre&amp;gt;&lt;br /&gt;
\B (B (1 B))&lt;br /&gt;
  where:&lt;br /&gt;
    B = (A (A (1 A)))&lt;br /&gt;
    A = (1 (\1 (1 (2 1))))&lt;br /&gt;
&amp;lt;/pre&amp;gt;||John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
|30&lt;br /&gt;
|= 160&lt;br /&gt;
|&amp;lt;code&amp;gt;(\1 1 1) (\\2 (1 2))&amp;lt;/code&amp;gt;&lt;br /&gt;
|7&lt;br /&gt;
|&amp;lt;pre&amp;gt;&lt;br /&gt;
\\2 B A (1 (2 B A))&lt;br /&gt;
  where:&lt;br /&gt;
    B = (\\2 A (1 (2 A)))&lt;br /&gt;
    A = (\\2 (1 2))&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;code&amp;gt;(\1 (1 1)) (\\2 (1 2))&amp;lt;/code&amp;gt;&lt;br /&gt;
|5&lt;br /&gt;
|Same as above&lt;br /&gt;
|Shawn Ligocki&lt;br /&gt;
|-&lt;br /&gt;
|31&lt;br /&gt;
|= 267&lt;br /&gt;
|&amp;lt;code&amp;gt;(\1 1) (\\2 (2 (1 2)))&amp;lt;/code&amp;gt;&lt;br /&gt;
|6&lt;br /&gt;
|&amp;lt;pre&amp;gt;&lt;br /&gt;
\\2 A (2 A (C (2 A)))&lt;br /&gt;
  where:&lt;br /&gt;
    C = (2 A (2 A (1 B (2 A))))&lt;br /&gt;
    B = (\3 A (3 A (1 (3 A))))&lt;br /&gt;
    A = (\\2 (2 (1 2)))&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
|32&lt;br /&gt;
|= 298&lt;br /&gt;
|&amp;lt;code&amp;gt;\(\1 1) (\1 (1 (2 (\2))))&amp;lt;/code&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
|33&lt;br /&gt;
|= 1812&lt;br /&gt;
|&amp;lt;code&amp;gt;\(\1 1) (\1 (1 (1 (2 1))))&amp;lt;/code&amp;gt;&lt;br /&gt;
|5&lt;br /&gt;
|&amp;lt;pre&amp;gt;&lt;br /&gt;
\C (C (C (1 C)))&lt;br /&gt;
  where:&lt;br /&gt;
    C = (B (B (B (1 B)))&lt;br /&gt;
    B = (A (A (A (1 A)))&lt;br /&gt;
    A = (1 (\1 (1 (1 (2 1)))))&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
|34 || &amp;lt;math&amp;gt;= \ 5 \left(2^{2^{2^2}}\right) + 6 = 327\,686&amp;lt;/math&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;(\1 1 1 1) (\\2 (2 1))&amp;lt;/code&amp;gt; &lt;br /&gt;
| || &amp;lt;math&amp;gt;C(2^{2^{2^2}})&amp;lt;/math&amp;gt; || John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
|35 || &amp;lt;math&amp;gt;\ge 5 \left(3^{3^3}\right) + 6 &amp;gt; 3.8 \times 10^{13}&amp;lt;/math&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;(\1 1 1) (\\2 (2 (2 1)))&amp;lt;/code&amp;gt; &lt;br /&gt;
| || &amp;lt;math&amp;gt;C(3^{3^3})&amp;lt;/math&amp;gt; || John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
|36 || &amp;lt;math&amp;gt;\ge 5 \left(2^{2^{2^3}}\right) + 6 &amp;gt; 5.7 \times 10^{77}&amp;lt;/math&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;(\1 1) (\1 (1 (\\2 (2 1))))&amp;lt;/code&amp;gt;&lt;br /&gt;
| || &amp;lt;math&amp;gt;C(2^{2^{2^3}})&amp;lt;/math&amp;gt;|| John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
|37 || &lt;br /&gt;
|  &lt;br /&gt;
| || ||&lt;br /&gt;
|-&lt;br /&gt;
|38 || &amp;lt;math&amp;gt;\ge 5 \left(2^{2^{2^{2^2}}}\right) + 6 &amp;gt; 10^{10^4}&amp;lt;/math&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;(\1 1 1 1 1) (\\2 (2 1))&amp;lt;/code&amp;gt; &lt;br /&gt;
| || &amp;lt;math&amp;gt;C(2^{2^{2^{2^2}}})&amp;lt;/math&amp;gt; || John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
|39 || &amp;lt;math&amp;gt;\ge 5 \left(3^{3^{3^3}}\right) + 6 &amp;gt; 10^{10^{12}}&amp;lt;/math&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;(\1 1 1 1) (\\2 (2 (2 1)))&amp;lt;/code&amp;gt; &lt;br /&gt;
| || &amp;lt;math&amp;gt;C(3^{3^{3^3}})&amp;lt;/math&amp;gt; || John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
|40 || &amp;lt;math&amp;gt; &amp;gt; 3^{2^{2^{2^{32}+4}}} &amp;gt; 10^{10^{10^{10^{9}}}}&amp;lt;/math&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;(\1 1) (\1 (1 (\\2 (2 1))) 1)&amp;lt;/code&amp;gt;&lt;br /&gt;
| || &amp;lt;math&amp;gt;\lambda x.T(2^{2^{2^{32}+4}}),\;where\;T(0)=x,\;T(n+1)=T(n)\;(T(n)\;C(2))\;T(n)&amp;lt;/math&amp;gt;||mxdys&lt;br /&gt;
|-&lt;br /&gt;
|41 || &lt;br /&gt;
|  &lt;br /&gt;
| || ||&lt;br /&gt;
|-&lt;br /&gt;
|42 || &amp;lt;math&amp;gt;\ge 5 \left(2 \uparrow\uparrow 6\right) + 6 &amp;gt; 10^{10^{10^4}}&amp;lt;/math&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;(\1 1 1 1 1 1) (\\2 (2 1))&amp;lt;/code&amp;gt; &lt;br /&gt;
| || &amp;lt;math&amp;gt;C(2 \uparrow\uparrow 6)&amp;lt;/math&amp;gt; ||&lt;br /&gt;
|-&lt;br /&gt;
|43 || &amp;lt;math&amp;gt;\ge 5 \left(3 \uparrow\uparrow 5\right) + 6 &amp;gt; 10^{10^{10^{12}}}&amp;lt;/math&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;(\1 1 1 1 1) (\\2 (2 (2 1)))&amp;lt;/code&amp;gt; &lt;br /&gt;
| || &amp;lt;math&amp;gt;C(3 \uparrow\uparrow 5)&amp;lt;/math&amp;gt; ||&lt;br /&gt;
|-&lt;br /&gt;
|44 || &amp;lt;math&amp;gt; &amp;gt; (2\uparrow)^{14} 2059 &amp;gt; 10 \uparrow\uparrow 15&amp;lt;/math&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;(\1 1 1 (\1 1) 1) (\\2 (2 1))&amp;lt;/code&amp;gt; &lt;br /&gt;
| || &amp;lt;math&amp;gt;C((\lambda x.x^x)^{16}(2))&amp;lt;/math&amp;gt; ||&lt;br /&gt;
|-&lt;br /&gt;
|45 || &amp;lt;math&amp;gt; &amp;gt; 3 \uparrow\uparrow 28 &amp;gt; 10 \uparrow\uparrow 27&amp;lt;/math&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;(\1 1 (\1 1) 1) (\\2 (2 (2 1)))&amp;lt;/code&amp;gt; &lt;br /&gt;
| || &amp;lt;math&amp;gt;C((\lambda x.x^x)^{27}(3))&amp;lt;/math&amp;gt; ||&lt;br /&gt;
|-&lt;br /&gt;
|46 || &amp;lt;math&amp;gt; &amp;gt; 256 \uparrow\uparrow 257 &amp;gt; 10 \uparrow\uparrow 257&amp;lt;/math&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;(\1 (\1 (\1 1) 1) 1) (\\2 (2 1))&amp;lt;/code&amp;gt; &lt;br /&gt;
| || &amp;lt;math&amp;gt;C((\lambda x.x^x)^{256}(256))&amp;lt;/math&amp;gt; ||&lt;br /&gt;
|-&lt;br /&gt;
|47 || &lt;br /&gt;
|  &lt;br /&gt;
| || ||&lt;br /&gt;
|-&lt;br /&gt;
|48 || &amp;lt;math&amp;gt; &amp;gt; (2\uparrow)^{65534} 2059 &amp;gt; 10 \uparrow\uparrow 65535&amp;lt;/math&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;(\1 1 1 1 (\1 1) 1) (\\2 (2 1))&amp;lt;/code&amp;gt; &lt;br /&gt;
| || &amp;lt;math&amp;gt;C((\lambda x.x^x)^{65536}(2))&amp;lt;/math&amp;gt; ||&lt;br /&gt;
|-&lt;br /&gt;
|49&lt;br /&gt;
|&amp;lt;math&amp;gt;&amp;gt; f_{\omega+1}\left(\frac{2 \uparrow\uparrow 6}{2}\right) &amp;gt; \text{Graham&#039;s number}&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;(\1 1) (\1 (1 (\\1 2 (\\2 (2 1)))))&amp;lt;/code&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;math&amp;gt;C(N) \text{ for } N \approx f_{\omega+1}\left(\frac{2 \uparrow\uparrow 6}{2}\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
|[https://github.com/tromp/AIT/blob/master/fast_growing_and_conjectures/melo.lam Gustavo Melo]&lt;br /&gt;
|-&lt;br /&gt;
|...&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|1850&lt;br /&gt;
|&amp;gt; Loader&#039;s number&lt;br /&gt;
|&amp;lt;code&amp;gt;too large to show&amp;lt;/code&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|[https://codegolf.stackexchange.com/questions/176966/golf-a-number-bigger-than-loaders-number/274634#274634 John Tromp]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Where &amp;lt;math&amp;gt;C(n)&amp;lt;/math&amp;gt; represents the Church numeral &#039;&#039;n&#039;&#039; (&amp;lt;math&amp;gt;\lambda f x. f^n(x)&amp;lt;/math&amp;gt;) written as &amp;lt;code&amp;gt;\\2 (2 ... (2 1)...)&amp;lt;/code&amp;gt; with &#039;&#039;n&#039;&#039; 2s in this text representation.&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
&lt;br /&gt;
* https://oeis.org/A333479&lt;br /&gt;
* [https://tromp.github.io/blog/2023/11/24/largest-number The largest number representable in 64 bits]. 24 Nov 2023. John Tromp.&lt;br /&gt;
* [https://tromp.github.io/cl/Binary_lambda_calculus.html Binary Lambda Calculus]. John Tromp.&lt;br /&gt;
* https://github.com/tromp/AIT/tree/master/BB&lt;/div&gt;</summary>
		<author><name>Mxdys</name></author>
	</entry>
	<entry>
		<id>https://wiki.bbchallenge.org/w/index.php?title=Busy_Beaver_for_lambda_calculus&amp;diff=1775</id>
		<title>Busy Beaver for lambda calculus</title>
		<link rel="alternate" type="text/html" href="https://wiki.bbchallenge.org/w/index.php?title=Busy_Beaver_for_lambda_calculus&amp;diff=1775"/>
		<updated>2025-04-10T18:26:12Z</updated>

		<summary type="html">&lt;p&gt;Mxdys: fix typo in BBλ(36)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;Busy Beaver for lambda calculus&#039;&#039;&#039; (&#039;&#039;&#039;BBλ&#039;&#039;&#039;) is a variation of the [[Busy Beaver]] problem for [https://en.wikipedia.org/wiki/Lambda_calculus lambda calculus] invented by John Tromp. BBλ(n) = the maximum normal form size of any closed lambda term of size n. If you are not familiar with lambda calculus and beta-reduction, I recommend starting with that article.&lt;br /&gt;
&lt;br /&gt;
Size is measured in bits using [https://tromp.github.io/cl/Binary_lambda_calculus.html Binary Lambda Calculus] which is a binary prefix-free encoding for all closed lambda calculus terms.&lt;br /&gt;
&lt;br /&gt;
== Analogy to Turing machines ==&lt;br /&gt;
We evaluate terms by applying &#039;&#039;beta-reductions&#039;&#039; until they reach a &#039;&#039;normal form&#039;&#039;. As an analogy to [[Turing machines]]:&lt;br /&gt;
* &#039;&#039;Lambda terms&#039;&#039; are like TM configurations (tape + state + position).&lt;br /&gt;
* Applying &#039;&#039;beta-reduction&#039;&#039; to a term is like taking a TM step.&lt;br /&gt;
* A term is in &#039;&#039;normal form&#039;&#039; if no beta-reductions can be applied. This is like saying the term has halted.&lt;br /&gt;
* A term may or may not be reducible to a normal form. If it is, this is like saying the term halts.&lt;br /&gt;
* Determining whether a term is reducible to a normal form is an undecidable problem equivalent to the halting problem.&lt;br /&gt;
&lt;br /&gt;
Note: That unlike for Turing machines, evaluating lambda terms is non-deterministic. Specifically, there may be multiple beta-reductions possible in a given term. However, if a term can be reduced to a normal form, that normal form is unique. It is not possible to reduce the original term to any different normal form. A term is &#039;&#039;&#039;strongly normalizing&#039;&#039;&#039; if any choice of beta-reductions will lead to this normal form and &#039;&#039;&#039;weakly normalizing&#039;&#039;&#039; if there exist divergent reduction paths which never reach the normal form.&lt;br /&gt;
&lt;br /&gt;
== Binary Lambda Encoding ==&lt;br /&gt;
A lambda term using [https://en.wikipedia.org/wiki/De_Bruijn_indices De Bruijn indexes] is defined inductively as:&lt;br /&gt;
* Variables: For any &amp;lt;math&amp;gt;n \in \mathbb{Z}^+&amp;lt;/math&amp;gt;, Var(&#039;&#039;n&#039;&#039;) is a term. It represents a variable bound by the lambda expression &#039;&#039;n&#039;&#039; above this one (the De Bruijn index). It is typically written simply as &amp;lt;code&amp;gt;n&amp;lt;/code&amp;gt;.&lt;br /&gt;
* Lambdas: For any term &#039;&#039;T&#039;&#039;, Lam(&#039;&#039;T&#039;&#039;) is a term. It represents a unary function with function body &#039;&#039;T&#039;&#039;. It is typically written &amp;lt;math&amp;gt;\lambda T&amp;lt;/math&amp;gt; or &amp;lt;code&amp;gt;\T&amp;lt;/code&amp;gt;.&lt;br /&gt;
* Applications: For any terms &#039;&#039;T, U&#039;&#039;, App(&#039;&#039;T, U&#039;&#039;) is a term. It represents applying function &#039;&#039;T&#039;&#039; to argument &#039;&#039;U&#039;&#039;. It is typically written &amp;lt;code&amp;gt;(T U)&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
We can think of this as a tree where each variable is a leaf, a lambda is a node with one child and applications are nodes with 2 children. A term is &#039;&#039;&#039;closed&#039;&#039;&#039; if every variable is bound. In other words, for every Var(&#039;&#039;n&#039;&#039;) leaf node, there exists &#039;&#039;n&#039;&#039; Lam() nodes above it in the tree of the term.&lt;br /&gt;
&lt;br /&gt;
Encoding (&#039;&#039;blc()&#039;&#039;) is defined recursively:&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\begin{array}{l}&lt;br /&gt;
  blc(Var(n)) &amp;amp; = &amp;amp; 1^n 0 \\&lt;br /&gt;
  blc(Lam(T)) &amp;amp; = &amp;amp; 00 \; blc(T) \\&lt;br /&gt;
  blc(App(T, U)) &amp;amp; = &amp;amp; 01 \; blc(T) \; blc(U) \\&lt;br /&gt;
\end{array}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For example, the [https://en.wikipedia.org/wiki/Church_encoding#Church_numerals Church numeral] 2: &amp;lt;math&amp;gt;\lambda f x. (f \; (f \; x))&amp;lt;/math&amp;gt; =  &amp;lt;code&amp;gt;\\(2 (2 1))&amp;lt;/code&amp;gt; = &amp;lt;code&amp;gt;Lam(Lam(App(Var(2), App(Var(2), Var(1))))&amp;lt;/code&amp;gt; is encoded as &amp;lt;code&amp;gt;00 00 01 110 01 110 10&amp;lt;/code&amp;gt; or simply &amp;lt;code&amp;gt;0000011100111010&amp;lt;/code&amp;gt; (spaces are not part of the encoding, only used for demonstration purposes) and thus has size 16 bits.&lt;br /&gt;
&lt;br /&gt;
== Text Encoding conventions ==&lt;br /&gt;
For human readability, a text encoding and set of conventions is used in this article. As described earlier we encode a lambda term as:&lt;br /&gt;
* Var(&#039;&#039;n&#039;&#039;) -&amp;gt; &amp;lt;code&amp;gt;n&amp;lt;/code&amp;gt;&lt;br /&gt;
* Lam(&#039;&#039;T&#039;&#039;) -&amp;gt; &amp;lt;code&amp;gt;(\T)&amp;lt;/code&amp;gt;&lt;br /&gt;
* App(&#039;&#039;T, U&#039;&#039;) -&amp;gt; &amp;lt;code&amp;gt;(T U)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
However, parentheses are also dropped in certain cases by convention:&lt;br /&gt;
* The outermost parentheses are dropped: &amp;lt;code&amp;gt;Lam(1)&amp;lt;/code&amp;gt; -&amp;gt; &amp;lt;code&amp;gt;\1&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;App(1, 2)&amp;lt;/code&amp;gt; -&amp;gt; &amp;lt;code&amp;gt;1 2&amp;lt;/code&amp;gt;.&lt;br /&gt;
* Parentheses are dropped immediately inside a Lam: &amp;lt;code&amp;gt;Lam(Lam(1))&amp;lt;/code&amp;gt; -&amp;gt; &amp;lt;code&amp;gt;\\1&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;Lam(App(1, 1))&amp;lt;/code&amp;gt; -&amp;gt; &amp;lt;code&amp;gt;\1 1&amp;lt;/code&amp;gt;.&lt;br /&gt;
* Parentheses are dropped in nested Apps using left associativity: &amp;lt;code&amp;gt;App(App(1, 2), 3)&amp;lt;/code&amp;gt; -&amp;gt; &amp;lt;code&amp;gt;1 2 3&amp;lt;/code&amp;gt;. (Note: parentheses are still required for &amp;lt;code&amp;gt;App(1, App(2, 3))&amp;lt;/code&amp;gt; -&amp;gt; &amp;lt;code&amp;gt;1 (2 3)&amp;lt;/code&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
This is the convention used in John Tromp&#039;s code and so is used here for consistency.&lt;br /&gt;
&lt;br /&gt;
== Champions ==&lt;br /&gt;
There are no closed lambda terms of size 0, 1, 2, 3 or 5 and so BBλ(n) is not defined for those values. The smallest closed lambda term is &amp;lt;code&amp;gt;\1&amp;lt;/code&amp;gt; which has size 4.&lt;br /&gt;
&lt;br /&gt;
For the rest of n ≤ 20: BBλ(n) = n is trivial and can be achieved via picking any n bit term already in normal form. For example &amp;lt;code&amp;gt;\\...\1&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;\\...\2&amp;lt;/code&amp;gt; with k lambdas has size 2k+2 and 2k+3 respectively (for k ≥ 1 and k ≥ 2 respectively).&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!n&lt;br /&gt;
!BBλ(n)&lt;br /&gt;
!Champion&lt;br /&gt;
!# Beta reductions&lt;br /&gt;
!Normal form&lt;br /&gt;
!Discovered By&lt;br /&gt;
|-&lt;br /&gt;
|21 || = 22 || &amp;lt;code&amp;gt;\(\1 1) (1 (\2))&amp;lt;/code&amp;gt;&lt;br /&gt;
|1|| &amp;lt;code&amp;gt;\(1 (\2)) (1 (\2))&amp;lt;/code&amp;gt; || John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
|22 || = 24 || &amp;lt;code&amp;gt;\(\1 1) (1 (\\1))&amp;lt;/code&amp;gt;&lt;br /&gt;
|1|| &amp;lt;code&amp;gt;\(1 (\\1)) (1 (\\1))&amp;lt;/code&amp;gt; ||Shawn Ligocki&lt;br /&gt;
|-&lt;br /&gt;
|   ||      || &amp;lt;code&amp;gt;\(\1 1 1) (1 1)&amp;lt;/code&amp;gt;&lt;br /&gt;
|1|| &amp;lt;code&amp;gt;\(1 1) (1 1) (1 1)&amp;lt;/code&amp;gt; || John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
|23 || = 26 || &amp;lt;code&amp;gt;\(\1 1) (1 (\\2))&amp;lt;/code&amp;gt;&lt;br /&gt;
|1|| &amp;lt;code&amp;gt;\(1 (\\2)) (1 (\\2))&amp;lt;/code&amp;gt; || John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
|24 || = 30 || &amp;lt;code&amp;gt;\(\1 1 1) (1 (\1))&amp;lt;/code&amp;gt;&lt;br /&gt;
|1|| &amp;lt;code&amp;gt;\(1 (\1)) (1 (\1)) (1 (\1))&amp;lt;/code&amp;gt; || John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
|25 || = 42 || &amp;lt;code&amp;gt;\(\1 1) (\1 (2 1))&amp;lt;/code&amp;gt; &lt;br /&gt;
|3|| &amp;lt;code&amp;gt;\1 (\1 (2 1)) (1 (1 (\1 (2 1))))&amp;lt;/code&amp;gt; || John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
|26 || = 52 || &amp;lt;code&amp;gt;(\1 1) (\\2 (1 2))&amp;lt;/code&amp;gt; &lt;br /&gt;
|3|| &amp;lt;code&amp;gt;\\2 (\\2 (1 2)) (1 (2 (\\2 (1 2))))&amp;lt;/code&amp;gt; || John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
|27 || = 44 || &amp;lt;code&amp;gt;\\(\1 1) (\1 (2 1))&amp;lt;/code&amp;gt; &lt;br /&gt;
|3|| &amp;lt;code&amp;gt;\\1 (\1 (2 1)) (1 (1 (\1 (2 1))))&amp;lt;/code&amp;gt; || John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
|28 || = 58 || &amp;lt;code&amp;gt;\(\1 1) (\1 (2 (\2))))&amp;lt;/code&amp;gt; &lt;br /&gt;
|3|| &amp;lt;code&amp;gt;\1 (\\1 (3 (\2))) (1 (\2 (\\1 (4 (\2)))))&amp;lt;/code&amp;gt;|| John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
| 29 || = 223|| &amp;lt;code&amp;gt;\(\1 1) (\1 (1 (2 1)))&amp;lt;/code&amp;gt;&lt;br /&gt;
|4|| &amp;lt;pre&amp;gt;&lt;br /&gt;
\B (B (1 B))&lt;br /&gt;
  where:&lt;br /&gt;
    B = (A (A (1 A)))&lt;br /&gt;
    A = (1 (\1 (1 (2 1))))&lt;br /&gt;
&amp;lt;/pre&amp;gt;||John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
|30&lt;br /&gt;
|= 160&lt;br /&gt;
|&amp;lt;code&amp;gt;(\1 1 1) (\\2 (1 2))&amp;lt;/code&amp;gt;&lt;br /&gt;
|7&lt;br /&gt;
|&amp;lt;pre&amp;gt;&lt;br /&gt;
\\2 B A (1 (2 B A))&lt;br /&gt;
  where:&lt;br /&gt;
    B = (\\2 A (1 (2 A)))&lt;br /&gt;
    A = (\\2 (1 2))&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;code&amp;gt;(\1 (1 1)) (\\2 (1 2))&amp;lt;/code&amp;gt;&lt;br /&gt;
|5&lt;br /&gt;
|Same as above&lt;br /&gt;
|Shawn Ligocki&lt;br /&gt;
|-&lt;br /&gt;
|31&lt;br /&gt;
|= 267&lt;br /&gt;
|&amp;lt;code&amp;gt;(\1 1) (\\2 (2 (1 2)))&amp;lt;/code&amp;gt;&lt;br /&gt;
|6&lt;br /&gt;
|&amp;lt;pre&amp;gt;&lt;br /&gt;
\\2 A (2 A (C (2 A)))&lt;br /&gt;
  where:&lt;br /&gt;
    C = (2 A (2 A (1 B (2 A))))&lt;br /&gt;
    B = (\3 A (3 A (1 (3 A))))&lt;br /&gt;
    A = (\\2 (2 (1 2)))&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
|32&lt;br /&gt;
|= 298&lt;br /&gt;
|&amp;lt;code&amp;gt;\(\1 1) (\1 (1 (2 (\2))))&amp;lt;/code&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
|33&lt;br /&gt;
|= 1812&lt;br /&gt;
|&amp;lt;code&amp;gt;\(\1 1) (\1 (1 (1 (2 1))))&amp;lt;/code&amp;gt;&lt;br /&gt;
|5&lt;br /&gt;
|&amp;lt;pre&amp;gt;&lt;br /&gt;
\C (C (C (1 C)))&lt;br /&gt;
  where:&lt;br /&gt;
    C = (B (B (B (1 B)))&lt;br /&gt;
    B = (A (A (A (1 A)))&lt;br /&gt;
    A = (1 (\1 (1 (1 (2 1)))))&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
|34 || &amp;lt;math&amp;gt;= \ 5 \left(2^{2^{2^2}}\right) + 6 = 327\,686&amp;lt;/math&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;(\1 1 1 1) (\\2 (2 1))&amp;lt;/code&amp;gt; &lt;br /&gt;
| || &amp;lt;math&amp;gt;C(2^{2^{2^2}})&amp;lt;/math&amp;gt; || John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
|35 || &amp;lt;math&amp;gt;\ge 5 \left(3^{3^3}\right) + 6 &amp;gt; 3.8 \times 10^{13}&amp;lt;/math&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;(\1 1 1) (\\2 (2 (2 1)))&amp;lt;/code&amp;gt; &lt;br /&gt;
| || &amp;lt;math&amp;gt;C(3^{3^3})&amp;lt;/math&amp;gt; || John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
|36 || &amp;lt;math&amp;gt;\ge 5 \left(2^{2^{2^3}}\right) + 6 &amp;gt; 5.7 \times 10^{77}&amp;lt;/math&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;(\1 1) (\1 (1 (\\2 (2 1))))&amp;lt;/code&amp;gt;&lt;br /&gt;
| || &amp;lt;math&amp;gt;C(2^{2^{2^3}})&amp;lt;/math&amp;gt;|| John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
|37 || &lt;br /&gt;
|  &lt;br /&gt;
| || ||&lt;br /&gt;
|-&lt;br /&gt;
|38 || &amp;lt;math&amp;gt;\ge 5 \left(2^{2^{2^{2^2}}}\right) + 6 &amp;gt; 10^{10^4}&amp;lt;/math&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;(\1 1 1 1 1) (\\2 (2 1))&amp;lt;/code&amp;gt; &lt;br /&gt;
| || &amp;lt;math&amp;gt;C(2^{2^{2^{2^2}}})&amp;lt;/math&amp;gt; || John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
|39 || &amp;lt;math&amp;gt;\ge 5 \left(3^{3^{3^3}}\right) + 6 &amp;gt; 10^{10^{12}}&amp;lt;/math&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;(\1 1 1 1) (\\2 (2 (2 1)))&amp;lt;/code&amp;gt; &lt;br /&gt;
| || &amp;lt;math&amp;gt;C(3^{3^{3^3}})&amp;lt;/math&amp;gt; || John Tromp &amp;amp;  Bertram Felgenhauer&lt;br /&gt;
|-&lt;br /&gt;
|40 || &amp;lt;math&amp;gt; &amp;gt; 5 \left(2^{2^{2059}}\right) + 6 &amp;gt; 10^{10^{619}}&amp;lt;/math&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;(\1 1 (\1 1) 1) (\\2 (2 1))&amp;lt;/code&amp;gt; &lt;br /&gt;
| || &amp;lt;math&amp;gt;C(2^{2^{2059}})&amp;lt;/math&amp;gt; ||&lt;br /&gt;
|-&lt;br /&gt;
|41 || &lt;br /&gt;
|  &lt;br /&gt;
| || ||&lt;br /&gt;
|-&lt;br /&gt;
|42 || &amp;lt;math&amp;gt;\ge 5 \left(2 \uparrow\uparrow 6\right) + 6 &amp;gt; 10^{10^{10^4}}&amp;lt;/math&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;(\1 1 1 1 1 1) (\\2 (2 1))&amp;lt;/code&amp;gt; &lt;br /&gt;
| || &amp;lt;math&amp;gt;C(2 \uparrow\uparrow 6)&amp;lt;/math&amp;gt; ||&lt;br /&gt;
|-&lt;br /&gt;
|43 || &amp;lt;math&amp;gt;\ge 5 \left(3 \uparrow\uparrow 5\right) + 6 &amp;gt; 10^{10^{10^{12}}}&amp;lt;/math&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;(\1 1 1 1 1) (\\2 (2 (2 1)))&amp;lt;/code&amp;gt; &lt;br /&gt;
| || &amp;lt;math&amp;gt;C(3 \uparrow\uparrow 5)&amp;lt;/math&amp;gt; ||&lt;br /&gt;
|-&lt;br /&gt;
|44 || &amp;lt;math&amp;gt; &amp;gt; (2\uparrow)^{14} 2059 &amp;gt; 10 \uparrow\uparrow 15&amp;lt;/math&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;(\1 1 1 (\1 1) 1) (\\2 (2 1))&amp;lt;/code&amp;gt; &lt;br /&gt;
| || &amp;lt;math&amp;gt;C((\lambda x.x^x)^{16}(2))&amp;lt;/math&amp;gt; ||&lt;br /&gt;
|-&lt;br /&gt;
|45 || &amp;lt;math&amp;gt; &amp;gt; 3 \uparrow\uparrow 28 &amp;gt; 10 \uparrow\uparrow 27&amp;lt;/math&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;(\1 1 (\1 1) 1) (\\2 (2 (2 1)))&amp;lt;/code&amp;gt; &lt;br /&gt;
| || &amp;lt;math&amp;gt;C((\lambda x.x^x)^{27}(3))&amp;lt;/math&amp;gt; ||&lt;br /&gt;
|-&lt;br /&gt;
|46 || &amp;lt;math&amp;gt; &amp;gt; 256 \uparrow\uparrow 257 &amp;gt; 10 \uparrow\uparrow 257&amp;lt;/math&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;(\1 (\1 (\1 1) 1) 1) (\\2 (2 1))&amp;lt;/code&amp;gt; &lt;br /&gt;
| || &amp;lt;math&amp;gt;C((\lambda x.x^x)^{256}(256))&amp;lt;/math&amp;gt; ||&lt;br /&gt;
|-&lt;br /&gt;
|47 || &lt;br /&gt;
|  &lt;br /&gt;
| || ||&lt;br /&gt;
|-&lt;br /&gt;
|48 || &amp;lt;math&amp;gt; &amp;gt; (2\uparrow)^{65534} 2059 &amp;gt; 10 \uparrow\uparrow 65535&amp;lt;/math&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;(\1 1 1 1 (\1 1) 1) (\\2 (2 1))&amp;lt;/code&amp;gt; &lt;br /&gt;
| || &amp;lt;math&amp;gt;C((\lambda x.x^x)^{65536}(2))&amp;lt;/math&amp;gt; ||&lt;br /&gt;
|-&lt;br /&gt;
|49&lt;br /&gt;
|&amp;lt;math&amp;gt;&amp;gt; f_{\omega+1}\left(\frac{2 \uparrow\uparrow 6}{2}\right) &amp;gt; \text{Graham&#039;s number}&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;(\1 1) (\1 (1 (\\1 2 (\\2 (2 1)))))&amp;lt;/code&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;math&amp;gt;C(N) \text{ for } N \approx f_{\omega+1}\left(\frac{2 \uparrow\uparrow 6}{2}\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
|[https://github.com/tromp/AIT/blob/master/fast_growing_and_conjectures/melo.lam Gustavo Melo]&lt;br /&gt;
|-&lt;br /&gt;
|...&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|1850&lt;br /&gt;
|&amp;gt; Loader&#039;s number&lt;br /&gt;
|&amp;lt;code&amp;gt;too large to show&amp;lt;/code&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|[https://codegolf.stackexchange.com/questions/176966/golf-a-number-bigger-than-loaders-number/274634#274634 John Tromp]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Where &amp;lt;math&amp;gt;C(n)&amp;lt;/math&amp;gt; represents the Church numeral &#039;&#039;n&#039;&#039; (&amp;lt;math&amp;gt;\lambda f x. f^n(x)&amp;lt;/math&amp;gt;) written as &amp;lt;code&amp;gt;\\2 (2 ... (2 1)...)&amp;lt;/code&amp;gt; with &#039;&#039;n&#039;&#039; 2s in this text representation.&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
&lt;br /&gt;
* https://oeis.org/A333479&lt;br /&gt;
* [https://tromp.github.io/blog/2023/11/24/largest-number The largest number representable in 64 bits]. 24 Nov 2023. John Tromp.&lt;br /&gt;
* [https://tromp.github.io/cl/Binary_lambda_calculus.html Binary Lambda Calculus]. John Tromp.&lt;br /&gt;
* https://github.com/tromp/AIT/tree/master/BB&lt;/div&gt;</summary>
		<author><name>Mxdys</name></author>
	</entry>
	<entry>
		<id>https://wiki.bbchallenge.org/w/index.php?title=Sequences&amp;diff=1769</id>
		<title>Sequences</title>
		<link rel="alternate" type="text/html" href="https://wiki.bbchallenge.org/w/index.php?title=Sequences&amp;diff=1769"/>
		<updated>2025-04-07T23:50:24Z</updated>

		<summary type="html">&lt;p&gt;Mxdys: group by position in arithmetical hierarchy&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page lists sequences related to the Busy Beaver functions.&lt;br /&gt;
&lt;br /&gt;
These tables are incomplete, you can help by adding missing items. If you add a value, please add a reference to a paper or code with which it was computed/proved if possible.&lt;br /&gt;
&lt;br /&gt;
If the &amp;quot;canonical&amp;quot; values of a sequence are maintained on another Wiki page, please link to that, instead of replicating them here.&lt;br /&gt;
&lt;br /&gt;
=== Computable Sequences ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Sequence Name&lt;br /&gt;
!Description&lt;br /&gt;
!Values&lt;br /&gt;
![[oeis:|OEIS]] sequence&lt;br /&gt;
|-&lt;br /&gt;
|2-symbol TM count&lt;br /&gt;
|Number of n-state, 2-symbol, d+ in {LEFT, RIGHT}, 5-tuple (q, s, q+, s+, d+) (halting or not) Turing machines.&lt;br /&gt;
|&lt;br /&gt;
|[[oeis:A052200|A052200]]&lt;br /&gt;
|-&lt;br /&gt;
|Number of n-state 2-symbol halt-free TMs&lt;br /&gt;
|A Turing machine is halt-free if none of its instructions lead to the halt state.&lt;br /&gt;
|&lt;br /&gt;
|[[oeis:A337025|A337025]]&lt;br /&gt;
|-&lt;br /&gt;
|[[Lazy Beaver]]&lt;br /&gt;
|The smallest positive number of steps a(n) such that no n-state Turing machine halts in exactly a(n) steps on an initially blank tape.&lt;br /&gt;
|LB(1)=2, LB(2)=7, LB(3)=22, LB(4)=72, LB(5)=427&lt;br /&gt;
|[[oeis:A337805|A337805]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Noncomputable Sequences ===&lt;br /&gt;
The following sequences depend on the specific behavior of programs.&lt;br /&gt;
&lt;br /&gt;
TODO: group by position in arithmetical hierarchy&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Sequence Name&lt;br /&gt;
!Symbol&lt;br /&gt;
!Description&lt;br /&gt;
!Values&lt;br /&gt;
![[oeis:|OEIS]] sequence&lt;br /&gt;
!Position in Arithmetical Hierarchy&lt;br /&gt;
|-&lt;br /&gt;
|[[Busy Beaver Functions#Max Shift Function S(n, m)|Max Shift Function]]&lt;br /&gt;
|S(n, m)&lt;br /&gt;
|The maximal number of steps that an n-state, m-symbol Turing machine can make on an initially blank tape before eventually halting.&lt;br /&gt;
|[[Main Page|see the Main Page]]&lt;br /&gt;
|[[oeis:A060843|A060843]]&lt;br /&gt;
|Π1&lt;br /&gt;
|-&lt;br /&gt;
|[[Busy Beaver Functions#Max Score Function Σ(n, m)|Max Score Function]]&lt;br /&gt;
|Σ(n, m)&lt;br /&gt;
|Maximal number of 1&#039;s that an n-state, m-symbol Turing machine can print on an initially blank tape before halting.&lt;br /&gt;
|&lt;br /&gt;
|[[oeis:A028444|A028444]]&lt;br /&gt;
|Π1&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|BB_SPACE(n,m)&lt;br /&gt;
|Maximum number of memory cells visited by a halting Turing machine with n states and m symbols starting from all-0 memory tape&lt;br /&gt;
|BB_SPACE(1,2)=2, BB_SPACE(2,2)=4, BB_SPACE(3,2)=7, BB_SPACE(4,2)=16&lt;br /&gt;
| -&lt;br /&gt;
|Π1&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|Number of n-state Turing machines which halt.&lt;br /&gt;
|&lt;br /&gt;
|[[oeis:A004147|A004147]]&lt;br /&gt;
|Π1&lt;br /&gt;
|-&lt;br /&gt;
|[[Beeping Busy Beaver]]&lt;br /&gt;
|BBB(n)&lt;br /&gt;
|The latest possible step that any 2-symbol TM with n states exits a chosen state finitely many times&lt;br /&gt;
|see [[Beeping Busy Beaver#Results]]&lt;br /&gt;
| -&lt;br /&gt;
|Π2&lt;br /&gt;
|-&lt;br /&gt;
|[https://nickdrozd.github.io/2021/02/14/blanking-beavers.html Blanking Beavers]&lt;br /&gt;
|&lt;br /&gt;
|The maximum number of steps that an n-state m-symbol Turing machine can make on an initially blank tape until it is blank again (halting or not)&lt;br /&gt;
|&lt;br /&gt;
| -&lt;br /&gt;
|Π1&lt;br /&gt;
|-&lt;br /&gt;
|BB_clean&lt;br /&gt;
|&lt;br /&gt;
|The maximum number of steps that an n-state 2-symbol Turing machine can make on an initially blank tape until it halts on a blank tape&lt;br /&gt;
|(see comments #75 and #77 [https://scottaaronson.blog/?p=5661 here])&lt;br /&gt;
|&lt;br /&gt;
|Π1&lt;br /&gt;
|-&lt;br /&gt;
|BB_ones&lt;br /&gt;
|&lt;br /&gt;
|The maximum number of 1&#039;s that an n-state 2-symbol Turing machine can make in a row, before halting on a 0 next to it&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|Π1&lt;br /&gt;
|-&lt;br /&gt;
|Size of the Runtime Spectrum&lt;br /&gt;
|&lt;br /&gt;
|The number of distinct runtimes for a machine with a given number of symbols, for increasing number of states&lt;br /&gt;
|see &amp;quot;The Spectrum of Runtimes&amp;quot; in &amp;quot;[https://www.scottaaronson.com/papers/bb.pdf The Busy Beaver Frontier]&amp;quot;&lt;br /&gt;
|&lt;br /&gt;
|Π1&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|#S(n, m)&lt;br /&gt;
|The number of programs that halt after exactly S(n,m) steps ([[Busy Beaver Functions#Max Shift Function S(n, m)|Max Shift]]) for each n of a given m (including all equivalent transformations)&lt;br /&gt;
|#S(1,2)=32, #S(2,2)=40, #S(3,2)=16&lt;br /&gt;
| -&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|#Σ(n, m)&lt;br /&gt;
|The number of programs that halt with Σ(n, m) 1&#039;s on the tape ([[Busy Beaver Functions#Max Score Function Σ(n, m)|Max Score]]) for each n of a given m (including all equivalent transformations)&lt;br /&gt;
|#Σ(1,2)=16, #Σ(2,2)=4, #Σ(3,2)=40&lt;br /&gt;
| -&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|#BB_SPACE(n,m)&lt;br /&gt;
|The number of programs that visited the most number of tape cells for a given (n,m) (including all equivalent transformations)&lt;br /&gt;
|#BB_SPACE(1,2)=32, #BB_SPACE(2,2)=24, #BB_SPACE(3,2)=48&lt;br /&gt;
| -&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|The number of non-halting programs with n states which reach infinitely many tape cells&lt;br /&gt;
|&lt;br /&gt;
| -&lt;br /&gt;
|Π1&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|The average number of states that are reached infinitely many times, among all non-halting turing machines with n states&lt;br /&gt;
|&lt;br /&gt;
| -&lt;br /&gt;
|&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== More possibilities ===&lt;br /&gt;
&lt;br /&gt;
* The number of distinct final tape states of halting machines with n states and m symbols, for some definition of &amp;quot;distinct&amp;quot;&lt;br /&gt;
* Any of the above for machines with more than one tape, or tapes with more dimensions (2d grid, 3d, n-d...)&lt;br /&gt;
* Machines with a finite tape, or a circular one of a certain length&lt;br /&gt;
&lt;br /&gt;
=== Further information ===&lt;br /&gt;
For more information on sequences, see the [[oeis:wiki/Busy_Beaver_numbers|OEIS Wiki: Busy Beaver Numbers]], [https://oeis.org/search?q=busy+beaver OEIS search: &amp;quot;busy beaver&amp;quot;] and [[oeis:wiki/Index_to_OEIS:_Section_Br#beaver|OEIS Wiki: &amp;quot;related to busy beaver&amp;quot;]]&lt;/div&gt;</summary>
		<author><name>Mxdys</name></author>
	</entry>
	<entry>
		<id>https://wiki.bbchallenge.org/w/index.php?title=Closed_Tape_Language&amp;diff=1695</id>
		<title>Closed Tape Language</title>
		<link rel="alternate" type="text/html" href="https://wiki.bbchallenge.org/w/index.php?title=Closed_Tape_Language&amp;diff=1695"/>
		<updated>2025-03-11T18:00:26Z</updated>

		<summary type="html">&lt;p&gt;Mxdys: fix RWL_mod definition&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Closed tape language (CTL) is a class of methods to prove that a Turing machine does not stop. A Turing machine may go through an infinite number of configurations while running, but we can classify them into a finite number of classes in a suitable way, and prove that each configuration in a class reaches another configuration (instead of halting) in some class after running for one step.&lt;br /&gt;
&lt;br /&gt;
== regular CTL ==&lt;br /&gt;
See also: https://www.sligocki.com/2022/06/10/ctl.html&lt;br /&gt;
&lt;br /&gt;
We use two DFAs (one with state sets L and R respectively) and an accepting set A to describe each classes.&lt;br /&gt;
&lt;br /&gt;
The elements in set A have the form (l,r,q,s): L×R×Q×Σ, where Q is the state set of the TM, Σ is the symbol set of the TM, and (l,r,q,s) means the class of configurations in the form of 0^inf x q&amp;gt; s y 0^inf s.t. the DFA L gets state l when the string x is input, the DFA R gets state r when the string y (reversed) is input.&lt;br /&gt;
&lt;br /&gt;
A variant is use (l,r,q,d): L×R×Q×{-1,+1}, and d=-1 means 0^inf x &amp;lt;nowiki&amp;gt;&amp;lt;q y 0^inf, d=+1 means 0^inf x q&amp;gt; y 0^inf.&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== DFA generator ===&lt;br /&gt;
Assume we have set S, function f:S×Σ→S and s0∈S, we can build a DFA incrementally: the starting state of the DFA is s0, the transtion (s0,0) is defined as s0, all other transitions are undefined at the beginning, and whenever we need to use a transition (a,b): S×Σ, we define it as f(a,b).&lt;br /&gt;
&lt;br /&gt;
The DFA L,R and the accepting set A can be generated using this method.&lt;br /&gt;
&lt;br /&gt;
Initially we have A={(s0,s0,A,+1)}, then we update A until it&#039;s closed under running for one step:&lt;br /&gt;
&lt;br /&gt;
If (l,f(r,s),q,+1)∈A, and r is a visited state in R, and TM(q,s) = (q&#039;,s&#039;,+1), we add (f(l,s&#039;),r,q&#039;,+1) to A.&lt;br /&gt;
&lt;br /&gt;
If (l,f(r,s),q,+1)∈A, and r is a visited state in R, and TM(q,s) = (q&#039;,s&#039;,-1), we add (l,f(r,s&#039;),q&#039;,-1) to A.&lt;br /&gt;
&lt;br /&gt;
If (f(l,s),r,q,-1)∈A, and l is a visited state in L, and TM(q,s) = (q&#039;,s&#039;,-1), we add (l,f(r,s&#039;),q&#039;,-1) to A.&lt;br /&gt;
&lt;br /&gt;
If (f(l,s),r,q,-1)∈A, and l is a visited state in L, and TM(q,s) = (q&#039;,s&#039;,+1), we add (f(l,s&#039;),r,q&#039;,+1) to A.&lt;br /&gt;
&lt;br /&gt;
A state of a DFA is visited iff it appears at least once in A.&lt;br /&gt;
&lt;br /&gt;
If we visit TM(q,s) and it&#039;s a halting transition, this method failed.&lt;br /&gt;
&lt;br /&gt;
TM: Q×Σ→Q×Σ×{-1,+1} is the transition table of the turing machine.&lt;br /&gt;
&lt;br /&gt;
This algorithm may not halt when |S| is infinite (or very slow when |S| is large), so we usually add a time limit or step limit to it.&lt;br /&gt;
&lt;br /&gt;
==== RWL_mod ====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
s0 = []&lt;br /&gt;
f([(x,n,m)]+z,x) = g([(x,min(n+1,N),(m+1)%M)]+z)&lt;br /&gt;
f(z,x) = g([(x,1,1)]+z), otherwise&lt;br /&gt;
g(a+[b]) = a, len(a+[b])&amp;gt;=L&lt;br /&gt;
g(a) = a, len(a)&amp;lt;L&lt;br /&gt;
where L,N,M are parameters, typical values ​​are N=2, M=1,2,3, 1&amp;lt;=L&amp;lt;=16.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== CPS_LRU ====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
s0 = ([],[],[])&lt;br /&gt;
f((s1,s2,        s3),x) = (s1,s2,[x]+s3), len(s3)&amp;lt;N3&lt;br /&gt;
f((s1,s2,        s3),x) = ([x]+s1,s2,s3), len(s1)&amp;lt;N1&lt;br /&gt;
f((s1,s2+[z],    s3),x) = (s1&#039;,[y]+s2,s3), len(s2+[z])=N2 and y not in s2 and [x]+s1=s1&#039;+[y]&lt;br /&gt;
f((s1,s2,        s3),x) = (s1&#039;,[y]+s2,s3), y not in s2 and [x]+s1=s1&#039;+[y]&lt;br /&gt;
f((s1,s2+[y]+s2&#039;,s3),x) = (s1&#039;,[y]+s2+s2&#039;,s3), y not in s2 and [x]+s1=s1&#039;+[y]&lt;br /&gt;
when multiple rules match, take the first one.&lt;br /&gt;
s1 is a queue, s2 is an LRU cache, s3 is a stack that never pops.&lt;br /&gt;
N1,N2,N3 are parameters, typical values are N1=0,1, N3=0,1, N2=0,1,2,3.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== n-gram CPS ====&lt;br /&gt;
n-gram CPS is the special case of CPS_LRU where N2=N3=0, N1=n.&lt;br /&gt;
&lt;br /&gt;
=== FAR-direct ===&lt;br /&gt;
TODO&lt;br /&gt;
&lt;br /&gt;
See https://github.com/bbchallenge/bbchallenge-deciders/tree/main/decider-finite-automata-reduction&lt;br /&gt;
&lt;br /&gt;
=== machine transform ===&lt;br /&gt;
n-gram CPS can be much more powerful if we transform the TM properly. Such a transformation should not cause a halting Turing machine to nonhalt.&lt;br /&gt;
&lt;br /&gt;
==== macro machine ====&lt;br /&gt;
Divide the tape into fixed size blocks, each block is a symbol in the transformed machine.&lt;br /&gt;
&lt;br /&gt;
==== local transition history ====&lt;br /&gt;
The Turing machine can be modified to write down and update extra data at each step. We use the f defined in CPS_LRU (update the extra data as f(h,(q,s)) when the machine is at state q, read symbol (s,h) where s is the original symbol and h is extra data).&lt;br /&gt;
&lt;br /&gt;
== MITMWFAR ==&lt;br /&gt;
TODO&lt;br /&gt;
&lt;br /&gt;
See https://github.com/Iijil1/MITMWFAR&lt;br /&gt;
[[Category:Deciders]]&lt;br /&gt;
[[Category:Stub]]&lt;/div&gt;</summary>
		<author><name>Mxdys</name></author>
	</entry>
	<entry>
		<id>https://wiki.bbchallenge.org/w/index.php?title=Closed_Tape_Language&amp;diff=1693</id>
		<title>Closed Tape Language</title>
		<link rel="alternate" type="text/html" href="https://wiki.bbchallenge.org/w/index.php?title=Closed_Tape_Language&amp;diff=1693"/>
		<updated>2025-03-11T02:02:29Z</updated>

		<summary type="html">&lt;p&gt;Mxdys: fix format&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Closed tape language (CTL) is a class of methods to prove that a Turing machine does not stop. A Turing machine may go through an infinite number of configurations while running, but we can classify them into a finite number of classes in a suitable way, and prove that each configuration in a class reaches another configuration (instead of halting) in some class after running for one step.&lt;br /&gt;
&lt;br /&gt;
== regular CTL ==&lt;br /&gt;
See also: https://www.sligocki.com/2022/06/10/ctl.html&lt;br /&gt;
&lt;br /&gt;
We use two DFAs (one with state sets L and R respectively) and an accepting set A to describe each classes.&lt;br /&gt;
&lt;br /&gt;
The elements in set A have the form (l,r,q,s): L×R×Q×Σ, where Q is the state set of the TM, Σ is the symbol set of the TM, and (l,r,q,s) means the class of configurations in the form of 0^inf x q&amp;gt; s y 0^inf s.t. the DFA L gets state l when the string x is input, the DFA R gets state r when the string y (reversed) is input.&lt;br /&gt;
&lt;br /&gt;
A variant is use (l,r,q,d): L×R×Q×{-1,+1}, and d=-1 means 0^inf x &amp;lt;nowiki&amp;gt;&amp;lt;q y 0^inf, d=+1 means 0^inf x q&amp;gt; y 0^inf.&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== DFA generator ===&lt;br /&gt;
Assume we have set S, function f:S×Σ→S and s0∈S, we can build a DFA incrementally: the starting state of the DFA is s0, the transtion (s0,0) is defined as s0, all other transitions are undefined at the beginning, and whenever we need to use a transition (a,b): S×Σ, we define it as f(a,b).&lt;br /&gt;
&lt;br /&gt;
The DFA L,R and the accepting set A can be generated using this method.&lt;br /&gt;
&lt;br /&gt;
Initially we have A={(s0,s0,A,+1)}, then we update A until it&#039;s closed under running for one step:&lt;br /&gt;
&lt;br /&gt;
If (l,f(r,s),q,+1)∈A, and r is a visited state in R, and TM(q,s) = (q&#039;,s&#039;,+1), we add (f(l,s&#039;),r,q&#039;,+1) to A.&lt;br /&gt;
&lt;br /&gt;
If (l,f(r,s),q,+1)∈A, and r is a visited state in R, and TM(q,s) = (q&#039;,s&#039;,-1), we add (l,f(r,s&#039;),q&#039;,-1) to A.&lt;br /&gt;
&lt;br /&gt;
If (f(l,s),r,q,-1)∈A, and l is a visited state in L, and TM(q,s) = (q&#039;,s&#039;,-1), we add (l,f(r,s&#039;),q&#039;,-1) to A.&lt;br /&gt;
&lt;br /&gt;
If (f(l,s),r,q,-1)∈A, and l is a visited state in L, and TM(q,s) = (q&#039;,s&#039;,+1), we add (f(l,s&#039;),r,q&#039;,+1) to A.&lt;br /&gt;
&lt;br /&gt;
A state of a DFA is visited iff it appears at least once in A.&lt;br /&gt;
&lt;br /&gt;
If we visit TM(q,s) and it&#039;s a halting transition, this method failed.&lt;br /&gt;
&lt;br /&gt;
TM: Q×Σ→Q×Σ×{-1,+1} is the transition table of the turing machine.&lt;br /&gt;
&lt;br /&gt;
This algorithm may not halt when |S| is infinite (or very slow when |S| is large), so we usually add a time limit or step limit to it.&lt;br /&gt;
&lt;br /&gt;
==== RWL_mod ====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
s0 = ()&lt;br /&gt;
f((z,(x,n,m)),x) = (z,(x,min(n+1,N),(m+1)%M))&lt;br /&gt;
f(z,x) = (z,(x,1,1)), otherwise&lt;br /&gt;
where N,M are parameters, typical values ​​are N=2, M=1,2,3.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== CPS_LRU ====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
s0 = ([],[],[])&lt;br /&gt;
f((s1,s2,        s3),x) = (s1,s2,[x]+s3), len(s3)&amp;lt;N3&lt;br /&gt;
f((s1,s2,        s3),x) = ([x]+s1,s2,s3), len(s1)&amp;lt;N1&lt;br /&gt;
f((s1,s2+[z],    s3),x) = (s1&#039;,[y]+s2,s3), len(s2+[z])=N2 and y not in s2 and [x]+s1=s1&#039;+[y]&lt;br /&gt;
f((s1,s2,        s3),x) = (s1&#039;,[y]+s2,s3), y not in s2 and [x]+s1=s1&#039;+[y]&lt;br /&gt;
f((s1,s2+[y]+s2&#039;,s3),x) = (s1&#039;,[y]+s2+s2&#039;,s3), y not in s2 and [x]+s1=s1&#039;+[y]&lt;br /&gt;
when multiple rules match, take the first one.&lt;br /&gt;
s1 is a queue, s2 is an LRU cache, s3 is a stack that never pops.&lt;br /&gt;
N1,N2,N3 are parameters, typical values are N1=0,1, N3=0,1, N2=0,1,2,3.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== n-gram CPS ====&lt;br /&gt;
n-gram CPS is the special case of CPS_LRU where N2=N3=0, N1=n.&lt;br /&gt;
&lt;br /&gt;
=== FAR-direct ===&lt;br /&gt;
TODO&lt;br /&gt;
&lt;br /&gt;
See https://github.com/bbchallenge/bbchallenge-deciders/tree/main/decider-finite-automata-reduction&lt;br /&gt;
&lt;br /&gt;
=== machine transform ===&lt;br /&gt;
n-gram CPS can be much more powerful if we transform the TM properly. Such a transformation should not cause a halting Turing machine to nonhalt.&lt;br /&gt;
&lt;br /&gt;
==== macro machine ====&lt;br /&gt;
Divide the tape into fixed size blocks, each block is a symbol in the transformed machine.&lt;br /&gt;
&lt;br /&gt;
==== local transition history ====&lt;br /&gt;
The Turing machine can be modified to write down and update extra data at each step. We use the f defined in CPS_LRU (update the extra data as f(h,(q,s)) when the machine is at state q, read symbol (s,h) where s is the original symbol and h is extra data).&lt;br /&gt;
&lt;br /&gt;
== MITMWFAR ==&lt;br /&gt;
TODO&lt;br /&gt;
&lt;br /&gt;
See https://github.com/Iijil1/MITMWFAR&lt;br /&gt;
[[Category:Deciders]]&lt;br /&gt;
[[Category:Stub]]&lt;/div&gt;</summary>
		<author><name>Mxdys</name></author>
	</entry>
	<entry>
		<id>https://wiki.bbchallenge.org/w/index.php?title=Closed_Tape_Language&amp;diff=1690</id>
		<title>Closed Tape Language</title>
		<link rel="alternate" type="text/html" href="https://wiki.bbchallenge.org/w/index.php?title=Closed_Tape_Language&amp;diff=1690"/>
		<updated>2025-03-10T18:07:28Z</updated>

		<summary type="html">&lt;p&gt;Mxdys: add some MitM CTL tricks used in BB(6)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Closed tape language (CTL) is a class of methods to prove that a Turing machine does not stop. A Turing machine may go through an infinite number of configurations while running, but we can classify them into a finite number of classes in a suitable way, and prove that each configuration in a class reaches another configuration (instead of halting) in some class after running for one step.&lt;br /&gt;
&lt;br /&gt;
== regular CTL ==&lt;br /&gt;
See also: https://www.sligocki.com/2022/06/10/ctl.html&lt;br /&gt;
We use two DFAs (one with state sets L and R respectively) and an accepting set A to describe each classes.&lt;br /&gt;
&lt;br /&gt;
The elements in set A have the form (l,r,q,s): L×R×Q×Σ, where Q is the state set of the TM, Σ is the symbol set of the TM, and (l,r,q,s) means the class of configurations in the form of 0^inf x q&amp;gt; s y 0^inf s.t. the DFA L gets state l when the string x is input, the DFA R gets state r when the string y (reversed) is input.&lt;br /&gt;
&lt;br /&gt;
A variant is use (l,r,q,d): L×R×Q×{-1,+1}, and d=-1 means 0^inf x &amp;lt;nowiki&amp;gt;&amp;lt;q y 0^inf, d=+1 means 0^inf x q&amp;gt; y 0^inf.&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== DFA generator ===&lt;br /&gt;
Assume we have set S, function f:S×Σ→S and s0∈S, we can build a DFA incrementally: the starting state of the DFA is s0, the transtion (s0,0) is defined as s0, all other transitions are undefined at the beginning, and whenever we need to use a transition (a,b): S×Σ, we define it as f(a,b).&lt;br /&gt;
&lt;br /&gt;
The DFA L,R and the accepting set A can be generated using this method.&lt;br /&gt;
&lt;br /&gt;
Initially we have A={(s0,s0,A,+1)}, then we update A until it&#039;s closed under running for one step:&lt;br /&gt;
&lt;br /&gt;
If (l,f(r,s),q,+1)∈A, and r is a visited state in R, and TM(q,s) = (q&#039;,s&#039;,+1), we add (f(l,s&#039;),r,q&#039;,+1) to A.&lt;br /&gt;
&lt;br /&gt;
If (l,f(r,s),q,+1)∈A, and r is a visited state in R, and TM(q,s) = (q&#039;,s&#039;,-1), we add (l,f(r,s&#039;),q&#039;,-1) to A.&lt;br /&gt;
&lt;br /&gt;
If (f(l,s),r,q,-1)∈A, and l is a visited state in L, and TM(q,s) = (q&#039;,s&#039;,-1), we add (l,f(r,s&#039;),q&#039;,-1) to A.&lt;br /&gt;
&lt;br /&gt;
If (f(l,s),r,q,-1)∈A, and l is a visited state in L, and TM(q,s) = (q&#039;,s&#039;,+1), we add (f(l,s&#039;),r,q&#039;,+1) to A.&lt;br /&gt;
&lt;br /&gt;
A state of a DFA is visited iff it appears at least once in A.&lt;br /&gt;
&lt;br /&gt;
If we visit TM(q,s) and it&#039;s a halting transition, this method failed.&lt;br /&gt;
&lt;br /&gt;
TM: Q×Σ→Q×Σ×{-1,+1} is the transition table of the turing machine.&lt;br /&gt;
&lt;br /&gt;
This algorithm may not halt when |S| is infinite (or very slow when |S| is large), so we usually add a time limit or step limit to it.&lt;br /&gt;
&lt;br /&gt;
==== RWL_mod ====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
s0 = ()&lt;br /&gt;
f((z,(x,n,m)),x) = (z,(x,min(n+1,N),(m+1)%M))&lt;br /&gt;
f(z,x) = (z,(x,1,1)), otherwise&lt;br /&gt;
where N,M are parameters, typical values ​​are N=2, M=1,2,3.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== CPS_LRU ====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
s0 = ([],[],[])&lt;br /&gt;
f((s1,s2,        s3),x) = (s1,s2,[x]+s3), len(s3)&amp;lt;N3&lt;br /&gt;
f((s1,s2,        s3),x) = ([x]+s1,s2,s3), len(s1)&amp;lt;N1&lt;br /&gt;
f((s1,s2+[z],    s3),x) = (s1&#039;,[y]+s2,s3), len(s2+[z])=N2 and y not in s2 and [x]+s1=s1&#039;+[y]&lt;br /&gt;
f((s1,s2,        s3),x) = (s1&#039;,[y]+s2,s3), y not in s2 and [x]+s1=s1&#039;+[y]&lt;br /&gt;
f((s1,s2+[y]+s2&#039;,s3),x) = (s1&#039;,[y]+s2+s2&#039;,s3), y not in s2 and [x]+s1=s1&#039;+[y]&lt;br /&gt;
when multiple rules match, take the first one.&lt;br /&gt;
s1 is a queue, s2 is an LRU cache, s3 is a stack that never pops.&lt;br /&gt;
N1,N2,N3 are parameters, typical values are N1=0,1, N3=0,1, N2=0,1,2,3.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== n-gram CPS ====&lt;br /&gt;
n-gram CPS is the special case of CPS_LRU where N2=N3=0, N1=n.&lt;br /&gt;
&lt;br /&gt;
=== FAR-direct ===&lt;br /&gt;
TODO&lt;br /&gt;
&lt;br /&gt;
See https://github.com/bbchallenge/bbchallenge-deciders/tree/main/decider-finite-automata-reduction&lt;br /&gt;
&lt;br /&gt;
=== machine transform ===&lt;br /&gt;
n-gram CPS can be much more powerful if we transform the TM properly. Such a transformation should not cause a halting Turing machine to nonhalt.&lt;br /&gt;
&lt;br /&gt;
==== macro machine ====&lt;br /&gt;
Divide the tape into fixed size blocks, each block is a symbol in the transformed machine.&lt;br /&gt;
&lt;br /&gt;
==== local transition history ====&lt;br /&gt;
The Turing machine can be modified to write down and update extra data at each step. We use the f defined in CPS_LRU (update the extra data as f(h,(q,s)) when the machine is at state q, read symbol (s,h) where s is the original symbol and h is extra data).&lt;br /&gt;
&lt;br /&gt;
== MITMWFAR ==&lt;br /&gt;
TODO&lt;br /&gt;
&lt;br /&gt;
See https://github.com/Iijil1/MITMWFAR&lt;br /&gt;
[[Category:Deciders]]&lt;br /&gt;
[[Category:Stub]]&lt;/div&gt;</summary>
		<author><name>Mxdys</name></author>
	</entry>
	<entry>
		<id>https://wiki.bbchallenge.org/w/index.php?title=1RB0LB_1LC0RE_1LA1LD_0LC---_0RB0RF_1RE1RB&amp;diff=1325</id>
		<title>1RB0LB 1LC0RE 1LA1LD 0LC--- 0RB0RF 1RE1RB</title>
		<link rel="alternate" type="text/html" href="https://wiki.bbchallenge.org/w/index.php?title=1RB0LB_1LC0RE_1LA1LD_0LC---_0RB0RF_1RE1RB&amp;diff=1325"/>
		<updated>2024-11-25T10:41:57Z</updated>

		<summary type="html">&lt;p&gt;Mxdys: add classic cryptid #5&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{machine|1RB0LB_1LC0RE_1LA1LD_0LC---_0RB0RF_1RE1RB}}&lt;br /&gt;
This is a [[BB(6)]] [[Cryptid]] found by @racheline and shared on Discord on 25 Nov 2024.&lt;br /&gt;
&lt;br /&gt;
== Rules ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 start: (4,124)&lt;br /&gt;
 (a+1,3n+0) --&amp;gt; (a+7,4n+4)&lt;br /&gt;
 (a+1,3n+1) --&amp;gt; (a+0,4n+7)&lt;br /&gt;
 (a+1,3n+2) --&amp;gt; (a+5,4n+4)&lt;br /&gt;
 (0,3(27n+21)+1) --&amp;gt; halt&lt;br /&gt;
&lt;br /&gt;
 (a,n) := 0^inf 10 01^a 0^n &amp;lt;A 11011 0^inf&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
For simplicity only one potential halting rule is shown. In fact, it also has the potential to become a translated cycler or bouncer when it reaches (0,n).&lt;/div&gt;</summary>
		<author><name>Mxdys</name></author>
	</entry>
	<entry>
		<id>https://wiki.bbchallenge.org/w/index.php?title=BB(6)&amp;diff=1324</id>
		<title>BB(6)</title>
		<link rel="alternate" type="text/html" href="https://wiki.bbchallenge.org/w/index.php?title=BB(6)&amp;diff=1324"/>
		<updated>2024-11-25T10:36:14Z</updated>

		<summary type="html">&lt;p&gt;Mxdys: add classic cryptid #5&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The 6-state, 2-symbol Busy Beaver problem &#039;&#039;&#039;BB(6)&#039;&#039;&#039; is unsolved. With the discovery of [[Antihydra]] in 2024, we now know that we must solve a [[Collatz-like]] problem in order to solve BB(6).&lt;br /&gt;
&lt;br /&gt;
The current BB(6) champion {{TM|1RB0LD_1RC0RF_1LC1LA_0LE1RZ_1LF0RB_0RC0RE|halt}} was discovered by Pavel Kropitz in 2022 proving the lower bound:&amp;lt;ref&amp;gt;Shawn Ligocki. 2022. &amp;quot;BB(6, 2) &amp;gt; 10↑↑15&amp;quot;. https://www.sligocki.com/2022/06/21/bb-6-2-t15.html&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;S(6) &amp;gt; \Sigma(6) &amp;gt; 10 \uparrow\uparrow 15&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Techniques ==&lt;br /&gt;
In order to simulate the current BB(6) champion requires [[Accelerated simulator|accelerated simulation]] that can handle Collatz Level 2 [[Inductive rule|inductive rules]]. In other words, it requires a simulator that can prove the rules:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\begin{array}{l}&lt;br /&gt;
  C(4k)   &amp;amp; \to &amp;amp; Halt(\frac{3^{k+3} - 11}{2}) \\&lt;br /&gt;
  C(4k+1) &amp;amp; \to &amp;amp; C(\frac{3^{k+3} - 11}{2}) \\&lt;br /&gt;
  C(4k+2) &amp;amp; \to &amp;amp; C(\frac{3^{k+3} - 11}{2}) \\&lt;br /&gt;
  C(4k+3) &amp;amp; \to &amp;amp; C(\frac{3^{k+3} + 1}{2}) \\&lt;br /&gt;
\end{array}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and also compute the remainder mod 3 of numbers produced by applying these rules 15 times (which requires some fancy math related to [[wikipedia:Euler&#039;s_totient_function|Euler&#039;s_totient_function]]).&lt;br /&gt;
&lt;br /&gt;
== Cryptids ==&lt;br /&gt;
Known BB(6) Cryptids:&lt;br /&gt;
&lt;br /&gt;
* [[Antihydra]]&lt;br /&gt;
* {{TM|1RB1RC_1LC1LE_1RA1RD_0RF0RE_1LA0LB_---1RA|undecided}} a variant of [[Hydra]] and Antihydra&lt;br /&gt;
* {{TM|1RB1LD_1RC1RE_0LA1LB_0LD1LC_1RF0RA_---0RC|undecided}} similar to Antihydra&lt;br /&gt;
* {{TM|1RB0LD_1RC1RF_1LA0RA_0LA0LE_1LD1LA_0RB---|undecided}} similar to Antihydra&lt;br /&gt;
* {{TM|1RB0LB_1LC0RE_1LA1LD_0LC---_0RB0RF_1RE1RB|undecided}} similar to Antihydra&lt;br /&gt;
* {{TM|1RB1RA_0RC1RC_1LD0LF_0LE1LE_1RA0LB_---0LC|undecided}} (and 15 related TMs) a family of [[probviously]] halting cryptids&lt;br /&gt;
&lt;br /&gt;
Potential Cryptids:&lt;br /&gt;
&lt;br /&gt;
* {{TM|1RB1RE_1LC0RA_0RD1LB_---1RC_1LF1RE_0LB0LE|undecided}}&lt;br /&gt;
* {{TM|1RB0LD_1LC0RA_1RA1LB_1LA1LE_1RF0LC_---0RE|undecided}}&lt;br /&gt;
* {{TM|1RB0RB_1LC1RE_1LF0LD_1RA1LD_1RC1RB_---1LC|undecided}}&lt;br /&gt;
&lt;br /&gt;
== Top Halters ==&lt;br /&gt;
The current top 10 BB(6) halters (known by [[User:Sligocki|Shawn Ligocki]]) are&amp;lt;pre&amp;gt;&lt;br /&gt;
1RB0LD_1RC0RF_1LC1LA_0LE1RZ_1LF0RB_0RC0RE Halt ~10↑↑15.60465&lt;br /&gt;
1RB0LA_1LC1LF_0LD0LC_0LE0LB_1RE0RA_1RZ1LD Halt ~10↑↑5.63534&lt;br /&gt;
1RB1RE_1LC1LF_1RD0LB_1LE0RC_1RA0LD_1RZ1LC Halt ~10↑↑5.56344&lt;br /&gt;
1RB0LE_0RC1RA_0LD1RF_1RE0RB_1LA0LC_0RD1RZ Halt ~10↑↑5.12468&lt;br /&gt;
1RB0RF_1LC1LB_0RE0LD_0LC0LB_0RA1RE_0RD1RZ Halt ~10↑↑5.03230&lt;br /&gt;
1RB1LA_1LC0RF_1LD1LC_1LE0RE_0RB0LC_1RZ1RA Halt ~10↑↑4.91072&lt;br /&gt;
1RB0LE_1LC1RA_1RE0LD_1LC1LF_1LA0RC_1RZ1LC Halt ~10↑↑3.33186&lt;br /&gt;
1RB1RF_1LC1RE_0LD1LB_1LA0RA_0RA0RB_1RZ0RD Halt ~10↑↑3.31128&lt;br /&gt;
1RB0LF_1LC0RA_1RD0LB_1LE1RC_1RZ1LA_1LA1LE Halt ~10↑↑3.18855&lt;br /&gt;
1RB1RZ_0LC0LD_1LD1LC_1RE1LB_1RF1RD_0LD0RA Halt ~10^646456993.24591&lt;br /&gt;
&amp;lt;/pre&amp;gt;The numbers listed are sigma scores. Runtimes are not available, but are presumed to be about &amp;lt;math&amp;gt;score^2&amp;lt;/math&amp;gt; which is roughly indistinguishable in tetration notation. Fractional tetration notation is described in https://www.sligocki.com/2022/06/25/ext-up-notation.html. For a longer list of halting TMs see https://github.com/sligocki/busy-beaver/blob/main/Machines/bb/6x2.txt. For historical perspective see Pascal Michel&#039;s [https://bbchallenge.org/~pascal.michel/ha#tm62 &#039;&#039;&#039;Historical survey of Busy Beavers&#039;&#039;&#039;].&lt;br /&gt;
&lt;br /&gt;
== Holdouts ==&lt;br /&gt;
@mxdys&#039;s informal [[Holdouts lists|holdouts list]] is down to 5877 TMs as of 4 Aug 2024.&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&amp;lt;references /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Mxdys</name></author>
	</entry>
	<entry>
		<id>https://wiki.bbchallenge.org/w/index.php?title=Code_repositories&amp;diff=1323</id>
		<title>Code repositories</title>
		<link rel="alternate" type="text/html" href="https://wiki.bbchallenge.org/w/index.php?title=Code_repositories&amp;diff=1323"/>
		<updated>2024-11-24T11:05:17Z</updated>

		<summary type="html">&lt;p&gt;Mxdys: add https://github.com/ccz181078/busycoq/tree/BB6/verify&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Creator&lt;br /&gt;
!Link&lt;br /&gt;
!Notes&lt;br /&gt;
|-&lt;br /&gt;
|bbchallenge&lt;br /&gt;
|[https://github.com/bbchallenge/bbchallenge-deciders Link]&lt;br /&gt;
|Official bbchallenge deciders&lt;br /&gt;
|-&lt;br /&gt;
|@mxdys&lt;br /&gt;
|[https://github.com/ccz181078/Coq-BB5 Link]&lt;br /&gt;
|Coq proof of BB(5) = 47,176,870. See [[Coq-BB5]].&lt;br /&gt;
|-&lt;br /&gt;
|@mei&lt;br /&gt;
|[https://github.com/meithecatte/busycoq Link]&lt;br /&gt;
|A hybrid Coq/Rust/OCaml repo implementing very fast deciders plus verified proofs&lt;br /&gt;
|-&lt;br /&gt;
|Georgi Georgiev (Skelet)&lt;br /&gt;
|[https://skelet.ludost.net/bb/ Link]&lt;br /&gt;
|See [[bbfind]] and  [[Skelet&#039;s 43 holdouts]]. Wrapped via [https://gist.github.com/m1el/d514a353cccde531c298b725043404af bbfind-stdin by @wizord]&lt;br /&gt;
|-&lt;br /&gt;
|@mxdys&lt;br /&gt;
|[https://github.com/ccz181078/busycoq/tree/BB6/verify Link]&lt;br /&gt;
|Coq proof of some deciders and some solved machines in BB(6)&lt;br /&gt;
|-&lt;br /&gt;
|Mateusz Naściszewski @Mateon1&lt;br /&gt;
|[https://gist.github.com/mateon1/6cdad07e15f6acf992b79dc2baf0492c Link]&lt;br /&gt;
|Accelerated TM simulators in Python utilizing memoization (like HashLife)&lt;br /&gt;
|-&lt;br /&gt;
|Mateusz Naściszewski @Mateon1&lt;br /&gt;
|[https://gist.github.com/mateon1/7f5e10169abbb50d1537165c6e71733b Link]&lt;br /&gt;
|Forward segment TM decider by @Mateon1 (variant of [[Halting Segment]])&lt;br /&gt;
|-&lt;br /&gt;
|Mateusz Naściszewski @Mateon1&lt;br /&gt;
|[https://gist.github.com/mateon1/b63eabc371ac35e2a14a9c5ce37413bc Link]&lt;br /&gt;
|[[Closed Position Set (CPS)]] TM decider implementation&lt;br /&gt;
|-&lt;br /&gt;
|Mateusz Naściszewski @Mateon1&lt;br /&gt;
|[https://gist.github.com/mateon1/c801565e499be605cea1283a5984b4c3 Link]&lt;br /&gt;
|[[Closed Tape Language (CTL)]] SAT Solver; &#039;&#039;&#039;TODO dependencies still Discord posts&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|@savask&lt;br /&gt;
|[https://github.com/savask/turing Link]&lt;br /&gt;
|Collection of deciders&lt;br /&gt;
|-&lt;br /&gt;
|@savask&lt;br /&gt;
|[https://gist.github.com/savask/1c43a0e5cdd81229f236dcf2b0611c3f Link]&lt;br /&gt;
|[[Closed Position Set (CPS)]], reverse-engineered from Skelet&#039;s [[bbfind]] program&lt;br /&gt;
|-&lt;br /&gt;
|@savask&lt;br /&gt;
|[https://gist.github.com/savask/888aa5e058559c972413790c29d7ad72 Link]&lt;br /&gt;
|Decider for [[Bouncers]]&lt;br /&gt;
|-&lt;br /&gt;
|@savask&lt;br /&gt;
|[https://gist.github.com/savask/c7546bb6384984b2fb3cb90fc7925697 Link]&lt;br /&gt;
|Reproduction of @mxdys&#039; [[RepWL_ES]] decider (repeated block decider)&lt;br /&gt;
|-&lt;br /&gt;
|@djmati1111&lt;br /&gt;
|[https://github.com/colette-b/bbchallenge Link]&lt;br /&gt;
|The first SAT-based [[Finite Automata Reduction (FAR)]] decider&lt;br /&gt;
|-&lt;br /&gt;
|Frans Faase&lt;br /&gt;
|[https://github.com/FransFaase/SymbolicTM Link]&lt;br /&gt;
|An early [[Closed Tape Language (CTL)]] verifier&lt;br /&gt;
|-&lt;br /&gt;
|@Iijil&lt;br /&gt;
|[https://github.com/Iijil1/Bouncers Link]&lt;br /&gt;
|Decider for [[Bouncers]]&lt;br /&gt;
|-&lt;br /&gt;
|@Iijil&lt;br /&gt;
|[https://github.com/Iijil1/Bruteforce-CTL Link]&lt;br /&gt;
|Bruteforce [[Closed Tape Language (CTL)]] decider&lt;br /&gt;
|-&lt;br /&gt;
|@Iijil&lt;br /&gt;
|[https://github.com/Iijil1/MITMWFAR Link]&lt;br /&gt;
|[[Meet-in-the-Middle Weighted Finite Automata Reduction (MITMWFAR)]] decider&lt;br /&gt;
|-&lt;br /&gt;
|@Iijil&lt;br /&gt;
|[https://gist.github.com/Iijil1/d325da33be74a86ac2399c161a57166a Link]&lt;br /&gt;
|4-symbol to 2-symbol TM compiler&lt;br /&gt;
|-&lt;br /&gt;
|Jason Yuen @-d&lt;br /&gt;
|[https://github.com/int-y1/proofs/tree/master/BusyLean Link]&lt;br /&gt;
|Some progress toward a FAR verifier checked by Lean&lt;br /&gt;
|-&lt;br /&gt;
|Matthew House @LegionMammal976&lt;br /&gt;
|[https://github.com/LegionMammal978/bigfoot-sim Link]&lt;br /&gt;
|An accelerated [[Bigfoot]] simulator&lt;br /&gt;
|-&lt;br /&gt;
|Nathan Fenner @nathanf&lt;br /&gt;
|[https://github.com/Nathan-Fenner/bbchallenge-dafny-deciders Link]&lt;br /&gt;
|Formally verified deciders using Dafny&lt;br /&gt;
|-&lt;br /&gt;
|Nathan Fenner @nathanf&lt;br /&gt;
|[https://github.com/Nathan-Fenner/busy-beaver-dafny-regex-verifier Link]&lt;br /&gt;
|Formally verified [[Closed Tape Language (CTL)]] verifier&lt;br /&gt;
|-&lt;br /&gt;
|Nathan Fenner @nathanf&lt;br /&gt;
|[https://github.com/Nathan-Fenner/bbchallenge-regexy-decider Link]&lt;br /&gt;
|[[Closed Tape Language (CTL)]] decider&lt;br /&gt;
|-&lt;br /&gt;
|Nathan Fenner @nathanf&lt;br /&gt;
|[https://github.com/Nathan-Fenner/bb-simple-n-gram-cps Link]&lt;br /&gt;
|[[Closed Position Set (CPS)]] simplification: uses less resources and is less strong&lt;br /&gt;
|-&lt;br /&gt;
|@nickdrozd&lt;br /&gt;
|[https://github.com/nickdrozd/busy-beaver-stuff Link]&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|@star&lt;br /&gt;
|[https://github.com/phinanix/busy-beavers Link]&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|Shawn Ligocki @sligocki&lt;br /&gt;
|[https://github.com/sligocki/busy-beaver Link]&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|Tony Guilfoyle&lt;br /&gt;
|[https://github.com/TonyGuil/bbchallenge Link]&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|Justin Blanchard @UncombedCoconut&lt;br /&gt;
|[https://github.com/uncombedcoconut/bbchallenge Link]&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|Justin Blanchard @UncombedCoconut&lt;br /&gt;
|[https://github.com/UncombedCoconut/bbchallenge-deciders/tree/FARther/decider-finite-automata-reduction Link]&lt;br /&gt;
|[[Finite Automata Reducion (FAR)]] decider&lt;br /&gt;
|-&lt;br /&gt;
|Justin Blanchard @UncombedCoconut&lt;br /&gt;
|[https://github.com/UncombedCoconut/bbchallenge-nfa-verification Link]&lt;br /&gt;
|[[Finite Automata Reducion (FAR)]] verifier&lt;br /&gt;
|-&lt;br /&gt;
|Pavel Kropitz @uni&lt;br /&gt;
|[https://github.com/univerz/bbc Link]&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|Dan Briggs&lt;br /&gt;
|[https://github.com/danbriggs/Turing Link]&lt;br /&gt;
|TM proofs/writing&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Mxdys</name></author>
	</entry>
	<entry>
		<id>https://wiki.bbchallenge.org/w/index.php?title=Inductive_Proof_System&amp;diff=1314</id>
		<title>Inductive Proof System</title>
		<link rel="alternate" type="text/html" href="https://wiki.bbchallenge.org/w/index.php?title=Inductive_Proof_System&amp;diff=1314"/>
		<updated>2024-11-16T08:14:37Z</updated>

		<summary type="html">&lt;p&gt;Mxdys: unification in inductive decider&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;An &#039;&#039;&#039;Inductive Proof System&#039;&#039;&#039; is an [[Accelerated Simulator]] and [[Decider]] which operates by automatically detecting and proving [[Transition rule|transition rules]] using Mathematical Induction. &lt;br /&gt;
&lt;br /&gt;
== Inductive Rule ==&lt;br /&gt;
An inductive rule is a general transition rule (a start and end configuration, generalized with variables for repetition counts) along with a proof. The proof generally has two pieces: the base case and the inductive case. Each is a list of steps where each step is (A) a specific TM transition, (B) an application of the inductive hypothesis, (C) an application of a previously defined rule.&lt;br /&gt;
&lt;br /&gt;
=== Rule Levels ===&lt;br /&gt;
We can assign levels to any Inductive Rule. A Level 0 (L0) rule does not depend on any previously defined inductive rules. A Level 1 (L1) rule depends only upon previously proven L0 rules, etc. All L0 Rules (which only invoke the inductive hypothesis once) are [[Shift rule|Shift rules]].&lt;br /&gt;
&lt;br /&gt;
== Example Proofs ==&lt;br /&gt;
&lt;br /&gt;
=== Notation ===&lt;br /&gt;
In this article we will use the following notation for an Inductive Rule and its proof:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;P(n)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Proof by induction on n:&lt;br /&gt;
** Base case: &#039;&#039;List of steps to prove the base case &amp;lt;math&amp;gt;P(0)&amp;lt;/math&amp;gt;. Often this is the empty list since &amp;lt;math&amp;gt;P(0)&amp;lt;/math&amp;gt; is trivially true (in zero steps).&#039;&#039;&lt;br /&gt;
** Inductive case: &#039;&#039;List of steps to prove &amp;lt;math&amp;gt;P(n+1)&amp;lt;/math&amp;gt; of which some can be &amp;quot;IH&amp;quot; the inductive hypothesis that &amp;lt;math&amp;gt;P(n)&amp;lt;/math&amp;gt;.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Bouncer ===&lt;br /&gt;
Consider the [[bouncer]] {{TM|1RB0RC_0LC---_1RD1RC_0LE1RA_1RD1LE|non-halt}}. We can prove the following Inductive Rules:&lt;br /&gt;
&lt;br /&gt;
# Shift (L0) Rule: &amp;lt;math&amp;gt;C(n) : \textrm{C&amp;gt;} \; 1^n \to 1^n \; \textrm{C&amp;gt;}&amp;lt;/math&amp;gt;&lt;br /&gt;
#* Proof by induction on n&lt;br /&gt;
#** Base case: []&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\textrm{C&amp;gt;} \; 1^0 = 1^0 \; \textrm{C&amp;gt;}&amp;lt;/math&amp;gt;&lt;br /&gt;
#** Inductive case: [C1, IH]&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\textrm{C&amp;gt;} \; 1^{n+1} \xrightarrow{C1} 1 \; \textrm{C&amp;gt;} \; 1^n \xrightarrow{IH} 1^{n+1} \; \textrm{C&amp;gt;}&amp;lt;/math&amp;gt;&lt;br /&gt;
# Shift (L0) Rule: &amp;lt;math&amp;gt;E(n) : 1^n \; \textrm{&amp;lt;E} \to \textrm{&amp;lt;E} \; 1^n&amp;lt;/math&amp;gt;&lt;br /&gt;
#* Proof by induction on n&lt;br /&gt;
#** Base case: []&lt;br /&gt;
#** Inductive case: [E1, IH]&lt;br /&gt;
# L1 Rule: &amp;lt;math&amp;gt;A(n) : \textrm{A&amp;gt;} \; 1^n \; 0^\infty \to 1^{2n} \; \textrm{A&amp;gt;} \; 0^\infty&amp;lt;/math&amp;gt;&lt;br /&gt;
#* Proof by induction on n&lt;br /&gt;
#** Base case: []&lt;br /&gt;
#** Inductive case: [A1, C(n), C0, D0, E(n+1), E0, D1, IH]&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\begin{array}{l}&lt;br /&gt;
\\&lt;br /&gt;
\textrm{A&amp;gt;} \; 1^{n+1} \; 0^\infty&lt;br /&gt;
&amp;amp; \xrightarrow{A1} &amp;amp;&lt;br /&gt;
  0 \; \textrm{C&amp;gt;} \; 1^n \; 0^\infty \\&lt;br /&gt;
&amp;amp; \xrightarrow{C(n)} &amp;amp;&lt;br /&gt;
  0 \; 1^n \; \textrm{C&amp;gt;} \; 0^\infty \\&lt;br /&gt;
&amp;amp; \xrightarrow{C0} &amp;amp;&lt;br /&gt;
  0 \; 1^{n+1} \; \textrm{D&amp;gt;} \; 0^\infty \\&lt;br /&gt;
&amp;amp; \xrightarrow{D0} &amp;amp;&lt;br /&gt;
  0 \; 1^{n+1} \; \textrm{&amp;lt;E} \; 0^\infty \\&lt;br /&gt;
&amp;amp; \xrightarrow{E(n+1)} &amp;amp;&lt;br /&gt;
  0 \; \textrm{&amp;lt;E} \; 1^{n+1} \; 0^\infty \\&lt;br /&gt;
&amp;amp; \xrightarrow{E0} &amp;amp;&lt;br /&gt;
  1 \; \textrm{D&amp;gt;} \; 1^{n+1} \; 0^\infty \\&lt;br /&gt;
&amp;amp; \xrightarrow{D1} &amp;amp;&lt;br /&gt;
  1^2 \; \textrm{A&amp;gt;} \; 1^n \; 0^\infty \\&lt;br /&gt;
&amp;amp; \xrightarrow{IH} &amp;amp;&lt;br /&gt;
  1^{2(n+1)} \; \textrm{A&amp;gt;} \; 0^\infty \\&lt;br /&gt;
\end{array}&amp;lt;/math&amp;gt;&lt;br /&gt;
# L2 Rule: &amp;lt;math&amp;gt;0^\infty \; 1^a \; \textrm{A&amp;gt;} \; 0^\infty \to 0^\infty \; 1^{2a+6} \; \textrm{A&amp;gt;} \; 0^\infty&amp;lt;/math&amp;gt;&lt;br /&gt;
#* Proof: [A0, B0, C1, C0, D0, E(a+2), E0, D1, A(a+1)]&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\begin{array}{l}&lt;br /&gt;
\\&lt;br /&gt;
0^\infty \; 1^a \; \textrm{A&amp;gt;} \; 0^\infty&lt;br /&gt;
&amp;amp; \xrightarrow{A0, B0, C1, C0, D0} &amp;amp;&lt;br /&gt;
  0^\infty \; 1^{a+2} \; \textrm{&amp;lt;E} \; 0^\infty \\&lt;br /&gt;
&amp;amp; \xrightarrow{E(a+2)} &amp;amp;&lt;br /&gt;
  0^\infty \; \textrm{&amp;lt;E} \; 1^{a+2} \; 0^\infty \\&lt;br /&gt;
&amp;amp; \xrightarrow{E0,D1} &amp;amp;&lt;br /&gt;
  0^\infty \; 1^2 \; \textrm{A&amp;gt;} \; 1^{a+1} \; 0^\infty \\&lt;br /&gt;
&amp;amp; \xrightarrow{A(a+1)} &amp;amp;&lt;br /&gt;
  0^\infty \; 1^{2a+4} \; \textrm{A&amp;gt;} \; 0^\infty \\&lt;br /&gt;
\end{array}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We can see now that the last rule can be applied repeatedly forever, so if it is ever applied once, the TM will never halt. In fact, in this case the start config is equal to &amp;lt;math&amp;gt;0^\infty \; 1^0 \; \textrm{A&amp;gt;} \; 0^\infty&amp;lt;/math&amp;gt; and thus this TM will never halt.&lt;br /&gt;
&lt;br /&gt;
== Tape Compression ==&lt;br /&gt;
We need some automated way to compress the tape into a tuple of integers, and decompress the tape when needed.&lt;br /&gt;
&lt;br /&gt;
=== Macro Machine ===&lt;br /&gt;
We can divide the tape into blocks of fixed size, and merge adjacent identical blocks into one and record the number of repetitions.&lt;br /&gt;
&lt;br /&gt;
Here is an example of how a half-tape is compressed using macro machine:&amp;lt;pre&amp;gt;&lt;br /&gt;
111110110110101010110110 0^inf&lt;br /&gt;
= 111 110 110 110 101 010 110 110 000^inf (use block size 3)&lt;br /&gt;
= 111 110^3 101 010 110^2 000^inf&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Nested Repeater ===&lt;br /&gt;
We can compress the tape by looking for repeaters:&amp;lt;pre&amp;gt;&lt;br /&gt;
101110111 0^inf&lt;br /&gt;
= 1 0 1 1 1 0 1 1 1 0^inf&lt;br /&gt;
= 1 0 1 1 1 0 1 1^2 0^inf (use a a = a^2 for a = 1)&lt;br /&gt;
= 1 0 1 1 1 0 1^3 0^inf (use a a^n = a^(n+1) for a = 1)&lt;br /&gt;
= 1 0 1 1^2 0 1^3 0^inf (use a a = a^2 for a = 1)&lt;br /&gt;
= 1 0 1^3 0 1^3 0^inf (use a a^n = a^(n+1) for a = 1)&lt;br /&gt;
= 1 (0 1^3)^2 0^inf (use a a = a^2 for a = 0 1^3)&lt;br /&gt;
&amp;lt;/pre&amp;gt;Decompression is simple: we only decompress the tape when the head points to a repeater:&amp;lt;pre&amp;gt;&lt;br /&gt;
l X&amp;gt; a^(n+1) r = l X&amp;gt; a a^n r&lt;br /&gt;
l X&amp;gt; a^0 r = l X&amp;gt; r&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Fixed Length Repeater ===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
1101111101111110 0^inf = 1101 (11)^2 0 (11)^3 0 0^inf (length = 2)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Others ===&lt;br /&gt;
For counters and other complex pattern, we can design some specific methods to represent them.&lt;br /&gt;
&lt;br /&gt;
A typical binary counter can be represented by:&amp;lt;pre&amp;gt;&lt;br /&gt;
definition of C:&lt;br /&gt;
C(d0,d1,dh,1) = dh 0^inf&lt;br /&gt;
C(d0,d1,dh,2n+0) = d0 C(d0,d1,n), n&amp;gt;0&lt;br /&gt;
C(d0,d1,dh,2n+1) = d1 C(d0,d1,n), n&amp;gt;0&lt;br /&gt;
increment rule: l qR QR&amp;gt; C(d0,d1,dh,n) → l &amp;lt;QL qL C(d0,d1,dh,n+1)&lt;br /&gt;
where d0,d1,dh,qL,qR are tape segments, l is half-tape, QL,QR are TM states, n is positive integer.&lt;br /&gt;
&amp;lt;/pre&amp;gt;For [[Bell eats counter|bell eats counters]], when the head points to C, (i.e. l X&amp;gt; C(_,_,_,_)), if X=QL we can decompress tape in l to see whether it&#039;s prefix matches qR, if it matches we can apply the increment rule of the counter, otherwise we decompress C by expanding the definition of C (but not recursively unless the head points to C again) so that we can run the TM further.&lt;br /&gt;
&lt;br /&gt;
For [[Sync bouncer counter|sync bouncer counters]], the counter may overflow, so we can use a different representation of the binary counter:&amp;lt;pre&amp;gt;&lt;br /&gt;
C&#039;(0,0,0) = dh 0^inf&lt;br /&gt;
C&#039;(2a,2b+1,0) = d0 C&#039;(a,b,0)&lt;br /&gt;
C&#039;(2a+1,2b,0) = d1 C&#039;(a,b,0)&lt;br /&gt;
C&#039;(a,b,n) is well formed iff a+b+1=2^n&lt;br /&gt;
increment: l qR QR&amp;gt; C&#039;(a+1,b,n) → l &amp;lt;QL qL C&#039;(a,b+1,n)&lt;br /&gt;
overflow: l qR&#039; QR&#039;&amp;gt; C&#039;(0,b,n) → l &amp;lt;QL&#039; qL&#039; C&#039;(2b+1,0,n+1)&lt;br /&gt;
where a,b,n are natural numbers, l is half-tape, QL,QR are states, and d0,d1,dh,qL,qR are tape segments.&lt;br /&gt;
&amp;lt;/pre&amp;gt;We can also support arithmetic sequence:&amp;lt;pre&amp;gt;&lt;br /&gt;
0 1^2 0 1^3 0 1^4 0 1^5 = ((0 1^(2+1*i)) for i in range(4))&lt;br /&gt;
&amp;lt;/pre&amp;gt;And some simple structural counters that can be described by a single integer:&amp;lt;pre&amp;gt;&lt;br /&gt;
B(1) = dh 0^inf&lt;br /&gt;
B(2n+0) = w^n d0 B(n)&lt;br /&gt;
B(2n+1) = w^n d1 B(n)&lt;br /&gt;
l qR QR&amp;gt; B(n) → l &amp;lt;QL qL B(n+1)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Find and Prove Rules ==&lt;br /&gt;
We need some automated way to find rules and prove/use them.&lt;br /&gt;
&lt;br /&gt;
=== Find New Rule by Generalizing Known Rules ===&lt;br /&gt;
We can prove special rules, and generalize them by interpolation (and maybe also need to generalize their proof).&lt;br /&gt;
&lt;br /&gt;
Example:&amp;lt;pre&amp;gt;&lt;br /&gt;
0^inf A&amp;gt; 0^inf → 0^inf A&amp;gt; 0 0^inf&lt;br /&gt;
0^inf A&amp;gt; 0 0^inf → 0^inf 1 A&amp;gt; 0^inf&lt;br /&gt;
0^inf 1 A&amp;gt; 0^inf → 0^inf 1 A&amp;gt; 0 0^inf&lt;br /&gt;
0^inf 1 A&amp;gt; 0 0^inf → 0^inf 1 1 A&amp;gt; 0^inf&lt;br /&gt;
0^inf 1 1 A&amp;gt; 0^inf → 0^inf 1^2 A&amp;gt; 0^inf&lt;br /&gt;
&lt;br /&gt;
0^inf 1^2 A&amp;gt; 0^inf → 0^inf 1^2 A&amp;gt; 0 0^inf&lt;br /&gt;
0^inf 1^2 A&amp;gt; 0 0^inf → 0^inf 1^2 1 A&amp;gt; 0^inf&lt;br /&gt;
0^inf 1^2 1 A&amp;gt; 0^inf → 0^inf 1^3 A&amp;gt; 0^inf&lt;br /&gt;
&lt;br /&gt;
0^inf 1^3 A&amp;gt; 0^inf → 0^inf 1^3 A&amp;gt; 0 0^inf&lt;br /&gt;
0^inf 1^3 A&amp;gt; 0 0^inf → 0^inf 1^3 1 A&amp;gt; 0^inf&lt;br /&gt;
0^inf 1^3 1 A&amp;gt; 0^inf → 0^inf 1^4 A&amp;gt; 0^inf&lt;br /&gt;
&lt;br /&gt;
interpolation:&lt;br /&gt;
0^inf 1^(2+i) A&amp;gt; 0^inf → 0^inf 1^(2+i) A&amp;gt; 0 0^inf&lt;br /&gt;
0^inf 1^(2+i) A&amp;gt; 0 0^inf → 0^inf 1^(2+i) 1 A&amp;gt; 0^inf&lt;br /&gt;
0^inf 1^(2+i) 1 A&amp;gt; 0^inf → 0^inf 1^(3+i) A&amp;gt; 0^inf&lt;br /&gt;
&lt;br /&gt;
merge:&lt;br /&gt;
0^inf 1^(2+i) A&amp;gt; 0^inf → 0^inf 1^(3+i) A&amp;gt; 0^inf&lt;br /&gt;
&lt;br /&gt;
induction:&lt;br /&gt;
0^inf 1^2 A&amp;gt; 0^inf → 0^inf 1^(2+n) A&amp;gt; 0^inf&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Find New Rule by Specializing Known Rules ===&lt;br /&gt;
We can maintain a sequence of used rules, and keep the rules as general as possible, then specialize the rules when needed.&lt;br /&gt;
&lt;br /&gt;
Example:&amp;lt;pre&amp;gt;&lt;br /&gt;
l A&amp;gt; 0^inf → l A&amp;gt; 0 0^inf&lt;br /&gt;
l A&amp;gt; 0 r → l 1 A&amp;gt; r&lt;br /&gt;
l A&amp;gt; 0^inf → l A&amp;gt; 0 0^inf&lt;br /&gt;
l A&amp;gt; 0 r → l 1 A&amp;gt; r&lt;br /&gt;
l 1 1 A&amp;gt; r → l 1^2 A&amp;gt; r&lt;br /&gt;
&lt;br /&gt;
l A&amp;gt; 0^inf → l A&amp;gt; 0 0^inf&lt;br /&gt;
l A&amp;gt; 0 r → l 1 A&amp;gt; r&lt;br /&gt;
l 1^n 1 A&amp;gt; r → l 1^(n+1) A&amp;gt; r&lt;br /&gt;
&lt;br /&gt;
l A&amp;gt; 0^inf → l A&amp;gt; 0 0^inf&lt;br /&gt;
l A&amp;gt; 0 r → l 1 A&amp;gt; r&lt;br /&gt;
l 1^n 1 A&amp;gt; r → l 1^(n+1) A&amp;gt; r&lt;br /&gt;
&lt;br /&gt;
to merge&lt;br /&gt;
l1 A&amp;gt; 0^inf → l1 A&amp;gt; 0 0^inf&lt;br /&gt;
l2 A&amp;gt; 0 r2 → l2 1 A&amp;gt; r2&lt;br /&gt;
we need to solve equation:&lt;br /&gt;
l1 A&amp;gt; 0 0^inf = l2 A&amp;gt; 0 r2&lt;br /&gt;
then we have l1=l2, 0^inf=r2 and substitute them:&lt;br /&gt;
l2 A&amp;gt; 0^inf → l2 A&amp;gt; 0 0^inf&lt;br /&gt;
l2 A&amp;gt; 0 0^inf → l2 1 A&amp;gt; 0^inf&lt;br /&gt;
and then these two rules are ready to be merged as&lt;br /&gt;
l2 A&amp;gt; 0^inf → l2 1 A&amp;gt; 0^inf&lt;br /&gt;
then we can merge&lt;br /&gt;
l2 A&amp;gt; 0^inf → l2 1 A&amp;gt; 0^inf&lt;br /&gt;
l 1^n 1 A&amp;gt; r → l 1^(n+1) A&amp;gt; r&lt;br /&gt;
in a similar way into&lt;br /&gt;
l 1^n A&amp;gt; 0^inf → l 1^(n+1) A&amp;gt; 0^inf&lt;br /&gt;
&lt;br /&gt;
induction:&lt;br /&gt;
l 1^n A&amp;gt; 0^inf → l 1^(n+m) A&amp;gt; 0^inf&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;A method for solving equations (similar to unification in type theory):&amp;lt;pre&amp;gt;&lt;br /&gt;
First we use ((X -&amp;gt; A→B) /\ (Y -&amp;gt; C→D)) -&amp;gt; (B=C -&amp;gt; X -&amp;gt; Y -&amp;gt; A→D) to get a rule A→D that has premises B=C,X,Y.&lt;br /&gt;
Then we simplify the rule (B=C -&amp;gt; X -&amp;gt; Y -&amp;gt; A→D) by solving equantions in the premise:&lt;br /&gt;
If (a,b)=(c,d) is in the premise list, we can replace it with a=c, b=d, where (x,y) can be tape segment concatenation (x y), tape segment repeation (x^y) or something similar.&lt;br /&gt;
If a=b is in the premise list, a is variable, we substitute all occurence of a by b in the rule.&lt;br /&gt;
If a*x+b=c*y+d is in the premise list, x,y are natural number variables, a,b,c,d are natural number constants, we can divide a,b,c,d by gcd(a,b,c,d) and then substitute x,y by a&#039;*x&#039;+b&#039;,c&#039;*x&#039;+d&#039; based on some number theory methods.&lt;br /&gt;
For an expression of natural numbers, we can simplify it as a1*x1+a2*x2+...+an*xn+b, where a1,a2,...,an,b are natural number constants.&lt;br /&gt;
We can remove a=a from the premise list.&lt;br /&gt;
&lt;br /&gt;
If the premise list is not empty after using these methods repeatly, we just leave it as part of the rule.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Recursive Record-Breaking Analysis ===&lt;br /&gt;
We can run a Turing machine on a tape segment until it leaves the tape segment.&lt;br /&gt;
&lt;br /&gt;
In this process, every time the Turing machine visits a new position, we recursively consider when the Turing machine will leave the positions it has already visited (i.e. visit the next new position or leave the current tape segment).&lt;br /&gt;
&lt;br /&gt;
We can use memoize search in this process for acceleration, and regard the process of leaving a tape segment as a rule. Then the rule sequence (or rule dependency graph) may be generalized to new induction rules.&lt;br /&gt;
[[Category:Deciders]]&lt;/div&gt;</summary>
		<author><name>Mxdys</name></author>
	</entry>
	<entry>
		<id>https://wiki.bbchallenge.org/w/index.php?title=Inductive_Proof_System&amp;diff=1303</id>
		<title>Inductive Proof System</title>
		<link rel="alternate" type="text/html" href="https://wiki.bbchallenge.org/w/index.php?title=Inductive_Proof_System&amp;diff=1303"/>
		<updated>2024-11-15T21:47:10Z</updated>

		<summary type="html">&lt;p&gt;Mxdys: Find and Prove Rules in Inductive Decider&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;An &#039;&#039;&#039;Inductive Proof System&#039;&#039;&#039; is an [[Accelerated Simulator]] and [[Decider]] which operates by automatically detecting and proving [[Transition rule|transition rules]] using Mathematical Induction. &lt;br /&gt;
&lt;br /&gt;
== Inductive Rule ==&lt;br /&gt;
An inductive rule is a general transition rule (a start and end configuration, generalized with variables for repetition counts) along with a proof. The proof generally has two pieces: the base case and the inductive case. Each is a list of steps where each step is (A) a specific TM transition, (B) an application of the inductive hypothesis, (C) an application of a previously defined rule.&lt;br /&gt;
&lt;br /&gt;
=== Rule Levels ===&lt;br /&gt;
We can assign levels to any Inductive Rule. A Level 0 (L0) rule does not depend on any previously defined inductive rules. A Level 1 (L1) rule depends only upon previously proven L0 rules, etc. All L0 Rules (which only invoke the inductive hypothesis once) are [[Shift rule|Shift rules]].&lt;br /&gt;
&lt;br /&gt;
== Example Proofs ==&lt;br /&gt;
&lt;br /&gt;
=== Notation ===&lt;br /&gt;
In this article we will use the following notation for an Inductive Rule and its proof:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;P(n)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Proof by induction on n:&lt;br /&gt;
** Base case: &#039;&#039;List of steps to prove the base case &amp;lt;math&amp;gt;P(0)&amp;lt;/math&amp;gt;. Often this is the empty list since &amp;lt;math&amp;gt;P(0)&amp;lt;/math&amp;gt; is trivially true (in zero steps).&#039;&#039;&lt;br /&gt;
** Inductive case: &#039;&#039;List of steps to prove &amp;lt;math&amp;gt;P(n+1)&amp;lt;/math&amp;gt; of which some can be &amp;quot;IH&amp;quot; the inductive hypothesis that &amp;lt;math&amp;gt;P(n)&amp;lt;/math&amp;gt;.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Bouncer ===&lt;br /&gt;
Consider the [[bouncer]] {{TM|1RB0RC_0LC---_1RD1RC_0LE1RA_1RD1LE|non-halt}}. We can prove the following Inductive Rules:&lt;br /&gt;
&lt;br /&gt;
# Shift (L0) Rule: &amp;lt;math&amp;gt;C(n) : \textrm{C&amp;gt;} \; 1^n \to 1^n \; \textrm{C&amp;gt;}&amp;lt;/math&amp;gt;&lt;br /&gt;
#* Proof by induction on n&lt;br /&gt;
#** Base case: []&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\textrm{C&amp;gt;} \; 1^0 = 1^0 \; \textrm{C&amp;gt;}&amp;lt;/math&amp;gt;&lt;br /&gt;
#** Inductive case: [C1, IH]&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\textrm{C&amp;gt;} \; 1^{n+1} \xrightarrow{C1} 1 \; \textrm{C&amp;gt;} \; 1^n \xrightarrow{IH} 1^{n+1} \; \textrm{C&amp;gt;}&amp;lt;/math&amp;gt;&lt;br /&gt;
# Shift (L0) Rule: &amp;lt;math&amp;gt;E(n) : 1^n \; \textrm{&amp;lt;E} \to \textrm{&amp;lt;E} \; 1^n&amp;lt;/math&amp;gt;&lt;br /&gt;
#* Proof by induction on n&lt;br /&gt;
#** Base case: []&lt;br /&gt;
#** Inductive case: [E1, IH]&lt;br /&gt;
# L1 Rule: &amp;lt;math&amp;gt;A(n) : \textrm{A&amp;gt;} \; 1^n \; 0^\infty \to 1^{2n} \; \textrm{A&amp;gt;} \; 0^\infty&amp;lt;/math&amp;gt;&lt;br /&gt;
#* Proof by induction on n&lt;br /&gt;
#** Base case: []&lt;br /&gt;
#** Inductive case: [A1, C(n), C0, D0, E(n+1), E0, D1, IH]&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\begin{array}{l}&lt;br /&gt;
\\&lt;br /&gt;
\textrm{A&amp;gt;} \; 1^{n+1} \; 0^\infty&lt;br /&gt;
&amp;amp; \xrightarrow{A1} &amp;amp;&lt;br /&gt;
  0 \; \textrm{C&amp;gt;} \; 1^n \; 0^\infty \\&lt;br /&gt;
&amp;amp; \xrightarrow{C(n)} &amp;amp;&lt;br /&gt;
  0 \; 1^n \; \textrm{C&amp;gt;} \; 0^\infty \\&lt;br /&gt;
&amp;amp; \xrightarrow{C0} &amp;amp;&lt;br /&gt;
  0 \; 1^{n+1} \; \textrm{D&amp;gt;} \; 0^\infty \\&lt;br /&gt;
&amp;amp; \xrightarrow{D0} &amp;amp;&lt;br /&gt;
  0 \; 1^{n+1} \; \textrm{&amp;lt;E} \; 0^\infty \\&lt;br /&gt;
&amp;amp; \xrightarrow{E(n+1)} &amp;amp;&lt;br /&gt;
  0 \; \textrm{&amp;lt;E} \; 1^{n+1} \; 0^\infty \\&lt;br /&gt;
&amp;amp; \xrightarrow{E0} &amp;amp;&lt;br /&gt;
  1 \; \textrm{D&amp;gt;} \; 1^{n+1} \; 0^\infty \\&lt;br /&gt;
&amp;amp; \xrightarrow{D1} &amp;amp;&lt;br /&gt;
  1^2 \; \textrm{A&amp;gt;} \; 1^n \; 0^\infty \\&lt;br /&gt;
&amp;amp; \xrightarrow{IH} &amp;amp;&lt;br /&gt;
  1^{2(n+1)} \; \textrm{A&amp;gt;} \; 0^\infty \\&lt;br /&gt;
\end{array}&amp;lt;/math&amp;gt;&lt;br /&gt;
# L2 Rule: &amp;lt;math&amp;gt;0^\infty \; 1^a \; \textrm{A&amp;gt;} \; 0^\infty \to 0^\infty \; 1^{2a+6} \; \textrm{A&amp;gt;} \; 0^\infty&amp;lt;/math&amp;gt;&lt;br /&gt;
#* Proof: [A0, B0, C1, C0, D0, E(a+2), E0, D1, A(a+1)]&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\begin{array}{l}&lt;br /&gt;
\\&lt;br /&gt;
0^\infty \; 1^a \; \textrm{A&amp;gt;} \; 0^\infty&lt;br /&gt;
&amp;amp; \xrightarrow{A0, B0, C1, C0, D0} &amp;amp;&lt;br /&gt;
  0^\infty \; 1^{a+2} \; \textrm{&amp;lt;E} \; 0^\infty \\&lt;br /&gt;
&amp;amp; \xrightarrow{E(a+2)} &amp;amp;&lt;br /&gt;
  0^\infty \; \textrm{&amp;lt;E} \; 1^{a+2} \; 0^\infty \\&lt;br /&gt;
&amp;amp; \xrightarrow{E0,D1} &amp;amp;&lt;br /&gt;
  0^\infty \; 1^2 \; \textrm{A&amp;gt;} \; 1^{a+1} \; 0^\infty \\&lt;br /&gt;
&amp;amp; \xrightarrow{A(a+1)} &amp;amp;&lt;br /&gt;
  0^\infty \; 1^{2a+4} \; \textrm{A&amp;gt;} \; 0^\infty \\&lt;br /&gt;
\end{array}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We can see now that the last rule can be applied repeatedly forever, so if it is ever applied once, the TM will never halt. In fact, in this case the start config is equal to &amp;lt;math&amp;gt;0^\infty \; 1^0 \; \textrm{A&amp;gt;} \; 0^\infty&amp;lt;/math&amp;gt; and thus this TM will never halt.&lt;br /&gt;
&lt;br /&gt;
== Tape Compression ==&lt;br /&gt;
We need some automated way to compress the tape into a tuple of integers, and decompress the tape when needed.&lt;br /&gt;
&lt;br /&gt;
=== Macro Machine ===&lt;br /&gt;
We can divide the tape into blocks of fixed size, and merge adjacent identical blocks into one and record the number of repetitions.&lt;br /&gt;
&lt;br /&gt;
Here is an example of how a half-tape is compressed using macro machine:&amp;lt;pre&amp;gt;&lt;br /&gt;
111110110110101010110110 0^inf&lt;br /&gt;
= 111 110 110 110 101 010 110 110 000^inf (use block size 3)&lt;br /&gt;
= 111 110^3 101 010 110^2 000^inf&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Nested Repeater ===&lt;br /&gt;
We can compress the tape by looking for repeaters:&amp;lt;pre&amp;gt;&lt;br /&gt;
101110111 0^inf&lt;br /&gt;
= 1 0 1 1 1 0 1 1 1 0^inf&lt;br /&gt;
= 1 0 1 1 1 0 1 1^2 0^inf (use a a = a^2 for a = 1)&lt;br /&gt;
= 1 0 1 1 1 0 1^3 0^inf (use a a^n = a^(n+1) for a = 1)&lt;br /&gt;
= 1 0 1 1^2 0 1^3 0^inf (use a a = a^2 for a = 1)&lt;br /&gt;
= 1 0 1^3 0 1^3 0^inf (use a a^n = a^(n+1) for a = 1)&lt;br /&gt;
= 1 (0 1^3)^2 0^inf (use a a = a^2 for a = 0 1^3)&lt;br /&gt;
&amp;lt;/pre&amp;gt;Decompression is simple: we only decompress the tape when the head points to a repeater:&amp;lt;pre&amp;gt;&lt;br /&gt;
l X&amp;gt; a^(n+1) r = l X&amp;gt; a a^n r&lt;br /&gt;
l X&amp;gt; a^0 r = l X&amp;gt; r&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Fixed Length Repeater ===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
1101111101111110 0^inf = 1101 (11)^2 0 (11)^3 0 0^inf (length = 2)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Others ===&lt;br /&gt;
For counters and other complex pattern, we can design some specific methods to represent them.&lt;br /&gt;
&lt;br /&gt;
A typical binary counter can be represented by:&amp;lt;pre&amp;gt;&lt;br /&gt;
definition of C:&lt;br /&gt;
C(d0,d1,dh,1) = dh 0^inf&lt;br /&gt;
C(d0,d1,dh,2n+0) = d0 C(d0,d1,n), n&amp;gt;0&lt;br /&gt;
C(d0,d1,dh,2n+1) = d1 C(d0,d1,n), n&amp;gt;0&lt;br /&gt;
increment rule: l qR QR&amp;gt; C(d0,d1,dh,n) → l &amp;lt;QL qL C(d0,d1,dh,n+1)&lt;br /&gt;
where d0,d1,dh,qL,qR are tape segments, l is half-tape, QL,QR are TM states, n is positive integer.&lt;br /&gt;
&amp;lt;/pre&amp;gt;For [[Bell eats counter|bell eats counters]], when the head points to C, (i.e. l X&amp;gt; C(_,_,_,_)), if X=QL we can decompress tape in l to see whether it&#039;s prefix matches qR, if it matches we can apply the increment rule of the counter, otherwise we decompress C by expanding the definition of C (but not recursively unless the head points to C again) so that we can run the TM further.&lt;br /&gt;
&lt;br /&gt;
For [[Sync bouncer counter|sync bouncer counters]], the counter may overflow, so we can use a different representation of the binary counter:&amp;lt;pre&amp;gt;&lt;br /&gt;
C&#039;(0,0,0) = dh 0^inf&lt;br /&gt;
C&#039;(2a,2b+1,0) = d0 C&#039;(a,b,0)&lt;br /&gt;
C&#039;(2a+1,2b,0) = d1 C&#039;(a,b,0)&lt;br /&gt;
C&#039;(a,b,n) is well formed iff a+b+1=2^n&lt;br /&gt;
increment: l qR QR&amp;gt; C&#039;(a+1,b,n) → l &amp;lt;QL qL C&#039;(a,b+1,n)&lt;br /&gt;
overflow: l qR&#039; QR&#039;&amp;gt; C&#039;(0,b,n) → l &amp;lt;QL&#039; qL&#039; C&#039;(2b+1,0,n+1)&lt;br /&gt;
where a,b,n are natural numbers, l is half-tape, QL,QR are states, and d0,d1,dh,qL,qR are tape segments.&lt;br /&gt;
&amp;lt;/pre&amp;gt;We can also support arithmetic sequence:&amp;lt;pre&amp;gt;&lt;br /&gt;
0 1^2 0 1^3 0 1^4 0 1^5 = ((0 1^(2+1*i)) for i in range(4))&lt;br /&gt;
&amp;lt;/pre&amp;gt;And some simple structural counters that can be described by a single integer:&amp;lt;pre&amp;gt;&lt;br /&gt;
B(1) = dh 0^inf&lt;br /&gt;
B(2n+0) = w^n d0 B(n)&lt;br /&gt;
B(2n+1) = w^n d1 B(n)&lt;br /&gt;
l qR QR&amp;gt; B(n) → l &amp;lt;QL qL B(n+1)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Find and Prove Rules ==&lt;br /&gt;
We need some automated way to find rules and prove/use them.&lt;br /&gt;
&lt;br /&gt;
=== Find New Rule by Generalizing Known Rules ===&lt;br /&gt;
We can prove special rules, and generalize them by interpolation (and maybe also need to generalize their proof).&lt;br /&gt;
&lt;br /&gt;
Example:&amp;lt;pre&amp;gt;&lt;br /&gt;
0^inf A&amp;gt; 0^inf → 0^inf A&amp;gt; 0 0^inf&lt;br /&gt;
0^inf A&amp;gt; 0 0^inf → 0^inf 1 A&amp;gt; 0^inf&lt;br /&gt;
0^inf 1 A&amp;gt; 0^inf → 0^inf 1 A&amp;gt; 0 0^inf&lt;br /&gt;
0^inf 1 A&amp;gt; 0 0^inf → 0^inf 1 1 A&amp;gt; 0^inf&lt;br /&gt;
0^inf 1 1 A&amp;gt; 0^inf → 0^inf 1^2 A&amp;gt; 0^inf&lt;br /&gt;
&lt;br /&gt;
0^inf 1^2 A&amp;gt; 0^inf → 0^inf 1^2 A&amp;gt; 0 0^inf&lt;br /&gt;
0^inf 1^2 A&amp;gt; 0 0^inf → 0^inf 1^2 1 A&amp;gt; 0^inf&lt;br /&gt;
0^inf 1^2 1 A&amp;gt; 0^inf → 0^inf 1^3 A&amp;gt; 0^inf&lt;br /&gt;
&lt;br /&gt;
0^inf 1^3 A&amp;gt; 0^inf → 0^inf 1^3 A&amp;gt; 0 0^inf&lt;br /&gt;
0^inf 1^3 A&amp;gt; 0 0^inf → 0^inf 1^3 1 A&amp;gt; 0^inf&lt;br /&gt;
0^inf 1^3 1 A&amp;gt; 0^inf → 0^inf 1^4 A&amp;gt; 0^inf&lt;br /&gt;
&lt;br /&gt;
interpolation:&lt;br /&gt;
0^inf 1^(2+i) A&amp;gt; 0^inf → 0^inf 1^(2+i) A&amp;gt; 0 0^inf&lt;br /&gt;
0^inf 1^(2+i) A&amp;gt; 0 0^inf → 0^inf 1^(2+i) 1 A&amp;gt; 0^inf&lt;br /&gt;
0^inf 1^(2+i) 1 A&amp;gt; 0^inf → 0^inf 1^(3+i) A&amp;gt; 0^inf&lt;br /&gt;
&lt;br /&gt;
merge:&lt;br /&gt;
0^inf 1^(2+i) A&amp;gt; 0^inf → 0^inf 1^(3+i) A&amp;gt; 0^inf&lt;br /&gt;
&lt;br /&gt;
induction:&lt;br /&gt;
0^inf 1^2 A&amp;gt; 0^inf → 0^inf 1^(2+n) A&amp;gt; 0^inf&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Find New Rule by Specializing Known Rules ===&lt;br /&gt;
We can maintain a sequence of used rules, and keep the rules as general as possible, then specialize the rules when needed.&lt;br /&gt;
&lt;br /&gt;
Example:&amp;lt;pre&amp;gt;&lt;br /&gt;
l A&amp;gt; 0^inf → l A&amp;gt; 0 0^inf&lt;br /&gt;
l A&amp;gt; 0 r → l 1 A&amp;gt; r&lt;br /&gt;
l A&amp;gt; 0^inf → l A&amp;gt; 0 0^inf&lt;br /&gt;
l A&amp;gt; 0 r → l 1 A&amp;gt; r&lt;br /&gt;
l 1 1 A&amp;gt; r → l 1^2 A&amp;gt; r&lt;br /&gt;
&lt;br /&gt;
l A&amp;gt; 0^inf → l A&amp;gt; 0 0^inf&lt;br /&gt;
l A&amp;gt; 0 r → l 1 A&amp;gt; r&lt;br /&gt;
l 1^n 1 A&amp;gt; r → l 1^(n+1) A&amp;gt; r&lt;br /&gt;
&lt;br /&gt;
l A&amp;gt; 0^inf → l A&amp;gt; 0 0^inf&lt;br /&gt;
l A&amp;gt; 0 r → l 1 A&amp;gt; r&lt;br /&gt;
l 1^n 1 A&amp;gt; r → l 1^(n+1) A&amp;gt; r&lt;br /&gt;
&lt;br /&gt;
to merge&lt;br /&gt;
l1 A&amp;gt; 0^inf → l1 A&amp;gt; 0 0^inf&lt;br /&gt;
l2 A&amp;gt; 0 r2 → l2 1 A&amp;gt; r2&lt;br /&gt;
we need to solve equation:&lt;br /&gt;
l1 A&amp;gt; 0 0^inf = l2 A&amp;gt; 0 r2&lt;br /&gt;
then we have l1=l2, 0^inf=r2 and substitute them:&lt;br /&gt;
l2 A&amp;gt; 0^inf → l2 A&amp;gt; 0 0^inf&lt;br /&gt;
l2 A&amp;gt; 0 0^inf → l2 1 A&amp;gt; 0^inf&lt;br /&gt;
and then these two rules are ready to be merged as&lt;br /&gt;
l2 A&amp;gt; 0^inf → l2 1 A&amp;gt; 0^inf&lt;br /&gt;
then we can merge&lt;br /&gt;
l2 A&amp;gt; 0^inf → l2 1 A&amp;gt; 0^inf&lt;br /&gt;
l 1^n 1 A&amp;gt; r → l 1^(n+1) A&amp;gt; r&lt;br /&gt;
in a similar way into&lt;br /&gt;
l 1^n A&amp;gt; 0^inf → l 1^(n+1) A&amp;gt; 0^inf&lt;br /&gt;
&lt;br /&gt;
induction:&lt;br /&gt;
l 1^n A&amp;gt; 0^inf → l 1^(n+m) A&amp;gt; 0^inf&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Recursive Record-Breaking Analysis ===&lt;br /&gt;
We can run a Turing machine on a tape segment until it leaves the tape segment.&lt;br /&gt;
&lt;br /&gt;
In this process, every time the Turing machine visits a new position, we recursively consider when the Turing machine will leave the positions it has already visited (i.e. visit the next new position or leave the current tape segment).&lt;br /&gt;
&lt;br /&gt;
We can use memoize search in this process for acceleration, and regard the process of leaving a tape segment as a rule. Then the rule sequence (or rule dependency graph) may be generalized to new induction rules.&lt;br /&gt;
[[Category:Deciders]]&lt;/div&gt;</summary>
		<author><name>Mxdys</name></author>
	</entry>
	<entry>
		<id>https://wiki.bbchallenge.org/w/index.php?title=Inductive_Proof_System&amp;diff=1302</id>
		<title>Inductive Proof System</title>
		<link rel="alternate" type="text/html" href="https://wiki.bbchallenge.org/w/index.php?title=Inductive_Proof_System&amp;diff=1302"/>
		<updated>2024-11-15T20:04:23Z</updated>

		<summary type="html">&lt;p&gt;Mxdys: tape compression methods for inductive decider&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;An &#039;&#039;&#039;Inductive Proof System&#039;&#039;&#039; is an [[Accelerated Simulator]] and [[Decider]] which operates by automatically detecting and proving [[Transition rule|transition rules]] using Mathematical Induction. &lt;br /&gt;
&lt;br /&gt;
== Inductive Rule ==&lt;br /&gt;
An inductive rule is a general transition rule (a start and end configuration, generalized with variables for repetition counts) along with a proof. The proof generally has two pieces: the base case and the inductive case. Each is a list of steps where each step is (A) a specific TM transition, (B) an application of the inductive hypothesis, (C) an application of a previously defined rule.&lt;br /&gt;
&lt;br /&gt;
=== Rule Levels ===&lt;br /&gt;
We can assign levels to any Inductive Rule. A Level 0 (L0) rule does not depend on any previously defined inductive rules. A Level 1 (L1) rule depends only upon previously proven L0 rules, etc. All L0 Rules (which only invoke the inductive hypothesis once) are [[Shift rule|Shift rules]].&lt;br /&gt;
&lt;br /&gt;
== Example Proofs ==&lt;br /&gt;
&lt;br /&gt;
=== Notation ===&lt;br /&gt;
In this article we will use the following notation for an Inductive Rule and its proof:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;P(n)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Proof by induction on n:&lt;br /&gt;
** Base case: &#039;&#039;List of steps to prove the base case &amp;lt;math&amp;gt;P(0)&amp;lt;/math&amp;gt;. Often this is the empty list since &amp;lt;math&amp;gt;P(0)&amp;lt;/math&amp;gt; is trivially true (in zero steps).&#039;&#039;&lt;br /&gt;
** Inductive case: &#039;&#039;List of steps to prove &amp;lt;math&amp;gt;P(n+1)&amp;lt;/math&amp;gt; of which some can be &amp;quot;IH&amp;quot; the inductive hypothesis that &amp;lt;math&amp;gt;P(n)&amp;lt;/math&amp;gt;.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Bouncer ===&lt;br /&gt;
Consider the [[bouncer]] {{TM|1RB0RC_0LC---_1RD1RC_0LE1RA_1RD1LE|non-halt}}. We can prove the following Inductive Rules:&lt;br /&gt;
&lt;br /&gt;
# Shift (L0) Rule: &amp;lt;math&amp;gt;C(n) : \textrm{C&amp;gt;} \; 1^n \to 1^n \; \textrm{C&amp;gt;}&amp;lt;/math&amp;gt;&lt;br /&gt;
#* Proof by induction on n&lt;br /&gt;
#** Base case: []&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\textrm{C&amp;gt;} \; 1^0 = 1^0 \; \textrm{C&amp;gt;}&amp;lt;/math&amp;gt;&lt;br /&gt;
#** Inductive case: [C1, IH]&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\textrm{C&amp;gt;} \; 1^{n+1} \xrightarrow{C1} 1 \; \textrm{C&amp;gt;} \; 1^n \xrightarrow{IH} 1^{n+1} \; \textrm{C&amp;gt;}&amp;lt;/math&amp;gt;&lt;br /&gt;
# Shift (L0) Rule: &amp;lt;math&amp;gt;E(n) : 1^n \; \textrm{&amp;lt;E} \to \textrm{&amp;lt;E} \; 1^n&amp;lt;/math&amp;gt;&lt;br /&gt;
#* Proof by induction on n&lt;br /&gt;
#** Base case: []&lt;br /&gt;
#** Inductive case: [E1, IH]&lt;br /&gt;
# L1 Rule: &amp;lt;math&amp;gt;A(n) : \textrm{A&amp;gt;} \; 1^n \; 0^\infty \to 1^{2n} \; \textrm{A&amp;gt;} \; 0^\infty&amp;lt;/math&amp;gt;&lt;br /&gt;
#* Proof by induction on n&lt;br /&gt;
#** Base case: []&lt;br /&gt;
#** Inductive case: [A1, C(n), C0, D0, E(n+1), E0, D1, IH]&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\begin{array}{l}&lt;br /&gt;
\\&lt;br /&gt;
\textrm{A&amp;gt;} \; 1^{n+1} \; 0^\infty&lt;br /&gt;
&amp;amp; \xrightarrow{A1} &amp;amp;&lt;br /&gt;
  0 \; \textrm{C&amp;gt;} \; 1^n \; 0^\infty \\&lt;br /&gt;
&amp;amp; \xrightarrow{C(n)} &amp;amp;&lt;br /&gt;
  0 \; 1^n \; \textrm{C&amp;gt;} \; 0^\infty \\&lt;br /&gt;
&amp;amp; \xrightarrow{C0} &amp;amp;&lt;br /&gt;
  0 \; 1^{n+1} \; \textrm{D&amp;gt;} \; 0^\infty \\&lt;br /&gt;
&amp;amp; \xrightarrow{D0} &amp;amp;&lt;br /&gt;
  0 \; 1^{n+1} \; \textrm{&amp;lt;E} \; 0^\infty \\&lt;br /&gt;
&amp;amp; \xrightarrow{E(n+1)} &amp;amp;&lt;br /&gt;
  0 \; \textrm{&amp;lt;E} \; 1^{n+1} \; 0^\infty \\&lt;br /&gt;
&amp;amp; \xrightarrow{E0} &amp;amp;&lt;br /&gt;
  1 \; \textrm{D&amp;gt;} \; 1^{n+1} \; 0^\infty \\&lt;br /&gt;
&amp;amp; \xrightarrow{D1} &amp;amp;&lt;br /&gt;
  1^2 \; \textrm{A&amp;gt;} \; 1^n \; 0^\infty \\&lt;br /&gt;
&amp;amp; \xrightarrow{IH} &amp;amp;&lt;br /&gt;
  1^{2(n+1)} \; \textrm{A&amp;gt;} \; 0^\infty \\&lt;br /&gt;
\end{array}&amp;lt;/math&amp;gt;&lt;br /&gt;
# L2 Rule: &amp;lt;math&amp;gt;0^\infty \; 1^a \; \textrm{A&amp;gt;} \; 0^\infty \to 0^\infty \; 1^{2a+6} \; \textrm{A&amp;gt;} \; 0^\infty&amp;lt;/math&amp;gt;&lt;br /&gt;
#* Proof: [A0, B0, C1, C0, D0, E(a+2), E0, D1, A(a+1)]&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\begin{array}{l}&lt;br /&gt;
\\&lt;br /&gt;
0^\infty \; 1^a \; \textrm{A&amp;gt;} \; 0^\infty&lt;br /&gt;
&amp;amp; \xrightarrow{A0, B0, C1, C0, D0} &amp;amp;&lt;br /&gt;
  0^\infty \; 1^{a+2} \; \textrm{&amp;lt;E} \; 0^\infty \\&lt;br /&gt;
&amp;amp; \xrightarrow{E(a+2)} &amp;amp;&lt;br /&gt;
  0^\infty \; \textrm{&amp;lt;E} \; 1^{a+2} \; 0^\infty \\&lt;br /&gt;
&amp;amp; \xrightarrow{E0,D1} &amp;amp;&lt;br /&gt;
  0^\infty \; 1^2 \; \textrm{A&amp;gt;} \; 1^{a+1} \; 0^\infty \\&lt;br /&gt;
&amp;amp; \xrightarrow{A(a+1)} &amp;amp;&lt;br /&gt;
  0^\infty \; 1^{2a+4} \; \textrm{A&amp;gt;} \; 0^\infty \\&lt;br /&gt;
\end{array}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We can see now that the last rule can be applied repeatedly forever, so if it is ever applied once, the TM will never halt. In fact, in this case the start config is equal to &amp;lt;math&amp;gt;0^\infty \; 1^0 \; \textrm{A&amp;gt;} \; 0^\infty&amp;lt;/math&amp;gt; and thus this TM will never halt.&lt;br /&gt;
&lt;br /&gt;
== Tape Compression ==&lt;br /&gt;
We need some automated way to compress the tape into a tuple of integers, and decompress the tape when needed.&lt;br /&gt;
&lt;br /&gt;
=== Macro Machine ===&lt;br /&gt;
We can divide the tape into blocks of fixed size, and merge adjacent identical blocks into one and record the number of repetitions.&lt;br /&gt;
&lt;br /&gt;
Here is an example of how a half-tape is compressed using macro machine:&amp;lt;pre&amp;gt;&lt;br /&gt;
111110110110101010110110 0^inf&lt;br /&gt;
= 111 110 110 110 101 010 110 110 000^inf (use block size 3)&lt;br /&gt;
= 111 110^3 101 010 110^2 000^inf&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Nested Repeater ===&lt;br /&gt;
We can compress the tape by looking for repeaters:&amp;lt;pre&amp;gt;&lt;br /&gt;
101110111 0^inf&lt;br /&gt;
= 1 0 1 1 1 0 1 1 1 0^inf&lt;br /&gt;
= 1 0 1 1 1 0 1 1^2 0^inf (use a a = a^2 for a = 1)&lt;br /&gt;
= 1 0 1 1 1 0 1^3 0^inf (use a a^n = a^(n+1) for a = 1)&lt;br /&gt;
= 1 0 1 1^2 0 1^3 0^inf (use a a = a^2 for a = 1)&lt;br /&gt;
= 1 0 1^3 0 1^3 0^inf (use a a^n = a^(n+1) for a = 1)&lt;br /&gt;
= 1 (0 1^3)^2 0^inf (use a a = a^2 for a = 0 1^3)&lt;br /&gt;
&amp;lt;/pre&amp;gt;Decompression is simple: we only decompress the tape when the head points to a repeater:&amp;lt;pre&amp;gt;&lt;br /&gt;
l X&amp;gt; a^(n+1) r = l X&amp;gt; a a^n r&lt;br /&gt;
l X&amp;gt; a^0 r = l X&amp;gt; r&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Fixed Length Repeater ===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
1101111101111110 0^inf = 1101 (11)^2 0 (11)^3 0 0^inf (length = 2)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Others ===&lt;br /&gt;
For counters and other complex pattern, we can design some specific methods to represent them.&lt;br /&gt;
&lt;br /&gt;
A typical binary counter can be represented by:&amp;lt;pre&amp;gt;&lt;br /&gt;
definition of C:&lt;br /&gt;
C(d0,d1,dh,1) = dh 0^inf&lt;br /&gt;
C(d0,d1,dh,2n+0) = d0 C(d0,d1,n), n&amp;gt;0&lt;br /&gt;
C(d0,d1,dh,2n+1) = d1 C(d0,d1,n), n&amp;gt;0&lt;br /&gt;
increment rule: l qR QR&amp;gt; C(d0,d1,dh,n) → l &amp;lt;QL qL C(d0,d1,dh,n+1)&lt;br /&gt;
where d0,d1,dh,qL,qR are tape segments, l is half-tape, QL,QR are TM states, n is positive integer.&lt;br /&gt;
&amp;lt;/pre&amp;gt;For [[Bell eats counter|bell eats counters]], when the head points to C, (i.e. l X&amp;gt; C(_,_,_,_)), if X=QL we can decompress tape in l to see whether it&#039;s prefix matches qR, if it matches we can apply the increment rule of the counter, otherwise we decompress C by expanding the definition of C (but not recursively unless the head points to C again) so that we can run the TM further.&lt;br /&gt;
&lt;br /&gt;
For [[Sync bouncer counter|sync bouncer counters]], the counter may overflow, so we can use a different representation of the binary counter:&amp;lt;pre&amp;gt;&lt;br /&gt;
C&#039;(0,0,0) = dh 0^inf&lt;br /&gt;
C&#039;(2a,2b+1,0) = d0 C&#039;(a,b,0)&lt;br /&gt;
C&#039;(2a+1,2b,0) = d1 C&#039;(a,b,0)&lt;br /&gt;
C&#039;(a,b,n) is well formed iff a+b+1=2^n&lt;br /&gt;
increment: l qR QR&amp;gt; C&#039;(a+1,b,n) → l &amp;lt;QL qL C&#039;(a,b+1,n)&lt;br /&gt;
overflow: l qR&#039; QR&#039;&amp;gt; C&#039;(0,b,n) → l &amp;lt;QL&#039; qL&#039; C&#039;(2b+1,0,n+1)&lt;br /&gt;
where a,b,n are natural numbers, l is half-tape, QL,QR are states, and d0,d1,dh,qL,qR are tape segments.&lt;br /&gt;
&amp;lt;/pre&amp;gt;We can also support arithmetic sequence:&amp;lt;pre&amp;gt;&lt;br /&gt;
0 1^2 0 1^3 0 1^4 0 1^5 = ((0 1^(2+1*i)) for i in range(4))&lt;br /&gt;
&amp;lt;/pre&amp;gt;And some simple structural counters that can be described by a single integer:&amp;lt;pre&amp;gt;&lt;br /&gt;
B(1) = dh 0^inf&lt;br /&gt;
B(2n+0) = w^n d0 B(n)&lt;br /&gt;
B(2n+1) = w^n d1 B(n)&lt;br /&gt;
l qR QR&amp;gt; B(n) → l &amp;lt;QL qL B(n+1)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
[[Category:Deciders]]&lt;/div&gt;</summary>
		<author><name>Mxdys</name></author>
	</entry>
	<entry>
		<id>https://wiki.bbchallenge.org/w/index.php?title=1RB0LD_1RC1RF_1LA0RA_0LA0LE_1LD1LA_0RB---&amp;diff=1010</id>
		<title>1RB0LD 1RC1RF 1LA0RA 0LA0LE 1LD1LA 0RB---</title>
		<link rel="alternate" type="text/html" href="https://wiki.bbchallenge.org/w/index.php?title=1RB0LD_1RC1RF_1LA0RA_0LA0LE_1LD1LA_0RB---&amp;diff=1010"/>
		<updated>2024-10-15T00:26:59Z</updated>

		<summary type="html">&lt;p&gt;Mxdys: Created page with &amp;quot;{{machine|1RB0LD_1RC1RF_1LA0RA_0LA0LE_1LD1LA_0RB---}} This is a BB(6) Cryptid found by @dyuan01 and shared on Discord on 04 Sep 2024.  == Rules == &amp;lt;pre&amp;gt; start: (1,0) (3b+0,c+1) --&amp;gt; (4b+5,c) (3b+1,c) --&amp;gt; (4b+2,c+4) (3b+2,c+1) --&amp;gt; (4b+6,c+7) (3(3(3(3b+2)+1)+1)+0,0) --&amp;gt; halt  (b,c) := 0^inf 110 A&amp;gt; 0^b 10^c 01 0^inf &amp;lt;/pre&amp;gt; For simplicity only one potential halting rule is shown.&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{machine|1RB0LD_1RC1RF_1LA0RA_0LA0LE_1LD1LA_0RB---}}&lt;br /&gt;
This is a [[BB(6)]] [[Cryptid]] found by @dyuan01 and shared on Discord on 04 Sep 2024.&lt;br /&gt;
&lt;br /&gt;
== Rules ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
start: (1,0)&lt;br /&gt;
(3b+0,c+1) --&amp;gt; (4b+5,c)&lt;br /&gt;
(3b+1,c) --&amp;gt; (4b+2,c+4)&lt;br /&gt;
(3b+2,c+1) --&amp;gt; (4b+6,c+7)&lt;br /&gt;
(3(3(3(3b+2)+1)+1)+0,0) --&amp;gt; halt&lt;br /&gt;
&lt;br /&gt;
(b,c) := 0^inf 110 A&amp;gt; 0^b 10^c 01 0^inf&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
For simplicity only one potential halting rule is shown.&lt;/div&gt;</summary>
		<author><name>Mxdys</name></author>
	</entry>
	<entry>
		<id>https://wiki.bbchallenge.org/w/index.php?title=BB(6)&amp;diff=1009</id>
		<title>BB(6)</title>
		<link rel="alternate" type="text/html" href="https://wiki.bbchallenge.org/w/index.php?title=BB(6)&amp;diff=1009"/>
		<updated>2024-10-15T00:20:54Z</updated>

		<summary type="html">&lt;p&gt;Mxdys: add 4th non-halt cryptid in bb6&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The 6-state, 2-symbol Busy Beaver problem &#039;&#039;&#039;BB(6)&#039;&#039;&#039; is unsolved. With the discovery of [[Antihydra]] in 2024, we now know that we must solve a [[Collatz-like]] problem in order to solve BB(6).&lt;br /&gt;
&lt;br /&gt;
The current BB(6) champion {{TM|1RB0LD_1RC0RF_1LC1LA_0LE1RZ_1LF0RB_0RC0RE|halt}} was discovered by Pavel Kropitz in 2022 proving the lower bound:&amp;lt;ref&amp;gt;Shawn Ligocki. 2022. &amp;quot;BB(6, 2) &amp;gt; 10↑↑15&amp;quot;. https://www.sligocki.com/2022/06/21/bb-6-2-t15.html&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;S(6) &amp;gt; \Sigma(6) &amp;gt; 10 \uparrow\uparrow 15&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Techniques ==&lt;br /&gt;
In order to simulate the current BB(6) champion requires [[Accelerated simulator|accelerated simulation]] that can handle Collatz Level 2 [[Inductive rule|inductive rules]]. In other words, it requires a simulator that can prove the rules:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\begin{array}{l}&lt;br /&gt;
  C(4k)   &amp;amp; \to &amp;amp; Halt(\frac{3^{k+3} - 11}{2}) \\&lt;br /&gt;
  C(4k+1) &amp;amp; \to &amp;amp; C(\frac{3^{k+3} - 11}{2}) \\&lt;br /&gt;
  C(4k+2) &amp;amp; \to &amp;amp; C(\frac{3^{k+3} - 11}{2}) \\&lt;br /&gt;
  C(4k+3) &amp;amp; \to &amp;amp; C(\frac{3^{k+3} + 1}{2}) \\&lt;br /&gt;
\end{array}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and also compute the remainder mod 3 of numbers produced by applying these rules 15 times (which requires some fancy math related to [[wikipedia:Euler&#039;s_totient_function|Euler&#039;s_totient_function]]).&lt;br /&gt;
&lt;br /&gt;
== Cryptids ==&lt;br /&gt;
Known BB(6) Cryptids:&lt;br /&gt;
&lt;br /&gt;
* [[Antihydra]]&lt;br /&gt;
* {{TM|1RB1RC_1LC1LE_1RA1RD_0RF0RE_1LA0LB_---1RA|undecided}} a variant of [[Hydra]] and Antihydra&lt;br /&gt;
* {{TM|1RB1LD_1RC1RE_0LA1LB_0LD1LC_1RF0RA_---0RC|undecided}}&lt;br /&gt;
* {{TM|1RB0LD_1RC1RF_1LA0RA_0LA0LE_1LD1LA_0RB---|undecided}}&lt;br /&gt;
* {{TM|1RB1RA_0RC1RC_1LD0LF_0LE1LE_1RA0LB_---0LC|undecided}} (and 15 related TMs) a family of [[probviously]] halting cryptids&lt;br /&gt;
&lt;br /&gt;
Potential Cryptids:&lt;br /&gt;
&lt;br /&gt;
* {{TM|1RB1RE_1LC0RA_0RD1LB_---1RC_1LF1RE_0LB0LE|undecided}}&lt;br /&gt;
* {{TM|1RB0LD_1LC0RA_1RA1LB_1LA1LE_1RF0LC_---0RE|undecided}}&lt;br /&gt;
* {{TM|1RB0RB_1LC1RE_1LF0LD_1RA1LD_1RC1RB_---1LC|undecided}}&lt;br /&gt;
&lt;br /&gt;
== Top Halters ==&lt;br /&gt;
The current top 10 BB(6) halters (known by [[User:Sligocki|Shawn Ligocki]]) are&amp;lt;pre&amp;gt;&lt;br /&gt;
1RB0LD_1RC0RF_1LC1LA_0LE1RZ_1LF0RB_0RC0RE Halt ~10↑↑15.60465&lt;br /&gt;
1RB0LA_1LC1LF_0LD0LC_0LE0LB_1RE0RA_1RZ1LD Halt ~10↑↑5.63534&lt;br /&gt;
1RB1RE_1LC1LF_1RD0LB_1LE0RC_1RA0LD_1RZ1LC Halt ~10↑↑5.56344&lt;br /&gt;
1RB0LE_0RC1RA_0LD1RF_1RE0RB_1LA0LC_0RD1RZ Halt ~10↑↑5.12468&lt;br /&gt;
1RB0RF_1LC1LB_0RE0LD_0LC0LB_0RA1RE_0RD1RZ Halt ~10↑↑5.03230&lt;br /&gt;
1RB1LA_1LC0RF_1LD1LC_1LE0RE_0RB0LC_1RZ1RA Halt ~10↑↑4.91072&lt;br /&gt;
1RB0LE_1LC1RA_1RE0LD_1LC1LF_1LA0RC_1RZ1LC Halt ~10↑↑3.33186&lt;br /&gt;
1RB1RF_1LC1RE_0LD1LB_1LA0RA_0RA0RB_1RZ0RD Halt ~10↑↑3.31128&lt;br /&gt;
1RB0LF_1LC0RA_1RD0LB_1LE1RC_1RZ1LA_1LA1LE Halt ~10↑↑3.18855&lt;br /&gt;
1RB1RZ_0LC0LD_1LD1LC_1RE1LB_1RF1RD_0LD0RA Halt ~10^646456993.24591&lt;br /&gt;
&amp;lt;/pre&amp;gt;The numbers listed are sigma scores. Runtimes are not available, but are presumed to be about &amp;lt;math&amp;gt;score^2&amp;lt;/math&amp;gt; which is roughly indistinguishable in tetration notation. Fractional tetration notation is described in https://www.sligocki.com/2022/06/25/ext-up-notation.html. For a longer list of halting TMs see https://github.com/sligocki/busy-beaver/blob/main/Machines/bb/6x2.txt. For historical perspective see Pascal Michel&#039;s [https://bbchallenge.org/~pascal.michel/ha#tm62 &#039;&#039;&#039;Historical survey of Busy Beavers&#039;&#039;&#039;].&lt;br /&gt;
&lt;br /&gt;
== Holdouts ==&lt;br /&gt;
@mxdys&#039;s informal [[Holdouts lists|holdouts list]] is down to 5877 TMs as of 4 Aug 2024.&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&amp;lt;references /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Mxdys</name></author>
	</entry>
	<entry>
		<id>https://wiki.bbchallenge.org/w/index.php?title=1RB1LD_1RC1RE_0LA1LB_0LD1LC_1RF0RA_---0RC&amp;diff=1008</id>
		<title>1RB1LD 1RC1RE 0LA1LB 0LD1LC 1RF0RA ---0RC</title>
		<link rel="alternate" type="text/html" href="https://wiki.bbchallenge.org/w/index.php?title=1RB1LD_1RC1RE_0LA1LB_0LD1LC_1RF0RA_---0RC&amp;diff=1008"/>
		<updated>2024-10-14T19:56:52Z</updated>

		<summary type="html">&lt;p&gt;Mxdys: Created page with &amp;quot;{{machine|1RB1LD_1RC1RE_0LA1LB_0LD1LC_1RF0RA_---0RC}} This is a BB(6) Cryptid found by @mxdys and shared on Discord on 20 Aug 2024.  == Analysis by @mxdys == &amp;lt;pre&amp;gt; 1RB1LD_1RC1RE_0LA1LB_0LD1LC_1RF0RA_---0RC  start: (0,0)  (3x+0,y)   --&amp;gt; (4x+4,y+1) (3x+1,y+1) --&amp;gt; (4x+5,y+2) (3x+2,y)   --&amp;gt; (4x+8,max(0,y-1))  (3x+1,0)   --&amp;gt; halt  (x,y) := 0^inf 110 &amp;lt;B 11011 01^x 011^y 0^inf &amp;lt;/pre&amp;gt;&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{machine|1RB1LD_1RC1RE_0LA1LB_0LD1LC_1RF0RA_---0RC}}&lt;br /&gt;
This is a [[BB(6)]] [[Cryptid]] found by @mxdys and shared on Discord on 20 Aug 2024.&lt;br /&gt;
&lt;br /&gt;
== Analysis by @mxdys ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
1RB1LD_1RC1RE_0LA1LB_0LD1LC_1RF0RA_---0RC&lt;br /&gt;
&lt;br /&gt;
start: (0,0)&lt;br /&gt;
&lt;br /&gt;
(3x+0,y)   --&amp;gt; (4x+4,y+1)&lt;br /&gt;
(3x+1,y+1) --&amp;gt; (4x+5,y+2)&lt;br /&gt;
(3x+2,y)   --&amp;gt; (4x+8,max(0,y-1))&lt;br /&gt;
&lt;br /&gt;
(3x+1,0)   --&amp;gt; halt&lt;br /&gt;
&lt;br /&gt;
(x,y) := 0^inf 110 &amp;lt;B 11011 01^x 011^y 0^inf&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Mxdys</name></author>
	</entry>
	<entry>
		<id>https://wiki.bbchallenge.org/w/index.php?title=BB(6)&amp;diff=1007</id>
		<title>BB(6)</title>
		<link rel="alternate" type="text/html" href="https://wiki.bbchallenge.org/w/index.php?title=BB(6)&amp;diff=1007"/>
		<updated>2024-10-14T19:53:41Z</updated>

		<summary type="html">&lt;p&gt;Mxdys: add 3rd non-halt cryptid in bb6&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The 6-state, 2-symbol Busy Beaver problem &#039;&#039;&#039;BB(6)&#039;&#039;&#039; is unsolved. With the discovery of [[Antihydra]] in 2024, we now know that we must solve a [[Collatz-like]] problem in order to solve BB(6).&lt;br /&gt;
&lt;br /&gt;
The current BB(6) champion {{TM|1RB0LD_1RC0RF_1LC1LA_0LE1RZ_1LF0RB_0RC0RE|halt}} was discovered by Pavel Kropitz in 2022 proving the lower bound:&amp;lt;ref&amp;gt;Shawn Ligocki. 2022. &amp;quot;BB(6, 2) &amp;gt; 10↑↑15&amp;quot;. https://www.sligocki.com/2022/06/21/bb-6-2-t15.html&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;S(6) &amp;gt; \Sigma(6) &amp;gt; 10 \uparrow\uparrow 15&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Techniques ==&lt;br /&gt;
In order to simulate the current BB(6) champion requires [[Accelerated simulator|accelerated simulation]] that can handle Collatz Level 2 [[Inductive rule|inductive rules]]. In other words, it requires a simulator that can prove the rules:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\begin{array}{l}&lt;br /&gt;
  C(4k)   &amp;amp; \to &amp;amp; Halt(\frac{3^{k+3} - 11}{2}) \\&lt;br /&gt;
  C(4k+1) &amp;amp; \to &amp;amp; C(\frac{3^{k+3} - 11}{2}) \\&lt;br /&gt;
  C(4k+2) &amp;amp; \to &amp;amp; C(\frac{3^{k+3} - 11}{2}) \\&lt;br /&gt;
  C(4k+3) &amp;amp; \to &amp;amp; C(\frac{3^{k+3} + 1}{2}) \\&lt;br /&gt;
\end{array}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and also compute the remainder mod 3 of numbers produced by applying these rules 15 times (which requires some fancy math related to [[wikipedia:Euler&#039;s_totient_function|Euler&#039;s_totient_function]]).&lt;br /&gt;
&lt;br /&gt;
== Cryptids ==&lt;br /&gt;
Known BB(6) Cryptids:&lt;br /&gt;
&lt;br /&gt;
* [[Antihydra]]&lt;br /&gt;
* {{TM|1RB1RC_1LC1LE_1RA1RD_0RF0RE_1LA0LB_---1RA|undecided}} a variant of [[Hydra]] and Antihydra&lt;br /&gt;
* {{TM|1RB1LD_1RC1RE_0LA1LB_0LD1LC_1RF0RA_---0RC|undecided}}&lt;br /&gt;
* {{TM|1RB1RA_0RC1RC_1LD0LF_0LE1LE_1RA0LB_---0LC|undecided}} (and 15 related TMs) a family of [[probviously]] halting cryptids&lt;br /&gt;
&lt;br /&gt;
Potential Cryptids:&lt;br /&gt;
&lt;br /&gt;
* {{TM|1RB1RE_1LC0RA_0RD1LB_---1RC_1LF1RE_0LB0LE|undecided}}&lt;br /&gt;
* {{TM|1RB0LD_1LC0RA_1RA1LB_1LA1LE_1RF0LC_---0RE|undecided}}&lt;br /&gt;
* {{TM|1RB0RB_1LC1RE_1LF0LD_1RA1LD_1RC1RB_---1LC|undecided}}&lt;br /&gt;
&lt;br /&gt;
== Top Halters ==&lt;br /&gt;
The current top 10 BB(6) halters (known by [[User:Sligocki|Shawn Ligocki]]) are&amp;lt;pre&amp;gt;&lt;br /&gt;
1RB0LD_1RC0RF_1LC1LA_0LE1RZ_1LF0RB_0RC0RE Halt ~10↑↑15.60465&lt;br /&gt;
1RB0LA_1LC1LF_0LD0LC_0LE0LB_1RE0RA_1RZ1LD Halt ~10↑↑5.63534&lt;br /&gt;
1RB1RE_1LC1LF_1RD0LB_1LE0RC_1RA0LD_1RZ1LC Halt ~10↑↑5.56344&lt;br /&gt;
1RB0LE_0RC1RA_0LD1RF_1RE0RB_1LA0LC_0RD1RZ Halt ~10↑↑5.12468&lt;br /&gt;
1RB0RF_1LC1LB_0RE0LD_0LC0LB_0RA1RE_0RD1RZ Halt ~10↑↑5.03230&lt;br /&gt;
1RB1LA_1LC0RF_1LD1LC_1LE0RE_0RB0LC_1RZ1RA Halt ~10↑↑4.91072&lt;br /&gt;
1RB0LE_1LC1RA_1RE0LD_1LC1LF_1LA0RC_1RZ1LC Halt ~10↑↑3.33186&lt;br /&gt;
1RB1RF_1LC1RE_0LD1LB_1LA0RA_0RA0RB_1RZ0RD Halt ~10↑↑3.31128&lt;br /&gt;
1RB0LF_1LC0RA_1RD0LB_1LE1RC_1RZ1LA_1LA1LE Halt ~10↑↑3.18855&lt;br /&gt;
1RB1RZ_0LC0LD_1LD1LC_1RE1LB_1RF1RD_0LD0RA Halt ~10^646456993.24591&lt;br /&gt;
&amp;lt;/pre&amp;gt;The numbers listed are sigma scores. Runtimes are not available, but are presumed to be about &amp;lt;math&amp;gt;score^2&amp;lt;/math&amp;gt; which is roughly indistinguishable in tetration notation. Fractional tetration notation is described in https://www.sligocki.com/2022/06/25/ext-up-notation.html. For a longer list of halting TMs see https://github.com/sligocki/busy-beaver/blob/main/Machines/bb/6x2.txt. For historical perspective see Pascal Michel&#039;s [https://bbchallenge.org/~pascal.michel/ha#tm62 &#039;&#039;&#039;Historical survey of Busy Beavers&#039;&#039;&#039;].&lt;br /&gt;
&lt;br /&gt;
== Holdouts ==&lt;br /&gt;
@mxdys&#039;s informal [[Holdouts lists|holdouts list]] is down to 5877 TMs as of 4 Aug 2024.&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&amp;lt;references /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Mxdys</name></author>
	</entry>
</feed>