Closed RECHE23 closed 1 year ago
Prolog does not remove duplicate answers. You can do so using tabling or distinct/1. Please do not use the issues pages for basic Prolog questions. Use the forum on Discourse or Stackoverflow.
Prolog does not remove duplicate answers. You can do so using tabling or distinct/1. Please do not use the issues pages for basic Prolog questions. Use the forum on Discourse or Stackoverflow.
So you don't see any flaw in this? This is really the expected behaviour?
Try discourse, I'm not going to read this in all detail. Just, logically equivalent answers are part of normal Prolog SLD resolution.
With this code:
I get this result:
For a simple logical disjunction, I don't see any logical reason why
A = B, B = true
appears twice intest1(A, B)
.Both expressions should behave the same way since they are logically equivalent.