Skip to content

Monotonicity of var/1 in library(diadem) #2230

Answered by UWN
bakaq asked this question in Q&A
Discussion options

You must be logged in to vote
?- var(X).
   true.
?- var(X), X = 1.
   true.
?- var(X), X = 1, var(X).
   false.

It seems you are exploring the very notions we are using here. In fact, these notions have been originally defined by others who did not consider Prolog as it is, and thus the notions might not always apply that precisely. So it is easy to come here into the crossfire of different definitional authorities. Monotonic has at least two meanings (and we mean them both), one is as in montonic logic were adding new information does not retract what we know. And the other one is in the context of constraints.

Similarly, the notion of commutativity can only be applied partially to an actual system. Think of

?- fal…

Replies: 1 comment 3 replies

Comment options

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

@UWN
Comment options

Answer selected by bakaq
@bakaq
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
2 participants