Chapter 6: Problem 58
Assuming that the first statement in the following Prolog program is intended to mean "Alice likes sports," translate the last two statements of the program. Then, list all the things that, based on this program, Prolog would be able to conclude that Alice likes. Explain your list. likes(alice, sports). likes(alice, music). likes(carol, music). likes(david, X) :- likes(X, sports). likes(alice, X) :- likes(david, X).
Short Answer
Step by step solution
Key Concepts
These are the key concepts you need to understand to accurately answer the question.