Ensuring variables are distinct #82
-
Given two variables
If I want to restrict the matching to only distinct values for
The situation gets a bit more complicated when there are more than two variables involved but the basic recipe is the same. I found I have to add multiple
My question is whether this is the correct way of making sure all my variables are distinct or if there is another better way of doing it? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
There are a few other ways of which I can imagine right now, but they're all syntactical variations of the same thing. For example, you can write a simple Python function to generate all pairs of distinct logic variables and create |
Beta Was this translation helpful? Give feedback.
There are a few other ways of which I can imagine right now, but they're all syntactical variations of the same thing. For example, you can write a simple Python function to generate all pairs of distinct logic variables and create
neq
goals for them.