Boole's expansion theorem, also known as the Shannon expansion (after Claude Shannon's 1938 application to switching circuit theory) or Boole–Shannon expansion, is a fundamental identity in Boolean algebra. It states that any Boolean function can be decomposed into a sum of products (disjunctive normal form) relative to a specific variable.
Statement For any Boolean function $f(x_1, x_2, \dots, x_n)$ and any variable $x_i$, the function can be expressed as: $$f(x_1, \dots, x_i, \dots, x_n) = x_i \cdot f(x_1, \dots, 1, \dots, x_n) + \overline{x_i} \cdot f(x_1, \dots, 0, \dots, x_n)$$
Where:
- $f(x_1, \dots, 1, \dots, x_n)$ is the positive cofactor of $f$ with respect to $x_i$ (the function evaluated with $x_i = 1$).
- $f(x_1, \dots, 0, \dots, x_n)$ is the negative cofactor of $f$ with respect to $x_i$ (the function evaluated with $x_i = 0$).
- $\overline{x_i}$ denotes the complement (NOT) of $x_i$.
- $\cdot$ denotes logical AND.
- $+$ denotes logical OR.
Historical Context
- George Boole (1847, 1854): Introduced the mathematical formulation of the expansion in The Mathematical Analysis of Logic and An Investigation of the Laws of Thought. Boole used the expansion as a primary method for solving logical equations and deriving consequences from premises.
- Claude Shannon (1938): In his master's thesis, A Symbolic Analysis of Relay and Switching Circuits, Shannon independently derived the expansion (Theorem 1) to demonstrate that Boolean algebra could be used to analyze and synthesize relay switching circuits. This application founded the field of digital circuit design.
Properties and Applications
- Recursive Decomposition: The theorem can be applied recursively to all variables in a function to derive the minterm canonical form (sum of minterms), which is a unique representation of the function (up to variable ordering).
- Binary Decision Diagrams (BDDs): The expansion forms the theoretical basis for Binary Decision Diagrams, where the positive and negative cofactors correspond to the "high" (1) and "low" (0) edges of a decision node.
- Logic Synthesis and Verification: It is used in algorithms for logic minimization (e.g., the Quine–McCluskey algorithm, Espresso heuristic logic minimizer), technology mapping, and formal verification (equivalence checking).
- Reed–Muller Expansion: A related expansion using the XOR operator (positive Davio expansion) and XNOR (negative Davio expansion) is used for spectral techniques and testing.
Generalization The theorem holds for any Boolean algebra. In the context of switching functions (functions $f: {0,1}^n \to {0,1}$), it provides a Shannon decomposition. The concept extends to multiple variables simultaneously (e.g., expanding w.r.t $x_i, x_j$ yields four cofactors).