Skip to content
๐Ÿ” Exclusivity and Inclusivity

๐Ÿ” 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?

  • AND is by definition the opposite of mutual exclusivity by requiring both inputs to be true.
  • OR is 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 OR B means: โ†’ At least one of them is true โ†’ Inclusive disjunction: A + B

Test if either input is true


๐Ÿšซ NOR Gate

  • NOT (A OR B) means: โ†’ Both must be false โ†’ Complement of OR: (A + B)' or A' ยท B'

Test if all inputs are false


โœ–๏ธ AND Gate

  • A AND B means: โ†’ Both must be true โ†’ Conjunction: A ยท B

Test if all inputs are true


๐Ÿ›‘ NAND Gate

  • NOT (A AND B) means: โ†’ At least one must be false โ†’ Complement of AND: (A ยท B)' or A' + B'

Test if either input is false


๐Ÿ”€ XOR Gate

  • A XOR B means: โ†’ Inputs must differ โ†’ Exclusive disjunction: A โŠ• B

Test if all inputs are different


๐Ÿ” XNOR Gate

  • NOT (A XOR B) means: โ†’ Inputs must be the same โ†’ Logical equivalence: (A โŠ• B)' or A โŠ™ B

Test if all inputs are the same


๐Ÿง  Clarifying XOR vs XNOR

  • XOR is not just โ€œonly one is trueโ€โ€”itโ€™s more precisely:

It affirms difference

  • XNOR is 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:

$$ \begin{array}{|c|c|c|} \hline A & B & A โŠ• B \\ \hline 0 & 0 & 0 \\ 0 & 1 & 1 \\ 1 & 0 & 1 \\ 1 & 1 & 0 \\ \hline \end{array} $$

XNOR: Exclusive NOR (Equality Check)

  • Canonical Form:

    A โŠ™ B = (A ยท B) + (A' ยท B')
  • Dual Implication Form:

    A โŠ™ B = (A + B') ยท (A' + B)
  • Truth Table:

$$ \begin{array}{|c|c|c|} \hline A & B & A โŠ™ B \\ \hline 0 & 0 & 1 \\ 0 & 1 & 0 \\ 1 & 0 & 0 \\ 1 & 1 & 1 \\ \hline \end{array} $$

โœ… Summary Table

GateMeaningExpression
ORAt least one is trueA + B
NORBoth must be false(A + B)'
ANDAll must be trueA ยท B
NANDAt least one is false(A ยท B)'
XORInputs must differA โŠ• B
XNORInputs must be the same(A โŠ• B)'
Last updated on