Hi I am new to prolog and I want to know how to express "not all the same" logically in prolog.
for example, if I have a function valid(A, B, C, D)
that takes numbers as input and requires A B C D are not all the same, how do I state it?
I tried valid(A, B, C, D) :- not(A == B == C == D).
It seems not working.