I am new to PROLOG and am at the very beginning of the exercises on this page . Given the rules of parent (X, Y) and male (X), I am trying to define the rule mother (X, Y) as
mother(X, Y) :- not(male(X)), parent(X, Y).
However, the following error appears in GNU Prolog:
| ?- mother(lina, julia). uncaught exception: error(existence_error(procedure,not/1),mother/2) | ?-
source share