Shift rule: Difference between revisions

From BusyBeaverWiki
Jump to navigation Jump to search
m (fix typo)
Line 14: Line 14:
Similarly, if the machine transitions from <math> r \; \textrm{<S} \; t</math> to <math>\textrm{<S} \; t r'</math>, then we have a ''left'' shift rule
Similarly, if the machine transitions from <math> r \; \textrm{<S} \; t</math> to <math>\textrm{<S} \; t r'</math>, then we have a ''left'' shift rule
<math display="block">
<math display="block">
   \vphantom{\int} r \; \textrm{<S} \; t \to \textrm{<S} \; r' t.
   \vphantom{\int} r \; \textrm{<S} \; t \to \textrm{<S} \; t r'.
</math>
</math>



Revision as of 06:02, 15 July 2024

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 TM with transition then using directed head notation:

In other words, if the TM is in state S reading the leftmost of a sequence of n ones, then n 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 S 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) exhibits the following transitions:

and so each of these can be repeated an arbitrary number of times as
Shift rules can also depend upon additional "local context". For example Skelet #1 also exhibits transition:
and since the resulting config has the same "context" (a 1 behind the TM 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 TM transition or an inductive application of the rule being proven (but do not use any other previously proven rules).

Simulation Acceleration

One of the main uses of shift rules is to accelerate simulation of TMs. For example, consider the simple Bouncer: 1RB1LA_1LA1RB using the shift rules:

We can accelerate the simulation like this:
In this case, this allows simulating base TM steps using only simulator steps which is the best-case speedup using only shift rules. But further acceleration can also be built on top of this by using more general inductive rules.

Prove Non-halting

Shift rules can be used to prove non-halting. For example, if you have a shift rule

and the TM reaches configuration
then it is guaranteed to never halt, because this rule will repeat forever. This is an example of a Translated Cycler.