Boole's expansion theorem

From HandWiki

Boole's expansion theorem, often referred to as the Shannon expansion or decomposition, is the identity: [math]\displaystyle{ F = x \cdot F_x + x' \cdot F_{x'} }[/math], where [math]\displaystyle{ F }[/math] is any Boolean function, [math]\displaystyle{ x }[/math] is a variable, [math]\displaystyle{ x' }[/math] is the complement of [math]\displaystyle{ x }[/math], and [math]\displaystyle{ F_x }[/math]and [math]\displaystyle{ F_{x'} }[/math] are [math]\displaystyle{ F }[/math] with the argument [math]\displaystyle{ x }[/math] set equal to [math]\displaystyle{ 1 }[/math] and to [math]\displaystyle{ 0 }[/math] respectively.

The terms [math]\displaystyle{ F_x }[/math] and [math]\displaystyle{ F_{x'} }[/math] are sometimes called the positive and negative Shannon cofactors, respectively, of [math]\displaystyle{ F }[/math] with respect to [math]\displaystyle{ x }[/math]. These are functions, computed by restrict operator, [math]\displaystyle{ \operatorname{restrict}(F, x, 0) }[/math] and [math]\displaystyle{ \operatorname{restrict}(F, x, 1) }[/math] (see valuation (logic) and partial application).

It has been called the "fundamental theorem of Boolean algebra".[1] Besides its theoretical importance, it paved the way for binary decision diagrams (BDDs), satisfiability solvers, and many other techniques relevant to computer engineering and formal verification of digital circuits. In such engineering contexts (especially in BDDs), the expansion is interpreted as a if-then-else, with the variable [math]\displaystyle{ x }[/math] being the condition and the cofactors being the branches ([math]\displaystyle{ F_x }[/math] when [math]\displaystyle{ x }[/math] is true and respectively [math]\displaystyle{ F_{x'} }[/math] when [math]\displaystyle{ x }[/math] is false).[2]

Statement of the theorem

A more explicit way of stating the theorem is:

[math]\displaystyle{ f(X_1, X_2, \dots , X_n) = X_1 \cdot f(1, X_2, \dots , X_n) + X_1' \cdot f(0, X_2, \dots , X_n) }[/math]

Variations and implications

XOR-Form
The statement also holds when the disjunction "+" is replaced by the XOR operator:
[math]\displaystyle{ f(X_1, X_2, \dots , X_n) = X_1 \cdot f(1, X_2, \dots , X_n) \oplus X_1' \cdot f(0, X_2, \dots , X_n) }[/math]
Dual form
There is a dual form of the Shannon expansion (which does not have a related XOR form):
[math]\displaystyle{ f(X_1, X_2, \dots , X_n) = (X_1 + f(0, X_2, \dots , X_n)) \cdot (X_1' + f(1, X_2, \dots , X_n)) }[/math]

Repeated application for each argument leads to the Sum of Products (SoP) canonical form of the Boolean function [math]\displaystyle{ f }[/math]. For example for [math]\displaystyle{ n=2 }[/math] that would be

[math]\displaystyle{ \begin{align} f(X_1, X_2) & = X_1 \cdot f(1, X_2) + X_1' \cdot f(0, X_2)\\ & = X_1 X_2 \cdot f(1, 1) + X_1 X_2' \cdot f(1, 0) + X_1' X_2 \cdot f(0, 1) + X_1' X_2' \cdot f(0, 0) \end{align} }[/math]

Likewise, application of the dual form leads to the Product of Sums (PoS) canonical form (using the distributivity law of [math]\displaystyle{ + }[/math] over [math]\displaystyle{ \cdot }[/math]):

[math]\displaystyle{ \begin{align} f(X_1, X_2) & = (X_1 + f(0, X_2)) \cdot (X_1' + f(1, X_2))\\ & = (X_1 + X_2 + f(0, 0)) \cdot (X_1 + X_2' + f(0, 1)) \cdot (X_1' + X_2 + f(1, 0)) \cdot (X_1' + X_2' + f(1, 1)) \end{align} }[/math]

Properties of cofactors

Linear properties of cofactors:
For a Boolean function F which is made up of two Boolean functions G and H the following are true:
If [math]\displaystyle{ F = H' }[/math] then [math]\displaystyle{ F_x = H'_x }[/math]
If [math]\displaystyle{ F = G \cdot H }[/math] then [math]\displaystyle{ F_x = G_x \cdot H_x }[/math]
If [math]\displaystyle{ F = G + H }[/math] then [math]\displaystyle{ F_x = G_x + H_x }[/math]
If [math]\displaystyle{ F = G \oplus H }[/math] then [math]\displaystyle{ F_x = G_x \oplus H_x }[/math]
Characteristics of unate functions:
If F is a unate function and...
If F is positive unate then [math]\displaystyle{ F = x \cdot F_x + F_{x'} }[/math]
If F is negative unate then [math]\displaystyle{ F = F_x + x' \cdot F_{x'} }[/math]

Operations with cofactors

Boolean difference:
The Boolean difference or Boolean derivative of the function F with respect to the literal x is defined as:
[math]\displaystyle{ \frac{\partial F}{\partial x} = F_x \oplus F_{x'} }[/math]
Universal quantification:
The universal quantification of F is defined as:
[math]\displaystyle{ \forall x F = F_x \cdot F_{x'} }[/math]
Existential quantification:
The existential quantification of F is defined as:
[math]\displaystyle{ \exists x F = F_x + F_{x'} }[/math]

History

George Boole presented this expansion as his Proposition II, "To expand or develop a function involving any number of logical symbols", in his Laws of Thought (1854),[3] and it was "widely applied by Boole and other nineteenth-century logicians".[4]

Claude Shannon mentioned this expansion, among other Boolean identities, in a 1949 paper,[5] and showed the switching network interpretations of the identity. In the literature of computer design and switching theory, the identity is often incorrectly attributed to Shannon.[6][4]

Application to switching circuits

  1. Binary decision diagrams follow from systematic use of this theorem
  2. Any Boolean function can be implemented directly in a switching circuit using a hierarchy of basic multiplexer by repeated application of this theorem.

References

  1. The Elements of Mathematical Logic. 1950. p. 5. 
  2. G. D. Hachtel and F. Somezi (1996), Logic Synthesis and Verification Algorithms, p. 234
  3. An Investigation of the Laws of Thought: On which are Founded the Mathematical Theories of Logic and Probabilities. 1854. p. 72. https://books.google.com/books?id=SWgLVT0otY8C&pg=PA73. 
  4. 4.0 4.1 Boolean Reasoning - The Logic of Boolean Equations (reissue of 2nd ed.). Mineola, New York: Dover Publications, Inc.. 2012. p. 42. ISBN 978-0-486-42785-0.  [1]
  5. "The Synthesis of Two-Terminal Switching Circuits". Bell System Technical Journal 28: 59–98 [62]. January 1949. doi:10.1002/j.1538-7305.1949.tb03624.x. ISSN 0005-8580. https://archive.org/download/bstj28-1-59/bstj28-1-59.pdf. 
  6. "6. Historical Overview of the Research on Decomposition", A Survey of Literature on Function Decomposition, Version IV, Functional Decomposition Group, Department of Electrical Engineering, Portland University, Portland, Oregon, USA, 1995-11-20, p. 21  (188 pages)

See also

External links