Chapter 1
Facts, Rules, and Queries

This chapter has two main goals:

  1. To give some simple examples of Prolog programs. This will introduce us to the three basic constructs in Prolog: facts, rules, and queries. It will also introduce us to a number of other themes, like the role of logic in Prolog, and the idea of performing unification with the aid of variables.
  2. To begin the systematic study of Prolog by defining terms, atoms, variables and other syntactic concepts.

eXTReMe Tracker
© 2006-2012 Patrick Blackburn, Johan Bos, Kristina Striegnitz