Logic Programming Using: Prolog
Logic Programming Using: Prolog
Logic Programming Using: Prolog
using
PROLOG
Amir Tavasoli
What is PROLOG?
2 – RULES
Like “A parent is either a father or mother.”
parent(X,Y) :- father(X,Y); mother(X,Y).
“;” is the logical disjunction OR
parent(X,tom)=parent(jim,Y).
How PROLOG works
Unification
Extending PROLOG
In PTTP you can use all of the FOL statements but it has its
own deficiencies.
References
http://www.ims.uni-
stuttgart.de/~uttjn/prolog/lpn/3.1.3%20Example%203_%20
Successor.pdf (Jason Utt, 2005)