Introduction to
Logic Programming
What
versus
How
 

Exercise 9.1 - Siblings


Two people are siblings if and only if they share a common parent. Write rules defining the binary sibling relation in terms of the parent relation. (Hint: you will need the built-in relation distinct to get the definition of sibling correct.)

parent
Rules
sibling