Exclusive-or

Context: FIT1058_MOC · the “exactly one” connective · the negation of equivalence · generalises to odd parity · the logical Symmetric Difference

Quick Revision

  • 🎯 Objective: is True precisely when differ ➔ “or, but not both”.
  • 📦 Core Components: ➔ chains to odd parity ➔ addition mod 2.
  • ⚡ Key Constraint: differs from inclusive only on the both-true row.

📝 Core

1. The Connective (Exactly One)

  • Definition True iff exactly one of is True (they differ).
  • vs ➔ inclusive-or also accepts both-true; excludes it.
  • Negation of equivalence (opposite columns).

2. Odd Parity Generalisation

  • Chain True iff an odd number of the are True.
  • Why ➔ two trues cancel (mod-2 addition); provable by Mathematical Induction.
  • Useparity bits for error detection.

3. Algebraic Structure

  • Associative + commutative ➔ chained is unambiguous.
  • Identity F; self-inverse.
  • Set dual ➔ mirrors Symmetric Difference (elements in exactly one set).

Key identities:

⚖️ Core Decision Matrix

RelationFormulaMeaning
vs equivalenceTrue on disagreement
vs inclusive-oragree except TT excludes both-true
identity / inverse, addition mod 2
set analogueexactly one set

When It Flips: for ""/"", corresponds to Symmetric Difference — just as , . XOR is the logical "exactly one".

📊 Exam Execution Trace

Manual Execution Trace

Accumulate left to right:

Step / StateBit Running odd?
0 (Init)0no
111yes
201yes
310no
411yes

⚠️ Common Mistakes

  • 💡 vs split only at TT ➔ agree on three rows; gives T at both-true, gives F.

🧠 Active Recall