Definitionintro
Prime implicant
Also called prime cube.
An implicant that no longer implies the function if any literal is removed. Some minimum sum of products uses only prime implicants.
A prime implicant of a Boolean function is an implicant that no other implicant contains. Put another way, it is a product term that implies , but stops implying when any one of its literals is removed. Quine (1952) showed why primes matter: each cube of a cover can grow to a prime that contains it, and this never adds a cube or a literal. So some minimum sum of products uses only primes, and exact minimizers first list the primes and then choose some of them. A prime is essential when it alone covers some 1 point of ; every cover by primes must use it. The number of primes can be very large: Chandra and Markowsky (1978) showed that the largest number for variables is between orders and .
Definition
Let have on-set , don't-care set and off-set , and let be its set of implicants, the cubes with .
Prime implicant. An implicant is prime if no implicant has .
Literal form. An implicant is prime exactly when, for each literal of , the cube (the cube with removed) is not an implicant. Proof: if some is an implicant, it contains strictly, so is not prime. Conversely, if an implicant has , then lacks some literal of , and , so is an implicant.
Essential prime. A prime is essential if some minterm lies in and in no other prime. Each implicant that contains lies in some prime, and that prime contains , so it is . Hence every cover made of primes contains every essential prime.
Redundant primes. The other primes are of two kinds. A non-essential prime is totally redundant if it lies inside the union of the essential primes and , and partially redundant otherwise. A totally redundant prime is in no minimum cover. Partially redundant primes are where the hard choices are.
Quine's theorem. Let the cost of a cover be (number of cubes, number of literals), compared in this order. Then every minimum cover of consists of primes. Proof: replace each cube of a minimum cover by a prime . The result is still a cover, since it contains the old union and stays in . It has at most as many cubes, and if some was not prime, then has fewer literals than , so the cost drops. That contradicts minimality. If the cost is only the number of cubes, the same step shows that some minimum cover is prime.
Number of primes. Each of the cubes can be prime for some function, but not all at once. Chandra and Markowsky (1978) proved that the largest number of primes of an -variable function is and . The lower bound uses the function that is 1 when the number of ones in the input is between and . For the largest numbers are 1, 2, 6 and 13.
Examples and non-examples
- . The primes are , and . The first two are essential: minterm 6 () is only in and minterm 1 () is only in . The prime lies inside the union of the two essential primes, so it is totally redundant. It is the consensus of the two other terms. The minimum SOP is .
- Non-example. The minterm is an implicant of the same , but not prime: it lies in , and removing keeps an implicant.
- A table with a choice. Take with don't-cares over . Its primes are , , and . The prime is essential for minterm 4, and is essential for minterm 15. Minterm 8 is then left, and it lies in two primes, and . Each choice gives a minimum cover with 3 cubes and 7 literals.
- No essential prime. The function that is 1 unless all three inputs are equal, , has the six primes , , , , and . Each minterm lies in exactly two of them, so no prime is essential. This is a cyclic table. The minimum covers have 3 primes, for example , while the cover is prime and irredundant but has 4 cubes. This is the largest number of primes for 3 variables.
- Don't-cares change the primes. For with minterm 5 as a don't-care, the primes are and . The cube is no longer prime because is now an implicant.
- Unate functions. For the primes are and , and both are essential. In a completely specified unate function every prime is essential, so the sum of all primes is the unique minimum SOP.
The sum of all primes of is a canonical SOP of . It is often called the Blake canonical form.
Related definitions
- Implicant. A cube inside the on-set plus the don't-care set.
- Quine-McCluskey. Lists all primes by merging cubes that differ in one variable, then solves the prime implicant table.
- Petrick's method. Lists every irredundant choice of primes for the table, by multiplying out a product of sums.
- Karnaugh map. Shows the primes as the largest rectangles of 1s, for up to four or five variables.
- Set cover. Choosing primes to cover the on-set minterms is a set cover problem, with one set for each prime.
- Espresso. Makes each cube of a cover prime, one at a time, without listing all primes.
- Two-level logic minimization. The problem that the primes and the covering step solve.
References
- W. V. Quine, The problem of simplifying truth functions, American Mathematical Monthly 59(8), 521 to 531, 1952, prime implicants, and the theorem that a shortest normal formula is a sum of prime implicants
- W. V. Quine, A way to simplify truth functions, American Mathematical Monthly 62(9), 627 to 631, 1955, the consensus method for finding the prime implicants
- On the number of prime implicants, the lower bound of order 3^n/n and the upper bound of order 3^n/√n on the largest number of prime implicants of an n-variable function
- 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 (prime and essential cubes, covers)
- Gary D. Hachtel and Fabio Somenzi, Logic Synthesis and Verification Algorithms, Kluwer, 1996, Chapter 4, Synthesis of Two-Level Circuits (Quine's theorem and essential primes)
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.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W4 complete |
|
Tag 76W0F8 Edit this page History Report an error Markdown