Boole's expansion theorem, often referred to as the Shannon expansion or decomposition, is the
identity:
, where
is any
Boolean function,
is a variable,
is the complement of
, and
and
are
with the argument
set equal to
and to
respectively.
The terms
and
are sometimes called the positive and negative Shannon cofactors, respectively, of
with respect to
. These are functions, computed by restrict operator,
and
(see
valuation (logic) and
partial application).
It has been called the "fundamental theorem of Boolean algebra".
Besides its theoretical importance, it paved the way for
binary decision diagrams (BDDs),
satisfiability solvers, and many other techniques relevant to
computer engineering
Computer engineering (CE, CoE, or CpE) is a branch of engineering specialized in developing computer hardware and software.
It integrates several fields of electrical engineering, electronics engineering and computer science.
Computer engi ...
and
formal verification
In the context of hardware and software systems, formal verification is the act of proving or disproving the correctness of a system with respect to a certain formal specification or property, using formal methods of mathematics.
Formal ver ...
of digital circuits.
In such engineering contexts (especially in BDDs), the expansion is interpreted as a
if-then-else, with the variable
being the condition and the cofactors being the branches (
when
is true and respectively
when
is false).
[G. D. Hachtel and F. Somenzi (1996), ''Logic Synthesis and Verification Algorithms'', p. 234]
Statement of the theorem
A more explicit way of stating the theorem is:
:
Variations and implications
; XOR-Form : The statement also holds when the
disjunction
In logic, disjunction (also known as logical disjunction, logical or, logical addition, or inclusive disjunction) is a logical connective typically notated as \lor and read aloud as "or". For instance, the English language sentence "it is ...
"+" is replaced by the
XOR operator:
:
; Dual form: There is a dual form of the Shannon expansion (which does not have a related XOR form):
:
Repeated application for each argument leads to the
Sum of Products (SoP) canonical form of the Boolean function
. For example for
that would be
:
Likewise, application of the dual form leads to the
Product of Sums (PoS) canonical form (using the
distributivity law of
over
):
:
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
then
: If
then
: If
then
: If
then
; Characteristics of unate functions:
: If ''F'' is a
unate function and...
: If ''F'' is positive unate then
: If ''F'' is negative unate then
Operations with cofactors
; Boolean difference:
: The Boolean difference or
Boolean derivative of the function F with respect to the literal x is defined as:
:
; Universal quantification:
: The universal quantification of F is defined as:
:
; Existential quantification:
: The existential quantification of F is defined as:
:
History
George Boole
George Boole ( ; 2 November 1815 – 8 December 1864) was a largely self-taught English mathematician, philosopher and logician, most of whose short career was spent as the first professor of mathematics at Queen's College, Cork in Ireland. H ...
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),
and it was "widely applied by Boole and other nineteenth-century logicians".
Claude Shannon
Claude Elwood Shannon (April 30, 1916 – February 24, 2001) was an American mathematician, electrical engineer, computer scientist, cryptographer and inventor known as the "father of information theory" and the man who laid the foundations of th ...
mentioned this expansion, among other Boolean identities, in a 1949 paper,
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.
Application to switching circuits
#
Binary decision diagrams follow from systematic use of this theorem
# Any Boolean function can be implemented directly in a
switching circuit using a hierarchy of basic
multiplexer
In electronics, a multiplexer (or mux; spelled sometimes as multiplexor), also known as a data selector, is a device that selects between several Analog signal, analog or Digital signal (electronics), digital input signals and forwards the sel ...
by repeated application of this theorem.
References
{{Reflist, refs=
[{{cite book , author-first=Paul Charles , author-last=Rosenbloom , author-link=Paul Charles Rosenbloom , title=The Elements of Mathematical Logic , date=1950 , page=5]
[{{cite book , author-first=George , author-last=Boole , author-link=George Boole , title=An Investigation of the Laws of Thought: On which are Founded the Mathematical Theories of Logic and Probabilities , date=1854 , page=72 , url=https://books.google.com/books?id=SWgLVT0otY8C&pg=PA73]
[{{cite book , title=Boolean Reasoning - The Logic of Boolean Equations , author-first=Frank Markham , author-last=Brown , edition=reissue of 2nd , publisher= Dover Publications, Inc. , location=Mineola, New York , date=2012 , orig-year=2003, 1990 , isbn=978-0-486-42785-0 , page=42}]
https://web.archive.org/web/20170416231752/http://www2.fiit.stuba.sk/~kvasnicka/Free%20books/Brown_Boolean%20Reasoning.pdf -->
/ref>
[{{cite journal , author-last=Shannon , author-first=Claude , author-link=Claude Shannon , title=The Synthesis of Two-Terminal Switching Circuits , journal= Bell System Technical Journal , volume=28 , pages=59–98 2, date=January 1949 , doi=10.1002/j.1538-7305.1949.tb03624.x , issn=0005-8580 , url=https://archive.org/download/bstj28-1-59/bstj28-1-59.pdf]
[{{citation , title=A Survey of Literature on Function Decomposition , chapter=6. Historical Overview of the Research on Decomposition , version=Version IV , author-first1=Marek A. , author-last1=Perkowski , author-first2=Stanislaw , author-last2=Grygiel , publisher=Functional Decomposition Group, Department of Electrical Engineering, Portland University, Portland, Oregon, USA , date=1995-11-20 , citeseerx=10.1.1.64.1129 , page=21 (188 pages)]
See also
* Reed–Muller expansion
External links
Shannon’s Decomposition
Example with multiplexers.
Optimizing Sequential Cycles Through Shannon Decomposition and Retiming (PDF)
Paper on application.
Boolean algebra
Theorems in lattice theory