दुर्गा बेरागी Durga Beragi, homeEnter the study →

Library › Foundations of computing

Computation: Finite and Infinite Machines

Marvin L. Minsky · 1967 · Prentice-Hall

Automata and Turing machines taught from first principles.

About the book

Marvin Minsky, a founder of artificial intelligence research at the Massachusetts Institute of Technology, published this textbook with Prentice-Hall in 1967. It teaches the theory of computation from first principles. The book is in three parts. The first covers finite-state machines, including neural networks of the McCulloch-Pitts type. The second covers infinite machines, including Turing machines, universal machines and unsolvable problems. The third covers symbol-manipulation systems, such as Post production systems and program machines with registers, and their relation to computability. Minsky writes clearly, with many worked examples, diagrams and exercises.

Key ideas

  • Finite-state machines have a fixed number of internal states and no unbounded memory. Minsky shows exactly which patterns such machines can recognise and which lie beyond them.
  • Networks of simple neuron-like elements of the McCulloch-Pitts kind are equivalent in power to finite-state machines. This result connects early models of the brain to automata theory.
  • Turing machines, with an unbounded tape, can compute anything effectively computable. A universal Turing machine can simulate any other machine when given a description of it.
  • Some problems, such as the halting problem, are unsolvable by any machine. Minsky proves this and shows how other problems can be reduced to it to prove them unsolvable too.
  • Very simple systems can be universal. Minsky shows that program machines with only two registers, and very small universal Turing machines, can compute anything that is computable.

Why it is on this shelf

It is one of the clearest introductions to automata and computability, written by a founder of AI. Its treatment of neural networks as automata is historically important. It remains readable as a careful, example-driven text that builds intuition before formality.

How to start reading it

Read Part One on finite-state machines, then Part Two on Turing machines and unsolvability. Do some exercises. Part Three is more specialised but worth reading for the register machines.

About this book

Computation: Finite and Infinite Machines is a textbook. It was published by Prentice-Hall in 1967, in a series on automatic computation, and written by Marvin Minsky, then a professor at the Massachusetts Institute of Technology and one of the founders of the field of artificial intelligence. Its subject is the theory of what machines can do: what a machine with limited memory can recognise, what a machine with unlimited memory can compute, and what no machine can do at all.

By the mid-1960s the basic results of computability theory were thirty years old. They had been discovered by logicians in the 1930s, written in the language of mathematical logic, and published in journals read mostly by other logicians. Meanwhile electronic computers had spread through universities, laboratories and businesses. A growing number of engineers, programmers and students wanted to understand the theory behind the machines they used, but found the logical literature forbidding. Minsky set out to teach that theory to such readers, starting from the simplest machines and building up, with the emphasis on intuition and on concrete constructions rather than formal proofs for their own sake.

The question the book answers can be stated in a few words: what is a machine, in the most general sense, and what are its powers and limits? Minsky's answer proceeds by stages. First he studies machines with a fixed, finite number of internal states and no other memory. Then he adds an unbounded memory, such as a tape, and studies the resulting machines. Then he turns from machines to systems of rules for rewriting strings of symbols, and shows that these, too, reach the same limits. Along the way he shows how surprisingly little is needed to reach full computational power, and proves rigorously that some well-defined questions can never be answered by any machine.

The book is aimed at advanced undergraduates and beginning graduate students in engineering, computer science, mathematics and psychology, and at any serious reader willing to work. It assumes some comfort with mathematical reasoning but no previous study of logic. It contains many diagrams, worked examples and problems, some marked as difficult or as open research questions at the time of writing. Its tone is that of a lively teacher, often informal, sometimes playful, but never careless about the substance.

What kind of book it is

It belongs to a short list of textbooks that shaped a field. Before it, there were a few books on recursive function theory written by and for logicians, and some books on switching circuits written for electrical engineers. Minsky's book joined these worlds. It treats nerve nets, electronic circuits, Turing machines and string-rewriting rules as different faces of a single subject. That unified view became the standard way of teaching the theory of computation in computer science departments, though later textbooks organised it differently and took over much of its ground.

It is also a book with a point of view. Minsky was not a neutral compiler of results. He cared about the question of how minds work, and he believed that understanding machines, in this most general sense, was a necessary step toward understanding thought. That belief gives the book its energy. Even in the driest constructions, the reader senses that the author is asking what kind of thing a mechanism is, and how much a mechanism might be able to do, because he wanted to know whether a mind could be one. The book does not argue that question directly, and it stays within mathematics. But the motive is visible, and it makes the material feel alive rather than merely correct. A reader who keeps that motive in view will understand why certain topics, such as nerve nets and very small universal systems, receive more attention than a purely mathematical plan would give them.

The author

Marvin Minsky was born in New York City in 1927. He served briefly in the United States Navy at the end of the Second World War, then studied mathematics at Harvard, where he also explored psychology, neurology and music. He completed his doctorate in mathematics at Princeton in the mid-1950s. His thesis was on neural networks and their possible role in learning, a subject that ties directly to the first part of this book.

As a graduate student around 1951 he built, with Dean Edmonds, one of the earliest machines designed to learn: a network of a few dozen artificial neurons built from vacuum tubes and mechanical parts, which could learn to find its way through a maze by strengthening connections that led to success. He later came to doubt that simple neural networks of this kind would lead to intelligence, and much of his career was spent arguing for other approaches. But his early work gave him a practical understanding of what such networks could do, and that understanding runs through the opening chapters of this book.

In 1956 Minsky was one of the organisers, with John McCarthy, Claude Shannon and Nathaniel Rochester, of the summer research project at Dartmouth College that is usually taken as the founding event of artificial intelligence as a named field. A few years later he and McCarthy started the artificial intelligence project at MIT, which grew into one of the world's leading laboratories. Minsky remained at MIT for the rest of his career. He received the Turing Award, the highest honour in computer science, in 1969.

Other work

Minsky's interests were unusually broad. He invented and patented an early form of the confocal scanning microscope, now a standard tool in biology. He designed mechanical hands and robot arms. With Seymour Papert he wrote Perceptrons, published in 1969, a mathematical analysis of the limits of single-layer neural networks. That book was later blamed, perhaps unfairly, for a decline in neural network research during the 1970s. His later books, The Society of Mind in 1986 and The Emotion Machine in 2006, proposed that intelligence emerges from the interaction of many simple, mindless agents, each specialised for a narrow task. He died in 2016.

His work on small universal systems

Most relevant to this book, Minsky made his own contributions to computability theory in the early 1960s. He constructed a remarkably small universal Turing machine, using very few states and symbols. He showed that machines with only two counters, registers that hold a single number and can be incremented, decremented and tested for zero, can compute anything a Turing machine can. He worked on Post's tag systems, a very simple kind of rewriting rule, and helped show that even these are universal. These results appear in the book, and they reflect a theme Minsky cared about deeply: that great power can come from very simple mechanisms. The same theme drives his later view of the mind as a society of simple agents.

The shape of the book

The book is organised in three parts, each built around a different kind of machine or system, and each preparing for the next. Understanding this design helps a reader see where each topic fits.

Part one: finite machines

The first part studies machines that have only a finite number of possible internal conditions. Such a machine receives a sequence of inputs, changes its condition in response to each, and produces outputs. Everything it can remember about its past must be summarised in its current condition. Minsky describes these machines in several equivalent ways: as tables, as diagrams of states and transitions, and as networks of idealised neurons. He shows that these descriptions have exactly the same power. He then studies what finite machines can and cannot do, and develops a precise characterisation of the patterns they can recognise. The part ends with a clear sense of both the usefulness and the limits of finite memory.

Part two: infinite machines

The second part adds memory without bound. The central example is the Turing machine, a finite machine attached to a tape that can be extended as far as needed. Minsky explains why this model was proposed and why it is believed to capture everything that can be computed by a mechanical procedure. He builds a universal machine, one that can imitate any other given a description of it. He proves that certain problems, above all the problem of predicting whether a machine will ever stop, cannot be solved by any machine. He also discusses computable real numbers and the relation between machines and the recursive functions of the logicians.

Part three: symbol-manipulation systems

The third part shifts from machines to rules. It studies systems in which strings of symbols are transformed by replacing one pattern with another, such as the production systems of Emil Post. It shows that these systems can do anything Turing machines can, and that even very restricted forms of them remain universal. It also introduces program machines, simple computers with a few registers holding numbers and a short list of instructions, and shows that two registers are already enough for universality. This part connects the theory of computation with the structure of programs and with formal languages.

How the argument moves

Across the three parts the book follows a single line of thought. It begins with the most limited kind of machine and asks what it lacks. It adds what is lacking and asks what can now be done, and what still cannot. It then asks how little of the added capacity is really needed. The pattern is constructive throughout. Minsky prefers to show how to build a machine that does something, or to show by a clever construction that one kind of system can imitate another, rather than to argue abstractly. This makes the book feel like an engineering text about the most abstract possible machines.

The finite-state machine

The first key idea is the finite-state machine, also called a finite automaton. Picture a device with a dial that can point to any of a fixed number of positions. The device receives a stream of signals. Each time a signal arrives, the dial moves to a new position, determined entirely by its current position and the signal received. The device may also emit an output at each step. That is all. Its whole memory is the position of the dial.

Many familiar devices are of this kind. A traffic light controller moves through a cycle of conditions in response to timers and sensors. A vending machine keeps track of how much money has been inserted, up to some limit, and responds to button presses. A turnstile is locked or unlocked, and changes condition when a coin is inserted or someone pushes through. In each case the device's behaviour depends on its history only through its present condition, and the number of possible conditions is fixed in advance.

Why the idea matters

Every real computer is, strictly speaking, a finite-state machine, because it has a finite amount of memory. A machine with a billion bits of memory has two to the billion possible conditions, an unimaginably large number, but still finite. So the theory of finite machines is not a theory of toys. It describes the true situation of every physical device. Minsky makes this point and also explains why it is often more useful to model a large computer as having unbounded memory. When the number of states is astronomically large, the finite-state description, though correct, gives no insight. Treating memory as unlimited captures the way the machine actually behaves on problems of realistic size.

The finite-state machine is also the right model for many components inside computers and for much software. Text searching, lexical analysis in compilers, network protocols and user interface logic are often designed directly as finite machines, because they are easy to analyse and implement. Understanding them is a practical skill as well as a theoretical one.

What it is confused with

A common confusion is to think that a finite-state machine cannot process long inputs. It can process inputs of any length, one symbol at a time. What it cannot do is remember an unbounded amount about what it has seen. Another confusion is between a finite-state machine and a machine with a fixed program. A Turing machine also has a fixed program, its table, and finitely many internal states. The difference lies in the tape, an external memory that can grow without limit.

What finite memory cannot do

The second key idea is a precise account of the limits of finite machines. Because such a machine can only distinguish its inputs by which state they leave it in, it can only tell apart as many past histories as it has states. If a task requires distinguishing more histories than that, the machine must fail.

A classic example is checking whether a string of brackets is properly balanced, with every opening bracket matched by a later closing one. To do this for strings of any length, a machine must keep count of how many brackets are currently open. That count can be arbitrarily large. A machine with a hundred states can keep count up to about a hundred and no further. Give it a string with more nested brackets than that, and it cannot tell whether they balance. No finite machine can solve the general problem. The same reasoning shows that no finite machine can check whether a string has the same number of one letter as another, or recognise palindromes of any length.

Pigeonholes

The underlying argument is the pigeonhole principle. If you put more pigeons than holes, some hole holds two pigeons. If a machine with a given number of states reads more distinct prefixes than it has states, two of them must leave it in the same state. From then on the machine cannot tell them apart, since its future behaviour depends only on its state. If the task requires telling them apart, the machine fails. Minsky makes this argument concrete and visual, and it remains one of the most useful tools in the theory of computation.

Why it matters

This idea gives the first rigorous proof that a kind of machine has a limit. It is a model for all the impossibility results later in the book. It also has practical consequences. Programmers who try to parse nested structures, such as programming languages or markup, with tools designed only for finite patterns run into exactly this limit. Knowing it in advance saves wasted effort and explains why compilers use more powerful methods for parsing than for scanning words.

Regular patterns and their description

The third key idea is that the patterns finite machines can recognise have an exact algebraic description. Stephen Kleene showed in the 1950s that these patterns are exactly the ones that can be built from single symbols by three operations: putting patterns one after another, choosing between patterns, and repeating a pattern any number of times. Patterns built this way are called regular, and the expressions describing them are regular expressions.

Minsky presents this result, now usually called Kleene's theorem, as a central achievement of the first part. It says two different things are the same. On one side is a class of machines, defined by their mechanism. On the other is a class of patterns, defined by a simple algebra. Every machine recognises a regular pattern, and every regular pattern is recognised by some machine. The proof in each direction is constructive: given a machine, one can write down its pattern, and given a pattern, one can build its machine.

An analogy

Think of a recipe card that lists ingredients in a fixed order, sometimes offers a choice of one ingredient or another, and sometimes says to repeat a step as many times as you like. Every dish made by following such a card can be checked by an inspector who only needs to keep track of where on the card they are. Conversely, anything such an inspector can check can be written as such a card. The card is the regular expression; the inspector is the finite machine.

Where it leads

Regular expressions became one of the most widely used tools in computing. They appear in text editors, search utilities, programming languages and data validation. Most programmers use them without knowing the theorem that justifies them, and many use extended versions that go beyond regular patterns and lose the guarantees of the theory. Minsky's treatment shows where the tool comes from and why its basic form has the power it has. The same correspondence between machines and descriptions recurs at higher levels, with grammars and more powerful machines, in the later theory of formal languages.

Neurons as logic

The fourth key idea is the treatment of networks of idealised neurons as finite machines. In 1943 Warren McCulloch and Walter Pitts proposed a simplified model of a nerve cell: a unit that receives signals on several input lines, adds up their weighted strengths, and fires if the total exceeds a threshold. Some inputs can be inhibitory, able to prevent firing. Time proceeds in discrete steps. McCulloch and Pitts showed that networks of such units can compute any logical function and can implement any finite-state machine.

Minsky, who had written his doctoral thesis on neural networks, gives this material an important place in the first part. He shows how to build networks for basic logical operations, how to build memory by feeding a unit's output back into its input, and how to assemble these pieces into networks that realise any finite machine. Conversely, every such network, having finitely many units each on or off, is itself a finite machine. So nerve nets, switching circuits and state diagrams are three descriptions of a single class of systems.

Why it mattered in 1967

The equivalence was important for two reasons. It connected the study of the brain with the theory of computation, suggesting that the logical organisation of the nervous system could be studied with the same tools as circuits and programs. And it showed exactly what such networks cannot do, namely anything beyond the reach of finite machines, unless they are given some external unbounded memory or allowed to grow without limit.

What it is confused with

The McCulloch-Pitts neuron is often confused with the neurons of modern deep learning. The two share the idea of a weighted sum and a threshold, but they differ in important ways. McCulloch-Pitts units have fixed weights, set by the designer, and binary outputs. Modern artificial neurons have continuous outputs and weights adjusted by learning from data. The modern emphasis is on learning and statistics; Minsky's emphasis here is on logic and on what a given network can represent. Minsky also gave attention to learning, in his thesis and in Perceptrons, but this book treats networks mainly as logical devices.

Real biological neurons, in turn, are far more complex than either model. Minsky knew this. He presents the McCulloch-Pitts model as an abstraction that captures something important about information processing, not as a description of real cells.

The Turing machine and the unbounded tape

The fifth key idea is the Turing machine, introduced by Alan Turing in 1936. It consists of a finite-state control, like the machines of the first part, attached to a tape divided into squares. The control can read the symbol on one square, write a new symbol there, and move one square left or right, all according to a fixed table. The tape has no end; whenever the machine reaches the last used square, more blank squares are available.

The addition of the tape changes everything. A finite machine cannot count past its number of states. A Turing machine can write as many marks on its tape as it needs. It can check balanced brackets by marking them off in pairs. It can add, multiply and compare numbers of any size. It can carry out any procedure that a human clerk could follow with pencil and unlimited paper. Minsky explains Turing's original argument for this last claim, which analyses what a person actually does when calculating and shows that each step can be imitated by such a machine.

Building intuition

One of the strengths of Minsky's treatment is that he builds actual machines and shows them working. He constructs small Turing machines for simple tasks and traces their behaviour. He shows how to combine machines, how to use parts of the tape as separate work areas, and how to simulate more convenient features, such as several tapes or a two-dimensional work surface, on a single ordinary tape. The reader comes away with a working sense of how Turing machines are programmed, which makes the later abstract results feel concrete.

The Church-Turing thesis

Minsky discusses the widely accepted claim that Turing machines can compute everything that can be computed by any effective procedure. This claim is called the Church-Turing thesis, after Turing and Alonzo Church, who proposed equivalent definitions at almost the same time. Minsky makes clear that the thesis is not a theorem. It links a precise mathematical notion with an informal idea and cannot be proved. The evidence for it is that every alternative definition ever proposed has turned out to be equivalent, and that no one has found a procedure that seems effective but cannot be carried out by a Turing machine. The book's later parts add to this evidence by showing that very different systems reach exactly the same power.

The universal machine

The sixth key idea is the universal machine. Turing showed that a single machine can be designed which, given on its tape a description of any other machine together with that machine's input, will do whatever the described machine would do. The universal machine reads the description, keeps track of where the simulated machine would be and what state it would be in, and carries out its steps one by one.

Minsky constructs a universal machine in detail, so that the reader can see that the idea really works. He also discusses his own construction of a very small universal machine, using only a handful of states and symbols. The point of such constructions is to show how little machinery is needed for universality. Once a system is universal, adding more features does not increase what it can compute, only how conveniently or quickly it computes.

Why it matters

The universal machine is the abstract form of the general-purpose computer. A laptop is not built to run any particular program. It is built to run whatever program it is given. That is exactly the universality Turing described. Compilers and interpreters, which take a program written in one language and carry it out on a machine designed for another, are also universal machines in a practical sense. So are emulators that let one computer imitate another. Minsky's careful construction makes clear that this flexibility is not a fortunate engineering accident but a logical property of a certain kind of machine.

What it is confused with

Universality is sometimes confused with intelligence or with unlimited capability. A universal machine can compute anything computable, but only if given the right program, and only within the limits of computability. It cannot solve unsolvable problems. Nor does universality say anything about speed. A universal machine simulating another may be enormously slower than the original. These distinctions matter whenever people argue about what computers can or will be able to do.

Unsolvable problems

The seventh key idea is that some precisely stated problems cannot be solved by any machine, however long it is allowed to run. The central example is the halting problem: given the description of a machine and an input, decide whether the machine, started on that input, will eventually stop. Some machines stop quickly. Some run forever in an obvious loop. Some run for a very long time and then stop. Some run forever without ever repeating themselves. The question is whether a single procedure can sort all cases correctly.

Minsky proves that no such procedure exists. The proof is a version of the diagonal argument used by Georg Cantor to show that some infinite sets are larger than others, and by Turing in 1936. Suppose a machine could decide halting for every machine and input. Use it to build a second machine that takes a machine description, asks the decider whether that machine halts when given its own description as input, and then does the opposite: loops forever if the answer is yes, stops if the answer is no. Now ask what happens when this second machine is given its own description. Whatever it does contradicts what the decider predicted. So the decider cannot exist.

Making the argument feel solid

Many readers first meet this argument as a clever trick and are left uneasy about it. Minsky takes care to make it feel solid. He has already built a universal machine, so the reader knows that a machine really can take another machine's description as data and act on it. The self-application in the proof is then no stranger than running a program on its own source code, which compilers do routinely when they compile themselves. Once that is clear, the contradiction is plainly forced, and the result is seen as a hard fact rather than a puzzle.

Reduction

Once one problem is known to be unsolvable, others can be shown unsolvable by reduction. To show that problem B is unsolvable, show that if B could be solved, then the halting problem could be solved too. Minsky uses this method repeatedly. He shows, for instance, that it is unsolvable whether a machine started on a blank tape will ever halt, whether a machine will ever print a particular symbol, and later, whether certain systems of rewriting rules can produce a given string. Each result is proved by translating the halting problem into the new problem.

An everyday analogy for reduction: suppose you know that no one can open a certain safe. If you can show that opening a second safe would give you the combination to the first, you have shown that no one can open the second safe either. The second safe may look quite different, but the link between them carries the impossibility across.

What it is confused with

Unsolvability is often confused with difficulty. A problem that would take a billion years on the fastest computer is hard but solvable. An unsolvable problem has no procedure at all. It is also confused with ignorance about particular cases. For a specific machine, one may well be able to prove whether it halts. The impossibility concerns a single method that works for all machines. Practical tools that analyse programs can be very good at common cases; Minsky's result tells us only that they cannot be perfect.

Where it leads

The halting problem is the seed of a large family of results. Rice's theorem, a later generalisation, says that essentially every interesting question about what a program computes, as opposed to how it is written, is unsolvable in general. This explains why software verification is hard and why tools that check programs must either restrict the programs they accept, accept some false alarms, or miss some errors. The limit Minsky proves in this book is a permanent feature of the landscape in which all software is written.

Rewriting rules as computation

The eighth key idea is that computation can be described entirely as the rewriting of strings of symbols, without mentioning machines at all. This view goes back to Emil Post, who in the 1920s and 1940s developed what he called production systems: collections of rules saying that if a string has a certain form, a new string of a related form may be produced. Starting from given initial strings, one applies rules repeatedly and asks which strings can be produced.

Minsky devotes the third part of the book to such systems. He shows that Post's systems, even in heavily restricted normal forms, can imitate any Turing machine, and therefore have full computational power. He shows that questions about what such systems can produce are, in general, unsolvable. He discusses tag systems, a remarkably simple kind of rewriting system in which one reads the first symbol of a string, deletes a fixed number of symbols from the front, and appends a word depending on the symbol read to the back. Even such systems turn out to be universal, a result Minsky and his colleagues helped establish.

Why this view matters

The rewriting view is close to how much of computer science actually thinks. Grammars that define programming languages are rewriting systems. Compilers transform programs by applying rules. Proof systems in logic derive new formulas from old by rules. Term rewriting systems underlie some programming languages and theorem provers. The idea that computation is the transformation of symbols by rules, rather than the motion of a machine, is a powerful change of perspective, and Minsky presents it as equally fundamental.

An analogy

Consider a word game in which you may replace certain letter combinations with others according to a list of rules, and the question is whether you can transform one given word into another. With a few simple rules, the game may be easy. Post and his successors showed that with the right rules, such a game can encode any computation, and the question of whether one word can be reached from another can become unsolvable. A child's puzzle and a universal computer turn out to be the same kind of thing.

What it connects to

This part of the book also connects to formal language theory, the study of classes of string patterns defined by different kinds of grammars and machines. Regular patterns, from the first part, are the lowest level. Above them lie the patterns described by context-free grammars, which capture nested structures like balanced brackets and form the basis of programming language syntax. At the top lie the patterns produced by unrestricted rewriting systems, which are exactly those that Turing machines can list. Minsky's book touches this hierarchy; later textbooks develop it fully.

How little is enough

The ninth key idea, and perhaps the one most characteristic of Minsky, is that universality requires remarkably little. Again and again the book shows that a system stripped down to almost nothing still has full computational power, provided it has some form of unbounded memory.

The clearest example is the program machine, sometimes called a register machine or a counter machine. Imagine a computer with a few registers, each holding a single whole number of any size. It has a short list of instructions of only a few types: add one to a register, subtract one from a register if it is not already zero, and jump to another instruction depending on whether a register is zero. That is the entire instruction set. Minsky shows that such a machine can imitate any Turing machine. He then shows that two registers suffice. With clever encoding, the entire contents of a Turing machine's tape can be packed into a single number using powers of primes, and manipulated with only these primitive operations and one extra register for working space.

Why this is surprising and useful

The result is surprising because two counters seem to offer almost nothing. Each holds one number. The machine cannot directly store a string, a list or a table. Yet through encoding, numbers can stand for anything, and arithmetic can stand for any manipulation. The price is efficiency: a two-counter machine may need astronomically many steps to do what an ordinary computer does in a few. But in terms of what can be computed, there is no loss.

The result is useful because it provides a very simple model in which to prove that problems are unsolvable. If a problem can encode the behaviour of a two-counter machine, it is unsolvable. Many later unsolvability results, in mathematics, logic and computer science, have been proved this way, because a two-counter machine is easy to embed into other structures. Minsky's counter machines became a standard tool.

Small universal machines

In the same spirit, Minsky discusses how small a universal Turing machine can be, measured by the number of states and symbols in its table. He presents his own construction, which was for a time the smallest known. Later researchers found smaller ones, and the search for the smallest universal machines continues as a recreational and research topic. The lesson is the same: universality is cheap. It appears in very simple systems, which is why it turns up in unexpected places, such as cellular automata, card games and other systems never designed as computers.

What it is confused with

This idea is sometimes taken to mean that simple systems are as useful as complex ones. They are not. A two-counter machine is universal but practically useless for real work. Computer designers add features not to increase what can be computed but to compute faster, use memory more efficiently, and make programming easier. Minsky's results are about the boundary of possibility, not about practical design.

Simulation as the master method

A tenth idea is less a result than a way of working, and it ties the whole book together. Almost every major theorem in it is proved by simulation: showing that one kind of system can imitate another step by step. Nerve nets simulate finite machines and finite machines simulate nerve nets. A single-tape Turing machine simulates one with many tapes. A universal machine simulates any machine. Production systems simulate Turing machines. Two-counter machines simulate Turing machines through an encoding of the tape as a number. Unsolvability results are proved by simulating the halting problem inside another problem.

The method rests on a simple principle. If system A can imitate system B, then A can do at least everything B can. If each can imitate the other, they have the same power. To compare two very different kinds of system, one need not understand everything about either. One only needs a translation: a way of encoding the states of one in the states of the other, and of carrying out each step of one by a sequence of steps of the other.

Encoding is the hidden partner

Every simulation depends on an encoding. A tape becomes a number. A machine table becomes a string on a tape. A configuration of a Turing machine becomes a word in a rewriting system. Minsky is careful to show that each encoding is itself mechanical: there is an effective way to translate in and out. Without that care, a simulation could smuggle in power from outside, as if the encoding did the real work. With it, the comparison is fair.

An analogy from everyday life is translation between languages. If every sentence in one language can be faithfully translated into another, and the translation can be done by a fixed dictionary and grammar, then anything sayable in the first can be said in the second. The two languages may feel very different, and one may need long sentences to say what the other says briefly. But neither is more expressive in principle. Minsky's simulations are translations of this kind between kinds of machine.

Why it matters

Simulation is the working tool of the whole theory of computation, and of much practical computing too. Virtual machines, emulators, interpreters and compilers are simulations. Proofs that a new programming language or hardware design is universal are simulations. Proofs that a problem is hard, in complexity theory, are simulations with a bound on cost. A reader who has absorbed Minsky's way of building one system inside another has learned the single most useful technique in the field.

It also clarifies a common confusion. When people say that one system is more powerful than another, they may mean that it can compute more functions, or that it computes the same functions faster, or that it is easier to program. Simulation arguments separate these meanings. They show when two systems are equal in the first sense while differing greatly in the second and third.

Computable numbers and the limits of description

An eleventh idea, treated more briefly in the book, concerns real numbers. Turing's original 1936 paper was framed in terms of computable numbers: real numbers whose decimal expansions can be printed digit by digit by a machine. Numbers such as the square root of two and pi are computable in this sense, since there are procedures that produce as many of their digits as one wishes.

Because every machine has a finite description, machines can be listed in order, one after another. So there are only as many computable numbers as there are whole numbers. But Cantor showed that the real numbers cannot be listed in this way; there are strictly more of them. It follows that almost all real numbers are not computable. They exist in the mathematical sense, but no finite procedure can produce their digits. Minsky discusses this and related points, showing how the diagonal argument that proves the halting problem unsolvable is the same argument Cantor used for the real numbers.

Why it matters

The idea separates two things that are easily run together: what exists mathematically and what can be described or produced. Every number anyone has ever written down, named or used in a calculation is computable, because writing it down or naming it gives a finite description. The uncomputable numbers are the vast, silent majority that no description can single out. This is a quiet but deep fact about the relation between language and mathematics, and it explains why computers, which manipulate finite descriptions, deal only with a thin slice of the continuum.

In practice, computers approximate real numbers with finite representations, and numerical analysis studies the errors this causes. The theory of computable numbers sits beneath that practical work, telling us which numbers can in principle be approximated as closely as desired and which cannot. It also leads to computable analysis, a field that asks which theorems of calculus can be carried out by algorithms.

The tradition around it

Minsky's book stands at a point where several older lines of work came together and were handed on to a new discipline, computer science, that was only beginning to call itself by that name.

What came before

The deepest root is the work of the 1930s logicians. Kurt Godel's incompleteness theorems, Alonzo Church's lambda calculus and recursive functions, Alan Turing's machines and Emil Post's rewriting systems together defined what computation is and showed its limits. Their original papers are collected in The Undecidable, edited by Martin Davis, on this shelf. Minsky's book can be read as a translation of that work into a language engineers and programmers could use, with many additions from the intervening decades.

A second root is the work on nerve nets and automata from the 1940s and 1950s. McCulloch and Pitts's 1943 paper connected neurons with logic. John von Neumann used their model in his design of the stored-program computer and later explored the comparison of brains and computers in The Computer and the Brain, on this shelf. Kleene's work on regular events, and later work by Michael Rabin and Dana Scott on finite automata, built the theory of finite machines that occupies Minsky's first part. Norbert Wiener's Cybernetics, also on this shelf, provided the broader intellectual setting in which machines and organisms were studied together.

A third root is Claude Shannon's work. Shannon's master's thesis in the late 1930s showed that switching circuits could be analysed with Boolean algebra, and his later work on information theory, collected with Warren Weaver's introduction in The Mathematical Theory of Communication on this shelf, shaped how engineers thought about signals and codes. Shannon also studied small universal machines, a topic Minsky took up.

What came after

After Minsky's book, the theory of computation became a standard part of computer science education. Introduction to Automata Theory, Languages, and Computation by John Hopcroft and Jeffrey Ullman, first published in 1979 and on this shelf, became the most widely used textbook for decades. It organised the subject around the hierarchy of formal languages and the machines that recognise them, a structure Minsky's book points toward but does not fully develop. Introduction to the Theory of Computation by Michael Sipser, also on this shelf, became the leading textbook from the late 1990s, with a clean presentation that adds complexity theory as a third pillar beside automata and computability.

Complexity theory itself, which asks not whether problems can be solved but how efficiently, grew rapidly from the late 1960s. Computers and Intractability by Michael Garey and David Johnson, on this shelf, is its classic guide. Minsky's book predates the theory of NP-completeness and does not treat efficiency in that way, but its emphasis on reductions and simulations prepared the ground.

On the side of artificial intelligence and the mind, Minsky's own later work moved away from automata theory toward theories of knowledge representation and mental organisation. Douglas Hofstadter's Godel, Escher, Bach, on this shelf, brought many of the ideas in this book, especially self-reference, universality and the limits of formal systems, to a wide audience. Roger Penrose's The Emperor's New Mind, also here, argues that human understanding exceeds anything a Turing machine can do, a position Minsky firmly rejected. Reading Minsky's careful account of Turing machines first makes it easier to weigh Penrose's argument fairly. And Deep Learning by Goodfellow, Bengio and Courville shows how far the study of networks of simple units has travelled since the nerve nets of the first part.

Questions and criticisms

Computation: Finite and Infinite Machines is widely admired, but a fair reader should know its limits as well as its strengths.

Dated presentation

The book was written before many of the conventions that now organise the subject. Its terminology sometimes differs from modern usage, and some of its notation for machines and diagrams is unfamiliar to students trained on later textbooks. Its organisation, built around kinds of machines rather than around the hierarchy of languages and the classes of complexity, does not match how most courses are taught today. A reader who wants to prepare for a modern course or examination will find later textbooks more directly useful.

No complexity theory

The most significant omission, from a modern viewpoint, is the theory of computational complexity. The book is almost entirely concerned with what can be computed, not with how many steps or how much memory a computation needs. In 1967 complexity theory was just beginning. Today the distinction between problems solvable in polynomial time and those that seem to require exponential time is as central to computer science as the distinction between solvable and unsolvable. A reader should supplement this book with a modern treatment of complexity.

Uneven rigour

Minsky's informal style is a great strength for building intuition, but it has costs. Some proofs are sketched rather than given in full, and some arguments rely on the reader's willingness to accept that a construction can be completed in the obvious way. For most readers this is a fair trade. For readers who want complete formal proofs, a more rigorous text is needed alongside it.

Neural networks

The treatment of neural networks reflects the McCulloch-Pitts tradition of fixed logical networks. It says little about learning, which became the central concern of later neural network research. This is partly a matter of the book's purpose; it is about what machines can compute, not how they acquire their programs. But a reader coming from modern machine learning should be aware that the networks here are a different kind of object from those in current practice. Minsky's later book with Papert, Perceptrons, deals more directly with learning networks, and its reception is a separate and contested story.

What has held up

The mathematical content has held up completely. The theorems are correct and remain central. The constructions, especially of universal machines and of two-counter machines, are still cited and taught. The emphasis on building intuition through concrete examples has influenced generations of teachers. Most of all, the book's central message, that the same limits appear whether one starts from nerve nets, tapes or rewriting rules, and that simple systems can reach those limits, has only become more widely appreciated as universality has been found in more and more unexpected places.

Why it is on this shelf

The shelf gathers Vedanta, Jyotish, science, economics and technology. This book sits first among the technology titles, but its reach extends across the others.

For technology, it explains the fundamental capabilities and limits of every computing device. A reader who has worked through it understands why some problems can be automated and others cannot, why certain tools such as regular expressions have the power they do, and why every general-purpose computer is in a deep sense the same machine. That understanding is durable; it does not go out of date when languages and hardware change.

For science, the book is an example of how to reason about systems from their structure. Its method of asking what a system can represent, given its memory and its rules, applies to cells, brains, markets and ecosystems as well as to machines. The connection it draws between nerve nets and logic is an early instance of the idea that information processing is a unifying theme across the sciences.

For economics, the relevant lesson is about bounded memory. A finite-state machine is a precise model of an agent with limited ability to remember and calculate. Economists and game theorists have used finite automata to model players with bounded rationality, showing how outcomes change when agents cannot keep track of unlimited history. The first part of this book is a clear introduction to the tool such models use.

For the reader of Vedanta, the book offers a careful view of what a mechanism is and what follows from rules alone. Vedanta treats the mind, the antahkarana or inner instrument, as an instrument that processes impressions, and it holds that awareness is not itself a product of that processing. A reader need not accept or reject that view to find value in seeing, precisely, what any rule-following mechanism can and cannot do. The book draws its boundaries clearly. Where a reader places awareness in relation to those boundaries is a question the book does not address, and we do not suggest that it does.

For the reader of Jyotish, which involves long, rule-governed calculations of planetary positions and time cycles, the book is a reminder of what it means to compute. The classical procedures of Jyotish, followed step by step, are effective procedures in exactly the sense this book defines. Seeing calculation itself as an object of study can deepen respect for the precision those traditions demanded.

We keep it because it teaches the oldest and most permanent part of computer science with a clarity and spirit that later books, for all their polish, rarely match.

How to read it

This is a textbook, and it rewards active reading. Plan to read it over several months, with paper at hand for drawing machines and working problems.

First pass: part one

Begin with the first part, on finite-state machines. Read the opening chapters slowly. Draw every state diagram yourself before looking at Minsky's. Build small machines of your own: one that recognises strings with an even number of a given letter, one that checks whether a binary number is divisible by three, one that controls a simple device. Work through the pigeonhole argument for the limits of finite machines until you can reproduce it for a new example. Study the nerve-net chapters with care, building small networks for logical operations. Take the regular expression material slowly; it is the most abstract part of the first section and the most useful in practice.

Second pass: part two

Move to Turing machines. Program some small machines by hand, such as one that adds two numbers written as strings of marks. Then study the universal machine. Do not try to memorise its table; aim to understand its plan, how it keeps track of the machine it simulates. Work through the proof of the unsolvability of the halting problem several times until it feels inevitable. Then work through a few of the reductions, writing each in your own words.

Third pass: part three

The third part is more specialised. On a first reading, concentrate on the program machines with registers and on the proof that two registers suffice; this is one of the most elegant arguments in the book. Read the material on Post production systems and tag systems for the main ideas, and return to the details later if they interest you.

What to skip at first

On a first pass you may skim the most detailed constructions, especially the full tables for small universal machines and some of the more technical lemmas about normal forms of production systems. The material on computable real numbers can also wait. Mark these sections and return to them after you have the overall picture.

Exercises

Do the problems. Minsky's problems range from routine to very hard, and some were research questions when he wrote. Choose a few from each chapter and work them fully. The understanding this book offers comes mostly from doing, not from reading. If you can, work with another reader and compare solutions.

What to read next from this shelf

After this book, read The Undecidable, edited by Martin Davis, for the original papers of Turing, Church, Post and Godel, which you will now find much easier to follow. Then read Sipser's Introduction to the Theory of Computation or Hopcroft and Ullman's Introduction to Automata Theory, Languages, and Computation for a modern, more systematic treatment that includes complexity. Read Garey and Johnson's Computers and Intractability for the theory of efficient computation. For the wider meaning of these ideas, read Hofstadter's Godel, Escher, Bach, and then von Neumann's The Computer and the Brain for a reflection on how real brains differ from abstract machines.

Questions to carry

  • What exactly can a machine with finitely many states remember about its past?
  • Why does the pigeonhole principle set a limit on what finite machines can recognise?
  • How can two very different descriptions, machines and regular expressions, define the same class of patterns?
  • In what sense is every real computer a finite-state machine, and when is it more useful to pretend otherwise?
  • What does a McCulloch-Pitts network have in common with a switching circuit, and how does it differ from a modern learning network?
  • What does the unbounded tape add to a finite machine, and why is that enough for universality?
  • How does a universal machine keep track of the machine it is imitating?
  • Why is the Church-Turing thesis not provable, and what would count as evidence against it?
  • How does the diagonal argument show that the halting problem is unsolvable?
  • How can one problem's unsolvability be carried over to another by reduction?
  • Why is computation as string rewriting equivalent to computation by machines?
  • How can two counters, each holding a single number, compute anything a Turing machine can?
  • Why does universality appear in such simple systems, and what does that suggest about nature?
  • What questions about computation does this book not ask that later work made central?

Words to know

  • Finite-state machine: a device with a fixed number of internal states that changes state in response to inputs; also called a finite automaton.
  • State: the internal condition of a machine at a given moment, summarising everything it remembers.
  • Transition: the rule saying which state a machine moves to, given its current state and input.
  • State diagram: a drawing of a finite machine with circles for states and arrows for transitions.
  • Pigeonhole principle: the fact that if more items than containers are placed, some container holds at least two.
  • Regular expression: a description of a pattern built from symbols by sequence, choice and repetition.
  • Regular set: a set of strings recognisable by a finite-state machine.
  • Kleene's theorem: the result that regular expressions and finite-state machines describe the same patterns.
  • McCulloch-Pitts neuron: an idealised unit that fires when the weighted sum of its inputs passes a threshold.
  • Nerve net: a network of McCulloch-Pitts neurons, equivalent in power to a finite-state machine.
  • Turing machine: a finite control attached to an unbounded tape, reading, writing and moving one square at a time.
  • Universal Turing machine: a Turing machine that can imitate any other, given its description on the tape.
  • Church-Turing thesis: the claim that every effective procedure can be carried out by a Turing machine.
  • Halting problem: the question of whether a machine will eventually stop on a given input, unsolvable in general.
  • Diagonal argument: a proof method that constructs an object differing from every member of a list, showing the list incomplete.
  • Reduction: transforming one problem into another so that a solution to the second would solve the first.
  • Unsolvable problem: a problem for which no procedure gives correct answers on all inputs.
  • Production system: a set of rules for generating new strings from old by replacing patterns, as studied by Post.
  • Tag system: a simple rewriting system that reads a string's first symbol, deletes from the front and appends to the back.
  • Program machine: Minsky's term for a simple computer with registers holding numbers and a few instruction types.
  • Register or counter: a storage location holding a single whole number that can be incremented, decremented and tested.
  • Universality: the property of a system that can compute anything any Turing machine can.
  • Formal language: a set of strings over an alphabet, studied through the grammars and machines that define it.
  • Antahkarana: in Vedanta, the inner instrument, meaning the mind with its faculties of thought, judgement, memory and ego.

A note on this edition

This is a study edition written for the shelf of durgaberagi.com in our own words. It is a companion and commentary, intended to help a reader understand what Minsky's book is, why it matters and how to read it well. It does not reproduce the book's text, constructions, diagrams or problems.

Computation: Finite and Infinite Machines remains in copyright. Copies are available through libraries and second-hand bookshops, and it is worth finding and working through with a pencil. Where this edition describes Minsky's views or results, any error is ours, and his own pages are the authority.

Terms from this book with their own page: Church-Turing thesis, Halting problem, Turing machine, Antahkarana

More from “Foundations of computing”

The whole section →