A ⊕ B ⊕ C — Boolean simplification

coreirreducible: 4 minterms, no adjacency

Answer

A′ · B′ · C + A′ · B · C′ + A · B′ · C′ + A · B · C

Why this example is worth doing

The important negative result on this page. Three-input XOR is odd-parity, its four minterms sit on diagonally opposite K-map cells, and no two of them differ in only one variable — so nothing combines and the minimal sum-of-products is the canonical sum, four terms of three literals. Two-level minimisation genuinely cannot help. The lesson is that minimality is relative to a target form: as an XOR chain the function costs two gates, which is why parity trees are never built from AND-OR logic.

Try your own input in the Boolean algebra simplifier. Simplify any expression to its minimal SOP and POS, one named law at a time.

How the answer is reached

Step by step

A ⊕ B ⊕ CA · B · C + A · B′ · C′ + A′ · B · C′ + A′ · B′ · CDefinition of XOR — a chain of ⊕ is the sum of its odd-parity terms

Warning:

A ⊕ B ⊕ C simplifies to A · B · C + A · B′ · C′ + A′ · B · C′ + A′ · B′ · C in 1 step. That is a proven minimum (4 terms, 12 literals), not a best effort. It is the only minimum-cost form.

Quine–McCluskey

Prime implicants — Quine–McCluskey
#Term
1A′ · B′ · C
2A′ · B · C′
3A · B′ · C′
4A · B · C
Minimum cover — Quine–McCluskey
#Cover
1A′ · B′ · C + A′ · B · C′ + A · B′ · C′ + A · B · C
Warning:

4 term(s), 12 literal(s); 4 essential prime implicant(s).

Truth table

Truth table — columns #, A, B, C, F
#ABCF
00000
10011
20101
30110
41001
51010
61100
71111

Compare with

Open this example in the Boolean algebra simplifier

The field arrives filled in with this example’s input.

Note:

Notation this page assumes

  • Symbols: · is AND, + is OR, ⊕ is XOR, a prime or an overline is NOT. The field also takes ∧ ∨ ¬ ~ ! & | and the words.
  • Operator precedence, tightest first: NOT, then AND (including juxtaposition), then XOR/XNOR, then NAND/NOR, then OR, then IMPLIES, then IFF.
  • In a minterm index the first variable is the most significant bit, so over [A, B, C] minterm 5 is A·B̄·C.

Sources

  • Boole, An Investigation of the Laws of Thought (1854)
  • Shannon, “A Symbolic Analysis of Relay and Switching Circuits” (1938)