I am having trouble understanding how to start this program in Prolog.
Goal: Write a Prolog program that lists facts on who is a parent of who, and who is female and who is male. Based on these facts, it also codes rules on what defines mother, and what defines father. However, the functions mother and father cannot be used in a fact.
Examples:
?- mother(X, tommy)
X = jane
?- father(X, tommy)
X = john
?- mother(X, tammy)
X = beth
?- father(X, tammy)
X = mike
Any help is appreciated. How would I go about doing this?