Lably
Skip to content

Canonical normal form

Standard forms of Boolean functions

  • 12 min read
  • 5 chapters

Learn it on Lably

Other canonical forms include the complete sum of prime implicants or Blake canonical form (and its dual), and the algebraic normal form (also called Zhegalkin or Reed–Muller).

Minterms

For a boolean function of n variables x1,…,xn, a minterm is a product term in which each of the n variables appears exactly once (either in its complemented or uncomplemented form). Thus, a minterm is a logical expression of n variables that employs only the complement operator and the conjunction operator (logical AND). A minterm gives a true value for just one combination of the input variables, the minimum nontrivial amount. For example, a b' c, is true only when a and c both are true and b is false—the input arrangement where a = 1, b = 0, c = 1 results in 1.

Indexing minterms

There are 2n minterms of n variables, since a variable in the minterm expression can be in either its direct or its complemented form—two choices per variable. Minterms are often numbered by a binary encoding of the complementation pattern of the variables, where the variables are written in a standard order, usually alphabetical. This convention assigns the value 1 to the direct form (xi) and 0 to the complemented form (xi′); the minterm is then ∑i=1n2i−1value⁡(xi). For example, minterm abc′ is numbered 1102 = 610 and denoted m6.

Minterm canonical form

Given the truth table of a logical function, it is possible to write the function as a "sum of products" or "sum of minterms". This is a special form of disjunctive normal form. For example, if given the truth table for the arithmetic sum bit u of one bit position's logic of an adder circuit, as a function of x and y from the addends and the carry in, ci:

Observing that the rows that have an output of 1 are the 2nd, 3rd, 5th, and 8th, we can write u as a sum of minterms m1,m2,m4, and m7. If we wish to verify this: u(ci,x,y)=m1+m2+m4+m7=(ci′,x′,y)+(ci′,x,y′)+(ci,x′,y′)+(ci,x,y) evaluated for all 8 combinations of the three variables will match the table.

Sign in to keep reading

4 more chapters are free with a Lably account.

More in Topics in mathematics