Manuscript Offprint
arXiv:2611.00153On Small Universal Reversible Turing Machines
ABSTRACT
A reversible Turing machine (RTM) is a Turing machine in which every instantaneous description has at most one predecessor. Writing for a universal RTM with states and symbols, we construct , , , , , , and ; each of them has fewer states or fewer symbols than each of the nine URTMs in Morita's book (2017). They come from improved versions of Morita's conversions to three states, to four states, and to two symbols; for example, the improved conversion to three states uses symbols instead of . We also show that the halting problem of RTMs with at most two states is decidable for finite instantaneous descriptions, so that no RTM with at most two states is universal under any notion of universality that reduces the halting problem of Turing machines to it by a computable encoding into finite instantaneous descriptions; in particular, there is no URTM with at most two states in our formalization of Morita's definition. We also show that no three-state, two-symbol RTM is universal in that formalization.
1 Introduction
Reversible computing concerns computations in which each step uniquely determines its predecessor. Bennett showed that irreversible computations can be simulated reversibly without loss of computational power [2]. A reversible Turing machine (RTM) is one of the basic models of reversible computing, and a universal RTM is called a URTM. As for ordinary universal Turing machines (UTMs) [14, 6, 12, 15], a natural question is how small a URTM can be. We measure the size by the numbers of states and symbols, and write for a URTM with states and symbols.
Morita's book [9] lists nine URTMs. Six of them, , , , , , and , simulate cyclic tag systems with halting condition directly; is due to Morita and Yamaguchi. The other three, , , and , are obtained from them by general conversions that reduce the number of states or of symbols. The book remarks that these three leave room for reduction, and it states that the existence of a two-state URTM is open. In a later survey, after recalling that two-state TMs are universal in the irreversible case, Morita writes that "it is unknown whether the class of two-state RTMs is universal" [10].
A PREPRINT

Figure 1: Numbers of states and symbols of URTMs
-
Universality in the sense of Morita's definition (Section 4). Morita's Definition 7.1 [9] asks for total recursive encoding and decoding functions, but the book does not give them precisely for its URTMs, noting that they are not difficult to define from the constructions but their descriptions would be lengthy. We give computable encodings and decodings for all 13 non-dominated points and prove universality in this sense.
-
Nonexistence for two states (Section 5). The halting problem of RTMs with at most two states is decidable for finite instantaneous descriptions, uniformly in the machine. Hence no URTM with at most two states exists, for any number of symbols. The key fact is that, in a two-state RTM, the state equals the direction of the last move, so a half-line of the tape can tell the rest of the tape only that the head has come back.
-
Nonexistence for three states and two symbols (Section 6). No three-state, two-symbol RTM is universal.
-
Formalization (Section 7). All theorems above are formalized and proved in Lean 4 [7] with Mathlib [8], using only the standard axioms. The formalized machine model reproduces the halting step counts of the published test runs of all nine of Morita's machines, except one published count (Section 7).
For each number of states, the constructions give an upper bound on the minimum number of symbols of a URTM. We do not claim that any of the new points is minimal.
Figure 1 shows Morita's nine points, our seven points, and the nonexistence results. The dash-dotted line in Figure 1 bounds the region where URTMs are known not to exist [15]: one-state machines, two-state and three-state two-symbol machines (under a definition that leaves one entry of the table empty for halting), and one-symbol machines. These results concern TMs that need not be reversible, and their treatment of halting and of zero-shifts differs from ours, so we do not use them for URTMs in our sense. The green lines mark our own nonexistence results (Sections 5 and 6), which are stated for the same notion of universality as Theorem 8.
Related work. Small URTMs have been studied for a long time; Woods and Neary survey the results [15]. The non-dominated small URTMs listed in Morita's book include UTM(2, 18) and UTM(4, 6) of Rogozhin [14], UTM(3, 9)
A PREPRINT
of Kudlek and Rogozhin [6], and UTM(5, 5), (6, 4), (9, 3), and (15, 2) of Neary and Woods [12]. These machines need not be reversible, and their conventions on halting and on stationary moves differ from those used here. The URTMs of Morita and his coauthors are collected in [9, Ch. 7], together with the conversions that we improve. Turing machines and universal Turing machines have been formalized in Isabelle/HOL [16], Matita [1], and Coq [5], and Mathlib contains a universal partial recursive function. These formalizations treat general constructions rather than small machines, and none of them is about reversible computation. Closest to our two-state result is Dudenhefner's decision procedure, certified in Coq, for the halting problem of reversible two-counter machines with a particular instruction set; it contrasts with Morita's result that reversible two-counter machines with another instruction set are universal [4]. To our knowledge, small URTMs and their universality in the sense of Morita's Definition 7.1 have not been formalized before.
2 Preliminaries
We follow Morita's book [9] and state the definitions in the form used in the formalization.
Definition 1 (Machines and runs). A quintuple consists of a source state , a read symbol , a written symbol , a direction , and a target state , where . The directions , and move the head by , and ; a quintuple with direction is a zero-shift. A Turing machine (TM) is a finite list of quintuples; only membership in matters. We also call a TM a table. No initial or halting states are specified; halting is defined by the absence of an applicable quintuple. An instantaneous description (ID) is a triple with , , and ; the symbol 0 is the blank. A quintuple applies to an ID if and ; the result writes at , moves the head by the displacement of , and enters . An ID is halting for if no quintuple of applies to it. We write if reaches a halting ID from in finitely many (possibly zero) steps.
Definition 2 (Determinism and reversibility). is deterministic if any two quintuples of with the same source state and read symbol are equal. is reversible if any two distinct quintuples of with the same target state have the same direction and different written symbols.
This is Morita's Definition 5.4 [9], specialized to the quintuple form. By reversibility, all quintuples entering a state move in the same direction (the unique shift-direction property, [9, Lemma 5.5]). For an RTM we write and for the sets of states entered by right moves and by left moves, and , . A state entered only by zero-shifts, or not entered by any quintuple, belongs to neither set.
Definition 3 (Size). is the number of distinct source states of , and is the number of elements of . A point dominates if , and .
Halting states, which have no outgoing quintuples, are not counted, as in Morita's book (Section 4.2).
Codes of finite IDs. An ID is finite if it has finitely many non-blank cells. Let . For and , the ID toID has state and head position , carries on the cells and on the cells , and is blank elsewhere. For an ID , is its head position. IsIDOf holds if is finite, its state occurs in , and every cell holds the blank or a symbol occurring in . The enumeration , decodes into a list of 5-tuples of natural numbers by the standard bijection in Mathlib, reads each 5-tuple as a quintuple whose direction is , or according as the fourth component is 0, 1, or at least 2, and replaces a non-deterministic result by the empty list.
Definition 4 (Universality, after [9, Def. 7.1]). A table satisfies IsUTMStrict if there are an encoding and a decoding , both computable, such that for all and all with IsIDOf(, toID(0, a)):
-
IsIDOf;
-
if reaches a halting ID from toID, then reaches a halting ID from toID, has a code (some with toID), and every such code satisfies for some with toID;
-
if does not halt from toID, then does not halt from toID.
The weaker predicate IsUTM drops condition 1 and requires the decoding in condition 2 only for some code of .
IsUTMStrict implies IsUTM. We use the strong form for existence and the weak form for nonexistence whenever possible, so both kinds of results hold under either form, except the nonexistence of three-state, two-symbol URTMs
A PREPRINT
Table 1: Conversions and their effect on the numbers of states and symbols
| Conversion | States | Symbols | Example | Source |
|---|---|---|---|---|
| Reducing states (symbols increase) | ||||
| To four states | 4 | [9, Thm. 5.5] | ||
| Disjoint ranges by direction | 4 | Sect. 3.1 | ||
| Reverse counting | 4 | Sect. 3.1 | ||
| Blocks and merging of roles | 4–9 | Sect. 3.2 | ||
| To three states | 3 | [9, Thm. 5.6] | ||
| One symbol per cell, shared counters | 3 | Sect. 3.4 | ||
| Reducing symbols (states increase) | ||||
| To two symbols | 2 | [9, Thm. 5.4] | ||
| Code optimization, state merging | per table | 2 | Sect. 3.5 | |
| Same number of states | ||||
| Symbol merging | unchanged | number of colors | Sect. 3.3 | |
(Theorem 12), which is stated for the strong form. The requirement in condition 2 that every code of decodes correctly matters: a code can be padded with trailing blanks without changing the ID it denotes, so a condition on some code alone would let the correctness of decoding depend on how the code is written (the number of trailing blanks), which is weak. Morita’s IDs are finite strings with the state inserted just before the symbol under the head, without a head position, whereas our IDs are two-way infinite tapes; we prove in Lean that, for deterministic tables, IsUTMStrict implies the formulation on string IDs. In that formulation an ID is a state with two finite strings, the head reading the first symbol of the second one, and two IDs are identified if they differ only by blanks at either end; a table satisfies it if there are computable and such that, for every and every ID of , if halts from in , then halts from in some and is identified with , and if does not halt from , neither does from .
The proofs of universality go through the following cyclic tag systems with halting condition (CTSHs).
Definition 5 (Cyclic tag system with halting condition [9, Def. 7.5]). A CTSH is with and . An ID is a pair of a string and a phase . The transitions are if , and for every . The IDs and are halting, where is the empty string.
Morita’s six original machines simulate an arbitrary CTSH started from , and CTSHs can simulate arbitrary TMs through 2-tag systems [3], [9, Sect. 7.2].
3 Constructions
All our machines are obtained from Morita’s six original machines by conversions. Table 1 summarizes how each conversion changes the numbers of states and symbols; its notation is defined in the respective sections, and an indented row improves the conversion of the row above it. Throughout, is the RTM to which a conversion is applied and is the converted RTM; are the numbers of states and symbols of , and those of . States of are written in lower case, such as , and states of in upper case, such as . When we distinguish the machines obtained by different conversions, we write .
3.1 Four states: disjoint ranges by direction and reverse counting
Morita’s conversion to four states [9, Sect. 5.3.4] keeps the number of the current state of on the tape, as a counter attached to the symbol under the head; we write for the machine it produces. To execute a quintuple of , writes the counter of into the current cell, places a counter with the initial value in the target cell, and then moves back and forth between the two cells, decrementing the counter of the source cell and incrementing that of the target cell, until the whole number has been carried over. To distinguish the source cell from the target cell, each counter carries an up mark or a down mark. We number the states of as and write and for the symbol with a counter of value and an up or a down mark. We call a symbol of made of a symbol of with a number and a mark a counter symbol, and a symbol of itself a plain symbol. There are values and two marks, so has symbols: the plain symbols and marked counter symbols. From URTM(10, 8) it gives URTM(4, 168): with and , the number of symbols is . has the four states (). For a right-moving quintuple of , uses the rules (named as in Morita’s book)
A PREPRINT
| state of | cell | cell | |
|---|---|---|---|
| the state of is | |||
| : write and the number of , move right | |||
| : place a counter with value 0, move left | |||
| : decrement, move right | |||
| : increment, move left | |||
| ⋮ | the last two steps times in all | ||
| : remove the mark, move right; the state of is |
Figure 2: (Morita's four-state conversion) executing a right-moving quintuple of
| state of | read | write | move | next | values of | |
|---|---|---|---|---|---|---|
| R | ||||||
| L | ||||||
| R | 1, ..., m - 1 (m - 1 values) | |||||
| L | 0, ..., m - 2 (m - 1 values) | |||||
| R |
where is if (the rule is then ) and if (the rule is then ); the rules to do not depend on the quintuple and are given for all symbols and of . For a left-moving quintuple, the first rule moves left into , and in the other rules and are exchanged both in the directions and in the names of the states ( is used only in these left-moving rules). Figure 2 shows how it executes a right-moving quintuple; each row gives the state and the two cells and ( is the symbol in cell ), and the thick frame marks the head. The execution takes steps. Figure 3 shows the same execution as a flowchart; each box is headed by a rule and the state of that executes it, and the test in decides whether the back-and-forth phase continues. We call an ID stable if it has exactly one counter symbol on the whole tape, this symbol has an up mark and is under the head, and is in or . An ID of in state with under the head corresponds to the stable ID of obtained by replacing that symbol by and the state by , and a step of corresponds to the execution of from a stable ID to the next stable ID [9, proof of Thm. 5.5]. The first and the last rows of Fig. 2 are stable IDs. Figure 4 shows the correspondence with the IDs of the source machine . Figure 4 also shows the execution of a right-moving quintuple : the thick frame marks the head, the left and right cells are and , and the other cells do not change. To go from the lower row back to the upper row, replace the counter symbol by its plain symbol and take the number of the counter as the state number of ; the head position is kept.
Disjoint ranges by direction. In , reads both the counter of a stable ID (with an up mark) and the counter on the source side during the back-and-forth phase (with a down mark), and so does ; the marks tell these two apart. If the state of stable IDs is separated from the back-and-forth states, and the two roles of a back-and-forth state are told apart by the counter value, the marks should not be needed. In the four-state conversions (Sections 3.1 and 3.2), a state that is not entered by any quintuple is put into . In Morita's tables to which we apply the conversions, the only zero-shifts are the quintuples into halting states, and the conversions map them separately to halting rules (the halting quintuples of Section 4). Hence every state of is in exactly one of and , and . Number the states of by and those of by . We write for the machine this conversion produces. has the four states : is the state of stable IDs, is a back-and-forth state, and the index is the direction by which the state is entered. Its symbols are the plain symbols and the counter symbols . Here too, a stable ID has exactly one counter symbol on the whole tape, under the head, and in an -state; it represents the ID of obtained by replacing by and taking the state numbered . While a quintuple is executed, there are two counter symbols, one in the source cell and one in the target cell (Fig. 5). In the table below, is the numbering, is the range of numbers of , is the direction opposite to , and and are arbitrary symbols of ; in subscripts, is identified with and with . For a quintuple of with , uses the rules
A PREPRINT

Figure 3: Flowchart of executing a right-moving quintuple
source T

Figure 4: Correspondence between stable IDs and IDs of the source machine T
| state of | read | write | move | next | range of values | |
|---|---|---|---|---|---|---|
| D | ||||||
| D | ( values) | |||||
| ( values) | ||||||
| x | D |
Each row is a rule scheme, which gives one rule for each quintuple of , each choice of the symbols and , and each value. We call these schemes ; they correspond to Morita's and , , , , and , respectively. The sum of the two counters is invariant during the back-and-forth phase, and fires exactly when the whole number has been carried, so a stable ID is restored after steps. Figure 5 shows the execution of a right-moving quintuple in the same form as Figure 2, with and . The state acts as the target side of a right move and as the source side of a left move, but the counter values it reads in the two roles lie in disjoint ranges, so the table is deterministic; reversibility follows by the same separation together with the reversibility of . Figure 6 shows the flowcharts of a right-moving and a left-moving quintuple side by side; the shaded boxes are the rules of and
A PREPRINT

Figure 5: (disjoint ranges by direction) executing a right-moving quintuple of
Right-moving quintuple
Left-moving quintuple

Figure 6: Flowcharts of executing a right-moving and a left-moving quintuple
, so the two directions use the same two states and tell the roles apart by the range of the value read. In Morita's conversion, the up and down marks distinguish the source cell from the target cell. Here the subscript of the state (the direction by which the cell was entered) and the range of the counter value make this distinction. Hence the marks are no longer needed, and the number of symbols becomes . From URTM(10,8) this gives URTM(4,88): with m=10 and n=8, the number of symbols is .
Reverse counting. uses separate ranges of values for and , but a single carry uses only one of them, so we would like both directions to share one range. If the counters are counted in opposite directions for the two directions of motion (the sentinel, that is, the initial value that places and detects, is the smallest value for and the largest for ), then the decrement rule of one direction and the increment rule of the other become literally the same quintuple. For example, if counts downward, of and of both take the form ; since they are the same rule, the two roles need not be told apart by ranges of values. The two directions can then share one range of values, and the number of symbols is at most . We write for the machine obtained in this way. Figure 7 compares the two numberings. Figure 8 shows the flowcharts of ; the boxes with thick borders are the rules that are literally the same quintuple for the two directions. From URTM(10, 8) this gives URTM(4, 48): with and , the number of symbols is . We prove that it is universal in the sense of Definition 4, but it is dominated by URTM(4, 41).
A PREPRINT

Figure 7: Numbers of the states of put on counter symbols by and
Right-moving quintuple , sentinel the minimum)

Left-moving quintuple , sentinel the maximum)
Figure 8: Flowcharts of executing a right-moving and a left-moving quintuple
3.2 Block decomposition and merging of roles
In the number of values on the tape still grows with the number of states of . Moving part of the number into the finite control should increase the states but decrease the values on the tape. Split the number of a state into a pair (block, value within the block), and write for the machine obtained in this way. The finite control of holds the block and the tape holds only the value, so a counter symbol does not record the block, and different blocks reuse the same values. Let there be blocks for and blocks for ; we write for the th block of and for the th block of . Each block has three roles: (stable), (the source side of a carry), and (the target side of a carry). Figure 9 shows the splitting for seven states in two blocks. For a quintuple of with , let be the block of ; then uses the rules below. A role is a state before merging; the state column gives roles, and the merging of roles described below turns several roles into one state.

Figure 9: Splitting the numbers of the states of of into blocks and values for (an example with seven states)
A PREPRINT
Table 2: Examples of merging of roles in and
| State | Entered | (one block per direction) | (two blocks per direction) |
|---|---|---|---|
| right | |||
| right | |||
| left | |||
| left |
| state of | cell c | cell c + 1 |
|---|---|---|
| [i, s] | u | |
| [6, t] | u | |
| [6, t] | [6, u] | |
| t | [6, u] |
the state of T is p (value i)
: write t and the value 6 of a, move right; is
: place the sentinel 6, move left; is
: sentinel read, remove the counter, move right; T is in a
Figure 10: executing a right-moving quintuple of T into the state a of a single-state block (T is URTM(10, 8) and is URTM(4, 46))
| role | read | write | move | next | range of values | |
|---|---|---|---|---|---|---|
| D | ||||||
| D | after up to ( values) | |||||
| from up to before (as many) | ||||||
| x | D |
Here is the value of within its block, is the sentinel of block (the value that places and detects), and is +1 if and -1 otherwise. The back-and-forth phase ends after steps. With one block in each direction, , , and , reading the roles as , , and as , , gives the table of in Section 3.1. The roles still have to know their block in the back-and-forth phase, because must enter the correct -state; this is what costs states.
With three roles per block as separate states, states are needed. Roles that are entered by moves in the same direction and read disjoint values, however, should be able to share one state. A merging of roles groups the roles into classes and turns the roles of each class into a single state. Roles in the same class must be entered by moves in the same direction, and the merged table must remain deterministic and reversible. For example, and of Section 3.1 are the case where all states of form one block +1 and all states of form one block -1 ( ). Since there is only one block in each direction, all that the finite control holds about the block is the direction, and the number of a state is put on the counter symbol as its value. There are six roles , so without merging there would be six states. In Fig. 5, , moving back and forth in cell c, plays the role , and , in cell , plays the role . Merging and , both entered by moving right, into one state , and and , both entered by moving left, into gives four states (Table 2). tells apart the two roles merged into one state by the ranges of values; uses reverse counting to make the rules of the two roles the same quintuples, so that they also share one range. URTM(4, 46) has two blocks in each direction and hence twelve roles, which are again merged into four classes; blocks are the main blocks and blocks are blocks with a single state, described next. A further merging that turned out to be useful uses a block with a single state a; we call the block that holds all the other states of the same direction the main block. We give a a value outside the range of the main block and make the sentinel of its block the same value; then nothing is carried on entering a, and there is no back-and-forth phase (three steps, by , , and ). We then write for the roles of the block of a and merge them into states of the main blocks: into the back-and-forth state entered by moves in the same direction as ( if ), and into the H-state entered by moves in the opposite direction ( if ). has no rules, so it can be put into any class entered by moves in its direction. Since the back-and-forth state otherwise reads only values in the main range, reading a value outside this range signals that the machine is in a; thus a costs no state of its own. Figure 10 shows the execution in URTM(4, 46) that enters some ; the states are named as in Section 3.1, with the back-and-forth state and the H-state of the main blocks. Figure 11 shows the same execution as a flowchart: the symbol read by decides whether it acts as the H role of a, as a role of the main block, or as the stable state of a.
A PREPRINT

Figure 11: Flowchart of URTM(4, 46) entering the state of a single-state block
Table 3: Machines obtained by block decomposition and merging of roles
| Point | Original | Blocks | for | |||
|---|---|---|---|---|---|---|
| (4, 46) | (10, 8) | (2, 2) | 8, 8, 8, 8, 6 | 46 | 48 | |
| (5, 45) | (15, 6) | (3, 2) | 3, 5, 5, 5, 5, 5, 5, 6 | 45 | 54 | |
| (6, 37) | (10, 8) | (3, 3) | 6, 7, 8, 8 | 37 | 40 | |
| (7, 32) | (15, 6) | (2, 2) | 6, 5, 5, 5, 5 | 32 | 36 | |
| (8, 28) | (17, 5) | (4, 4) | 3, 5, 5, 5, 5 | 28 | 30 | |
| (9, 27) | (15, 6) | (5, 4) | 6, 5, 5, 5 | 27 | 30 |
Finally, only the counter symbols that can actually occur are kept. If is the set of counter values used and is the set of symbols of that can carry the value , the number of symbols is
The choice of the blocks, of the values, and of the merging is a combinatorial optimization problem. We enumerated partitions of the roles and searched each partition using constraint programming. To explore beyond the enumerated cases, we also used simulated annealing that changes the blocks, counter values, and partitions of the roles. We do not claim optimality of the resulting constructions in general. This gives URTM(4, 46) from (10, 8), for example, with : the main blocks use the values 1 to 4, and two states placed in blocks of their own share the value 6 (the values were chosen by the optimization). Table 3 lists the six machines with four to nine states obtained in this way. The number of states is the number of classes of roles and need not equal the number of blocks; for example, (7, 32) has blocks (2, 2) and seven states. They are all dominated by the machines of Section 3.3, but they are universal in their own right, and they are the inputs to symbol merging. Morita’s book [9] contains no conversion that produces five to nine states.
Remark 6. Three states cannot be reached in this framework, which merges neither two -roles nor the - and -roles of the same block. The former is outside the framework. The latter cannot be merged if the block contains two states that read a common symbol : if is the one closer to the sentinel, the -role reads by and the -role reads the same symbol by , with different actions. If has at least two states, then either some block of has two or more states, and its - and -roles fall into different classes, or there are two single-state blocks with two -roles. In either case the roles entered by left moves need at least two classes. The same holds for , so at least four states are needed for all six of Morita’s machines. This remark is an argument in this paper and is not formalized.
3.3 Symbol merging
In a converted machine , each counter symbol is read by few states and written into few states. The more states a table has, the fewer states use each symbol and the more pairs of symbols are never read by the same state and never
A PREPRINT
Table 4: Machines obtained by symbol merging
| Point | Original | Blocks | Symbols before merging | Symbols after merging |
|---|---|---|---|---|
| (4, 41) | (13, 7) | (2, 2) | 50 | 41 |
| (5, 37) | (13, 7) | (3, 2) | 49 | 37 |
| (6, 30) | (13, 7) | (3, 3) | 54 | 30 |
| (7, 28) | (13, 7) | (4, 3) | 50 | 28 |
| (8, 21) | (13, 7) | (4, 4) | 40 | 21 |
written into the same state, so there should be more room for merging. In Table 4, too, the fraction removed by merging roughly grows with the number of states; this is an observation, not a theorem. UTM(3, 9) of Kudlek and Rogozhin [6] can be read as UTM(3, 10) of Rogozhin [14] with the blank made the same symbol as and with the encodings of the initial word and of the halting symbol changed accordingly. We apply systematically this idea of reducing symbols by making several of them one symbol. Two symbols and conflict if some state reads both, some state is entered by quintuples writing and , or both can occur on the tape of a halting ID reached from an encoded input. The conflict graph has the symbols as vertices and an edge between any two conflicting symbols. Merging pairwise non-conflicting symbols is a coloring of the conflict graph (an assignment of colors in which adjacent vertices get different colors), and symbols of the same color become one symbol. The merged table is deterministic and reversible if the unmerged one is, and it follows the run of the unmerged one step by step.
For example, consider obtained from URTM(10, 8) (with the symbols b, y, n, n', Y, N, *, H_+[2, n']\theta_1 by , so these two conflict (merged, the rule of would not be determined). The state is entered by the rule , which writes , and by the rule , L, , which writes , so these two also conflict (merged, the previous ID of would not be determined). The plain symbols y and n conflict because both can occur on a halting tape. Of the 1128 pairs of the 48 symbols, only n' and [3, n] do not conflict. The symbol n' is read only by and written only by quintuples entering ; the symbol [3, n] is read only by and and written only by quintuples entering , , and ; and counter symbols do not occur on a halting tape. With so few states and uniform back-and-forth rules, almost all pairs conflict. Figure 12 illustrates these conflicts. Each panel is a separate example merging only the indicated pair of symbols into z; arrows show the merged rules or maps on symbols.
The condition for a conflict can be relaxed as follows. If two quintuples from the same state read and , have the same direction and the same target state, and write two symbols that are also merged into one, then after merging the two quintuples become the same quintuple. The same holds for two quintuples that enter the same state writing and if they have the same source state and the same direction and read two symbols that are also merged into one. Such a pair need not be treated as a conflict, since the two equal quintuples are kept as one. The counts in the example above are for the condition before relaxing.
Theorem 7 (Symbol merging). Let witness IsUTMStrict, and assume that every halting ID reached from toID is in a state that is not a source state and has all its tape symbols in a fixed finite set . Let be primitive recursive with and for every . If the table , obtained by replacing the read and written symbols of every quintuple by their images under , is deterministic, then IsUTMStrict.
Here is the map of the coloring, which sends each symbol to its color, that is, to the merged symbol, and recovers the unmerged symbols on halting tapes; the hypothesis on the halting states prevents a run from continuing from a halting ID when merging makes the rule of another symbol applicable, and it holds because, in runs from encoded inputs, our block tables halt only by entering a halting state. Applied to the fixed tables of Table 3, merging removes one to three symbols. Much more is gained by choosing the blocks and values again, by simulated annealing, with the number of colors after merging as the objective. All five best results come from URTM(13, 7) (Table 4). The two with four and five states were chosen again with the number of colors under the relaxed condition as the objective; under the condition before relaxing, the same tables need 43 and 40 colors. Their tables are not printed here; they are provided as text files in the directory tables of the repository https://github.com/yokoyama-lab/small-machine-zoo, together with a description that gives the classes of merged symbols and the roles merged into each state. We do not claim minimality, either of the coloring or over the choices of blocks.
3.4 Three states
Morita’s conversion to three states [9, Sect. 5.3.5] has two stages (Fig. 13). Morita’s Lemma 5.9 [9] turns into a one-way-updating RTM , which rewrites the tape only while sweeping to the right and returns to the left end in a single state without rewriting. To distinguish the blank of from the blank of and to extend the used region one cell
A PREPRINT
(a) Conflict between symbols read by the same state
Merge the counter symbol [2, n'] and the plain symbol

The same state and read symbol allow two different actions
(b) Conflict between symbols written on entry to the same state
Merge the counter symbol [1, n'] and the plain symbol

The same written symbol and next state allow two different predecessors
(c) Conflict between symbols to be recovered after halting
Merge the plain symbols y and n into z

The symbol z cannot distinguish y from n
Figure 12: Examples of conflicts under symbol merging
at a time, its tape packs two cells of into one cell. has symbols and states. The symbols are the blank of , the pairs holding the contents of two cells of , and the pairs whose left component is the head cell of and which are marked with the state of ; thus . The states are of four kinds, and .
-
One state returns to the left end without rewriting.
-
During the sweep to the right, states remember the symbol of carried from the previous cell, and one state turns back after adding a pair at the right end of the used region. Through this carrying, the symbols of shift one place to the right in every sweep.
-
After a right-moving quintuple of is executed, states remember the target state and the carried symbol and go to write the mark on the pair in the next cell. The target of a left move can be written as a mark on the pair in the current cell, so these states are needed only for the states in .
-
After halts, states carry symbols to the right end.
Figure 14 shows the transitions between these states. The labels are the names that Morita gives to the rules in the proof of Lemma 5.9 [9]; we use them only to relate the figure to that proof. Morita's Lemma 5.10 [9] then
A PREPRINT

For (32, 3): , , , so , , and symbols
Figure 13: The two stages of Morita's conversion to three states

Figure 14: Kinds of states of in Morita's Lemma 5.9 [9] and the transitions between them
represents the state of by a counter with an up or a down mark on the symbol under the head and uses three states L, R, R, which gives symbols. Figure 15 shows how it executes a right-moving quintuple of ; as in Fig. 2 of Section 3.1, the number of the state is carried to the right by counting down the down-marked counter in cell while counting up the up-marked counter in cell , and the execution takes steps. For URTM(32, 3) we have , , and , so and ; the result has symbols, which gives URTM(3, 36654). Of these symbols, 85% are counters that combine a marked pair, one of the states of entered after a right move, and an up or down mark. In a one-way-updating machine every carry goes to the right, so each state always reads a fixed side and the marks should not be needed; moreover, most counters are never read, and packing two cells into one creates the pairs. We reduce the count in four steps.
Shared counters. In a one-way-updating machine all carries go to the right, so each of the three states always reads counters on a fixed side: L only on the source side, R and R only on the target side. In Fig. 15, too, L reads only
A PREPRINT

Figure 15: Morita's three-state machine executing a quintuple of

Figure 16: Flowchart of all rules of the three-state machine of Morita's Lemma 5.10 [9]
down-marked counters, and and read only up-marked ones. The same can be seen in Fig. 16, which shows all rules of Morita's Lemma 5.10 as a flowchart. The labels are the names that Morita gives to these rules in the proof of Lemma 5.10 [9]; we use them only to relate the figure to that proof. Hence the up and down marks can be identified without losing determinism, and reversibility is preserved, since the written symbols of the rules entering each state remain distinct. The count drops from to ; for , where and , it drops from to .
Pruned counters. A counter is needed only if some state with number at least can read or is entered by writing . Keeping only these counters gives symbols, where is the largest such number. The sum depends on the numbering of the states of ; states with the same set of relevant symbols can be kept adjacent; there are four such groups, and the best of all orders of them gives 1,820 symbols for . The machines with 18,476 and 1,820 symbols measure the effect of these two steps. For the one with 18,476 symbols we prove universality in the sense of Definition 4; for the one with 1,820 symbols we only count its symbols and prove neither that it simulates nor that the kept counters suffice along every run. The machines of the next two steps also share and prune counters; their universality follows from general theorems on the conversion (determinism, reversibility, and simulation of ), whose hypotheses are checked for the concrete tables.
One symbol per cell. The remaining cost lies in the pairs and the marked pairs. Instead of packing two cells, we keep one symbol per cell and represent the blank of by a separate symbol inside the used region; we write for the one-way-updating machine obtained in this way. Since also only sweeps to the right, the sweep would already have passed the target cell of a left move of . As in Morita's construction, each sweep therefore shifts the whole
A PREPRINT
(a) left-moving quintuple

(b) right-moving quintuple

Figure 17: Execution of a quintuple of by one sweep of
content of one cell to the right: a left move of then keeps the head where it is (the content of the target cell arrives at the current cell), and a right move advances it by two cells. The current state of is recorded as a mark on one cell: on the head cell if , and on the cell to the left of the head if . Since the states of are entered only by right moves, a sweep that executes a right move can leave the written symbol and the target state together in the mark of one cell. Here, unlike in the four-state conversions and as in Morita's construction, a state that is not entered by any quintuple is put into . Figure 17 shows the tape before and after one sweep: the state name above a cell is its mark, the thick frame marks the head of , and the dashed arrows show the shift by one cell to the right. If , the mark before the sweep is on the cell to the left of the head instead, and the result of the sweep is the same. has states, where is the set of pairs such that has a right-moving quintuple into writing , and if the state in which the run of starts is in and otherwise ( is the set of symbols of ). After the shared and pruned counters, the three-state machine has
symbols. Of these, are the symbols of (the blank, the plain symbols, and the state marks), and the rest are counter symbols: for each mark, for each plain symbol, and for the blank. Since , where is the number of quintuples of , this is , compared with for Morita's construction. For (32, 3) it gives 659 symbols.
Reflection. Applying the conversion to the mirror image of (directions and exchanged) and exchanging and back in the result gives a three-state machine that simulates (Fig. 18(a)). In the mirror image, a right-moving quintuple becomes the left-moving quintuple , so moves from to and the pair leaves . Conversely, a left-moving quintuple becomes right-moving, and its target enters and its pair enters (Fig. 18(b)). Thus the roles of and and of the right-moving and left-moving targets are exchanged. In the symbol count, the coefficient of is , that of is , and that of is , so the exchange changes the count. For (32, 3), itself has = 14 and , and because the state in which starts is in ; this gives 659 symbols. The mirror image has = 18 and (Fig. 18(c)). The increase of by 4 adds symbols, and the decreases of by 11 and of by 10 remove , which gives 600 symbols, and hence URTM(3, 600). Its table has 1,572 quintuples; instead of printing it, we provide it as a text file in the same repository (Section 3.3). Applied to the other five original machines, the improved conversion gives between 802 and 1,209 symbols, taking the better of the machine and its mirror image, so (32, 3) is the best starting point.
3.5 Two symbols
Morita's conversion to two symbols [9, Sect. 5.3.3] replaces each symbol by a string of bits, the blank by . A quintuple of is simulated by reading bits while erasing them, reading the last bit and writing the last bit of
A PREPRINT
(a) The steps of reflection

(b) Quintuples and the side of their targets
quintuples of
quintuples of mir()
(c) The values for (32, 3)
| m+ | m- | |R| | |G| | symbols | |
|---|---|---|---|---|---|
| T | 18 | 14 | 46 | 47 | 659 |
| mir(T) | 14 | 18 | 36 | 36 | 600 |
Figure 18: Reflection in the three-state conversion

Figure 19: Flowchart of Morita's conversion to two symbols () and the tree of reading states
the new symbol, writing the remaining bits while moving back, and moving cells in the direction of the move; the states remember the prefix read or the prefix still to write. If and denote the numbers of read and written prefixes of lengths 1 to , summed over the states, the number of states of is at most . Figure 19 shows the flowchart for . Among the shaded boxes, the states of the reading stage are counted in and those of the writing stage in , while the start state and the states of the moving stage number for each state of . The inner vertices of the tree on the right are the states that remember a read prefix. From URTM(24, 4) () this gives URTM(138, 2), and from URTM(13, 7) () it gives 169 states. For (24, 4), , so the number of states is ; for (13, 7), , so it is .
The states exist to remember the prefix read so far and the prefix still to be written. Choosing the assignment of codes should let more symbols share prefixes, and skipping bits that need not be rewritten on the way back should remove auxiliary states. We add four degrees of freedom: the assignment of codes to symbols (the blank fixed to ), the values written in place of the bits that have been read, a path type for each quintuple that says how many bits need not be
A PREPRINT
Table 5: Computed results of the conversions applied to each URTM
| From | Four states (symbols) | Three states (symbols) | Two symbols (states) | ||||
|---|---|---|---|---|---|---|---|
| Morita | disjoint ranges | reverse counting | Morita | one symbol per cell | Morita | ours | |
| (10, 8) | 168 | 81075 | 1268 / 1209 | 139 | |||
| (13, 7) | 189 | 98 | 61 | 98241 | 1073 / 1144 | 169 | |
| (15, 6) | 186 | 96 | 53 | 77895 | 1038 / 935 | 174 | |
| (17, 5) | 175 | 90 | 55 | 55473 | 856 / 844 | 193 | |
| (24, 4) | 196 | 100 | 56 | 49323 | 832 / 802 | 138 | |
| (32, 3) | 195 | 99 | 57 | 36654 | 182 | ||
| (85, 2) | 342 | 172 | 96 | 68655 | 803 / 808 | - | - |
rewritten on the way back (a right-moving quintuple can then cross its bit string once instead of three times), and, for each state, the end of the bit string at which the head stands when reading begins. Reversibility of the result reduces to distinct written values on the rules entering each auxiliary state. For fixed codes and starting ends, the written values and the path types are chosen by a constraint programming model that minimizes the number of auxiliary states; the codes and starting ends are chosen by exhaustive enumeration and hill climbing. Finally, states whose rules agree on the entries defined for both are merged; a merged table fills undefined entries of one state with the rules of the other, so it simulates only along runs that never reach an entry that is undefined in one of the merged states but defined in the other, which is the case for runs from encoded CTSH inputs. For (13, 7), choosing only the codes gives 149 states, choosing also the written values and path types gives 135, and merging states gives 92. A randomized large-neighborhood search over the choices of the table before merging then gave a table with 137 states, more than 135 before merging but one that merges much further, down to 85 states and 153 quintuples, that is, URTM(85, 2). Its table is provided at the same location as that of URTM(3, 600). We have no closed formula for the size of this search result; it is verified for the concrete table. Applied to the other five original machines, the same method, including the search, gives 92, 92, 108, 115, and 115 states for (10, 8), (24, 4), (15, 6), (17, 5), and (32, 3). These five tables are also proved universal in the sense of Definition 4, and all of them are dominated by URTM(85, 2).
4 The new URTMs and their universality
Theorem 8 (Existence). For each of the 13 points
there is a table that is deterministic and reversible, satisfies and , and satisfies .
These points are shown in Figure 1 (Section 1). The six points from (10, 8) to (32, 3) are Morita's original machines, which remain non-dominated; the other seven are new. The witnesses are concrete rule tables: Morita's distributed tables [11] and the tables produced from them by the conversions of Section 3.
Table 5 lists the numbers of symbols and states obtained by applying the conversions of Section 3 to each of Morita's six machines and to URTM(85, 2). The columns of the conversions that reduce states give numbers of symbols, and those of the conversions that reduce symbols give numbers of states. For each conversion, Morita's construction and ours are listed side by side. The column of Morita's four-state conversion gives the value of the formula ; Morita gives the table only for (10, 8). All other entries count the symbols or states of constructed tables. In the three-state column of our construction, the two values separated by “/” are for the machine itself and for its mirror image. Bold entries are points of Theorem 8, and the machines marked * are proved universal in the sense of Definition 4. A dash marks a conversion that does not apply (a two-symbol conversion of a two-symbol machine). For (85, 2), the reverse-counting entry 96 equals the bound and is not shown to be the least for this conversion; at least 94 symbols are needed. The results of the block decomposition and of symbol merging are in Tables 3 and 4.
4.1 Proof of universality
Each witness other than the five merged ones is first shown to simulate an arbitrary CTSH: for every CTSH and initial string , the machine started on the code of halts if and only if halts from , and its halting ID is the
A PREPRINT
Table 6: Independent count of states and symbols in the witness tables
| Table | Quint. | Sources | Target-only | Symbols | Zero-shifts |
|---|---|---|---|---|---|
| Morita’s 6 points, distributed | 59–84 | m | 2 | n | 2 |
| same, tables in the book | 57–82 | m | 0 | n | 0 |
| 5 symbol-merging points, distributed | 144–162 | m | 2 | n | 2 |
| same, without 2 quintuples | 142–160 | m | 0 | n | 0 |
| (85, 2) | 153 | 85 | 0 | 2 | 0 |
| (3, 600) | 1,572 | 3 | 0 | 600 | 0 |
code of the halting ID of . For Morita’s six machines this is a direct proof about the given tables. For the converted machines it follows from general simulation theorems for the conversions (preservation of determinism, reversibility, one-step simulation, and the correspondence of halting, halting IDs, and non-halting), instantiated with the concrete tables. The five merged machines inherit universality from their tables before merging by Theorem 7.
Universality in the sense of Definition 4 then requires computable maps between arbitrary TMs and CTSHs. We formalize the chain
which follows the classical route of Cocke and Minsky [3] and Morita’s Theorem 7.2 [9]. The first step stores the tape of in two registers and normalizes the symbols of , which are arbitrary natural numbers, into binary; this replaces a separate conversion of the TM to two symbols. A general theorem then states that a machine that simulates an arbitrary CTSH and has a primitive recursive input encoding and a primitive recursive readout of the final string, independent of trailing blanks, satisfies IsUTMStrict. Each machine supplies only its assignment of natural numbers to states and symbols, its encoding of CTSHs, and its readout of final strings.
It follows directly from Definition 4 that any two of the 13 witnesses of Theorem 8 agree: for every TM and every admitted input , both halt on their encodings of or neither does, and if both halt, the decoded halting IDs denote the same ID; the encoded inputs, the runs, and the numbers of steps differ between them.
Halting quintuples. The distributed tables of Morita’s six points represent the halting entries of the tables in the book by two zero-shift quintuples into halting states that are not counted, and the tables of the five points obtained by symbol merging inherit these two quintuples through the conversions; the tables of (85, 2) and (3, 600) have no halting quintuples. We prove Theorem 8 for these 11 points also for the tables without the two quintuples (for Morita’s six points, these are the tables printed in the book). Removing them changes neither the number of states nor the number of symbols. A table without them halts one step before the original table enters a halting state, so the decoder first applies the removed quintuple once to the halting ID.
4.2 Counting states and symbols
Morita does not count halting states in the of URTM. The book states that the set of final states is not specified in the problem of reducing the number of states, the state sets of the URTMs in Chapter 7 contain no halting states, and in Chapter 11 it notes that the halting states are not included in URTM(17, 5) [9]. The distributed files also state explicitly that the halting states are not counted.
Our NStates counts source states and NSyms counts the symbols occurring in the table together with the blank. The two conventions could differ for states that occur only as targets, for halting states, and for symbols that do not occur in the table. For the witness tables of Theorem 8 we prove that every target is a source state; for (85, 2) and (3, 600) this holds already for the tables in the form of the distributed files, and for the other 11 points it holds for the tables without the two halting quintuples. Hence the number of states remains even under a convention that also counts targets. We also prove that the blank occurs in each witness and that every symbol is both read and written, and that the witnesses have exactly under Morita’s way of counting (targets counted, only symbols occurring in the table). An independent count outside the proof assistant agrees (Table 6). For the 11 distributed tables with the additional halting quintuples, counting targets gives states.
5 Nonexistence of URTMs with at most two states
Theorem 9 (Halting of two-state RTMs). There is a computable Boolean function such that, for all distinct states , every deterministic and reversible table whose source states are among and whose targets are among
A PREPRINT
, every position , and every code ,
Corollary 10. If is deterministic and reversible and , then , and hence . Moreover, there is a that is simulated, in the sense of conditions 2 and 3 of Definition 4, by no deterministic and reversible two-state table.
The corollary follows from Theorem 9 and the undecidability of the halting problem. Two reductions bring a general table into the form of the theorem. A one-state table is a special case of a two-state one. If a table has several halting targets, removing the quintuples whose target is not a source state does not change whether the machine halts: if the original run halts by executing a removed quintuple, the reduced run halts one step earlier. Removing quintuples preserves determinism and reversibility. The corollary therefore holds for any number of symbols, and with zero-shifts and halting states allowed as in Morita's definition. If this formalization captures Morita's Definition 7.1, it answers the question of the book and of the survey [10] negatively. Since halting is decidable uniformly in the table (Theorem 9), the same conclusion holds under any definition of universality that reduces the halting problem of Turing machines to halting of the machine by a computable encoding into finite IDs; the second part of the corollary addresses the survey's question, which concerns the class of two-state RTMs.
Proof outline of Theorem 9. Let be as in the theorem, with the quintuples into removed. Fix an initial finite ID and a window containing its non-blank cells and its head; let and let be the number of symbols.
-
The state is the direction of the last move. By the unique shift-direction property, if has both a left-moving and a right-moving quintuple, then one state is entered only by left moves, the other only by right moves, and there is no zero-shift. So the state records the direction of the last move; we call the state entered by left moves L and the one entered by right moves R. is then a partial injection , where is the set of symbols of . (If moves in only one direction, say to the right, the argument is as follows. When the head first enters a blank cell to the right of the window, everything to its right is blank and the head never moves left again, so the run from then on is determined by the state in which it enters. If the head reaches , two of the three states in which it enters are equal, since there are only two states (Fig. 20). Let be two cells entered in the same state. The run from is then the run from shifted by cells to the right, so the head keeps entering , , ... in the same state and never halts. Hence the head of a halting run stays left of , and a halting run is short. The case of moving only to the left is symmetric.)
-
A half-line reports only that the head came back. Fix a boundary and the half-line to its right. The head always enters in state R and leaves it in state L, and the behavior inside does not depend on the content outside. Hence the outcome of the -th entry into (leave, halt inside, or never return) and the content of on leaving depend only on the initial content of and on . In particular, moving back and forth across the boundary carries no information into beyond the number of entries, and the outside learns only at which entry the head comes back. Figure 21 illustrates this.
-
The head cannot go deep into a blank half-line. Let be initially blank and consider a halting run. The half-line is a translate of , so by step 2 their contents at the j-th entry are translates of each other. Since, by step 2, the j-th entries into the two half-lines have the same outcome, if the number of entries into caught up with that into , the run would repeat itself shifted by one cell and never halt. So the numbers of entries into , , , strictly decrease, and the head never passes k plus the number of entries into .
-
Each cell runs its own clock. A cell to the right of the initial head is first entered from the left, and afterwards the head can return only from the side to which it left. So the pair (direction, symbol) at the i-th visit of the cell is obtained by iterating a fixed map , where , on a set of size 2n. All blank cells run the same clock, so a run that halts inside a blank half-line enters it at most times.
-
Inside the window the machine is finite-state. Replacing each step that leaves the window by a turn at its end gives a machine with at most configurations, whose orbit the real run follows inside the window by step 2. A run that halts inside the window does so before the orbit becomes periodic; a run that halts in a half-line enters it in every period, hence by step 4 in boundedly many periods. In both cases each half-line is entered at most times.
-
A computable bound. By steps 3 and 5 the head of a halting run stays in a computable interval around the window. A halting run of a deterministic machine never repeats an ID, so it halts within a number of steps bounded by a computable function of n and w. Running T for that many steps decides halting.
A PREPRINT

Figure 20: An example of the states in which a right-moving two-state table enters the blank cells to the right of the window

Figure 21: The head of a two-state RTM crossing the boundary of a half-line
Only step 1 uses reversibility; steps 2 to 6 use only determinism and the fact that the state equals the direction of the last move. In an irreversible two-state TM the same state can be entered from both sides, so a half-line can send more than one bit of information, and indeed such machines can be universal. With three states, two states can be entered by right moves (as and in Morita's conversion to three states); the state in which the head enters a half-line then carries information, and step 2 fails.
A further nonexistence result.
Theorem 11. Let be deterministic and reversible with at most one left-moving quintuple , and assume that no zero-shift quintuple has the source state of as its target. Then . The same holds with right and left exchanged.
This is a reversible counterpart of Pavlotskaya's theorem that the halting problem is decidable for two-symbol TMs with a single left-moving instruction [13]; here the number of states and symbols is arbitrary.
Proof outline. By reversibility, the only quintuple entering the target of is itself. If enters its own source state , then is entered only by , so the head moves left only in one sweep at the start of the run and never afterwards. Otherwise the quintuples entering all move in one direction, which is not ( is the only left move and it enters another state) and not (by the assumption), so every execution of immediately follows a right move into ; hence the head never goes more than one cell to the left of the rightmost cell it has reached. In both cases, if the head reaches two new cells to the right of the initial window in the same state and with the same symbol to their left, the run repeats itself shifted and never halts, so a halting run stays within a computable distance of the window and halting is decidable. Without the assumption on zero-shifts this fails: with and the head moves left without bound.
6 Nonexistence of three-state two-symbol URTMs
Theorem 12. Let be deterministic and reversible, and suppose there are distinct states and a symbol such that every quintuple of has its source state among and reads and writes only 0 and . Then .
A PREPRINT
| 0 | σ | entered by | |
|---|---|---|---|
| q0 | σ, q1 | 0, q2 | L |
| q1 | σ, q0 | — | R |
| q2 | σ, q2 | 0, q0 | R |
Figure 22: An example of a key
The formalized proof first removes repeated quintuples from the table. This changes neither the steps nor halting, so it does not change IsUTMStrict either. Targets are arbitrary, so halting states and zero-shifts are allowed as in Morita's definition. We first prove the theorem for Morita's formulation on string IDs, with the additional requirement that the encoded inputs use only the symbols 0 and σ. For deterministic two-symbol tables, IsUTMStrict implies this formulation, because the only symbols that occur are the blank and one non-blank symbol; composing the two gives Theorem 12. As a check that the transfer is not vacuous, applying it to the witness for (85, 2) shows that at least one machine satisfies the string-ID form.
Proof outline. In every case we show that the head of a halting run stays within a distance of the initial window that is computable from the table and the window; then, since there are only finitely many configurations within that distance, a halting run halts within a computable number of steps and halting is decidable. Every table is first reduced to a normal form by renaming states and symbols and by removing the quintuples that enter a state other than , which changes the halting time by at most one step. A normal form is determined by assigning to each of the six entries (three states, two symbols) either no quintuple or one of the six pairs of a written symbol and a target state, together with the direction in which each of the three states is entered; we call this a key (by reversibility, the assignments of the entries with quintuples are distinct). There are 359,829 keys: choosing the entries that have quintuples and assigning them distinct pairs gives possibilities, and each of the three states is entered in one of the three directions, so the number is . Figure 22 shows an example of a key. The rows are the states and the columns the read symbols; each entry gives the written symbol and the target state, and – means that there is no quintuple. The direction of each quintuple is the direction in which its target state is entered. Hence this key represents the table of the five quintuples and . For each of them, a decision procedure checked by the kernel either produces a certificate or marks the table as exceptional. A certificate is a finite set of patterns of visits outside a window that is closed under the transitions of the table. It implies, by the pigeonhole principle, that a halting run halts within a computable number of steps, so that halting is decidable and the table is not universal. The exceptional keys are handled by general arguments:
-
if a state has no entering quintuple, then after the first step the table is a two-state table, and Theorem 9 applies;
-
if every quintuple entering some state comes from that state itself, then a halting run leaves that state within the width of the window plus one steps and never returns;
-
if some state is entered by a zero-shift, then that quintuple can be composed with the next one, eliminating the state and again reducing to a two-state machine;
and the remaining keys by arguments for each type of behavior; the last of them are closed by showing this computable distance directly. Counted outside the proof assistant up to renaming of states and left-right reflection, the exceptional keys form 178 classes of 2,280 tables, and the last group consists of 10 classes. Figure 23 shows this flow and the number of classes at each stage.
7 Formalization
All definitions of Section 2 and all theorems of Sections 3 to 6 are formalized in Lean 4 with Mathlib; computability in Definition 4 is Mathlib's notion of computable functions. Every theorem is accepted by the Lean kernel, contains no sorry, and depends only on the standard axioms; all computations used in proofs are checked by the kernel. The formalized machine model reproduces the halting step counts of the test runs that Morita distributes with his nine URTMs [11], with one exception: a test for URTM(13, 7) states 1,073 steps, whereas recomputation gives 1,173, as does the same test for URTM(10, 8), which the book says takes the same time.
What remains to be trusted is that the definitions and theorem statements express the intended claims, in particular that Definition 4 captures Morita's Definition 7.1; we state them in full so that the reader can compare them with the original. Since the existence and the nonexistence results use the same definition, a definition that were trivially true or trivially false would contradict one of them. The formalization and a full version with further details are available in the same repository (Section 3.3).
A PREPRINT

Figure 23: Flow of the proof that three-state two-symbol tables are not universal
8 Conclusion
We have constructed seven new URTMs that, together with six of Morita's machines, give 13 non-dominated points, and we have shown that no URTM exists with at most two states or with three states and two symbols. The new points come from making Morita's conversions economical: disjoint ranges by direction, counting in reverse, splitting state numbers into blocks, sharing and pruning counters, and merging symbols. The two-state result rests on the observation that, in a reversible machine with two states, the state is determined by the direction of the last move.
Several questions remain open. None of the new points is known to be minimal, and the lower and upper bounds are far apart: no URTM with at most two states exists, while the smallest known three-state URTM has 600 symbols. The numbers of symbols of the machines obtained by symbol merging come from a search over a limited set of block decompositions, starting tables, and annealing runs; trying further combinations may lower them. It is open whether some three-state, three-symbol or four-state, two-symbol RTM is universal. For irreversible UTMs, the smallest known machines have far fewer symbols for the same number of states, and it would be interesting to know whether reversibility forces this difference.
Acknowledgments
We are grateful to the late Kenichi Morita, who introduced us to this problem. We thank Toya Makino for discussions. This paper was written in Japanese and translated into English with a Generative AI tool. Generative AI tools were also used for computer search and for writing Lean code; all Lean code was checked by the Lean kernel. This work was supported by JST CREST Grant Number JPMJCR24I4, Japan.
References
[1] A. Asperti and W. Ricciotti. A formalization of multi-tape Turing machines. Theoretical Computer Science, 603:23–42, 2015. https://doi.org/10.1016/j.tcs.2015.07.013.
A PREPRINT
[2] C. H. Bennett. Logical reversibility of computation. IBM Journal of Research and Development, 17(6):525–532, 1973. https://doi.org/10.1147/rd.176.0525. [3] J. Cocke and M. Minsky. Universality of tag systems with . Journal of the ACM, 11(1):15–20, 1964. https://doi.org/10.1145/321203.321206. [4] A. Dudenhefner. Certified decision procedures for two-counter machines. In 7th International Conference on Formal Structures for Computation and Deduction (FSCD 2022), LIPIcs 228, pages 16:1–16:18, 2022. https://doi.org/10.4230/LIPIcs.FSCD.2022.16. [5] Y. Forster, F. Kunze, and M. Wuttke. Verified programming of Turing machines in Coq. In Proc. 9th ACM SIGPLAN International Conference on Certified Programs and Proofs (CPP 2020), pages 114–128, 2020. https://doi.org/10.1145/3372885.3373816. [6] M. Kudlek and Y. Rogozhin. A universal Turing machine with 3 states and 9 symbols. In Developments in Language Theory, Lecture Notes in Computer Science 2295, pages 311–318. Springer, 2002. https://doi.org/10.1007/3-540-46011-X_27. [7] L. de Moura and S. Ullrich. The Lean 4 theorem prover and programming language. In Automated Deduction – CADE 28, Lecture Notes in Computer Science 12699, pages 625–635. Springer, 2021. https://doi.org/10.1007/978-3-030-79876-5_37. [8] The mathlib Community. The Lean mathematical library. In Proc. 9th ACM SIGPLAN International Conference on Certified Programs and Proofs (CPP 2020), pages 367–381, 2020. https://doi.org/10.1145/3372885.3373824. [9] K. Morita. Theory of Reversible Computing. Springer, 2017. https://doi.org/10.1007/978-4-431-56606-9. [10] K. Morita. Making reversible computing machines in a reversible cellular space. Bulletin of the EATCS, no. 140, 2023. https://bulletin.eatcs.org/index.php/beatcs/article/view/760. [11] K. Morita. Constructing small universal reversible Turing machines (slides and description files). Hiroshima University Institutional Repository. https://hiroshima.repo.nii.ac.jp/records/2000034. [12] T. Neary and D. Woods. Four small universal Turing machines. Fundamenta Informaticae, 91(1):123–144, 2009. https://doi.org/10.3233/FI-2009-0036. [13] L. M. Pavlotskaya. Solvability of the halting problem for certain classes of Turing machines. Mathematical Notes of the Academy of Sciences of the USSR, 13(6):537–541, 1973. https://doi.org/10.1007/BF01163965. [14] Y. Rogozhin. Small universal Turing machines. Theoretical Computer Science, 168(2):215–240, 1996. https://doi.org/10.1016/S0304-3975(96)00077-1. [15] D. Woods and T. Neary. The complexity of small universal Turing machines: A survey. Theoretical Computer Science, 410(4–5):443–450, 2009. https://doi.org/10.1016/j.tcs.2008.09.051. [16] J. Xu, X. Zhang, and C. Urban. Mechanising Turing machines and computability theory in Isabelle/HOL. In Interactive Theorem Proving (ITP 2013), Lecture Notes in Computer Science 7998, pages 147–162. Springer, 2013. https://doi.org/10.1007/978-3-642-39634-2_13.