Algorithm Search⌘K

Definitionintro

Implicant

Also called cube of a Boolean function.

A product term that implies a Boolean function, so the function is 1 wherever the term is 1, with don't-care points allowed.

An implicant of a Boolean function ff is a product term cc such that ff is 1 at each input where cc is 1. In logic words, the term implies the function: c⇒fc \Rightarrow f. Each term of a sum of products of ff is an implicant of ff, and a set of implicants whose union contains all the 1 points of ff is an SOP of ff. When some inputs are don't-care conditions, the term may also be 1 on those inputs, but never on an input where ff must be 0. The implicants that no larger implicant contains are the prime implicants, and these are the candidates that two-level minimization chooses from.

Definition

An incompletely specified function ff of nn variables is a partition of {0,1}n\{0,1\}^n into three sets: the on-set FF, where f=1f = 1; the off-set RR, where f=0f = 0; and the don't-care set DD, where the value is free. A completely specified function has D=∅D = \emptyset.

Implicant. A cube c⊆{0,1}nc \subseteq \{0,1\}^n is an implicant of ff if

c⊆F∪D,or, the same,c∩R=∅.c \subseteq F \cup D, \quad \text{or, the same,} \quad c \cap R = \emptyset.

For a completely specified ff this says c(x)≤f(x)c(x) \le f(x) for all xx, that is, c⇒fc \Rightarrow f.

Cover. A set CC of cubes is a cover of ff if each cube of CC is an implicant and

F⊆⋃c∈Cc⊆F∪D.F \subseteq \bigcup_{c \in C} c \subseteq F \cup D.

The second inclusion holds because each cube is an implicant. A cover is a sum of products that agrees with ff on F∪RF \cup R, the care set.

Not every cube over the variables of ff is an implicant. A cube is one only if it misses the off-set. Some authors also ask that an implicant meets the on-set, so that a cube inside DD alone is not an implicant. Such a cube is never needed in a cover, so the two readings give the same minimum covers.

Basic facts.

  1. A subcube of an implicant is an implicant. So the implicants form a down-set in the order of containment, and each minterm of FF is an implicant.
  2. If RR is given as a cover {r1,…,rk}\{r_1, \ldots, r_k\}, then cc is an implicant exactly when c∩ri=∅c \cap r_i = \emptyset for each ii. Two cubes are disjoint exactly when some variable has the literal xx in one and xˉ\bar{x} in the other. This test takes O(nk)O(nk) time.
  3. If F∪DF \cup D is given as a cover GG, then cc is an implicant exactly when the cofactor GcG_c is a tautology. This is the test that Espresso uses, with the unate recursive paradigm for the tautology check.
  4. There are 3n3^n cubes, so ff has at most 3n3^n implicants. The constant 1 has all 3n3^n cubes as implicants.

The dual notion is the implicate: a clause dd (an OR of literals) with f⇒df \Rightarrow d. The clauses of a conjunctive normal form of ff are implicates.

Examples and non-examples

Take f=x1x2+xˉ1x3=∑m(1,3,6,7)f = x_1 x_2 + \bar{x}_1 x_3 = \sum m(1, 3, 6, 7) over x1,x2,x3x_1, x_2, x_3.

  • Implicants. ff has 7 implicants: the four minterms 001,011,110,111001, 011, 110, 111 and the three cubes 0−1=xˉ1x30{-}1 = \bar{x}_1 x_3, 11−=x1x211{-} = x_1 x_2 and −11=x2x3{-}11 = x_2 x_3. The cube x2x3x_2 x_3 is not a term of the given SOP, but it is an implicant: it is the points 011011 and 111111, and ff is 1 at both.
  • Non-example. The cube 1−−=x11{-}{-} = x_1 is not an implicant: it contains 100100, where f=0f = 0. The cube −−1=x3{-}{-}1 = x_3 is not one either, because it contains 101101.
  • With a don't-care. Make minterm 5 (101101) a don't-care. Then ff has 11 implicants. The new ones are 101101, 1−11{-}1, −01{-}01 and −−1=x3{-}{-}1 = x_3. Now x3+x1x2x_3 + x_1 x_2 is a cover with 2 cubes and 3 literals, against 2 cubes and 4 literals without the don't-care. The cover is 1 at the point 101, which is allowed.
  • Non-example of a cover. {x2x3,x1x2}\{x_2 x_3, x_1 x_2\} is a set of implicants, but it is not a cover: it misses minterm 1.
  • Majority. The majority function ∑m(3,5,6,7)\sum m(3, 5, 6, 7) has the implicants x1x2x_1 x_2, x1x3x_1 x_3, x2x3x_2 x_3 and its four minterms, 7 in all. No cube with one literal is an implicant, since xi=1x_i = 1 alone does not make a majority.
  • Sum of products. A cover is an SOP whose cubes are implicants.
  • Prime implicant. An implicant that is not contained in any other implicant. In the example, x1x2x_1 x_2, xˉ1x3\bar{x}_1 x_3 and x2x3x_2 x_3 are the primes.
  • Don't-care condition. The points of DD, which make more cubes implicants.
  • Cofactor. The test of fact 3 uses the cofactor of a cover by a cube.
  • Two-level logic minimization. The choice of a cheapest cover from the implicants.
  • Quine-McCluskey. Finds all prime implicants by merging pairs of implicants that differ in one variable.

References

  1. Robert K. Brayton, Gary D. Hachtel, Curtis T. McMullen and Alberto L. Sangiovanni-Vincentelli, Logic Minimization Algorithms for VLSI Synthesis, Kluwer, 1984, Chapter 2, Basic Definitions (implicants, covers and the on-set, off-set and don't-care set)
  2. Giovanni De Micheli, Synthesis and Optimization of Digital Circuits, McGraw-Hill, 1994, Chapter 7, Two-Level Combinational Logic Optimization
  3. W. V. Quine, The problem of simplifying truth functions, American Mathematical Monthly 59(8), 521 to 531, 1952, the implicants and prime implicants of a truth function written in normal form

Where this leads

About this page

The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.

LadderLevelWhat the next level needs
Human proofH0 no proof
  • add a proof in proofs/ (06.5)
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW4 complete
  • a review of the text: no review record reviews/YJP3VG/text.yaml