I struggle with a rather simple GNU Prolog example:
I have a file (test.pl)
cat(muki).
dog(roti).
frog(frogi).
animal(X) :- dog(X).
animal(X) :- cat(X).
When testing it:
- Importing via
['test.pl'] animal(frogi)returnsno, as expectedanimal(muki)returnsyes, as expectedanimal(roti)returnstrue ?instead ofyes, which is not what I would expect.
As far as I know this means that prolog is capable to solve animal for roti but why it does not return yes, just like before?