Top "Prolog" questions

Do not use this tag like Prologue and Epilogue.

'if' in prolog?

Is there a way to do an if in prolog, e.g. if a variable is 0, then to do some …

prolog iso-prolog logical-purity
Prolog "or" operator, query

I'm working on some prolog that I'm new to. I'm looking for an "or" operator registered(X, Y), Y=ct101, …

syntax prolog operators logic
"Not equal" sign in Visual Prolog?

I can't find any documentation on "not equal" sign in Visual Prolog. Please provide the right solution of this problem: …

prolog equals clause visual-prolog
What is the logical 'not' in Prolog?

The problem that I face, is a bit trivial. I want to use logical not in Prolog, but it seems …

prolog prolog-dif
How do I append lists in Prolog?

How do I append lists in Prolog? I've searched on the Internet and I found this (from http://www.csupomona.…

list prolog append concatenation
How to run prolog code?

I am working on family tree in prolog. I don't have any idea how to compile and run this program. …

compilation prolog
Reversing a List in Prolog

I have finished a homework assignment for my programming class. I was supposed to create a Prolog program that reverses …

list prolog concatenation reverse head
How do you append an element to a list in place in Prolog?

If I have a list in Prolog such as X = [1, 2, 3, 4], how do I add the element 5 to the end of …

list prolog append in-place difference-lists
Forward Chaining vs Backward Chaining

What is one good for that the other's not in practice? I understand the theory of what they do, but …

artificial-intelligence data-modeling prolog drools datalog
Prolog - Arguments are not sufficiently instantiated

I am writing a little program which counts how many elements in a list are not numbers. Here is my …

prolog arguments clpfd instantiation-error