ON COMPUTABLE NUMBERS, WITH AN APPLICATION TO THE ENTSCHEIDUNGSPROBLEM

By A. M. TURING

[Received 28 May, 1936.—Read 12 November, 1936.]

1.   Computing machines.
2.   Definitions.

Automatic machines.
Computing machines.
Circle and circle-free numbers.
Computable sequences and numbers.

3.   Examples of computing machines.
4.   Abbreviated tables

Further examples.

5.   Enumeration of computable sequences.
6.   The universal computing machine.
7.   Detailed description of the universal machine.
8.   Application of the diagonal process.
9.   The extent of the computable numbers.
10.  Examples of large classes of numbers which are computable.
11. Application to the Entscheidungsproblem.
APPENDIX

ON COMPUTABLE NUMBERS, WITH AN APPLICATION TO THE ENTSCHEIDUNGSPROBLEM. 
A CORRECTION
By A. M. Turing

Endnotes


The “computable” numbers may be described briefly as the real numbers whose expressions as a decimal are calculable by finite means. Although the subject of this paper is ostensibly the computable numbers, it is almost equally easy to define and investigate computable functions of an integral variable or a real or computable variable, computable predicates, and so forth. The fundamental problems involved are, however, the same in each case, and I have chosen the computable numbers for explicit treatment as involving the least cumbrous technique. I hope shortly to give an account of the relations of the computable numbers, functions, and so forth to one another. This will include a development of the theory of functions of a real variable expressed in terms of computable numbers. According to my definition, a number is computable if its decimal can be written down by a machine.

In §§ 9, 10 I give some arguments with the intention of showing that the computable numbers include all numbers which could naturally be regarded as computable. In particular, I show that certain large classes of numbers are computable. They include, for instance, the real parts of all algebraic numbers, the real parts of the zeros of the Bessel functions, the numbers X, e, etc. The computable numbers do not, however, include all definable numbers, and an example is given of a definable number which is not computable.

Although the class of computable numbers is so great, and in many ways similar to the class of real numbers, it is nevertheless enumerable. In §8 I examine certain arguments which would seem to prove the contrary. By the correct application of one of these arguments, conclusions are reached which are superficially similar to those of Gödel [1] . These results {231} have valuable applications. In particular, it is shown (§11) that the Hilbertian Entscheidungsproblem can have no solution.

In a recent paper Alonzo Church[2]  has introduced an idea of “effective calculability”, which is equivalent to my “computability”, but is very differently defined. Church also reaches similar conclusions about the Entscheidungsproblem.[3] The proof of equivalence between “computability” and “effective calculability” is outlined in an appendix to the present paper.

1. Computing machines.

We have said that the computable numbers are those whose decimals are calculable by finite means. This requires rather more explicit definition. No real attempt will be made to justify the definitions given until we reach §9. For the present I shall only say that the justification lies in the fact that the human memory is necessarily limited.

We may compare a man in the process of computing a real number to a machine which is only capable of a finite number of conditions q1, q2, ..., qR which will be called “m-configurations”. The machine is supplied with a “tape”, (the analogue of paper) running through it, and divided into sections (called “squares”) each capable of bearing a “symbol”. At any moment there is just one square, say the r-th, bearing the symbol S(r) which is “in the machine”. We may call this square the “scanned square”. The symbol on the scanned square may be called the “scanned symbol”. The “scanned symbol” is the only one of which the machine is, so to speak, “directly aware”. However, by altering its m-configuration the machine can effectively remember some of the symbols which it has “seen” (scanned) previously. The possible behaviour of the machine at any moment is determined by the m-configuration qn and the scanned symbol S(r). This pair qnS(r) will be called the “configuration”: thus the configuration determines the possible behaviour of the machine. In some of the configurations in which the scanned square is blank (i.e. bears no symbol) the machine writes down a new symbol on the scanned square: in other configurations it erases the scanned symbol. The machine may also change the square which is being scanned, but only by shifting it one place to right or 1eft. In addition to any of these operations the m-configuration may be changed. Some of the symbols written down {232} will form the sequence of figures which is the decimal of the real number which is being computed. The others are just rough notes to “assist the memory”. It will only be these rough notes which will be liable to erasure.

It is my contention that these operations include all those which are used in the computation of a number. The defence of this contention will be easier when the theory of the machines is familiar to the reader. In the next section I therefore proceed with the development of the theory and assume that it is understood what is meant by “machine”, “tape”, “scanned”, etc.

2. Definitions.

Automatic machines.

If at each stage the motion of a machine (in the sense of §1) is completely determined by the configuration, we shall call the machine an “automatic machine” (or a-machine). For some purposes we might use machines (choice machines or c-machines) whose motion is only partially determined by the configuration (hence the use of the word “possible” in §1). When such a machine reaches one of these ambiguous configurations, it cannot go on until some arbitrary choice has been made by an external operator. This would be the case if we were using machines to deal with axiomatic systems. In this paper I deal only with automatic machines, and will therefore often omit the prefix a-.

Computing machines.

If an a-machine prints two kinds of symbols, of which the first kind (called figures) consists entirely of 0 and 1 (the others being called symbols of the second kind), then the machine will be called a computing machine. If the machine is supplied with a blank tape and set in motion, starting from the correct initial m-configuration, the subsequence of the symbols printed by it which are of the first kind will be called the sequence computed by the machine. The real number whose expression as a binary decimal is obtained by prefacing this sequence by a decimal point is called the number computed by the machine.

At any stage of the motion of the machine, the number of the scanned square, the complete sequence of all symbols on the tape, and the m-configuration will be said to describe the complete configuration at that stage. The changes of the machine and tape between successive complete configurations will be called the moves of the machine.

{233}
Circular and circle-free machines.

If a computing machine never writes down more than a finite number of symbols of the first kind it will be called circular. Otherwise it is said to be circle-free.

A machine will be circular if it reaches a configuration from which there is no possible move, or if it goes on moving, and possibly printing symbols of the second kind, but cannot print any more symbols of the first kind. The significance of the term “circular” will be explained in §8.

Computable sequences and numbers.

A sequence is said to be computable if it can be computed by a circle-free machine. A number is computable if it differs by an integer from the number computed by a circle-free machine.

We shall avoid confusion by speaking more often of computable sequences than of computable numbers.

3.      Examples of computing machines.

I. A machine can be constructed to compute the sequence 010101.... The machine is to have the four m-configurations “ b”, “c”, “z”, “e” and is capable of printing “0”, and “1”. The behaviour of the machine is described in the following table in which “R” means “the machine moves so that it scans the square immediately on the right of the one it was scanning previously”. Similarly for “L”. “E” means the scanned symbol is “erased” and “P” stands for “prints”. This table (and all succeeding tables of the same kind) is to be understood to mean that for a configuration described in the first two columns the operations in the third column are carried out successively, and the machine then goes over into the m-configuration described in the last column. When the second column is left blank, it is understood that the behaviour of the third and fourth columns applies for any symbol and for no symbol. The machine starts in the m-configuration b with a blank tape.

  Configuration Behaviour
b None P0, R c
c None R e
e None P1, R z
z None R b

  {234}If (contrary to the description in §1) we allow the letters L, R to appear more than once in the operations column we can simplify the table considerably.

m-config. symbol operations final m-config.
b
~ None P0 b
0 R, R, P1 b
1 R, R, P0 b

II. As a slightly more difficult example we can construct a machine to compute the sequence 001011011101111011111.... The machine is to be capable of five m-configurations, viz. “o”, “q”, “p”, “f”, “b” and of printing “e”, “x”, “0”, “1”. The first three symbols on the tape will be “ e e 0”; the other figures follow on alternate squares. On the intermediate squares we never print anything but “x”. These letters serve to “keep the place” for us and are erased when we have finished with them. We also arrange that in the sequence of figures on alternate squares there shall be no blanks.    

Configuration Behaviour
m-config.
symbol
operations
final m-config.
b
 
Pe, R, Pe, R, P0, R, R, P0, L, L
o
o
~
1
0
R, Px, L, L, L
  
o
q
q
~
Any (0 or 1)
None
R, R
P1, L
q
p
p
~ x
e
None
E, R
R
L, L
q
f
p
f
~ Any
None
R, R
P0, L, L
f
o

To illustrate the working of this machine a table is given below of the first few complete configurations. These complete configurations are described by writing down the sequence of symbols which are on the tape, {235} with the m-configuration written below the scanned symbol. The successive complete configurations are separated by colons.

:  e  e 0         0 :  e  e 0      : e e 0      0 e   e        0       e   e        0    1 :
b        o           q               q                           p    
e e 0   0   1 : e e 0   0   1 : e e 0   0   1 e e 0   0   1 :        
      p           p                 f                   f              
e e 0   0   1 : e e 0   0   1     : e e 0   0   1   0 :                
            f                   f               o                      
e e 0   0   1 x 0 : ... .                                                
        o                                                              

This table could also be written in the form

b  : e e o 0      0 :  e e q 0      0 :
(C)

 in which a space has been made on the left of the scanned symbol and the m-configuration written in this space. This form is less easy to follow, but we shall make use of it later for theoretical purposes.

The convention of writing the figures only on alternate squares is very useful: I shall always make use of it. I shall call the one sequence of alternate squares F-squares and the other sequence E-squares. The symbols on E-squares will be liable to erasure. The symbols on F-squares form a continuous sequence. There are no blanks until the end is reached. There is no need to have more than one E-square between each pair of F-squares: an apparent need of more E-squares can be satisfied by having a sufficiently rich variety of symbols capable of being printed on E-squares. If a symbol J- is on an F-square S and a symbol I is on the E-square next on the right of S, then S and J will be said to be marked with I. The process of printing this I will be called marking J (or S) with I.

4. Abbreviated tables

There are certain types of process used by nearly all machines, and these, in some machines, are used in many connections. These processes include copying down sequences of symbols, comparing sequences, erasing all symbols of a given form, etc. Where such processes are concerned we can abbreviate the tables for the m-configurations considerably by the use of “skeleton tables”. In skeleton tables there appear capital German letters [4] and small Greek letters. These are of the nature of “variables”. By replacing each capital German letter throughout by an m-configuration {236} and each small Greek letter by a symbol, we obtain the table for an m-configuration.

The skeleton tables are to be regarded as nothing but abbreviations: they are not essential. So long as the reader understands how to obtain the complete tables from the skeleton tables, there is no need to give any exact definitions in this connection.

Let us consider an example:

m-configuration
Symbol
Behaviour
Final m-config.
 
f(CYB,I)
~ e
not e
L
L
f1(CYBYI)
f(CYB,I)
From the m-configuration f(CYBYI) the machine finds the symbol of form I which is farthest to the left (the “first I”) and the m-configuration then becomes C. If there is no I then the m-configuration becomes B.
f1(CYB,I)
~ I
not I
None
 
R

R
C
f1(CYB,I)
f2(C,B,I)
f2(CYB,I)
~ I
not I
None
 
R

R
C
f1(CYB,I)
B

If we were to replace C  throughout by q (say), B by r, and I by x, we should have a complete table for the m-configuration f(qYr, x). f is called an “m-configuration function” or “m-function”.

The only expressions which are admissible for substitution in an m-function are the m-configurations and symbols of the machine. Those have to be enumerated more or less explicitly: they may include expressions such as p (e, x); indeed they must if there are any m-functions used at all. If we did not insist on this explicit enumeration but simply stated that the machine had certain m-configurations (enumerated) and all m-configurations obtainable by substitution of m-configurations in certain m-functions, we should usually get an infinity of m-configurations; e.g., we might say that the machine was to have the m-configuration q and all m-configurations obtainable by substituting an m-configuration for C in p(C). Then it would have qY p(q), p(p(q)),p(p(p(q))) ... as m-configurations.

Our interpretation rule then is this. We are given the names of the m-configurations of the machine, mostly expressed in terms of m-functions. We are also given skeleton tables. All we want is the complete table for the m-configurations of the machine. This is obtained by repeated substitution in the skeleton tables.

{237} Further examples.

      (In the explanations the symbol “\” is used to signify “the machine goes into the m-configuration ...”)

e(CYBYI)   f(e1(CYBYI)BYI)

From  e(CYBYI) the first I is erased and \C. If there is no I\B.

e1(CYBYI) E C
e(BYI)   e(e(BYI),BYI) From e(B,I) all letters I are erased and \B

The last example seems somewhat more difficult to interpret than most. Let us suppose that in the list of m-configurations of some machine there appears e(b, x) (= q, say). The table is
e(b, x)
e(e(b, x), b, x)
or
q
e(qYb, x). 

Or, in greater detail:
q
   
e(qYb,x)
e(qYb,x)
 
f(e1(qYbY x),b,x)
e1(qYb,x)
E
q.

 

 

 

In this we could replace e1(qYB, x) by q' and then give the table for f(with the right substitutions) and eventually reach a table in which no m-functions appeared.

pe(C,J)     f(pe1(C,J)C,e)
From pe(CYJ) the machine prints J at the end of the sequence of symbols and \C.
pe1(CYJ) ~ Any None R, R
PJ
pe1(C,J)
l(C)
r(C)
    L
R
C
C
From f'(CYB,I) it does the same as for f(CYB,I) but moves to the left before C.
f'(CYB,I)       f(l(C),B,I)  
f"(CYB,I)       f(r(C)YB,I)  
c(CYB,I)
c1(C)
 
J

f(c1(C)YB,I)
pe(C,J)
c(CYB,I). The machine writes at the end the first symbol marked I and \C.

{238} The last line stands for the totality of lines obtainable from it by replacing J by any symbol which may occur on the tape of the machine concerned.

ce(CYB,I)
ce(B,I)
  c(e(CYB,I), B,I)
ce(ce(B,I), B,I)
ce(B,I). The machine copies down in order at the end all symbols marked I and erases the letters  I;\B.
 
re(CYB,I,J)
re1(CYB,I,J)

E,PJ
f(re1(CYB,I,J) B,I)
C
re(C,B,I,J). The machine replaces the first I by J and \C\B  if there is no I.
 
re(B,I,J)   re(re(B,I,J) B,I,J) re(B,I,J). The machine replaces all letters I byJ; \B.
cr(CYB,I)
cr(B,I)
  c(re(CYB,I,a) B,I)
cr(cr(B,I), re(B,a,I),I)
cr(B,I) differs from ce(B,I) only in that the letters I are not erased. The m-configuration cr(B,I) is taken up when no letters “a” are on the tape.
 
cp(CYU,E,I,J)   f'(cp1YC1YU,J), f(UYE,J),I)
cp1(CYU,J) O f'(cp2(CYU,J),UYJ)
cp2(CYUYO) ~ O
not O
C
U
.

The first symbol marked I and the first marked J are compared. If there is neither I nor J \E. If there are both and the symbols are alike, \C. Otherwise \U.

cpe(CYUYEYI,J) cp(e(e(CYCYJ)CYI),UYEYI,J)

cpe(CYUYEYI,J) differs from cp(CYUYEYI,J) in that in the case when there is similarity the first I and J are erased.

cpe(UYEYI,J cpe(cpe(UYEYI,J),UYEYI,J).

cpe(UYEYI,J). The sequence of symbols marked I is compared with the sequence marked J.  \E  if they are similar. Otherwise U. Some of the symbols Iand Jare erased.
{239}
q(C) ~ Any
None
R
R
q(C)
q1(C)
q(C,I). The machine finds the last symbol of form I. \C.
q1(C) ~ Any
None

R
 

q(C)
C
 
q(C,I)       q(q1(CYI))
q1(C,I) ~ I
not I
 
L
C
q1(CYI)
 
pe2(CYI,J)       pe(pe(CYJ),I) pe2(pe(CYI,J). The machine prints I J at the end.
ce2(BYI,J)       ce(ce(BYJ),I) ce3(BYI,J,O). The machine copies down at the end first the symbols marked I, then those marked J, and finally those marked O; it erases the symbols I,J,O.
ce3(BYI,J,O)       ce(ce2(BYJ,O),I)
e(C) ~ e
Not e
R
L
e1(C)
e(C)
From e(C) the marks are erased from all marked symbols.  \C.  
e1(C) ~ Any
None
R, E, R
 
e1(C)
C
 

5.      Enumeration of computable sequences.

A computable sequence O is determined by a description of a machine which computes O. Thus the sequence 001011011101111... is determined by the table on p.234, and, in fact, any computable sequence is capable of being described in terms of such a table.

It will be useful to put these tables into a kind of standard form. In the first place let us suppose that the table is given in the same form as the first table, for example, I on p.233. That is to say, that the entry in the operations column is always of one of the forms E : E, R : E, L : Pa : Pa, R : Pa, L : R : L : or no entry at all. The table can always be put into this form by introducing more m-configurations. Now let us give numbers to the m-configurations, calling them q1 , ..., qR, as in § 1. The initial m-configuration is always to be called q1. We also give numbers to the symbols S1, …, Sm{240}and, in particular, blank = S0, 0 = S1 , l = S2. The lines of the table are now of form

m-config.
symbol
operations
final m-config.
 
qi
Sj
PSk, L
qm
(N1)
qi
Sj
PSk, R
qm
(N2)
qi
Sj
PSk
qm
(N3)

Lines such as
qi
Sj
E, R
qm
 

Are to be written as
qi
Sj
PS0, R
qm
 

And lines such as
qi
Sj
R
qm
 

To be written as
qi
Sj
PSj, R
qm
 

In this way we reduce each line of the table to a line of one of the forms (N1), (N2), (N3).

From each line of form (N1) let us form an expression qi Sj Sk L qm; from each line of form (N2) we form an expression qi Si Sk R qm; and from each line of form (N3) we form an expression qi Sj Sk Nqm. Let us write down all expressions so formed from the table for the machine and separate them by semi-colons. In this way we obtain a complete description of the machine. In this description we shall replace qi by the letter “D” followed by the letter “A” repeated i times, and Sj by “D” followed by “C” repeated  j times. This new description of the machine may be called the standard description (S.D). It is made up entirely from the letters “A”, “C”, “D”, “L”, “R”, “N”, and from “;”.

If finally we replace “A” by “1”, “C” by “2”, “D” by “3”, “L” by “4”, “R” by “5”, “N” by “6”, and “;” by “7” we shall have a description of the machine in the form of an arabic numeral. The integer represented by this numeral may be called a description number (D.N) of the machine. The D.N determine the S.D and the structure of the {241} machine uniquely. The machine whose D.N is n may be described as M(n).

To each computable sequence there corresponds at least one description number, while to no description number does there correspond more than one computable sequence. The computable sequences and numbers arc therefore enumerable.

Let us find a description number for the machine I of §3. When we rename the m-configurations its table becomes:

q1 S0 PS1, R q2
q2 S0 PS0, R q3
q3 S0 PS2, R q4
q4 S0 PS0, R q1

Other tables could be obtained by adding irrelevant lines such as
q1 S1 PS1, R q2

Our first standard form would be

q1S0S1Rq2; q2S0S0Rq3;  q3S0S0Rq4;  q4S0S2Rq1;.

The standard description is
DADDCRDAA; DAADDRDAAA;
  DAAADDCCRDAAAA; DAAAADDRDA;

A description number is

31332531173113353111731113322531111731111335317

and so is

31332531173113353111731113322531L1173111133531731323253117

A number which is a description number of a circle-free machine will be called a satisfactory number. In §8 it is shown that there can be no general process for determining whether a given number is satisfactory or not.

6.    The universal computing machine.

It is possible to invent a single machine which can be used to compute any computable sequence. If this machine I is supplied with a tape on the beginning of which is written the S.D of some computing machine M, {242} then I will compute the same sequence as M. In this section I explain in outline the behavior of the machine. The next section is devoted to giving the complete table for I.

Let us first suppose that we have a machine M' which will write down on the F-squares the successive complete configurations of M. These might be expressed in the same form as on p.235, using the second description, (C), with all symbols on one line. Or, better, we could transform this description (as in §5) by replacing each m-configuration by “D” followed by “A” repeated the appropriate number of times, and by replacing each symbol by “D” followed by “C” repeated the appropriate number of times. The numbers of letters “A” and “C” are to agree with the numbers chosen in §5, so that, in particular, “0” is replaced by “DC”, “1” by “DCC”, and the blanks by “D” . These substitutions are to be made after the complete configurations have been put together, as in (C). Difficulties arise if we do the substitution first. In each complete configuration the blanks would all have to be replaced by “D” , so that the complete configuration would not be expressed as a finite sequence of symbols.

If in the description of the machine II of §3 we replace “o ” by “DAA”, “e” by “DCCC ”, “q”by “DAAA”, then the sequence (C) becomes:

DA : DCCCDCCCDAADCDDC : DCCCDCCCDAAADCDDC : ... (C1)

(This is the sequence of symbols on F-squares.)

It is not difficult to see that if M can be constructed, then so can M'. The manner of operation of M' could be made to depend on having the rules of operation (i.e., the S.D) of it written somewhere within itself (i.e. within M'); each step could be carried out by referring to these rules. We have only to regard the rates as being capable of being taken out and exchanged or others and we have something very akin to the universal machine.

One thing is lacking: at present the machine M' prints no figures. We may correct this by printing between each successive pair of complete configurations the figures which appear in the new configuration but not in the old. Then (C1) becomes

DDA : 0 : 0 : DCCCDCCCDAADCDDC : DCCC.... (C2)

It is not altogether obvious that the E-squares leave enough room for the necessary “rough work”, but this is, in fact, the case.

The sequences of letters between the colons in expressions such as (C1) may be used as standard descriptions of the complete configurations. When the letters are replaced by figures, as in §5, we shall have a numerical {243} description of the complete configuration, which may be called its description number.

7.      Detailed description of the universal machine.

A table is given below of the behaviour of this universal machine. The m-configurations of which the machine is capable are all those occurring in the first and last columns of the table, together with all those which occur when we write out the unabbreviated tables of those which appear in the table in the form of m-functions. E.g.,  e(anf) appears in the table and is an m-function. Its unabbreviated table is (see p. 239)
e(anf) ~ e

not e
R

L
e1(anf)

e(anf)
e(anf) ~ Any

None
R, E, R
 
 
e1(anf)
 
e(anf)

Consequently  e1(anf) is an m-configuration of  I.

When I is ready to start work the tape running through it bears on it the symbol e on an F-square and again e on the next E-square; after this, on F-squares only, comes the S.D of the machine followed by a double colon “: :” (a single symbol, on an F-square). The S.D consists of a number of instructions, separated by semi-colons.

Each instruction consists of five consecutive parts

i ) “D” followed by a sequence of letters “A”. This describes the relevant m-configuration.

ii ) “D” followed by a sequence of letters “C”. This describes the scanned symbol.

iii ) “D” followed by another sequence of letters “C”. This describes the symbol into which the scanned symbol is to be changed.

iv ) L”, “R”, “N”, describing whether the machine is to move to left, right, or not at all.

v ) “D” followed by a sequence of letters “A”. This describes the final m-configuration.

The machine I is to be capable of printing “A”, “C”, “D”, “0”, “1”, “u”, “v”, “w”, “x”, “y”, “z”.
The S.D is formed from “ ; ”, “A”, “C”, “D”, “L”, “R”, “N”.

{244} Subsidiary skeleton table.
con(C,I) ~ Not A

A
R, R

L,PI,R
con(CYI)

con1(CYI)
con(CYI). Starting from an F-square, S say, the sequence C of symbols describing a configuration closest on the right of S is marked out with letters I\C.
con1(C,I) ~ A

D
R,PI,R

R,PI,R
con1(CYI)

con2(C,I)
con1(C,I) ~ C

Not C
R,PI,R

R,R
con2(C,I)

C
con(C,  ). In the final configuration the machine is scanning the square which is four squares to the right of the last square of C. C is left unmarked.

The table for  U.
b     f(b1, b1, ::) b. The machine prints :DA on the F-squares after  :: \anf.
b1 R, R, P :, R, R, PD, R, R, PA anf
anf     g(anf1 , :) anf. The machine marks the configuration in the last complete configuration with y. \fom.
anf1     con(fom, y)
fom ~ ;
z
not z nor ;
R, Pz, L
L, L
L
con(fmp, x)
fom
fom
fom. The machine finds the last semi-colon not marked with z. It marks this semi-colon with z and the configuration following it with x.
fmp   cpe(e(fom,x, y), sim, x, y) fmp. The machine compares the sequences marked x and y. It erases all letters x and y. \sim if they are alike. Otherwise \fom.

anf. Taking the long view, the last instruction relevant to the last configuration is found. It can be recognised afterwards as the instruction following the last semi-colon marked z\sim.

{245}
sim       f'(sim1Y sim1, z) sim. The machine marks out the instructions. That part of the instructions which refers to operations to be carried out is marked with u, and the final m-configuration with y. The letters z are erased.
sim1       con(sim2,   )
sim2 ~ A
Not A
 
R, Pu, R, R, R
sim3
sim2
sim3 ~ Not A
A
L, Py
L, Py,
R, R, R
e(mf, z)
sim3
mf       g(mf, :) mf. The last complete configuration is marked out into four sections. The configuration is left unmarked. The symbol directly preceding it is marked with x. The remainder of the complete configuration is divided into two parts, of which the first is marked with v and the last with w. A colon is printed after the whole. \sh.
mf1 ~ Not A
A
R, R
L, L, L, L
mf1
mf2
mf2 ~ C
:
D
R, Px, L, L, L
 
R, Px, L, L, L
mf2
mf4
mf3
mf3 ~ not :
:
R, Pv, L, L, L
 

mf3
mf
4
mf4       con(l(l(mf5)), )
mf5 ~ Any
None
R, Pw, R
P:
mf5
sh
sh       f(sh1Y instY u) sh. The instructions (marked u) are examined. If it is found that they involve “Print 0” or “Print 1”, then 0: or 1: is printed at the end.
sh1     L, L, L sh2
sh2 ~ D
not D
R, R, R, R
 
sh2
inst
sh3 ~ C
not C
R, R
 
sh4
inst
sh4 ~ C
not C
R, R
 
sh5
pe2(inst, 0, :)
sh5 ~ C
not C
  inst
pe2(inst, 1, :)
{246}         inst     g(l(inst1),u) inst. The next complete configuration is written down, carrying out the marked instructions. The letters u, v, w, x, y are erased. \anf.
inst1 I R, E inst1(I)
inst1(L)   ce5(ov, v, y, x, u, w)
inst1(R)   ce5(ov, v, y, x, u, w)
inst1(N)   ce5(ov, v, y, x, u, w)  
ov   e(anf)  

8.      Application of the diagonal process.

It may be thought that arguments which prove that the real numbers are not enumerable[5] would also prove that the computable numbers and sequences cannot be enumerable . It might, for instance, be thought that the limit of a sequence of computable numbers must be computable. This is clearly only true if the sequence of computable numbers is defined by some rule.

Or we might apply the diagonal process. “If the computable sequences are enumerable, let In be the n-th computable sequence, and let Yn(m) be the m-th figure in In. Let J  be the sequence with 1 – Yn(n) as its n-th figure. Since Jis computable, there exists a number K such that 1 – Yn(n) = YK(n) all n. Putting n = K, we have 1 = 2YK(K), i.e. 1 is even. This is impossible. The computable sequences are therefore not enumerable”.

The fallacy in this argument lies in the assumption that J is computable. It would be true if we could enumerate the computable sequences by finite means, but the problem of enumerating computable sequences is equivalent to the problem of finding out whether a given number is the D.N of a circle-free machine, and we have no general process for doing this in a finite number of steps. In fact, by applying the diagonal process argument correctly, we can show that there cannot be any such general process.

The simplest and most direct proof of this is by showing that, if this general process exists, then there is a machine which computes J. This proof, although perfectly sound, has the disadvantage that it may leave the reader with a feeling that “there must be something wrong”. The proof which I shall give has not this disadvantage, and gives a certain insight into the significance of the idea “circle-free”. It depends not on constructing J, but on constructing J ', whose n-th figure is  Yn(n).

{247} Let us suppose that there is such a process; that is to say, that we can invent a machine D which, when supplied with the S.D of any computing machine M will test this S.D and if  M is circular will mark the S.D with the symbol “u” and if it is circle-free will mark it with “s”. By combining the machines D and I we could construct a machine M to compute the sequence J'. The machine D may require a tape. We may suppose that it uses the E-squares beyond all symbols on F- squares, and that when it has reached its verdict all the rough work done by D is erased.

The machine H has its motion divided into sections. In the first N –1 sections, among other things, the integers 1, 2, …, N – 1 have been written down and tested by the machine D. A certain number, say R(N – 1), of them have been found to be the D.N’s of circle-free machines. In the N-th section the machine D tests the number N. If N is satisfactory, i.e., if it is the D.N of a circle-free machine, then R(N) = 1 +R(N – 1) and the first. R(N) figures of the sequence of which a D.N is N are calculated. The R(N)-th figure of this sequence is written down as one of the figures of the sequence  J' computed by H. If N is not satisfactory, then R(N) = R(N – 1) and the machine goes on to the (N + 1)-th section of its motion.

From the construction of Hwe can see that H is circle-free. Each section of the motion of H comes to an end after a finite number of steps. For, by our assumption about D, the decision as to whether N is satisfactory is reached in a finite number of steps. If N is not satisfactory, then the N-th section is finished. If N is satisfactory, this means that the machine M(N) whose D.N is N is circle-free, and therefore its R(N)-th figure can be calculated in a finite number of steps. When this figure has been calculated and written down as the R(N)-th figure of J', the N-th section is finished. Hence H is circle-free.

Now let K be the D.N of  H. What does H do in the K-th section of its motion? It must test whether K is satisfactory, giving a verdict “s” or “u”. Since K is the D.N of Hand since H is circle-free, the verdict cannot be “u”. On the other hand the verdict cannot be “s”. For if it were, then in the K-th section of its motion H would be bound to compute the first R(K – 1)+1 = R(K) figures of the sequence computed by the machine with K as its D.N and to write down the R(K)-th as a figure of the sequence computed by H. The computation of the first R(K) – 1 figures would be carried out all right, but the instructions for calculating the R(K)-th would amount to “calculate the first R(K) figures computed by H and write down the R(K)-th”. This R(K)-th figure wonld never be found. I.e., H is circular, contrary both to what we have found in the last paragraph and to the verdict “s”. Thus both verdicts are impossible and we conclude that there can be no machine D.

{248} We can show further that there can be no machine R which, when applied with the S.D of an arbitrary machine M, will determine whether M ever prints a given symbol (0 say).

We will first show that, if there is a machine R, then there is a general process for determining whether a given machine M prints 0 infinitely often. Let M1  be a machine which prints the same sequence as M, except that in the position where the first 0 printed by M stands, M1 prints %. M2 is to have the first two symbols 0 replaced by %, and so on. Thus, if M were to print

A B A 01 A A B 0 0 1 0 A B…,

then M1 would print

A B A % 1 A A B 0 0 1 0 A B

and M2 would print

A B A % 1 A A B % 0 1 0 A B… .

Now let F be a machine which, when supplied with the S.D of M, will write down successively the S.D of M, of M1, of M2, … (there is such a machine). We combine F with R and obtain a new machine, G. In the motion of G first F is used to write down the S.D of M, and then R