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.
The functions come from the paclet WolframInstitute/TuringMachine.

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
1
and
10
on the working string
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

A tag system over
k
symbols: here
k=3
, with
0->12
,
1->0
,
2->000
on the word
100
:
In[3]:=
tag3=TagSystem[{{1,2},{0},{0,0,0}},{1,0,0}]
Out[3]=
TagSystem

Each symbol
i
becomes a block of
k
bits with a single 1 at position
i
. The cyclic tag system has
2k
appendants: the encodings of the
k
productions, then
k
empty ones:
In[4]:=
cts3=TagSystemToCyclicTagSystem[tag3]
Out[4]=
CyclicTagSystem


Why one cycle is one tag step

A cycle of the
2k
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:
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
0
is a single symbol, so the tag system halts there; the cyclic tag system goes on reading it.

The cost

For the tag system of a Turing machine with states below
s
the alphabet has
1+84s
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:
In[8]:=
EmulationSizes[{{1,0}->{0,1,1}},{1,{},0,{}},1]
Out[8]=
TagSymbols169,TagWord4,TagSteps6,CyclicTagData676,Appendants338,System5Rules8112,System5Integers1476384,System5Steps2177112,f17513077,System4Elements1136563671147,Wolfram23CellsAtLeast1249664972135003846606848