Skip to content
Discussion options

You must be logged in to vote

Consider:

p(1).

?- \+ p(2).
   true.

Now add a further fact:

p(1).
p(2).

?- \+ p(2).
   false.

And thus, what has been true before, is now false. That is, even in a case when the argument of (\+)/1 is sufficiently instantiated (and is terminating), monotonicity is not maintained. This is not an accidental implementation bug. It is intended.

Replies: 3 comments 13 replies

Comment options

You must be logged in to vote
3 replies
@Garklein
Comment options

@bakaq
Comment options

@Garklein
Comment options

Comment options

You must be logged in to vote
6 replies
@bakaq
Comment options

@UWN
Comment options

@bakaq
Comment options

@UWN
Comment options

@bakaq
Comment options

Answer selected by Garklein
Comment options

You must be logged in to vote
4 replies
@triska
Comment options

@Garklein
Comment options

@haijinSk
Comment options

@Garklein
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants