Logic Theorist

On this page 7

Logic Theorist was a computer program, written in 1955 and 1956 by Allen Newell, Herbert A. Simon and Cliff Shaw, that proved theorems in propositional logic by searching for proofs the way a human mathematician might. It is widely regarded in AI history as the first program deliberately designed to perform automated reasoning, and it is often called the first artificial intelligence program.

The program worked on theorems from chapter 2 of Principia Mathematica, the foundational work of Whitehead and Russell. It proved 38 of the first 52 theorems in that chapter and found a proof of one theorem that was shorter than the published version. Its real significance, however, lies less in the results than in the methods it introduced: heuristic search, list processing and the idea that thinking can be modeled as symbol manipulation.

How Logic Theorist searched for proofs

Logic Theorist treated proving as a search through a space of logical expressions. It started from the theorem to be proved and worked backward toward known axioms or previously proved theorems, trying to find a chain of valid steps that connected them.

An exhaustive search would have been hopeless on the computers of the 1950s, because the number of possible derivations grows explosively with proof length. The program therefore used heuristics, rules of thumb that select promising steps and discard unpromising ones. It also stored proved theorems and reused them as lemmas, much as a mathematician builds on earlier results. The table lists its four main proof methods.

MethodWhat it doesLogical basis
SubstitutionReplaces variables in a known theorem to match the goalRule of substitution
DetachmentFinds a known implication whose consequent matches the goalModus ponens
Forward chainingLinks known implications from the premises toward the goalTransitivity of implication
Backward chainingCreates subgoals from the goal toward known theoremsTransitivity of implication
The main proof methods of Logic Theorist

A similarity test decided whether an expression was worth pursuing. If a subgoal looked structurally unlike any known theorem, the program dropped it. This pruning of the search tree is the core idea that later became standard in AI planning and game playing.

Technical setting and implementation

Logic Theorist was developed at the RAND Corporation and the Carnegie Institute of Technology. Before it ran on a machine, the team simulated it by hand, with family members and students acting as program subroutines, to check that the procedure worked. It later ran on the JOHNNIAC computer at RAND.

To write the program, the team created Information Processing Language (IPL), one of the first list-processing languages. IPL allowed data structures to grow and shrink dynamically, which was essential for representing logical formulas of varying size. The table summarizes the main technical facts.

AttributeDetail
Development period1955 to 1956
InstitutionsRAND Corporation and Carnegie Institute of Technology
HardwareJOHNNIAC vacuum-tube computer
LanguageInformation Processing Language (IPL)
Problem domainPropositional calculus from Principia Mathematica
Result38 of the first 52 theorems in chapter 2 proved
Key facts about Logic Theorist

Place in AI history

Logic Theorist was presented at the 1956 Dartmouth summer research project, the meeting that gave artificial intelligence its name. It was one of the few working programs shown there, and it gave the new field concrete evidence that machines could perform tasks regarded as intellectual.

Its most quoted result concerns theorem 2.85, for which the program produced a proof more elegant than the original. A paper reporting the proof, with the program listed as a co-author, was rejected by a logic journal, which considered a new proof of a known theorem insufficient for publication. The episode is often retold as an early sign of the cultural friction between AI research and established disciplines.

The program also shaped the symbolic approach that dominated AI for three decades. The comparison below places it among neighboring early systems.

ProgramYearTaskKey contribution
Logic Theorist1956Proving logic theoremsHeuristic search and list processing
General Problem Solver1957 to 1959General puzzles and proofsMeans-ends analysis across domains
Samuel’s checkers program1952 to 1959Playing checkersMachine learning from self-play
Geometry Theorem Prover1959Proving plane geometry theoremsDiagrams used to prune the search
Logic Theorist compared with related early programs

Influence on cognitive science

Newell and Simon intended Logic Theorist as a model of human problem solving, not merely as a theorem-proving tool. They compared the program’s behavior with protocols of people thinking aloud, and this method helped found cognitive psychology as an information-processing science.

The work led directly to the physical symbol system hypothesis, the claim that manipulating symbols is both necessary and sufficient for general intelligence. That hypothesis guided expert systems and planning research and remains a reference point in debates between symbolic and connectionist AI.

Limitations and common misconceptions

Logic Theorist was narrow and brittle by modern standards, and several claims about it are often overstated. The following points correct the most frequent ones.

  • It did not prove all of chapter 2: it failed on a number of theorems within its time and memory limits.
  • It was not a complete prover: its heuristics could discard the path to a valid proof.
  • It did not learn in the modern sense: it reused stored theorems but did not improve its own heuristics.
  • It handled only propositional logic: predicate logic and real mathematical discovery were beyond its scope.

In everyday language

Logic Theorist was one of the first computer programs that tried to think. It solved logic puzzles from a famous math book. It did not try every possible answer. That would take far too long. Instead, it used smart shortcuts, like a person guessing which path looks most promising.

Picture someone in a maze who skips the corridors that clearly lead nowhere. That is how the program worked. It proved most of the puzzles it tried. The big lesson was clear: a computer can do work that looks like reasoning.

Seen in the real world

The ideas tested in Logic Theorist still appear in tools that engineers use today. Modern automated theorem provers and proof assistants, used to check chip designs and safety-critical software, also search backward from a goal, break it into subgoals and prune unpromising branches with heuristics. The scale is vastly larger, but the basic strategy is recognizably the same.

University courses on artificial intelligence often recreate the program as an exercise. Students implement substitution, detachment and chaining in a few hundred lines of a modern language and test the result on the same Principia Mathematica theorems. A typical student version proves most of the chapter within seconds, a task that took the original program minutes per theorem on JOHNNIAC. The exercise shows how hardware gains turned a landmark experiment into a classroom demonstration.