What is the uppercase ‘N’ before prolog term mean?
such as the P in imp becomes NP in not?
imp(P,Q,Y) :- not(P,NP),or(NP,Q,Y).
NP means negation of P in prolog?
N is a kind of built in function in prolog?
Thanks a lot.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It has no special meaning. The term
NP, which starts with an upper case, means that it is a variable (it could start with any upper case letter).The way I read your procedure:
it means: ‘ to get P implies Q onto variable Y’ we call procedure
not/2to get the negation of input P, and then we call procedureor/3which computes “not P or Q” onto variable Y. Of course you have somewhere defined proceduresnot/2andor/3