I am studying bitwise XOR.
If a, b, c are integers ranging from 0 to 18,446,744,073,709,551,615, I belive the following work for both $=$ and $\neq$:
$1.\forall a,b,c(a=b\to a \oplus c=b \oplus c)$
$2.\forall a,b,c(a \oplus c=b \oplus c\to a=b)$
$3.\forall a,b,c(a\neq b\to a \oplus c\neq b \oplus c)$
$4.\forall a,b,c(a\oplus c\neq b\oplus c\to a\neq b)$
But the above will not work for $<, \le, >, \ge$.
Is that correct?
^and!=stands for bitwise XOR and numerical not-equal. – achille hui May 23 '20 at 03:53^in the original version of the question suggests you were thinking of C or some other language that is not Mathematica--so it's unclear what the purpose of the Mathematica tag is. – David K May 23 '20 at 16:201+XOR(8,7)will give the result $1$, whereas if it were a bitwise XOR the result should be $16.$ What makes the difference is that $8$ and $7$ are both treated as "true" logical values by the (non-bitwise) XOR function, so you get the same result fromXOR(8,7)as fromXOR(1,1). – David K May 23 '20 at 23:50