My DataBase =>
fact(a).
fact(b).
likes(a, rain).
likes(a, snow).
likes(b, X) :- not(likes(a, X)).
human(X) :-
not(likes(X, rain)),
fact(X).
alien(X) :-
likes(X, snow),
fact(X).
Prolog question =>
?- human(X)
no
The logic here is
likes(a, rain),
so by rule
not(likes(b, rain)) is True AND fact(b) is True
human(b) is No
human(X) is No
Should be Yes but it doesnt make the connection
How can I make with prolong this check so it understands that it should return b ?