I'm just starting to learn PROLOG and I was given the task of creating both a aunt/uncle relationship in a family tree. The aunt can be created using a sister relationship, however, the uncle relationship must be created without it.
The current predicates are: male, female, parent & the rules created so far are: father, mother, grandfather, grandmother, sister
Here's what I have so far:
sister(Sister,Individual):-
female(Sister),
parent(X,Sister),
parent(X,Individual),
Sister \= Individual.
aunt(Aunt, Individual):- sister(Aunt, X), parent(X, Individual).
How would I go about creating the uncle relationship without the use of brother? I understand that the parent(parent(Individual)) == parent(uncle) but how would I go about stating that given my current relations?
Thanks in advance for your help!