Chapter 1
Facts, Rules, and Queries
This chapter has two main goals:
- 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.
- To begin the systematic study of Prolog by defining terms, atoms, variables and other syntactic concepts.