Part 1: General core-Edition 1 (June 1995; 30 years ago (1995-06)) Part 2: Modules-Edition 1 (June 2000; 25 years ago (2000-06)) Part 3: Definite clause grammar rules (June 2025; 5 months ago (2025-06))
Timeline of some early Prolog systems, up to the ISO Standard
The nameProlog was chosen by Philippe Roussel, at the suggestion of his wife, as an abbreviation forProgrammation enlogique (French forProgramming inlogic).[15] It was created around 1972 byAlain Colmerauer with Philippe Roussel, from theArtificial Intelligence Group of theFaculty of Sciences of Luminy ofAix-Marseille II University ofFrance. It was based onRobert Kowalski's procedural interpretation ofHorn clauses, and it was motivated in part by the desire to reconcile the use of logic as a declarative knowledge representation language with the procedural representation of knowledge that was popular in North America in the late 1960s and early 1970s. According toRobert Kowalski, the first Prolog system was developed in 1972 by Colmerauer and Phillipe Roussel.[16][17][18] The first implementation of Prolog was an interpreter written inFortran by Gerard Battani and Henri Meloni.David H. D. Warren took this interpreter to theUniversity of Edinburgh, and there implemented an alternative front-end, which came to define the "Edinburgh Prolog" syntax used by most modern implementations. Warren also implemented the first compiler for Prolog, creating the influential DEC-10 Prolog in collaboration with Fernando Pereira. Warren later generalised the ideas behind DEC-10 Prolog, to create theWarren Abstract Machine (WAM).
European AI researchers favored Prolog while Americans favoredLisp, reportedly causing many nationalistic debates on the merits of the languages.[19] Much of the modern development of Prolog came from the impetus of theFifth Generation Computer Systems project (FGCS), which developed a variant of Prolog namedKernel Language for its firstoperating system.
Pure Prolog was originally restricted to the use of aresolution theorem prover withHorn clauses of the form:
H :- B1, ..., Bn.
The application of the theorem-prover treats such clauses as procedures:
to show/solve H, show/solve B1 and ... and Bn.
Pure Prolog was soon extended, however, to includenegation as failure, in which negative conditions of the form not(Bi) are shown by trying and failing to solve the corresponding positive conditions Bi.
Subsequent extensions of Prolog by the original team introducedconstraint logic programming abilities into the implementations.
Although Prolog is widely used in research and education,[20] Prolog and other logic programming languages have not had a significant impact on the computer industry in general.[21] Most applications are small by industrial standards, with few exceeding 100,000 lines of code.[21][22]Programming in the large is considered to be complex because not all Prolog compilers support modules, and there are compatibility problems between the module systems of the major Prolog compilers.[23] Portability of Prolog code across implementations has also been a problem, but developments since 2007 have meant: "the portability within the family of Edinburgh/Quintus derived Prolog implementations is good enough to allow for maintaining portable real-world applications."[24]
Software developed in Prolog has been criticised for having a high performance penalty compared to conventional programming languages. In particular, Prolog's non-deterministic evaluation strategy can be problematic when programming deterministic computations, or when even using "don't care non-determinism" (where a single choice is made instead of backtracking over all possibilities). Cuts and other language constructs may have to be used to achieve desirable performance, destroying one of Prolog's main attractions, the ability to run programs "backwards and forwards".[25]
Prolog is not purely declarative: because of constructs like thecut operator, a procedural reading of a Prolog program is needed to understand it.[26] The order of clauses in a Prolog program is significant, as the execution strategy of the language depends on it.[27] Other logic programming languages, such asDatalog, are truly declarative but restrict the language. As a result, many practical Prolog programs are written to conform to Prolog'sdepth-first search order, rather than as purely declarative logic programs.[25]
Prolog has been used inWatson. Watson uses IBM's DeepQA software and the ApacheUIMA (Unstructured Information Management Architecture) framework. The system was written in various languages, including Java,C++, and Prolog, and runs on theSUSE Linux Enterprise Server 11 operating system usingApache Hadoop framework to provide distributed computing. Prolog is used forpattern matching over natural language parse trees. The developers have stated: "We required a language in which we could conveniently express pattern matching rules over the parse trees and other annotations (such as named entity recognition results), and a technology that could execute these rules very efficiently. We found that Prolog was the ideal choice for the language due to its simplicity andexpressiveness."[11] Prolog is being used in the Low-Code Development PlatformGeneXus, which is focused around AI.[citation needed] Open sourcegraph databaseTerminusDB is implemented in Prolog.[28] TerminusDB is designed for collaboratively building and curatingknowledge graphs.
In Prolog, program logic is expressed in terms of relations, and a computation is initiated by running aquery over these relations. Relations and queries are constructed using Prolog's single data type, theterm.[4] Relations are defined byclauses. Given a query, the Prolog engine attempts to find aresolutionrefutation of the negated query. If the negated query can be refuted, i.e., an instantiation for all free variables is found that makes the union of clauses and the singleton set consisting of the negated query false, it follows that the original query, with the found instantiation applied, is alogical consequence of the program. This makes Prolog (and other logic programming languages) particularly useful for database,symbolic mathematics, and language parsing applications. Because Prolog allows impurepredicates, checking thetruth value of certain special predicates may have some deliberateside effect, such as printing a value to the screen. Because of this, the programmer is permitted to use some amount of conventionalimperative programming when the logical paradigm is inconvenient. It has a purely logical subset, called "pure Prolog", as well as a number of extralogical features.
Prolog's singledata type is theterm. Terms are eitheratoms,numbers,variables orcompound terms.[note 1]
Anatom is a symbol name starting with a lower case letter or guarded by quotes. Examples of atoms includex,red,'Taco','some atom', and'p(a)'.
Numbers can befloats orintegers. Most of the major Prolog systems support arbitrary length integer numbers.
Variables are denoted by a string consisting of letters, numbers and underscore characters, and beginning with an upper-case letter or underscore. Variables closely resemble variables in logic in that they are placeholders for arbitrary terms.
Acompound term is composed of an atom called a "functor" and a number of "arguments", which are again terms. Compound terms are ordinarily written as a functor followed by a comma-separated list of argument terms, which is contained in parentheses. The number of arguments is called the term'sarity. An atom can be regarded as a compound term witharity zero. An example of a compound term isperson_friends(zelda,[tom,jim]).
Special cases of compound terms:
AList is an ordered collection of terms. It is denoted by square brackets with the terms separated by commas, or in the case of the empty list, by[]. For example,[1,2,3,4] or[red,green,blue].
Strings: A sequence of characters surrounded by quotes is equivalent to either a list of (numeric) character codes, a list of characters (atoms of length 1), or an atom depending on the value of the Prolog flagdouble_quotes. For example,"to be, or not to be".[29]
Prolog programs describe relations, defined by means of clauses. Pure Prolog is restricted toHorn clauses. Two types of Horn clauses are used to define Prolog programs: rules and facts. A rule is of the form
Head:-Body.
and is read as "Head is true if Body is true". A rule's body consists of calls to predicates, which are called the rule'sgoals. The built-inlogical operator,/2 (meaning an arity 2operator with name,) denotesconjunction of goals, and;/2 denotesdisjunction. Conjunctions and disjunctions can only appear in the body, not in the head of a rule.
Clauses with empty bodies are calledfacts. An example of a fact is:
human(socrates).
which is equivalent to the rule:
human(socrates):-true.
The built-in predicatetrue/0 is always true.
Given the above fact, one can ask:
is socrates a human?
?-human(socrates).Yes
what things are humans?
?-human(X).X=socrates
Clauses with bodies are calledrules. An example of a rule is:
mortal(X):-human(X).
If we add that rule and askwhat things are mortals?
Apredicate (orprocedure definition) is a collection of clauses whose heads have the same name and arity. We use the notationname/arity to refer to predicates. Alogic program is a set of predicates. For example, the following Prolog program, which defines some family relations, has four predicates:
Predicatefather_child/2 has three clauses, all of which are facts, and predicateparent_child/2 has two clauses, both are rules.
Due to the relational nature of many built-in predicates, they can typically be used in several directions. For example,length/2 can be used to determine the length of a list (length(List, L), given a listList), and to generate a list skeleton of a given length (length(X, 5)), and to generate both list skeletons and their lengths together (length(X, L)). Similarly,append/3 can be used both to append two lists (append(ListA, ListB, X) given listsListA andListB), and to split a given list into parts (append(X, Y, List), given a listList). For this reason, a comparatively small set of library predicates suffices for many Prolog programs.
As a general purpose language, Prolog also provides various built-in predicates to perform routine activities likeinput/output, using graphics and otherwise communicating with the operating system. These predicates are not given a relational meaning and are only useful for the side-effects they exhibit on the system. For example, the predicatewrite/1 displays a term on the screen.
It expresses that X is an ancestor of Y if X is parent of Y or X is parent of an ancestor of Y. It is recursive because it is defined in terms of itself (there is a call to predicateancestor/2 in the body of the second clause).
Execution of a Prolog program is initiated by the user's posting of a single goal, called the query. Logically, the Prolog engine tries to find aresolution refutation of the negated query. The resolution method used by Prolog is calledSLD resolution. If the negated query can be refuted, it follows that the query, with the appropriate variable bindings in place, is a logical consequence of the program. In that case, all generated variable bindings are reported to the user, and the query is said to have succeeded. Operationally, Prolog's execution strategy can be thought of as a generalization of function calls in other languages, one difference being that multiple clause heads can match a given call. In that case, the system creates a choice-point,unifies the goal with the clause head of the first alternative, and continues with the goals of that first alternative. If any goal fails in the course of executing the program, all variable bindings that were made since the most recent choice-point was created are undone, and execution continues with the next alternative of that choice-point. This execution strategy is called chronologicalbacktracking. For example, given the family relation program defined above, the following query will be evaluated to true:
?-sibling(sally,erica).Yes
This is obtained as follows: Initially, the only matching clause-head for the querysibling(sally, erica) is the first one, so proving the query is equivalent to proving the body of that clause with the appropriate variable bindings in place, i.e., the conjunction(parent_child(Z,sally), parent_child(Z,erica)). The next goal to be proved is the leftmost one of this conjunction, i.e.,parent_child(Z, sally). Two clause heads match this goal. The system creates a choice-point and tries the first alternative, whose body isfather_child(Z, sally). This goal can be proved using the factfather_child(tom, sally), so the bindingZ = tom is generated, and the next goal to be proved is the second part of the above conjunction:parent_child(tom, erica). Again, this can be proved by the corresponding fact. Since all goals could be proved, the query succeeds. Since the query contained no variables, no bindings are reported to the user. A query with variables, like:
?-father_child(Father,Child).
enumerates all valid answers on backtracking.
Notice that with the code as stated above, the query?- sibling(sally, sally). also succeeds. One would insert additional goals to describe the relevant restrictions, if desired.
The built-in Prolog predicate\+/1 providesnegation as failure, which allows fornon-monotonic reasoning. The goal\+ illegal(X) in the rule
legal(X):-\+illegal(X).
is evaluated as follows: Prolog attempts to proveillegal(X). If a proof for that goal can be found, the original goal (i.e.,\+ illegal(X)) fails. If no proof can be found, the original goal succeeds. Therefore, the\+/1 prefix operator is called the "not provable" operator, since the query?- \+ Goal. succeeds if Goal is not provable. This kind of negation issound if its argument is"ground" (i.e. contains no variables). Soundness is lost if the argument contains variables and the proof procedure is complete. In particular, the query?- legal(X). now cannot be used to enumerate all things that are legal.
In Prolog, loading code is referred to asconsulting. Prolog can be used interactively by entering queries at the Prolog prompt?-. If there is no solution, Prolog writesno. If a solution exists then it is printed. If there are multiple solutions to the query, then these can be requested by entering a semi-colon;. There are guidelines on good programming practice to improve code efficiency, readability and maintainability.[31]
Here follow some example programs written in Prolog.
This comparison shows the prompt ("?-" vs "| ?-") and resolution status ("true". vs "yes", "false". vs "no") can differ from one Prolog implementation to another.
Any computation can be expressed declaratively as a sequence of state transitions. As an example, anoptimizing compiler with three optimization passes could be implemented as a relation between an initial program and its optimized form:
A higher-order predicate is a predicate that takes one or more other predicates as arguments. Although support for higher-order programming takes Prolog outside the domain of first-order logic, which does not allow quantification over predicates,[38] ISO Prolog now has some built-in higher-order predicates such ascall/1,call/2,call/3,findall/3,setof/3, andbagof/3.[39] Furthermore, since arbitrary Prolog goals can be constructed and evaluated at run-time, it is easy to write higher-order predicates likemaplist/2, which applies an arbitrary predicate to each member of a given list, andsublist/3, which filters elements that satisfy a given predicate, also allowing forcurrying.[37]
To convert solutions from temporal representation (answer substitutions on backtracking) to spatial representation (terms), Prolog has various all-solutions predicates that collect all answer substitutions of a given query in a list. This can be used forlist comprehension. For example,perfect numbers equal the sum of their proper divisors:
WhenP is a predicate that for allX,P(X,Y) unifiesY with a single unique value,maplist(P, Xs, Ys) is equivalent to applying themap function infunctional programming asYs = map(Function, Xs).
Higher-order programming style in Prolog was pioneered inHiLog andλProlog.
Forprogramming in the large, Prolog provides amodule system, which is in the ISO Standard.[40]However, while most Prolog systems support structuring the code into modules, virtually no implementation adheres to the modules part of the ISO standard. Instead, mostProlog systems have decided to support asde-facto module standard theQuintus/SICStus module system. However, further convenience predicates concerning modules are provided by some implementations only and often have subtle differences in their semantics.[41]
Some systems chose to implement module concepts as source-to-source compilation into base ISO Prolog, as is the case ofLogtalk.[23] GNU Prolog initially diverted from ISO modules, opting instead forContextual Logic Programming, in which unit (module) loading and unloading can be made dynamically.[42]Ciao designed a strict module system that, while being basically compatible with thede-facto standard used by other Prolog systems, is amenable to precise static analysis, supports term hiding, and facilitates programming in the large.[43]XSB takes a different approach and offers anatom-based module system.[44] The latter two Prolog systems allow controlling thevisibility of terms in addition to that of predicates.[41]
There is a special notation calleddefinite clause grammars (DCGs). A rule defined via-->/2 instead of:-/2 is expanded by the preprocessor (expand_term/2, a facility analogous to macros in other languages) according to a few straightforward rewriting rules, resulting in ordinary Prolog clauses. Most notably, the rewriting equips the predicate with two additional arguments, which can be used to implicitly thread state around,[clarification needed] analogous tomonads in other languages. DCGs are often used to write parsers or list generators, as they also provide a convenient interface to difference lists.
Prolog is ahomoiconic language and provides many facilities forreflective programming (reflection). Its implicit execution strategy makes it possible to write a concisemeta-circular evaluator (also calledmeta-interpreter) for pure Prolog code:
wheretrue represents an empty conjunction, andclause(Head, Body) unifies with clauses in the database of the formHead :- Body.
Since Prolog programs are themselves sequences of Prolog terms (:-/2 is an infixoperator) that are easily read and inspected using built-in mechanisms (likeread/1), it is possible to write customized interpreters that augment Prolog with domain-specific features. For example, Sterling and Shapiro present a meta-interpreter that performs reasoning with uncertainty, reproduced here with slight modifications:[45]: 330
This interpreter uses a table of built-in Prolog predicates of the form[45]: 327
builtin(AisB).builtin(read(X)).% etc.
and clauses represented asclause_cf(Head, Body, Certainty). Given those, it can be called assolve(Goal, Certainty) to executeGoal and obtain a measure of certainty about the result.
Pure Prolog is based on a subset of first-orderpredicate logic,Horn clauses, which isTuring-complete. Turing completeness of Prolog can be shown by using it to simulate a Turing machine:
A simple example Turing machine is specified by the facts:
rule(q0,1,q0,1,right).rule(q0,b,qf,1,stay).
This machine performs incrementation by one of a number in unary encoding: It loops over any number of "1" cells and appends an additional "1" at the end. Example query and result:
?-turing([1,1,1],Ts).Ts=[1,1,1,1];
This illustrates how any computation can be expressed declaratively as a sequence of state transitions, implemented in Prolog as a relation between successive states of interest.
Prolog Heritage. Systems with a dark gray background are not supported any more. Arrows denote influences and inspiration of systems. Quick legend: JIT = "Just in Time Compiler", JVM = "Java Virtual Machine", TOAM = "Tree-Oriented Abstract Machine"
TheInternational Organization for Standardization (ISO) Prologtechnical standard consists of two parts. ISO/IEC 13211-1,[39][46] published in 1995, aims to standardize the existing practices of the many implementations of the core elements of Prolog. It has clarified aspects of the language that were previously ambiguous and leads to portable programs. There are three corrigenda: Cor.1:2007,[47] Cor.2:2012,[48] and Cor.3:2017.[49] ISO/IEC 13211-2,[39] published in 2000, adds support for modules to the standard. The standard is maintained by theISO/IEC JTC1/SC22/WG17[50] working group. ANSI X3J17 is the US Technical Advisory Group for the standard.[51]
For efficiency, Prolog code is typically compiled to abstract machine code, often influenced by the register-basedWarren Abstract Machine (WAM) instruction set.[52] Some implementations employabstract interpretation to derive type and mode information of predicates at compile time, or compile to real machine code for high performance.[53] Devising efficient implementation methods for Prolog code is a field of active research in the logic programming community, and various other execution methods are employed in some implementations. These includeclause binarization andstack-based virtual machines.[citation needed]
Prolog systems typically implement a well-known optimization method calledtail call optimization (TCO) for deterministic predicates exhibitingtail recursion or, more generally, tail calls: A clause's stack frame is discarded before performing a call in a tail position. Therefore, deterministic tail-recursive predicates are executed with constant stack space, like loops in other languages.
Finding clauses that are unifiable with a term in a query is linear in the number of clauses.Term indexing uses adata structure that enablessub-linear-time lookups.[54] Indexing only affects program performance, it does not affect semantics. Most Prologs only use indexing on the first term, as indexing on all terms is expensive, but techniques based onfield-encoded words orsuperimposed codewords provide fast indexing across the full query and head.[55][56]
Some Prolog systems, such asWIN-PROLOG and SWI-Prolog, now implement hashing to help handle large datasets more efficiently. This tends to yield very large performance gains when working with large corpora such asWordNet.
Some Prolog systems, (B-Prolog,XSB,SWI-Prolog,YAP, andCiao), implement amemoization method calledtabling, which frees the user from manually storing intermediate results. Tabling is aspace–time tradeoff; execution time can be reduced by using more memory to store intermediate results:[57][58]
Subgoals encountered in a query evaluation are maintained in a table, along with answers to these subgoals. If a subgoal is re-encountered, the evaluation reuses information from the table rather than re-performing resolution against program clauses.[59]
Tabling can be extended in various directions. It can support recursive predicates throughSLG resolution or linear tabling. In a multi-threaded Prolog system tabling results could be kept private to a thread or shared among all threads. And in incremental tabling, tabling might react to changes.
During theFifth Generation Computer Systems project, there were attempts to implement Prolog in hardware with the aim of achieving faster execution with dedicated architectures.[60][61][62] Furthermore, Prolog has a number of properties that may allow speed-up through parallel execution.[63] A more recent approach has been to compile restricted Prolog programs to afield-programmable gate array (FPGA).[64] However, rapid progress in general-purpose hardware has consistently overtaken more specialised architectures.
In 1982, computers operated at around 10,000 to 100,000 LIPS [logical inferences per second]. The FGCS planned to produce computers operating at 0.1 to 1 GLIPS.[65] The Institute for New Generation Computer Technology documents estimated that 1 LIP took about 100 operations on a conventional computer. The plan was to produce at the end of the project (in 1992) a machine with 1000 processors achieving 1 GLIPS, implying at least 1 MLIPS per processor.[66]
Prolog is an untyped language. Attempts to introduce and extend Prolog with types began in the 1980s,[68][69] and continue as of 2008[update].[70] Type information is useful not only fortype safety but also for reasoning about Prolog programs.[71]
The syntax of Prolog does not specify which arguments of a predicate are inputs and which are outputs.[72] However, this information is significant and it is recommended that it be included in the comments.[73] Modes provide valuable information when reasoning about Prolog programs[71] and can also be used to accelerate execution.[74]
Constraint logic programming extends Prolog to include concepts fromconstraint satisfaction.[75][76] A constraint logic program allows constraints in the body of clauses, such as:A(X,Y) :- X+Y>0. It is suited to large-scalecombinatorial optimisation problems[77] and is thus useful for applications in industrial settings, such as automated time-tabling andproduction scheduling. Most Prolog systems ship with at least one constraint solver for finite domains, and often also with solvers for other domains likerational numbers.
Logtalk is an object-oriented logic programming language that can use most Prolog implementations as a back-end compiler. As a multi-paradigm language, it includes support for both prototypes and classes.
Oblog is a small, portable, object-oriented extension to Prolog by Margaret McDougall of EdCAAD, University of Edinburgh.
Objlog was a frame-based language combining objects and Prolog II from CNRS, Marseille, France.
Prolog++ was developed byLogic Programming Associates and first released in 1989 for MS-DOS PCs. Support for other platforms was added, and a second version was released in 1995. A book about Prolog++ by Chris Moss was published by Addison-Wesley in 1994.
Visual Prolog is a multi-paradigm language with interfaces, classes, implementations and object expressions.
TheLogic Server Application Programming Interface (API) allows both the extension and embedding of Prolog inC,C++,Java,Visual Basic (VB),Delphi,.NET, and any language or environment which can call a .dll or .so. It is implemented forAmzi! Prolog + Logic Server but the API specification can be made available for any implementation.
JPL is a bi-directional Java Prolog bridge which ships with SWI-Prolog by default, allowing Java and Prolog to call each other (recursively). It is known to have good concurrency support and is under active development.
InterProlog, a programminglibrary bridge betweenJava and Prolog, implementing bi-directional predicate/method calling between both languages. Java objects can be mapped into Prolog terms and vice versa. Allows the development ofgraphical user interfaces (GUIs) and other functions in Java while leaving logic processing in the Prolog layer. SupportsXSB andSWI-Prolog.
Prova provides native syntax integration with Java, agent messaging and reaction rules. Prova positions itself as a rule-based scripting (RBS) system for middleware. The language breaks new ground in combiningimperative anddeclarative programming.
PROL An embeddable Prolog engine for Java. It includes a small IDE and a few libraries.
GNU Prolog for Java is an implementation of ISO Prolog as a Java library (gnu.prolog)
Ciao provides interfaces to C,C++, Java, and relational databases.
C#-Prolog is a Prolog interpreter written in (managed) C#. Can easily be integrated in C# programs. Characteristics: reliable and fairly fast interpreter, command line interface, Windows-interface, builtin DCG, XML-predicates, SQL-predicates, extendible. The complete source code is available, including a parser generator that can be used for adding special purpose extensions.
tuProlog is a lightweight Prolog system for distributed applications and infrastructures, intentionally designed around a minimal core, to be either statically or dynamically configured by loading/unloading libraries of predicates. tuProlog natively supports multi-paradigm programming, providing a clean, seamless integration model between Prolog and mainstream object-oriented languages, namely Java, for tuProlog Java version, and any .NET-based language (C#, F#..), for tuProlog .NET version.
Janus is a bi-directional interface between Prolog and Python using portable low-level primitives. It was initially developed for XSB by Anderson and Swift,[85] but has been adopted as a joint initiative by the XSB, Ciao and SWI-Prolog teams.
Visual Prolog, formerly named PDC Prolog and Turbo Prolog, is astrongly typedobject-oriented dialect of Prolog, which is very different from standard Prolog. As Turbo Prolog, it was marketed by Borland, but is now developed and marketed by the Danish firm Prolog Development Center (PDC) that originally produced it.
Datalog is a subset of Prolog. It is limited to relationships that may be stratified and does not allow compound terms. In contrast to Prolog, Datalog is notTuring-complete.
Mercury is an offshoot of Prolog geared toward software engineering in the large with a static, polymorphic type system, as well as a mode and determinism system.
GraphTalk is a proprietary implementation of Warren's Abstract Machine, with additional object-oriented properties.
Erlang began life with a Prolog-based implementation and maintains much of Prolog's unification-based syntax.
Pilog is a declarative language built on top ofPicoLisp, that has the semantics of Prolog, but uses the syntax of Lisp.
λProlog is an extension of core Prolog that features polymorphic typing, modular programming, and higher-order programming, including direct support for terms with variable-binding operators through so-called λ-tree syntax and higher-order pattern unification.
^ The Prolog terminology differs from that oflogic. A term of Prolog is (depending on the context) aterm or anatomic formula of logic. An atom in a standard logic terminology means anatomic formula; an atom of Prolog (depending on the context) is a constant, function symbol or predicate symbol of logic.
^abLogic programming for the real world. Zoltan Somogyi, Fergus Henderson, Thomas Conway, Richard O'Keefe. Proceedings of the ILPS'95 Postconference Workshop on Visions for the Future of Logic Programming.
^D. Barker-Plummer. Cliche programming in Prolog. In M. Bruynooghe, editor, Proc. Second Workshop on Meta-Programming in Logic, pages 247--256. Dept. of Comp. Sci., Katholieke Univ. Leuven, 1990.
^Gegg-harrison, T. S. (1995).Representing Logic Program Schemata in Prolog. Procs Twelfth International Conference on Logic Programming. pp. 467–481.
^Deville, Yves (1990).Logic programming: systematic program development. Wokingham, England: Addison-Wesley.ISBN978-0-201-17576-9.
^abPhilipp Körner; Michael Leuschel; João Barbosa; Vítor Santos Costa; Verónica Dahl; Manuel V. Hermenegildo; Jose F. Morales; Jan Wielemaker; Daniel Diaz; Salvador Abreu; Giovanni Ciatto (November 2022), "Fifty Years of Prolog and Beyond",Theory and Practice of Logic Programming,22 (6):776–858,doi:10.1017/S1471068422000102,hdl:10174/33387
^Abreu, Salvador; Nogueira, Vitor (2006). "Using a Logic Programming Language with Persistence and Contexts".Declarative Programming for Knowledge Management. Lecture Notes in Computer Science. Vol. 4369. pp. 38–47.doi:10.1007/11963578_4.ISBN978-3-540-69233-1.
^Cabeza, Daniel; Hermenegildo, Manuel (2000). "A New Module System for Prolog".Computational Logic — CL 2000. Lecture Notes in Computer Science. Vol. 1861. pp. 131–148.doi:10.1007/3-540-44957-4_9.ISBN978-3-540-67797-0.
^Sagonas, Konstantinos; Swift, Terrance; Warren, David S. (1994). "XSB as an efficient deductive database engine".ACM SIGMOD Record.23 (2):442–453.doi:10.1145/191843.191927.
^abShapiro, Ehud Y.; Sterling, Leon (1994).The Art of Prolog: Advanced Programming Techniques. Cambridge, Massachusetts: MIT Press.ISBN978-0-262-19338-2.
^Ed-Dbali, A.; Deransart, Pierre; Cervoni, L. (1996).Prolog: the standard: reference manual. Berlin: Springer.ISBN978-3-540-59304-1.
^Van Roy, P.; Despain, A. M. (1992). "High-performance logic programming with the Aquarius Prolog compiler".Computer.25:54–68.doi:10.1109/2.108055.S2CID16447071.
^Wise, Michael J.; Powers, David M. W. (1986).Indexing Prolog Clauses via Superimposed Code Words and Field Encoded Words.International Symposium on Logic Programming. pp. 203–210.
^Colomb, Robert M. (1991). "Enhancing unification in PROLOG through clause indexing".The Journal of Logic Programming.10:23–44.doi:10.1016/0743-1066(91)90004-9.
^Swift, T. (1999). "Tabling for non-monotonic programming".Annals of Mathematics and Artificial Intelligence.25 (3/4):201–240.doi:10.1023/A:1018990308362.S2CID16695800.
^Zhou, Neng-Fa; Sato, Taisuke (2003)."Efficient Fixpoint Computation in Linear Tabling"(PDF).Proceedings of the 5th ACM SIGPLAN International Conference on Principles and Practice of Declarative Programming:275–283.
^Abe, S.; Bandoh, T.; Yamaguchi, S.; Kurosawa, K.; Kiriyama, K. (1987). "High performance integrated Prolog processor IPP".Proceedings of the 14th annual international symposium on Computer architecture - ISCA '87. p. 100.doi:10.1145/30350.30362.ISBN978-0-8186-0776-9.S2CID10283148.
^Robinson, Ian (1986).A Prolog processor based on a pattern matching memory device. Third International Conference on Logic Programming. Lecture Notes in Computer Science. Vol. 225. Springer. pp. 172–179.doi:10.1007/3-540-16492-8_73.ISBN978-3-540-16492-0.
^Colmerauer, Alain (1987). "Opening the Prolog III Universe".Byte. August.
^Wallace, M. (2002). "Constraint Logic Programming".Computational Logic: Logic Programming and Beyond. Lecture Notes in Computer Science. Vol. 2407. pp. 512–556.doi:10.1007/3-540-45628-7_19.ISBN978-3-540-45628-5.
^Wielemaker, Jan; Hildebrand, Michiel; van Ossenbruggen, Jacco (2007), Heymans, S.; Polleres, A.; Ruckhaus, E.; Pearse, D.; Gupta, G. (eds.),"Using {Prolog} as the fundament for applications on the semantic web"(PDF),Proceedings of the 2nd Workshop on Applications of Logic Programming and to the Web, Semantic Web and Semantic Web Services, CEUR Workshop Proceedings, vol. 287, Porto, Portugal: CEUR-WS.org, pp. 84–98
^Andersen, C. and Swift, T., 2023. The Janus System: a bridge to new prolog applications. In Prolog: The Next 50 Years (pp. 93-104). Cham: Springer Nature Switzerland.
William F. Clocksin, Christopher S. Mellish:Programming in Prolog: Using the ISO Standard. Springer, 5th ed., 2003,ISBN978-3-540-00678-7.(This edition is updated for ISO Prolog. Prior editions described Edinburgh Prolog.)
William F. Clocksin:Clause and Effect. Prolog Programming for the Working Programmer. Springer, 2003,ISBN978-3-540-62971-9.
Robert Smith, John Gibson,Aaron Sloman: 'POPLOG's two-level virtual machine support for interactive languages', inResearch Directions in Cognitive Science Volume 5: Artificial Intelligence, EdsD. Sleeman and N. Bernsen, Lawrence Erlbaum Associates, pp 203–231, 1992.
David H D Warren, Luis M. Pereira and Fernando Pereira, Prolog - the language and its implementation compared with Lisp. ACM SIGART Bulletin archive, Issue 64. Proceedings of the 1977 symposium on Artificial intelligence and programming languages, pp 109–115.