Shift rule: Difference between revisions

From BusyBeaverWiki
Jump to navigation Jump to search
(Visual Updates)
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 59: Line 59:
   \text{Step 3}{:}&0^\infty \; \textrm{<A} \; 1^2 \; 0^\infty \\
   \text{Step 3}{:}&0^\infty \; \textrm{<A} \; 1^2 \; 0^\infty \\
   \qquad\qquad\qquad\vdots \\
   \qquad\qquad\qquad\vdots \\
   \text{Step }3n{:}&0^\infty \; \textrm{<A} \; 1^{2n} \; 0^\infty \\
   \text{Step }2n^2+n{:}&0^\infty \; \textrm{<A} \; 1^{2n} \; 0^\infty \\
   \text{Step }3n+1{:}&0^\infty \; 1 \; \textrm{B>} \; 1^{2n} \; 0^\infty \\
   \text{Step }2n^2+n+1{:}&0^\infty \; 1 \; \textrm{B>} \; 1^{2n} \; 0^\infty \\
   \text{Step }4n+1{:}&0^\infty \; 1^{2n+1} \; \textrm{B>} \; 0^\infty \\
   \text{Step }2n^2+3n+1{:}&0^\infty \; 1^{2n+1} \; \textrm{B>} \; 0^\infty \\
   \text{Step }4n+2{:}&0^\infty \; 1^{2n+1} \; \textrm{<A} \; 1 \; 0^\infty \\
   \text{Step }2n^2+3n+2{:}&0^\infty \; 1^{2n+1} \; \textrm{<A} \; 1 \; 0^\infty \\
   \text{Step }5n+3{:}&0^\infty \; \textrm{<A} \; 1^{2n+2} \; 0^\infty \\
   \text{Step }2n^2+5n+3{:}&0^\infty \; \textrm{<A} \; 1^{2n+2} \; 0^\infty \\
   \qquad\qquad\qquad\vdots \\
   \qquad\qquad\qquad\vdots \\
\end{array}</math>
\end{array}</math>

Latest revision as of 23:54, 12 April 2025

A shift rule (also called a chain rule) is a finite sequence of transitions which may be repeated an arbitrary number of times to "jump" over an entire repeated block of symbols on a compressed tape.

A simple canonical example is that if we have a Turing machine with the transition then using directed head notation:

In other words, if the machine is in state and the head is reading the leftmost of a sequence of ones, then steps later it will have moved to the right of this entire sequence of ones, converting them all to zeros.

To give a precise definition, suppose that there are words , and in the alphabet of the Turing machine in question, and assume that for some state the machine transitions from to . Then we have a right shift rule

Similarly, if the machine transitions from to , then we have a left shift rule

General Shift Rules

Shift rules can jump over larger blocks. For example Skelet #1 (1RB1RD_1LC0RC_1RA1LD_0RE0LB_---1RC (bbch)) exhibits the following transitions:

Each of these can be repeated an arbitrary number of times, producing the general shift rules:
Shift rules can also depend upon additional "local context". For example, Skelet #1 also exhibits this transition:
and since the resulting config has the same "context" (a 1 to the right of the head), this can be repeated as well to produce the shift rule:

Inductive Rules

Shift rules can be seen as the simplest example of inductive rules. Specifically, they are Level 0 Inductive rules which only use the inductive hypothesis once: Tape rewrite rules that can be proven using induction, where each step in the proof is either a basic Turing machine transition or an inductive application of the rule being proven that does not use any other previously proven rules).

Simulation Acceleration

One of the main uses of shift rules is to accelerate the simulation of Turing machines. For example, consider the simple bouncer 1RB1LA_1LA1RB (bbch) using the shift rules:

We can accelerate the simulation like this:

In this case, they allow one to use simulator steps to simulate base steps, which is the best-case speedup using only shift rules. More general inductive rules that can further accelerate a Turing machine's simulation may build on top of shift rules.

Moving across an infinite line of 0s

Any Turing machine that has at least one of the two following types of shift rules:

and which eventually reaches the configuration (for the first rule) or (for the second rule) is non-halting, becoming a translated cycler.