Liste des Groupes | Revenir à s logic |
On 9/12/2024 3:54 AM, Mikko wrote:We know that even if no Prolog fact about that is specified.On 2024-09-11 12:14:53 +0000, olcott said:When a Prolog Fact is specified that cats are animals
On 9/11/2024 2:05 AM, Mikko wrote:X may represent a real world claim that is either true or false butOn 2024-09-10 13:23:39 +0000, olcott said:https://en.wikipedia.org/wiki/Negation_as_failure
They all have negation as failure, the key elementThe not operator of Prolog is not a part of Horn clause system. It is
required to reject self-contradictory expressions.
not the same as the not operator of ordinary logic. Therefore one nust
be careful with its use and interpretation.
You have not defined what you mean with "reject" and how that relates
to the behaviour of Prolog programs.
The failure to prove X from Facts and Rules
means that X is untrue yet not necessarily false.
The failure to prove X or ~X from Facts and Rules
means that X is untrue and unfalse, thus not a
truth bearer.
cannot be determined either way with Prolog rules.
then we can know by Prolog Facts that cats are animals.
Anyway, you still have not defined what you mean with "reject" and howx = "this sentence is not trueWhat connection that has to Prolog?
if ~True(L,x) & ~True(L,~x) "x is rejected as invalid input"
that relates to the behaviour of Prolog programs, and you have not
answered the last question.
I have defined this at least 100 times.As you didn't point to even one such definitions I think you have not.
?- LP = not(true(LP)).No, it does not reject, it just answers the question on the second last line.
LP = not(true(LP)).
?- unify_with_occurs_check(LP, not(true(LP))).
false.
The last line that returns false rejects LP.
Les messages affichés proviennent d'usenet.