Skip to content

Minterm expansion: the canonical sum of products (Σm)

Minterm expansion rewrites a formula as the OR of one AND term per truth-table row where it is true: the canonical sum of products, written Σm(…).

Engine name: Minterm expansionFR: Développement en mintermesDE: Minterm-Entwicklung

The formula is rewritten as the OR of one AND term (minterm) for each truth-table row where it is true.

A minterm is an AND of every variable, each either plain or negated, so it is true on exactly one row. OR-ing the minterms of the true rows reproduces the function, and the list of their row numbers is the compact name Σm(1, 2) that the engine accepts as input. The example on this page, A XOR B = Σm(A, B; 1, 2), lists rows 1 (A false, B true) and 2 (A true, B false).

The expansion is canonical: two formulas are equivalent exactly when they have the same minterms over the same variable order. That is why the truth table generator prints the Σm form, why the Karnaugh map labels each cell with its minterm number, and why the normal-form converter offers a canonical method that produces exactly this expansion, beside its algebraic method and its prime-implicant fallback.

The convention for row numbers is the engine's: the first variable is the most significant bit and row 0 is all FALSE, the same as the truth table pages.

Statement

A XOR B = Σm(A, B; 1, 2) = (NOT A AND B) OR (A AND NOT B)

Proof by truth table: A XOR B = Σm(A, B; 1, 2) = (NOT A AND B) OR (A AND NOT B)

A XOR B = Σm(A, B; 1, 2) = (NOT A AND B) OR (A AND NOT B)
#ABlhsmid1rhs
0FALSEFALSEFALSEFALSEFALSE
1FALSETRUETRUETRUETRUE
2TRUEFALSETRUETRUETRUE
3TRUETRUEFALSEFALSEFALSE
lhs ≡ mid1 holds · lhs and mid1 agree on every assignment. · Exhaustively checked and solver cross-checked · 4 rows
mid1 ≡ rhs holds · mid1 and rhs agree on every assignment. · Exhaustively checked and solver cross-checked · 4 rows

The same law in four notations

WordsA XOR B
ProgrammingA XOR B
MathematicalA ⊕ B
AlgebraA ⊕ B
LaTeXA \oplus B
WordsΣm(A, B; 1, 2)
ProgrammingΣm(A, B; 1, 2)
MathematicalΣm(A, B; 1, 2)
AlgebraΣm(A, B; 1, 2)
LaTeX\sum m_{(A, B)}(1, 2)
Words(NOT A AND B) OR (A AND NOT B)
Programming(!A && B) || (A && !B)
Mathematical(¬A ∧ B) ∨ (A ∧ ¬B)
Algebra(A'·B) + (A·B')
LaTeX\left(\overline{A} \cdot B\right) + \left(A \cdot \overline{B}\right)
A XOR B = Σm(A, B; 1, 2) = (NOT A AND B) OR (A AND NOT B) A XOR B = Σm(A, B; 1, 2) = (NOT A AND B) OR (A AND NOT B) A B lhsPRIMARY mid1 rhs XOR Σm(1,2)AB OR AND NOT AND NOT
A XOR B = Σm(A, B; 1, 2) = (NOT A AND B) OR (A AND NOT B) A XOR B = Σm(A, B; 1, 2) = (NOT A AND B) OR (A AND NOT B) A B lhsPRIMARY mid1 rhs XOR Σm(1,2)AB OR AND NOT AND NOT

The common slip

Numbering rows with the wrong variable order. Σm(A, B; 1) and Σm(B, A; 1) are different functions; the order in the list is part of the notation.

Questions

How many minterms can a function have?

Up to 2 to the power of the number of variables, one per row. A function with n variables that is true on half the rows has 2 to the n minus 1 minterms, which is why the canonical form is rarely the shortest and why the simplifier and the map exist.

Related

Guides

Lesson that teaches this

Tools

Practice

See also

Laws

Generated from the Tangibool engine, semantics tangibool-semantics/1, engine 1.0.0, build . Every table, map, simplification and verdict on these pages was computed by the Tangibool engine when the site was built, and every claim was re-checked by the same exact checker the app uses. Limits are stated where they apply. © 2026 Foreranger LTD.