something is a person if it is either Adam or Eve, or if it has a mother. We can express this in a single rule as follows:
person(X) :- (X=adam; X=eve; mother(X, Y)).
something is a person if it is either Adam or Eve, or if it has a mother. We can express this in a single rule as follows:
person(X) :- (X=adam; X=eve; mother(X, Y)).
We don’t see the definition of
mother
. It might already encode that Y is a person.While every person does also have a father, it’s completely redundant, since being a person can fully be described by being a mother (or being Adam or Eve).
Can you explain how this is?