Brain Dump

XOR

Tags
comp-sci math

Is a bitwise operation defined by the truth-table:

AB\( A \oplus B \)
000
101
011
110

From the above you can observe that an XOR is equivalent to: \[ A \xor B = (A \lor B) \land \neg (A \land B) \]

We can also observe the cancellation property: \[ A \xor B \xor B = A \] Which can be extended as the negation rule: \[ A \xor B = C \rightarrow A \xor B \xor C = 0 \]