Euler Hall — free maths guides

Exclusive or: exactly one, not both

Write the truth column of an exclusive disjunction. The idea in plain words, a worked example, and a check with the answers shown — part of the free Quantitative Reasoning guides.

True when exactly one half holds

Exclusive or, writtenp⊕qp \oplus q, is true when EXACTLY ONE of its halves is true — so the both-true row is false.

|pp |qq |p∨qp \vee q |p⊕qp \oplus q | |---|---|---|---| | T | T | T | F | | T | F | T | T | | F | T | T | T | | F | F | F | F |

The two columns agree on three rows and differ on exactly one: the row where both halves are true. That single row is the whole difference between the connectives, and it is why English can use one word for both.

When does English mean which? Context, mostly:

  • - "You may have soup or salad" — a menu means one, so EXCLUSIVE.
  • - "The number is even or it is greater than ten" — true of 12, which is both, so INCLUSIVE.

Because context is unreliable, mathematics fixes the default. Plain "or" is inclusive, and⊕\oplus is written when exclusivity is meant. In this course, and in the exam, that is the convention to apply.

Why the both-true row is the only difference

Both connectives are disjunctions: both claim that something among the halves holds. They differ only on whether "both" counts as success.

Compare the columns: T T T F (inclusive) and T F F T (exclusive). Three entries agree. The fourth — the both-true row — is where the exclusive reading says the claim has failed, because the claim was "one, not both".

So the two connectives are related by a single flip. In factp⊕qp \oplus q is exactly the NEGATION of the biconditionalp↔qp \leftrightarrow q: "exactly one" is "not the same". That relationship is worth remembering, because it means an exclusive or and an "if and only if" can never both be true.

Worked example: exclusive or with a negation

Give the column ofp⊕¬qp \oplus \neg q.

Step one — the¬q\neg q column. Withqq running T, F, T, F,¬q\neg q runs F, T, F, T.

Step two — apply⊕\oplus. True where the two columns DIFFER.

|pp |qq |¬q\neg q |p⊕¬qp \oplus \neg q | |---|---|---|---| | T | T | F | T | | T | F | T | F | | F | T | F | F | | F | F | T | T |

Step three — read it. T F F T.

Step four — compare the plain column. Plainp⊕qp \oplus q is also T F F T — because negating one input to an exclusive or gives the same column, as negating one input to an equality does. Worth noticing: not every connective behaves that way.

By the end you can
  • Write the truth column of an exclusive disjunction
  • Say which row distinguishes it from the inclusive reading
  • Decide from context whether an English 'or' is exclusive
Check yourself
  1. 1. Give the column ofp⊕qp \oplus q.
  2. 2. Give the column ofp⊕¬qp \oplus \neg q.
  3. 3. Which column is the complement ofp↔qp \leftrightarrow q?
  4. 4. Is "the student passes or fails" inclusive or exclusive?
Answers

1. T F F T. 2. T F F T — negating one input leaves an exclusive or's column unchanged. 3.p⊕qp \oplus q: "exactly one" is the negation of "the same". 4. Exclusive in ordinary speech (one cannot do both) — but written as a formula in this course, plain "or" would be read inclusively, so the exclusive reading has to be stated.

Work out where to start — free, no accountAnswer six real questions — free, no account