我是PROLOG的新手,在this page的練習剛開始時。由於規則的父(X,Y)和男性(X),我試圖定義一個規則的母親(X,Y)作爲如何在Prolog中否定
mother(X, Y) :-
not(male(X)),
parent(X, Y).
然而,在GNU Prolog的,我得到了以下錯誤:
| ?- mother(lina, julia).
uncaught exception: error(existence_error(procedure,not/1),mother/2)
| ?-