๐ Exclusivity and Inclusivity
โน๏ธ
Why we invented it
Boolean logic traditionally focuses on truth-functional primitives like
AND, OR, and NOT.
But real-world logic often demands relational conditionsโlike detecting difference or equality between inputs.Why “Exclusive”?
- Exclusivity means: “Only one input is true.”
- This contrasts with inclusive OR, which allows both inputs to be true.
XOR captures mutual exclusivity: true when inputs differ.
XNOR captures mutual agreement: true when inputs match.
Why OR works but not AND?
ANDis by definition the opposite of mutual exclusivity by requiring both inputs to be true.ORis by definition inclusiveโtrue when either or both inputs are true.
This is why we can make OR more specific through mutual exclusivity, but not AND.
๐ Gate-by-Gate Semantics
โ OR Gate
- A
ORB means: โ At least one of them is true โ Inclusive disjunction:A + B
Test if either input is true
๐ซ NOR Gate
NOT(AORB) means: โ Both must be false โ Complement ofOR:(A + B)'orA' ยท B'
Test if all inputs are false
โ๏ธ AND Gate
- A
ANDB means: โ Both must be true โ Conjunction:A ยท B
Test if all inputs are true
๐ NAND Gate
NOT(AANDB) means: โ At least one must be false โ Complement ofAND:(A ยท B)'orA' + B'
Test if either input is false
๐ XOR Gate
- A
XORB means: โ Inputs must differ โ Exclusive disjunction:A โ B
Test if all inputs are different
๐ XNOR Gate
NOT(AXORB) means: โ Inputs must be the same โ Logical equivalence:(A โ B)'orA โ B
Test if all inputs are the same
๐ง Clarifying XOR vs XNOR
XORis not just โonly one is trueโโitโs more precisely:
It affirms difference
XNORis not just โnot only one is trueโโitโs more precisely:
It affirms sameness
๐งช Boolean Derivations
XOR: Exclusive OR (Difference Check)
Canonical Form:
A โ B = (A ยท B') + (A' ยท B)De Morgan Dual:
A โ B = ((A' ยท B)' + (A ยท B'))'Truth Table:
XNOR: Exclusive NOR (Equality Check)
Canonical Form:
A โ B = (A ยท B) + (A' ยท B')Dual Implication Form:
A โ B = (A + B') ยท (A' + B)Truth Table:
โ Summary Table
| Gate | Meaning | Expression |
|---|---|---|
OR | At least one is true | A + B |
NOR | Both must be false | (A + B)' |
AND | All must be true | A ยท B |
NAND | At least one is false | (A ยท B)' |
XOR | Inputs must differ | A โ B |
XNOR | Inputs must be the same | (A โ B)' |
Last updated on