How a tag system becomes a cyclic tag system
How a tag system becomes a cyclic tag system
Wolfram Institute • 2026
A cyclic tag system has only two symbols and no choice of production: it cycles through a fixed list of appendants. Cook writes each tag symbol as a block of bits with a single 1 and lets one cycle of the appendants read the first two blocks of the word.
Cyclic tag systems
Cyclic tag systems
A cyclic tag system has a working string of bits and a list of appendants used in turn. A step deletes the first bit and, if it was a 1, appends the current appendant; then it moves on to the next appendant. Smith's example with the appendants and on the working string :
1
10
01
In[1]:=
cts=CyclicTagSystem[{{1},{1,0}},{0,1}]
Out[1]=
CyclicTagSystem
Its run, every bit labeled; one bit leaves on the left each step, and the rows where the list of appendants starts over are shaded red:
In[2]:=
CyclicTagSystemEvolutionPlot[cts,12]
Out[2]=
0 | 0 | 1 | |||||||||||
1 | 1 | ||||||||||||
2 | 1 | 0 | |||||||||||
3 | 0 | 1 | |||||||||||
4 | 1 | ||||||||||||
5 | 1 | ||||||||||||
6 | 1 | 0 | |||||||||||
7 | 0 | 1 | |||||||||||
8 | 1 | ||||||||||||
9 | 1 | ||||||||||||
10 | 1 | 0 | |||||||||||
11 | 0 | 1 | |||||||||||
12 | 1 |
Cook's encoding
Cook's encoding
A tag system over symbols: here , with , , on the word :
k
k=3
0->12
1->0
2->000
100
In[3]:=
tag3=TagSystem[{{1,2},{0},{0,0,0}},{1,0,0}]
Out[3]=
TagSystem
Each symbol becomes a block of bits with a single 1 at position . The cyclic tag system has appendants: the encodings of the productions, then empty ones:
i
k
i
2k
k
k
In[4]:=
cts3=TagSystemToCyclicTagSystem[tag3]
Out[4]=
CyclicTagSystem
Why one cycle is one tag step
Why one cycle is one tag step
A cycle of the appendants reads two blocks. While it reads the first block, the appendant in use at the block's single 1 is the production of that symbol, and only there is anything appended. While it reads the second block the appendants are empty, so the block is deleted without a trace. That is exactly a 2-tag step: read the first symbol, delete two, append its production. Two cycles of the run, every bit labeled:
2k
In[5]:=
CyclicTagSystemEvolutionPlot[cts3,12]
Out[5]=
0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | |||||||||
1 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | ||||||||||
2 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | ||||||||
3 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | |||||||||
4 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | ||||||||||
5 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | |||||||||||
6 | 1 | 0 | 0 | 1 | 0 | 0 | ||||||||||||
7 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | |||||||
8 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | ||||||||
9 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | |||||||||
10 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | ||||||||||
11 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | |||||||||||
12 | 0 | 1 | 0 | 0 | 0 | 1 |
At the start of every cycle the working string decodes, block by block, to the tag word:
In[6]:=
CyclicTagSystemToTagSystem[#["Data"],3]&/@Values[CyclicTagSystemEvolution[cts3,30,#["Phase"]==0&]]
Out[6]=
{{1,0,0},{0,0},{1,2},{0},{2},{0,0}}
The run of the tag system:
In[7]:=
TagSystemEvolution[tag3,5]
Out[7]=
{{1,0,0},{0,0},{1,2},{0}}
The tag word is a single symbol, so the tag system halts there; the cyclic tag system goes on reading it.
0
The cost
The cost
For the tag system of a Turing machine with states below the alphabet has symbols, so every symbol becomes a block of that many bits and the cyclic tag system has twice as many appendants. The sizes for one step of a two-state machine:
s
1+84s
In[8]:=
EmulationSizes[{{1,0}->{0,1,1}},{1,{},0,{}},1]
Out[8]=
TagSymbols169,TagWord4,TagSteps6,CyclicTagData676,Appendants338,System5Rules8112,System5Integers1476384,System5Steps2177112,f17513077,System4Elements1136563671147,Wolfram23CellsAtLeast1249664972135003846606848