Cyclic tag is a simple system which is universal, in that it can perform any computation. It is also a good target for showing other systems are universal. Proofs of its universality have either been simple but had an exponential size, including going straight through tag systems or through Fractran, or are especially complicated encodings such as one that goes through clockwise Turing machines.
Here we show a compilation method that is both more straightforward than the clockwise Turing machine method, and also more compact than any of those other methods.
Our method goes through a path including some new systems we’ve come up with, cellular automaton or automata networks oblivious ring machines n-ary cyclic tag cyclic tag systems.
One loses the ability to work with infinite tapes, however the substantial gains in efficiency could make the trade worthwhile for practical usage of this method, especially since computers that we can actually build are bounded in memory anyway.
Cyclic tag and thus our system can be used in proving a number of other systems universal, and thus our system can be used for smaller finite constructions of such systems including finite rule 110 constructions, and additionally for Wolfram’s especially small 2,3 Turing machine, it is possible that our system could be used to make that actual weakly universal proof of that system simpler and more efficient even on infinite tapes.
Here we show a compilation method that is both more straightforward than the clockwise Turing machine method, and also more compact than any of those other methods.
Our method goes through a path including some new systems we’ve come up with, cellular automaton or automata networks oblivious ring machines n-ary cyclic tag cyclic tag systems.
One loses the ability to work with infinite tapes, however the substantial gains in efficiency could make the trade worthwhile for practical usage of this method, especially since computers that we can actually build are bounded in memory anyway.
Cyclic tag and thus our system can be used in proving a number of other systems universal, and thus our system can be used for smaller finite constructions of such systems including finite rule 110 constructions, and additionally for Wolfram’s especially small 2,3 Turing machine, it is possible that our system could be used to make that actual weakly universal proof of that system simpler and more efficient even on infinite tapes.
Introduction
Introduction
Cyclic tag is a computational system that can perform any computation, and yet it is also a very simple system that has found uses in showing many other simple systems to be universal in this way. There are currently three known ways to show that cyclic tag itself is universal. Two of them are relatively simple, however they involve a step where the state is encoded in unary, and so the encoding becomes exponentially large as the size of the state increases. One of the paths however avoids this unary step / exponential blowup, however it is very complicated, and not nearly as simple to follow as the other two methods. We have found a new method however that is relatively simple like the first two, and yet avoids the exponential blowup. It allows for smaller translations between more complex but more usable systems and cyclic tag itself.
One downside of our method, however, is that it does not truly allow for universal computation, and instead only allows for compiling an otherwise Turing complete system in some finite space. However, for one thing, in our real world, it may not even be possible to construct a Turing machine with infinite tape. All our actual computers that we use are essentially finite size Turing machines, so it may not be such an actual practical constraint. With a simpler way to compile higher level languages to extremely low level ones, perhaps one is one step closer to writing practical programs in some system with a small number of parts, like perhaps some kind of molecular computer.
Also, there is at least one actual universality proof that does in fact work for infinite tape Turing machines, which depends on emulating a cyclic tag system with an infinite series of tapes, one for each different finite number of steps. This is the universality proof of Wolfram’s 2, 3 Turing machine, and it is possible that our proof could allow one to build smaller useful actual Turing complete systems in that system. Unfortunately increasing the tape size also subtly changes the resulting cyclic tag system rule, and so one would have to show that compiling different length tapes with the same cellular automaton rule could be done without itself using universal computation, but it is possible this could be done. In a similar manner our system could possibly also work as a way to simplify the proof that rule 110 is Turing complete, in one way. One could possibly do a similar thing with a rule 110 cellular automaton as with the 2, 3 Turing machine, as that proof depends on emulating cyclic tag as well. One could potentially encode different cyclic tag systems on different parts of the rule 110 tape that run for different amounts of time. So long as the different tape parts are spaced sufficiently far apart, they should also be able to run a series of cyclic tag systems for arbitrary numbers of steps without having to interfere with one another. Running an infinite number of cyclic tag systems is clearly a complication over simulating just one in the previous proofs, however our proof could at least allow for running the system for less steps to calculate some other useful actually Turing complete system, even if one might need more tape to do so.
Also, there is at least one actual universality proof that does in fact work for infinite tape Turing machines, which depends on emulating a cyclic tag system with an infinite series of tapes, one for each different finite number of steps. This is the universality proof of Wolfram’s 2, 3 Turing machine, and it is possible that our proof could allow one to build smaller useful actual Turing complete systems in that system. Unfortunately increasing the tape size also subtly changes the resulting cyclic tag system rule, and so one would have to show that compiling different length tapes with the same cellular automaton rule could be done without itself using universal computation, but it is possible this could be done. In a similar manner our system could possibly also work as a way to simplify the proof that rule 110 is Turing complete, in one way. One could possibly do a similar thing with a rule 110 cellular automaton as with the 2, 3 Turing machine, as that proof depends on emulating cyclic tag as well. One could potentially encode different cyclic tag systems on different parts of the rule 110 tape that run for different amounts of time. So long as the different tape parts are spaced sufficiently far apart, they should also be able to run a series of cyclic tag systems for arbitrary numbers of steps without having to interfere with one another. Running an infinite number of cyclic tag systems is clearly a complication over simulating just one in the previous proofs, however our proof could at least allow for running the system for less steps to calculate some other useful actually Turing complete system, even if one might need more tape to do so.
To get to a somewhat actually human usable Turing complete system, in the other proofs, one can take a path from an arbitrary Turing machine (which can be somewhat usable for human programming) and compile it to a cyclic tag system in steps. So for the simpler proofs, one full path is Turing machine with n symbols Turing machine with two symbols tag system cyclic tag, and the other path is Turing machine with n symbols Turing machine with 2 symbols Minsky register machine Fractran cyclic tag. For the more complex but more efficient known proof, one can go Turing machine with n symbols clockwise Turing machine with n symbols clockwise Turing machine with only two symbols tag system cyclic tag system. However the step from clockwise Turing machine tag system is quite complex. Our new method of going from a somewhat human usable language to cyclic tag goes arbitrary finite 1D cellular automaton oblivious ring machine n-ary cyclic tag system cyclic tag system. It turns out that each of these steps is relatively simple and understandable and yet avoids an exponential slowdown. We also show another proof route that goes automata network oblivious ring machine n-ary cyclic tag system cyclic tag system. Oblivious ring machines and n-ary cyclic tag systems were invented by one of us, Seth Marshall, just for the proof here. It turns out however that oblivious ring machines are surprisingly powerful (for bounded Turing complete systems) and without too much trouble can emulate some other systems. To give some idea of that, in this post we will show specifically how to emulate a network of logic gates (an automata network). Another advantage of our system is one gets the advantage of a direct compilation from a parallelized system, unlike Turing machines which are the starting points of the previous compilations.
In this post, we will build up one layer at a time from cyclic tag to n-ary cyclic tag to oblivious ring machines to cellular automata, and then additionally show how to build an automata network on top of an oblivious ring machine. Comparisons of efficiency of this method vs. others is then discussed.
In this post, we will build up one layer at a time from cyclic tag to n-ary cyclic tag to oblivious ring machines to cellular automata, and then additionally show how to build an automata network on top of an oblivious ring machine. Comparisons of efficiency of this method vs. others is then discussed.
Code
Code
Cyclic Tag Systems
Cyclic Tag Systems
A cyclic tag system is an especially simple computational system. It does away with many of the “conveniences” that a slightly higher level and more human usable computational system like a Turing machine has. Unlike a Turing machine, it has no infinite tape (though it does have a finite tape that can grow to any size, something unbounded being needed for any universal system), no head that moves back and forth (the tape always gets cycled in the same direction one step at a time), no extra head state at all to take into account in fact, only two possible symbols 1 and 0, and unlike some other especially simple systems with no extra head state this one goes beyond by having what the system does depend only on one symbol on the tape at a time. And unlike a cellular automaton, it works one step at a time instead of doing many computations in parallel. All of these features make it an especially simple system for other systems to build on top of. Compilations then generally involve building back up these more human useful features on top of the cyclic tag system one step at a time.
How does a cyclic tag system work? It has two lists. A tape that has ones and zeros on it, and a list of rules where each rule is its own list of zeros and ones. The tape and the rules are cycled through simultaneously. One way to picture what a cyclic tag system does is to imagine that there is a kind of head that cycles through a circular tape always in a clockwise direction, and replaces 1s with whatever rule part the rule cycle is in on that step (though the head movement does skip over any parts that have just been inserted as the replacement), and just deletes 0s while continuing to cycle the
One upshot of the system cycling through replacements is again a single cell simply determines if the replacement in queue happens or not, unlike some other systems where often multiple states select from multiple replacements which are all available on every step, which is another thing which can allow for some other simple systems to more simply implement these cyclic tag systems.
Another equivalent way to think about it is that the tape and the rules rotate themselves one step at a time, and any time there is a 1 on the left-hand side of the tape, it’s replaced on the right hand side of the tape with the rule-part in that cycle (that’s essentially the same as the “replacement” view) and 0s on the left hand side of the tape again just get deleted while the rules continue to cycle. If the tape ever becomes empty that can also be thought of as halting. Here is an example of a cyclic tag system running for 12 steps:
How does a cyclic tag system work? It has two lists. A tape that has ones and zeros on it, and a list of rules where each rule is its own list of zeros and ones. The tape and the rules are cycled through simultaneously. One way to picture what a cyclic tag system does is to imagine that there is a kind of head that cycles through a circular tape always in a clockwise direction, and replaces 1s with whatever rule part the rule cycle is in on that step (though the head movement does skip over any parts that have just been inserted as the replacement), and just deletes 0s while continuing to cycle the
rule-parts.
One upshot of the system cycling through replacements is again a single cell simply determines if the replacement in queue happens or not, unlike some other systems where often multiple states select from multiple replacements which are all available on every step, which is another thing which can allow for some other simple systems to more simply implement these cyclic tag systems.
Another equivalent way to think about it is that the tape and the rules rotate themselves one step at a time, and any time there is a 1 on the left-hand side of the tape, it’s replaced on the right hand side of the tape with the rule-part in that cycle (that’s essentially the same as the “replacement” view) and 0s on the left hand side of the tape again just get deleted while the rules continue to cycle. If the tape ever becomes empty that can also be thought of as halting. Here is an example of a cyclic tag system running for 12 steps:
In[]:=
display[CyclicTagSystem[{{1,0,1},{1}},{1},12,{"States","Rules"}],{"State","Rule"}]
Out[]=
State | Rule |
{1} | {1,0,1} |
{1,0,1} | {1} |
{0,1,1} | {1,0,1} |
{1,1} | {1} |
{1,1} | {1,0,1} |
{1,1,0,1} | {1} |
{1,0,1,1} | {1,0,1} |
{0,1,1,1,0,1} | {1} |
{1,1,1,0,1} | {1,0,1} |
{1,1,0,1,1,0,1} | {1} |
{1,0,1,1,0,1,1} | {1,0,1} |
{0,1,1,0,1,1,1,0,1} | {1} |
{1,1,0,1,1,1,0,1} | {1,0,1} |
This one starts with a single 1, and the rule is these two lists: {{1, 0, 1}, {1}}. So on the first step the cell is a 1, so it goes ahead and replaces itself with the first list, so it becomes 101. It cycles to the left, so now the cell being looked at on the left again is a 1, but now the rule has been cycled through as well, so we “replace” the 1 with another one and cycle everything another step (this can also again be thought of as just removing the 1 from the left side and adding the other 1 rule to the right side). On the next step there’s a 0 on the left-hand cell this time, so again the 0 is simply removed and the rule-part, due to it being a 0, is ignored but continues to cycle. This continues. This system is sufficient, if given the right initial tape and rules, to emulate any other computational system, and below we will show at least how it can emulate some bounded versions of other universal systems in a somewhat efficient manner.
N-ary Cyclic Tag Systems
N-ary Cyclic Tag Systems
An n-ary cyclic tag system has a state which is a list of integers that can be between 0 and n-1. And then there is a rule. The rule is a list of sub-lists, where each sub-list contains n sub-sub lists. On the first step, the first integer from the far left hand side of the state list is popped off, and then the first sub-list in the rules gets the sub-sub-list associated with the popped value appended to the right-hand side of the state. The sub-lists are then cycled through on each step, so a different set of possible appendants is allowed at each step of the cycle.
Here is a representation of a kind of n-ary cyclic tag rule that we will be using later in the proof:
In[]:=
nCTExampleRule=ObliviousRingMachineToNaryCyclicTagRule[CellularAutomatonToObliviousRingMachineRule[{6,2,1/2}],2,1];
In[]:=
Grid[nCTExampleRule,Alignment->Left,Frame->All]
Out[]=
{} | {3} | {} | {} |
{2} | {3,3,2} | {} | {} |
{0} | {1} | {3,3,3,0,0} | {} |
{0} | {1} | {3,3,1,0} | {} |
{0} | {1} | {3,1,1} | {} |
{0} | {1} | {0,1} | {} |
{0} | {1} | {} | {} |
Each row is a sub-rule, and each cell has a sub-sub rule. Running this on the initial condition {1,0} for 15 steps gives:
In[]:=
display[NaryCyclicTag[nCTExampleRule,{1,0},15,{"States","Rules"}],{"State","Rule"}]
Out[]=
State | Rule |
{1,0} | {{},{3},{},{}} |
{0,3} | {{2},{3,3,2},{},{}} |
{3,2} | {{0},{1},{3,3,3,0,0},{}} |
{2} | {{0},{1},{3,3,1,0},{}} |
{3,3,1,0} | {{0},{1},{3,1,1},{}} |
{3,1,0} | {{0},{1},{0,1},{}} |
{1,0} | {{0},{1},{},{}} |
{0,1} | {{},{3},{},{}} |
{1} | {{2},{3,3,2},{},{}} |
{3,3,2} | {{0},{1},{3,3,3,0,0},{}} |
{3,2} | {{0},{1},{3,3,1,0},{}} |
{2} | {{0},{1},{3,1,1},{}} |
{3,1,1} | {{0},{1},{0,1},{}} |
{1,1} | {{0},{1},{},{}} |
{1,1} | {{},{3},{},{}} |
{1,3} | {{2},{3,3,2},{},{}} |
The left column is the series of tapes, and the right column shows which part of the rule is being applied at each step. As you can see, the left integer from the state is removed at each step, and the number that’s removed at each step determines which of the sub-lists from the list to the right of the state is added to the right hand side of the tape.
Emulating N-ary Cyclic Tag Systems with Classical Cyclic Tag Systems
Emulating N-ary Cyclic Tag Systems with Classical Cyclic Tag Systems
Now we want to show that an ordinary cyclic tag system can emulate a more general n-ary cyclic tag system from above. This is somewhat straightforward. We one-hot encode all the integers in the list, if we only have the numbers 0-3 we do 0 -> 1000, 1 -> 0100, 2 -> 0010, 3 -> 0001. Then for the initial condition, we just catenate all of these boolean lists together. And for the rule we just take out every list of integers, one-hot encode each integer, and then for each rule part concatenate together each of those lists of ones and zeros that were originally integers. So for the above system, the rule becomes:
In[]:=
cTRule=NaryCyclicTagToCyclicTagRule[nCTExampleRule];
In[]:=
cTRule//Column
Out[]=
{} |
{0,0,0,1} |
{} |
{} |
{0,0,1,0} |
{0,0,0,1,0,0,0,1,0,0,1,0} |
{} |
{} |
{1,0,0,0} |
{0,1,0,0} |
{0,0,0,1,0,0,0,1,0,0,0,1,1,0,0,0,1,0,0,0} |
{} |
{1,0,0,0} |
{0,1,0,0} |
{0,0,0,1,0,0,0,1,0,1,0,0,1,0,0,0} |
{} |
{1,0,0,0} |
{0,1,0,0} |
{0,0,0,1,0,1,0,0,0,1,0,0} |
{} |
{1,0,0,0} |
{0,1,0,0} |
{1,0,0,0,0,1,0,0} |
{} |
{1,0,0,0} |
{0,1,0,0} |
{} |
{} |
and the initial condition becomes
In[]:=
cTInit=NaryCyclicTagToCyclicTagInit[{1,0},Max[nCTExampleRule]+1]
Out[]=
{0,1,0,0,1,0,0,0}
And if we run the cyclic tag system for 40 steps down the page:
In[]:=
display[CyclicTagSystem[cTRule,cTInit,40,{"States","Rules"}],{"State","Rule"}]
Out[]=
State | Rule |
{0,1,0,0,1,0,0,0} | {} |
{1,0,0,1,0,0,0} | {0,0,0,1} |
{0,0,1,0,0,0,0,0,0,1} | {} |
{0,1,0,0,0,0,0,0,1} | {} |
{1,0,0,0,0,0,0,1} | {0,0,1,0} |
{0,0,0,0,0,0,1,0,0,1,0} | {0,0,0,1,0,0,0,1,0,0,1,0} |
{0,0,0,0,0,1,0,0,1,0} | {} |
{0,0,0,0,1,0,0,1,0} | {} |
{0,0,0,1,0,0,1,0} | {1,0,0,0} |
{0,0,1,0,0,1,0} | {0,1,0,0} |
{0,1,0,0,1,0} | {0,0,0,1,0,0,0,1,0,0,0,1,1,0,0,0,1,0,0,0} |
{1,0,0,1,0} | {} |
{0,0,1,0} | {1,0,0,0} |
{0,1,0} | {0,1,0,0} |
{1,0} | {0,0,0,1,0,0,0,1,0,1,0,0,1,0,0,0} |
{0,0,0,0,1,0,0,0,1,0,1,0,0,1,0,0,0} | {} |
{0,0,0,1,0,0,0,1,0,1,0,0,1,0,0,0} | {1,0,0,0} |
{0,0,1,0,0,0,1,0,1,0,0,1,0,0,0} | {0,1,0,0} |
{0,1,0,0,0,1,0,1,0,0,1,0,0,0} | {0,0,0,1,0,1,0,0,0,1,0,0} |
{1,0,0,0,1,0,1,0,0,1,0,0,0} | {} |
{0,0,0,1,0,1,0,0,1,0,0,0} | {1,0,0,0} |
{0,0,1,0,1,0,0,1,0,0,0} | {0,1,0,0} |
{0,1,0,1,0,0,1,0,0,0} | {1,0,0,0,0,1,0,0} |
{1,0,1,0,0,1,0,0,0} | {} |
{0,1,0,0,1,0,0,0} | {1,0,0,0} |
{1,0,0,1,0,0,0} | {0,1,0,0} |
{0,0,1,0,0,0,0,1,0,0} | {} |
{0,1,0,0,0,0,1,0,0} | {} |
{1,0,0,0,0,1,0,0} | {} |
{0,0,0,0,1,0,0} | {0,0,0,1} |
{0,0,0,1,0,0} | {} |
{0,0,1,0,0} | {} |
{0,1,0,0} | {0,0,1,0} |
{1,0,0} | {0,0,0,1,0,0,0,1,0,0,1,0} |
{0,0,0,0,0,1,0,0,0,1,0,0,1,0} | {} |
{0,0,0,0,1,0,0,0,1,0,0,1,0} | {} |
{0,0,0,1,0,0,0,1,0,0,1,0} | {1,0,0,0} |
{0,0,1,0,0,0,1,0,0,1,0} | {0,1,0,0} |
{0,1,0,0,0,1,0,0,1,0} | {0,0,0,1,0,0,0,1,0,0,0,1,1,0,0,0,1,0,0,0} |
{1,0,0,0,1,0,0,1,0} | {} |
{0,0,0,1,0,0,1,0} | {1,0,0,0} |
where every 4th step (the number of symbols in the NCT system) of the classical cyclic tag system corresponds to one step of the n-ary cyclic tag system.
Oblivious Ring Machines
Oblivious Ring Machines
An oblivious ring machine is a cyclical finite tape, where there is a replacement head that can replace multiple contiguous symbols with some other set of symbols of the same length, and then jump to some other part of the tape. Replacements and jumps are specified in a cyclic list. Here is a rule that alternates between swapping / skipping two cells, and skipping one cell while leaving it the same. “Oblivious” comes from the idea of oblivious Turing machines where the head movement depends only on input length and not on data. In the evolution of the system shown below, instead of actually showing a head that moves around, the tape itself cycles so that the part that is to be replaced is always on the left side of the tape.
Emulating Oblivious Ring Machines with N-ary Cyclic Tag Systems
Emulating Oblivious Ring Machines with N-ary Cyclic Tag Systems
N-ary cyclic tag systems only read one symbol at a time, but “pick a rule to use” based on where they are in the cycle. Oblivious ring machines on the other hand, need to be able to read multiple symbols and do something based on what each of them is. To note, we are only able to emulate oblivious ring machines that replace some set of symbols with the same number of symbols with NCT systems. To achieve this, we basically take whatever number of symbols we need to take off from the left-hand side of the NCT state, and basically convert them into their digits base s where s is the number of states, multiplied by their corresponding powers of s, so for instance if s is 10, you break the number 314 into 300 + 10 + 4. Then the number is added together, and offsets the rules just right so that the correct ORM rule is added to the right hand side with the right timing. Below we show the Nary cyclic tag system doing the emulation. In the following NCT history, we’ve turned NCT 2s into “x”s, and 3s into “o”s for visual purposes, because hopefully this will help see what’s going on better.
Here we run the NCT system that emulates the ORM:
The first three rule parts take the first three numbers on the left-hand side of the tape, do the breakdown into base s. This ORM tape has two states, so we’re doing base 2 right now. The ORM will be reading the first three symbols, which are 1,0,1, so this means we will want 1 x 2^0 + 0 x 2^1 + 1 x 2^2 = 1 + 0 + 4 = 5. So, since the first cell on the NCT tape is 1, it takes the 1st list (after the 0th element) from the current rule part, which is one “o”, which represents the 1. Then the next symbol being read on the left of the NCT tape is a 0, takes the 0th element from the next list, which is just the empty list, which represents the 0. The next 1 takes the 1st element of the list, {o, o, o, o, x}, which has 4 “o”s and so represents the 4. They all get concatenated together to give {o, o, o, o, o, x}, the 5. The last rules yes have “x”s at the end, which will later trigger adding the correct replacement to simulate the ORM step. We’ll get back to this later.
But first, the next thing that happens is that the next two rules cycle through the rest of the 2 cells replacing them with themselves, setting up the os and x to be read through next. The next six (5+1 because there’s also a 0th ORM rule part that could be added) steps then cycle through 6 ORM sub-rule parts that are there to add one of the NCT appendants to the right hand side, until the correct ORM states to be added to the right hand side are reached, which the “x” then triggers to reach the next step. The next 2 steps involve cycling through the possible ORM replacements which were not chosen, leaving their symbols unchanged. The next three steps basically cycle through the list ignoring symbols (replacing them with themselves) again until the list is synced up again for the next step, except this time with the next symbol to be replaced ready to go. They just cycle through the list the length of the tape minus the size of the replacement rules + the offset of this ORM rule part. All this implements one replacement of one ORM rule part. Then the other ORM rule parts are gone through, and the whole thing loops to implement the ORM main loop.
But first, the next thing that happens is that the next two rules cycle through the rest of the 2 cells replacing them with themselves, setting up the os and x to be read through next. The next six (5+1 because there’s also a 0th ORM rule part that could be added) steps then cycle through 6 ORM sub-rule parts that are there to add one of the NCT appendants to the right hand side, until the correct ORM states to be added to the right hand side are reached, which the “x” then triggers to reach the next step. The next 2 steps involve cycling through the possible ORM replacements which were not chosen, leaving their symbols unchanged. The next three steps basically cycle through the list ignoring symbols (replacing them with themselves) again until the list is synced up again for the next step, except this time with the next symbol to be replaced ready to go. They just cycle through the list the length of the tape minus the size of the replacement rules + the offset of this ORM rule part. All this implements one replacement of one ORM rule part. Then the other ORM rule parts are gone through, and the whole thing loops to implement the ORM main loop.
Emulating Finite Cellular Automata with Oblivious Ring Machines
Emulating Finite Cellular Automata with Oblivious Ring Machines
This step is rather straightforward. The oblivious ring machine simply cycles through the tape, and does the same replacements one at a time that a cellular automaton would do in parallel. There is one slight complication, which is that it rewrites the cell on the left-hand side of the neighborhood instead of the center cell, which allows the system to not overwrite a cell which would otherwise be read on the next shift over. The method is relatively simple, however it has the downside that it doesn’t correctly emulate the edges of the tape, and so for a radius one cellular automaton the part of the ORM that correctly emulates the CA in this case shrinks by one cell on each side of the tape on every completed cellular automaton step. For a radius r CA, 2r cells are lost from the edges on each step.
Every 8 steps (the length of the tape) the tape has fully cycled and a step of the cellular automaton (in this case, rule 110) has been completed.
The above is fine if one only wants to run the CA for a finite number of steps, and could for instance possibly be sufficient for continuing the proof that Wolfram’s 2,3 Turing machine is Turing complete since once again that proof depends on running a Turing complete system for an infinite number of finite runs on different parts of the 2,3 Turing machine tape. One can get the CA to run for infinite steps however if one so chooses. One way around this would be to have each part of the tape keep track of both the older state and the newer state at the same time in each cell. Another method is to extend the CA tape by CA neighborhood - 1 cells, and string together ORM instructions so that the first neighborhood -1 parts of the ORM, instead of doing CA transitions, just copy over the left hand side of the CA tape into the extra neighborhood-1 cells, and then repeatedly applying CA transitions until it gets to the end of the tape, and loops around to those extra cells on the left again, which should be a way of buffering the old cells from the new ones as well. Below we show an ORM running rule 110 using the buffering method. Every 7 steps (the length of the ORM tape) the CA has run for an extra step. To read out these every 7 steps, one must ignore the first two digits on the tape at these steps, which serves as a buffer for edge-wrapping, and also note that the state of the CA is rotated left by one on each of these 7 ORM steps that correspond to one CA step.
The above is fine if one only wants to run the CA for a finite number of steps, and could for instance possibly be sufficient for continuing the proof that Wolfram’s 2,3 Turing machine is Turing complete since once again that proof depends on running a Turing complete system for an infinite number of finite runs on different parts of the 2,3 Turing machine tape. One can get the CA to run for infinite steps however if one so chooses. One way around this would be to have each part of the tape keep track of both the older state and the newer state at the same time in each cell. Another method is to extend the CA tape by CA neighborhood - 1 cells, and string together ORM instructions so that the first neighborhood -1 parts of the ORM, instead of doing CA transitions, just copy over the left hand side of the CA tape into the extra neighborhood-1 cells, and then repeatedly applying CA transitions until it gets to the end of the tape, and loops around to those extra cells on the left again, which should be a way of buffering the old cells from the new ones as well. Below we show an ORM running rule 110 using the buffering method. Every 7 steps (the length of the ORM tape) the CA has run for an extra step. To read out these every 7 steps, one must ignore the first two digits on the tape at these steps, which serves as a buffer for edge-wrapping, and also note that the state of the CA is rotated left by one on each of these 7 ORM steps that correspond to one CA step.
Emulating Automata Networks with Oblivious Ring Machines
Emulating Automata Networks with Oblivious Ring Machines
One can emulate an automata network with an oblivious ring machine in three main steps. First the initial states of the gates in the network (or the output from the previous state) are each copied until there are enough of them to send to the other gates that take them as input. Then those states are rearranged in a line until they are in the correct position to be the inputs to the gates for the next step. Then the gates are applied to the inputs to give the outputs needed. We will demonstrate in more detail.
We will attempt to run this automata network:
These evolve as follows (the states of the gates are in order in each row):
In this simulation, the states of the automata network are on the left, and the rule part being applied on each step is on the right. In that rule part, the first item is a function or rule being applied, the second is the number of states the rule part uses (in this case always three. This number matters more if one is using rule patterns instead of functions or explicit rules. Without a number of states the system defaults to two states). The third number is the number of cells the rule part reads and rewrites.
So in this case, the compilation first determines how many gates each gate connects to. Gate 1 has 2 inputs and 3 outputs and is in state 2, so 3 copies of 2 are made to be sent out to other gates. Gate 2 has 1 input and 2 outputs and is in state 0, so 2 copies of 0 are made. Gate 3 has 3 inputs and 1 output and is in state 1. Since it has 3 inputs it takes up an extra space that will be needed anyway later when we do some sorting, it’s given 2 more copies of the 1 state. So the whole initial thing is represented on the ORM tape as {2, 2, 2, 0, 0, 1, 1, 1}.
The first 4 rules are essentially for copying the outputs of a gate as many times as needed. This doesn’t really do much when running the first step of the automata network, as the input compilation already makes the copies, but it’ll be needed for further steps as we’ll see at the end of this section. So we’ll skip the meaning of these first 4 steps for now and come back to them, but just note that the tape is offset by 4 when this step is done though nothing else has changed in the input, yet.
So in this case, the compilation first determines how many gates each gate connects to. Gate 1 has 2 inputs and 3 outputs and is in state 2, so 3 copies of 2 are made to be sent out to other gates. Gate 2 has 1 input and 2 outputs and is in state 0, so 2 copies of 0 are made. Gate 3 has 3 inputs and 1 output and is in state 1. Since it has 3 inputs it takes up an extra space that will be needed anyway later when we do some sorting, it’s given 2 more copies of the 1 state. So the whole initial thing is represented on the ORM tape as {2, 2, 2, 0, 0, 1, 1, 1}.
The first 4 rules are essentially for copying the outputs of a gate as many times as needed. This doesn’t really do much when running the first step of the automata network, as the input compilation already makes the copies, but it’ll be needed for further steps as we’ll see at the end of this section. So we’ll skip the meaning of these first 4 steps for now and come back to them, but just note that the tape is offset by 4 when this step is done though nothing else has changed in the input, yet.
The next 36 steps take the outputs from the gates and move them around to be in the correct spots for the inputs to the gates for the next step, by essentially implementing bubble sort, either skipping or swapping states as the machine loops through them. The routing of the output to inputs is fixed by the network’s wiring, and so the whole skip/swap sequence can be worked out in advance. Sometimes a gate has more outputs than inputs, and sometimes the other way around, but the differences sum to zero and so there are always some extra dummy inputs in gates that have more outputs than inputs to be swapped with the extra outputs from gates that have more inputs than outputs.
Now that the inputs are in the right places aligned with the correct gates, the next 5 rules simply apply the gate rules as they go down the ORM tape, skipping over the extra variables where the gates had more outputs than inputs. A small optimization implemented here is that the machine writes the same number of copies of the output of the gate as there were inputs, which helps to grow the outputs faster when there are more outputs than inputs, or when there are more inputs than outputs sets some number of those dummy variables but moves on to the next step faster. The last step applies the final gate, and so after this one full step of the automata network has been completed.
Finally, we show going through those first 4 rules a second time, just to show now how the outputs of the gates that have more outputs than inputs are copied over the extra cells that were provided for this. Another optional optimization we have implemented here is that the compiler recognizes that only the first two gates have more outputs than inputs and so need to grow, and that is why it doesn’t loop through the entire tape before it will next move on to the bubble sort algorithm and so on.
Compiling and Decompiling
Compiling and Decompiling
Here is the definition of a function that compiles a cellular automaton to cyclic tag, then runs it on cyclic tag, then decodes it back in to cellular automaton evolution:
Here we show that it successfully recreates cellular automaton evolution. We pick a rule that has 3 colors and an even size four neighborhood just to give evidence that it’s flexible enough to work with any kind of 1D cellular automaton.
Compare it with the Wolfram Language’s built in CellularAutomaton function with the same rules and input (it’s identical):
And with the simpler faster compilation but that only works for a certain finite sub-area of the system:
Here we show the same for an automata network. The compiler definition:
And running it on some automata:
Compared with a function that more directly runs automata without compiling to cyclic tag and gives the same results:
There is also an option for these functions that can compile to a cyclic tag system where all cyclic tag rule parts are multiples of 6, since the rule 110 proof needs that kind of rule. So here’s how one would run rule 30 on the kind of system that compiles to rule 110:
Comparison to Other Compilation Methods
Comparison to Other Compilation Methods
As mentioned in the introduction, there are other known methods for compiling higher level Turing complete systems to cyclic tag. Two are rather straightforward but encode the tape and rules in unary, so are very inefficient in that sense. Then there is the one that goes through clockwise Turing machines. Here is one demonstration of how our system can more compact than that one. The rules for a simple 2 state 3 color Turing machine compiled to cyclic tag using that method include 557,371,656 binary symbols.
Unlike that system, the size of our rules does depend on the size of the tape we run on (though of course, with both versions the size of the cyclic tag tapes grow as the active part of the Turing machine / cellular automaton tape grows). Also we are comparing compiling Turing machines vs. say, cellular automata, however one can get a sense in that here we compile a cellular automaton rule that works on 100 cells and 9 states in less space than the Turing machine using the clockwise-Turing machine method:
Unlike that system, the size of our rules does depend on the size of the tape we run on (though of course, with both versions the size of the cyclic tag tapes grow as the active part of the Turing machine / cellular automaton tape grows). Also we are comparing compiling Turing machines vs. say, cellular automata, however one can get a sense in that here we compile a cellular automaton rule that works on 100 cells and 9 states in less space than the Turing machine using the clockwise-Turing machine method:
If one can allow compilation for only a finite number of steps where the tape shrinks on each step, one can compile a rule with 10000 cells and 16 states in less space.
With infinite possible steps, the cyclic tag tape uses (c+n-1)x(s+2) symbols, where c is the number of cells in the cellular automaton, s is the number of cellular automaton states, and n is the neighborhood size of the cellular automaton.
This means that with the number of digits it takes to compile the blank tape plus one symbol of a 2 state 3 symbol Turing machine symbol via clockwise Turing machines, one could compile 27,638 16 state cellular automaton cells, even using the infinite steps method. Since running cyclic tag involves cycling through all the cells in the cyclic tag system for every cycle, shorter cyclic tag tapes buy you a lot of time as well as a lot of space.
Below are some compiled cellular automaton rule sizes vs tape size and state number. With a finite part of the history:
Below are some compiled cellular automaton rule sizes vs tape size and state number. With a finite part of the history:
With the history able to run for any number of steps (note that “Tape Length” is sampled differently in this table from the one above):
Conclusion
Conclusion
We have shown that through three steps of compilation, none particularly complex (compared with other proofs), one can get a cyclic tag system to emulate any finite 1 dimensional cellular automaton for any number of steps. While CT systems are tricky to program in directly, cellular automata are on a similar level of human programmability as Turing machines, and so one has found a more direct route to higher level programming based on cyclic tag. One can start say, calculating primes or having other somewhat straightforward implementations of other computational systems, so long as one only needs a finite tape (which again is all one can ultimately do with real life computers currently anyway). And again, since the 2, 3 Turing machine proof involves a cyclic tag system that runs on a series of finite tapes for always finite numbers of steps, it is possible our compilation system could be adapted as a shortcut for showing that Turing machine to be actually universal.
We have additionally showed that automata networks are another system that we can now get cyclic tag systems to emulate.
We have showed that these systems can be very efficient on finite tapes.
We have additionally showed that automata networks are another system that we can now get cyclic tag systems to emulate.
We have showed that these systems can be very efficient on finite tapes.
Author Contributions
Author Contributions
Seth Marshall came up with the original idea. He invented n-ary cyclic tag systems and oblivious ring machines and figured out that one could get a different bounded Turing complete system, Boolean networks under a word update schedule, to run on them, and also how to chain them together with the other systems he’d come up with to compile down to cyclic tag. He wrote Python code to implement all of this.
Eric Parfitt worked out that cellular automata could be more simply implemented on oblivious ring machines, and that general automata networks could be implemented on oblivious ring machines as well. He pointed out however that Seth’s system only worked for finite initial conditions. He pointed out as well though that it is possible this could still make for an actual proof of weak Turing completeness in other systems that run finite cyclic tag tapes for always a finite number of steps. He also wrote the Wolfram language code here, and wrote up and put together the post based off the ideas Seth Marshall originally came up with mixed with some of his own ideas. He also had originally explained to Seth some of the already known ideas behind cyclic tag systems and Turing completeness proofs that Seth then ran quite quickly and quite far with.
AI usage: Seth’s Python code to test out the idea was mostly written by the Claude AI, whereas Eric’s Wolfram Language code used here was written almost entirely by him, with no reference to the AI generated Python code. One reason for this was that he wanted to be absolutely sure he understood each step of the compilation / decoding. The LLM did help with finding a way to make a couple helper functions more efficient or finding some bugs in the code. The post itself was first written up entirely without AI, and then afterward some fixes were implemented which were suggested by LLMs.
AI usage: Seth’s Python code to test out the idea was mostly written by the Claude AI, whereas Eric’s Wolfram Language code used here was written almost entirely by him, with no reference to the AI generated Python code. One reason for this was that he wanted to be absolutely sure he understood each step of the compilation / decoding. The LLM did help with finding a way to make a couple helper functions more efficient or finding some bugs in the code. The post itself was first written up entirely without AI, and then afterward some fixes were implemented which were suggested by LLMs.
CITE THIS NOTEBOOK
CITE THIS NOTEBOOK
A simpler polynomial-time compilation to cyclic tag for bounded computation
by Eric Parfitt
Wolfram Community, STAFF PICKS, October 26, 2026
https://community.wolfram.com/t/28416
by Eric Parfitt
Wolfram Community, STAFF PICKS, October 26, 2026
https://community.wolfram.com/t/28416