Algorithm Search⌘K

Definitioncore

Algebraic kernel

Also called kernel and cokernel.

A cube-free quotient of a sum of products by a cube, its cokernel. Two expressions have a common divisor of two or more cubes only if a kernel of each shares two or more cubes with the other.

An algebraic kernel of a sum of products FF is a quotient F/cF / c of algebraic division by a cube cc that is cube-free: it has two or more cubes and no literal common to all of them. The cube cc is a cokernel of that kernel. Kernels are the divisors that algebraic synthesis tries, because Brayton and McMullen proved that two expressions have a common divisor of two or more cubes only if some kernel of the one and some kernel of the other share two or more cubes. Kernel extraction uses this to find shared logic in a Boolean network.

Definition

We use cubes and SOPs as sets of literals and sets of cubes, as on the sum of products page, and the quotient F/c={x∖c:x∈F,c⊆x}F / c = \{x \setminus c : x \in F, c \subseteq x\} of an SOP FF by a cube cc.

Cube-free. An SOP GG is cube-free if ∣G∣≥2|G| \ge 2 and ⋂x∈Gx=∅\bigcap_{x \in G} x = \emptyset. Equivalently, the only cube cc with G={c}⋅(G/c)G = \{c\} \cdot (G / c) is the constant cube 1. A single cube is never cube-free.

Kernel. A cube cc is a cokernel of FF if F/cF / c is cube-free, and then K=F/cK = F / c is a kernel of FF. The kernel set is

K(F)={F/c:c a cube,F/c cube-free}.\mathcal{K}(F) = \{F / c : c \text{ a cube}, F / c \text{ cube-free}\}.

If FF itself is cube-free, then F∈K(F)F \in \mathcal{K}(F) with cokernel 1. One kernel can have several cokernels.

Levels. A kernel KK has level 0 if K(K)={K}\mathcal{K}(K) = \{K\}. It has level nn if it has a kernel of level n−1n - 1 other than itself and no kernel of level nn or more other than itself. Level-0 kernels are the smallest units of the algebraic structure of FF.

Kernel theorem (Brayton and McMullen 1982). For SOPs FF and GG, there is an SOP DD with ∣D∣≥2|D| \ge 2 that is an algebraic divisor of both, meaning F/D≠∅F / D \neq \emptyset and G/D≠∅G / D \neq \emptyset, if and only if there are kernels KF∈K(F)K_F \in \mathcal{K}(F) and KG∈K(G)K_G \in \mathcal{K}(G) with ∣KF∩KG∣≥2|K_F \cap K_G| \ge 2.

Proof. If ∣KF∩KG∣≥2|K_F \cap K_G| \ge 2, let D=KF∩KGD = K_F \cap K_G and let cc be a cokernel of KFK_F. The cubes of KFK_F share no variable with cc, so c∪d∈Fc \cup d \in F for each d∈Dd \in D, and c∈F/Dc \in F / D. The same holds for GG. For the other direction, let DD be a common divisor with ∣D∣≥2|D| \ge 2, and let ee be the common cube of DD. Then D′=D/eD' = D / e is cube-free, and it is a common divisor too: if q∈F/Dq \in F / D, then q∪eq \cup e shares no variable with D′D', since each cube of DD holds the literal of ee for each variable of ee, and (q∪e)∪d′=q∪d∈F(q \cup e) \cup d' = q \cup d \in F. So we can take DD cube-free. Let q∈F/Dq \in F / D. Every d∈Dd \in D is in F/qF / q, because q∪d∈Fq \cup d \in F and q∩d=∅q \cap d = \emptyset. So D⊆F/qD \subseteq F / q, and the common cube of F/qF / q lies inside the common cube of DD, which is empty. So F/qF / q has at least two cubes and is cube-free, a kernel of FF that contains DD. A kernel of GG that contains DD comes in the same way, and their intersection holds DD. □\square

Examples and non-examples

Kernels.

  • F=ace+bce+de+gF = ace + bce + de + g. Its kernels are a+ba + b with cokernel cece, ac+bc+dac + bc + d with cokernel ee, and FF itself with cokernel 1. The cube cc is not a cokernel, since F/c=ae+beF / c = ae + be has the common literal ee.
  • F=ac+ad+bc+bd+eF = ac + ad + bc + bd + e has the kernels c+dc + d with the two cokernels aa and bb, a+ba + b with the cokernels cc and dd, and FF itself. That makes 3 kernels and 5 cokernels.
  • F=adf+aef+bdf+bef+cdf+cef+gF = adf + aef + bdf + bef + cdf + cef + g has the kernels d+ed + e (cokernels afaf, bfbf, cfcf), a+b+ca + b + c (cokernels dfdf, efef), ad+ae+bd+be+cd+cead + ae + bd + be + cd + ce (cokernel ff), and FF (cokernel 1). The kernels d+ed + e and a+b+ca + b + c have level 0. The kernel with cokernel ff is the product (a+b+c)(d+e)(a + b + c)(d + e) multiplied out, and has level 1. So FF itself, with a kernel of level 1 other than itself, has level 2.
  • A product of kk sums of two literals each, (a1+b1)(a2+b2)⋯(ak+bk)(a_1 + b_1)(a_2 + b_2) \cdots (a_k + b_k) multiplied out, has 2k2^k cubes. Its kernels are the products of the nonempty subsets of the factors, 2k−12^k - 1 of them. A cokernel picks a literal from each factor of a proper subset of the factors, so there are ∑j<k(kj)2j=3k−2k\sum_{j < k} \binom{k}{j} 2^j = 3^k - 2^k cokernels. For k=4k = 4 that is 15 kernels and 65 cokernels for an SOP of 16 cubes.

The kernel theorem at work.

  • F=ac+ad+bc+bd+eF = ac + ad + bc + bd + e and G=cf+df+gG = cf + df + g share the kernel c+dc + d, so c+dc + d divides both: F=(a+b)(c+d)+eF = (a + b)(c + d) + e and G=f(c+d)+gG = f(c + d) + g.
  • F=ax+bx+cxF = ax + bx + cx and G=ay+by+dyG = ay + by + dy have the kernels a+b+ca + b + c and a+b+da + b + d, which share the two cubes aa and bb. So a+ba + b divides both, with F=x(a+b)+cxF = x(a + b) + cx and G=y(a+b)+dyG = y(a + b) + dy.
  • F=ab+cdF = ab + cd and G=ac+bdG = ac + bd have only themselves as kernels, and these share no cube, so no multi-cube algebraic divisor is common to them.

Non-examples.

  • ab+acab + ac is not a kernel of itself, because aa is common to both cubes. Its only kernel is b+cb + c, with cokernel aa.
  • A single cube such as abcabc has no kernel, since every quotient of it by a cube is a single cube.
  • a+aba + ab is not cube-free, since aa is in both cubes. The algebraic model treats it as written, even though as a function it equals aa. Its kernel is 1+b1 + b with cokernel aa, because F/a={∅,{b}}F / a = \{\emptyset, \{b\}\} has two cubes and no common literal.
  • For F=abc+abdF = abc + abd, the quotient F/a=bc+bdF / a = bc + bd is not a kernel, since bb is common. The cokernel is abab, with kernel c+dc + d.
  • The theorem is about algebraic divisors only. F=a+bcF = a + bc and G=a+bdG = a + bd share the Boolean divisor a+ba + b, since F=(a+b)(a+c)F = (a + b)(a + c) and G=(a+b)(a+d)G = (a + b)(a + d) as functions. Their kernels are FF and GG, which share only the cube aa, and indeed a+ba + b is not an algebraic divisor of either.
  • Algebraic division. The quotient F/cF / c by a cube is the special case of weak division with a divisor of one cube.
  • Kernel-cube matrix. The table of kernel extraction, with a row for each cokernel of each node and a column for each kernel cube. Rectangles of it are common divisors.
  • Cofactor. The cofactor FaF_a sets a=1a = 1 and keeps the cubes without aa. The quotient F/aF / a keeps only the cubes with aa. A kernel is a quotient, not a cofactor.
  • Implicant. A cube of a two-level cover. Kernels are sums of cubes inside one expression and say nothing about the function's implicants.
  • Common subexpression elimination. The compiler analogue of extracting shared divisors from expressions.

References

  1. Robert K. Brayton and Curtis T. McMullen, The decomposition and factorization of Boolean expressions, Proceedings of the International Symposium on Circuits and Systems (ISCAS), 1982, pages 49 to 54, the definitions of cube-free expressions, kernels, cokernels and kernel levels, and the theorem on common multi-cube divisors
  2. Robert K. Brayton, Richard Rudell, Alberto Sangiovanni-Vincentelli and Albert R. Wang, MIS, a multiple-level logic optimization system, IEEE Transactions on Computer-Aided Design 6(6), 1987, pages 1062 to 1081, kernels as the candidate divisors of the factoring and extraction commands
  3. Robert K. Brayton, Gary D. Hachtel and Alberto L. Sangiovanni-Vincentelli, Multilevel logic synthesis, Proceedings of the IEEE 78(2), 1990, pages 264 to 300, the algebraic model, kernels and the kernel theorem
  4. Giovanni De Micheli, Synthesis and Optimization of Digital Circuits, McGraw-Hill, 1994, Chapter 8, Multiple-Level Combinational Logic Optimization, the section on kernels and kernel sets

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/JW5WMB/text.yaml