In the summer of 1971, Robert Kowalski arrived in Marseille for a stay of only three or four days, because Alain Colmerauer had invited him.
While the two men talked, a small group down the corridor was hard at work on a practical project. Pasero, Philippe Roussel and Colmerauer himself were building a system that could answer questions put to it in natural language, meaning ordinary sentences rather than commands in a code. Their goal looked modest on paper: ask a machine something and get a sensible answer back.
Because of the work done that summer, 1971 is sometimes given as the year Prolog was born.

Weather reports and a borrowed theorem prover
Colmerauer had already gone after the problem of making people and machines talk once before, and he had built a tool for the job. He called it Q-systems, and he made it to automate conversation between humans and computers.
A Q-system rewrote trees. A sentence went in as a branching structure, and rules swapped one pattern of branches for another until the structure came out in a different shape. That was enough for a practical job. Q-systems long served to translate Canadian weather reports from English into French.
A machine that turns forecasts into French, however, never has to know anything. The Marseille group wanted a machine that could answer questions, and answering means working something out. That need had a name in Roussel's mind. Jean Trudel, visiting from Montreal, had read the paper on SL-resolution, a theorem prover, which is a program that checks whether a statement follows from others by logical deduction. Roussel had read it too. He wanted SL-resolution for the deductive part of the question-answering system.
Kowalski arrived carrying a piece of the puzzle himself. Earlier, he had devised a way to write grammars in logic, so that the rules of a language could be treated as statements to prove. The method was inefficient, and nobody pretended otherwise.
A wife's suggestion and a Fortran interpreter
Back in Marseille, Roussel and Colmerauer sat down to build the engine themselves. The work happened in the AI Group at the Luminy Faculty of Sciences, part of Aix-Marseille II University, and the design rested on an idea Kowalski had brought with him: a Horn clause, a logical statement with at most one conclusion, could be read as a procedure.
The first version was narrow on purpose. It was a resolution theorem prover for Horn clauses and nothing more. Kowalski would later date the first Prolog system to 1972 and credit it to Colmerauer and Roussel.
The system still needed a name. Roussel settled it at his wife's suggestion: Prolog, short for "Programmation en logique".
A name does not run on a computer, so Gerard Battani and Henri Meloni wrote the first interpreter in Fortran, a language built for numerical work and an odd home for logic. An early timeline of the language lists Prolog 0 in 1972 and Prolog I in 1973.

The strangest thing about the new tool showed up in the simplest programs. Take append, which relates two lists and the list formed by joining them. Hand it the lists a-b and c, and it answers with a-b-c. Hand it only the long list a-b-c, and the very same code splits it, returning every pair of lists that would join to make it.
The people who understood the theory underneath it sat far away in Edinburgh, and Edinburgh was not a comfortable place to be that year.
The grant that almost never came
Kowalski applied for a NATO grant, and he aimed it at the gap between Edinburgh and Marseille. He asked for money to fund exchanges between his group and the Marseilles group, so that people could travel between the two labs and carry the work with them.
Kowalski wanted the bridge because home had grown lonely. In 1972 and 1973 Edinburgh was stormy for anyone working on resolution, the logical method his group had built its research on. Across the Atlantic, most North American AI researchers saw resolution as discredited. The fashion had turned from general-purpose theorem provers toward procedural knowledge representation, which put what a system knew into hand-written procedures.
Help was arriving at home, though. David Warren and Maarten van Emden joined Kowalski's work in Edinburgh, which gave him a small team with something to lose if the money failed.
The money nearly failed. Before NATO approved the application, a hostile potential referee, someone who might be asked to judge it, threatened to sink it.
It did survive, and the exchanges could begin. Of the people in Edinburgh, Warren would be the first to see what Colmerauer and Roussel had built.
The convert who came home angry
Warren took the train to Marseille as a colleague of Kowalski's and left it as a believer. Somewhere in those days of talk with Colmerauer and Roussel, the new language won him over. He had seen a working system, impure and blunt, answering questions that the theorists in Edinburgh were still arguing about in the abstract.
Then he went home, and what waited for him there made him furious. Warren came back from Marseille indignant at Kowalski's lack of support for Prolog.
Kowalski had his reasons, and they were not small ones. His research had been in heuristic search, the craft of guiding a program toward an answer with judgment about which road looks most promising. Prolog's search strategy offered nothing of the kind. It tried clauses in the order written and backed up when it failed, and Kowalski, given his training, found that hard to accept.
He wanted something cleverer. In this period he was an avid supporter of coroutining for Horn clause programs, in which parts of a computation run side by side and trade control as the problem demands. He may have hoped that a more powerful system could be built on coroutining in Lush, or on connection graphs, a way of recording in advance which clauses can be resolved against which.
Warren saw the flaw in that hope, and so did the facts of the day. Prolog was practical: it ran, and people in Marseille were using it. Lush and connection graphs were not practical at that time, however much promise they held.
Whose idea is computation as deduction?
In March 1974 Kowalski had a 100-page draft of "Logic for Problem Solving" on his desk.
The draft did not stay in a drawer. Copies passed from reader to reader for years, and the expanded version did not reach print until 1979. Kowalski's personal account of how all this happened stops in December 1974, when he moved from Edinburgh to London.
One reader who knew the field well was Pat Hayes, and he came away troubled. Hayes argued that Kowalski seemed to take credit for the thesis that computation is controlled deduction. He argued, too, that inference with equations had simply imitated computation in Lisp, the list-processing language that American researchers already trusted.
Kowalski answered sharply. Hayes, he said, had received little credit and had failed to appreciate his ideas.
Then he turned to the harder task of saying what he meant. Logic programming, as he drew it, shared two things with theorem proving: the use of logic and the use of deduction. He kept the boundary generous. Even so, one family of systems stayed outside it: the constructive-logic systems, where a proof is itself the program.
Warren's compiler wins the argument
Warren did not wait for the argument to end. He carried the Marseille interpreter back to Edinburgh and set to work on it there, writing an alternative front-end of his own.
Warren wanted more than a front-end. An interpreter reads a program line by line as it runs, and Warren meant to build something that translated Prolog before it ran. Working with Fernando Pereira, he produced the first Prolog compiler. They called it DEC-10 Prolog, and it became the version that many other people copied and learned from.
Warren kept pushing the idea further. Later he took what he had learned from DEC-10 Prolog and generalised it into the Warren Abstract Machine, a design that carried his name beyond Edinburgh.
His doubts about Prolog's blunt search had not come from carelessness, and they did not vanish overnight. But around 1976, at Imperial College, he came to appreciate the balance Prolog struck between logic and a machine that could actually run it.
Outside the Edinburgh circle, the quarrel kept going in a new form. European researchers in artificial intelligence reportedly favored Prolog, while Americans favored Lisp, and the split produced many nationalistic debates.
From Tokyo's Fifth Generation to Watson's parse trees
Japan's Fifth Generation Computer Systems project gave Prolog a push, and much of the language's modern development traces back to that impetus. The original team kept working as well, and their later extensions added constraint logic programming to implementations. By October 1984, a reader could open BYTE and find a feature on two AI languages as alternatives to LISP and Prolog. The same issue reviewed natural-language query programs for the IBM PC, so a person at a desktop could now type a question and wait for the machine's reply.
The wider industry never followed. Prolog spread through research labs and classrooms, where it was widely used, yet it had not greatly affected the computer industry. Then it turned up somewhere nobody had planned for it. IBM's Watson was written in several languages, including Java and C++, and Prolog was among them. Its job was narrow and exact: pattern matching over natural language parse trees, the branching diagrams a machine draws of a sentence's grammar. When Watson's developers explained their choice, they said they picked Prolog for its simplicity and expressiveness.
In Marseille, Colmerauer's group had wanted something plain: a machine that would take a question put in French and answer it, and Kowalski had come for three or four days to argue about how. Now the language that grew out of those talks sat as one quiet part inside a far larger machine, with Java and C++ around it. The old aim had come around again, a computer reading sentences, and Prolog was turning the pages.
Editorial graphic and headline text by Signal Titans.
Source: A Language for Questions: How Alain Colmerauer's Marseille Team Built Prolog in 1972 to Make Computers Talk French · archive.org · arxiv.org · arxiv.org · www.doc.ic.ac.uk · www.sci.brooklyn.cuny.edu · aclanthology.org · www.swi-prolog.org · Logic Programming in HANSEI

Leave a Reply