- Two-element Boolean algebra
In
mathematics andabstract algebra , the two-element Boolean algebra is the Boolean algebra whose "underlying set" (oruniverse or "carrier") "B" is theBoolean domain . The elements of the Boolean domain are 1 and 0 by convention, so that "B"={0,1}.Paul Halmos 's name for this algebra, 2, has some following in the literature and will be employed here.Definition
"B" is a partially ordered set and the elements of "B" are also its bounds.
An operation of
arity "n" is a mapping from "B"n to "B". Boolean algebra consists of twobinary operation s and unarycomplementation . The binary operations have been named and notated in various ways. Here they are called 'sum' and 'product', and notated by infix '+' and '.', respectively. Sum and product commute and associate, as in the usual algebra of real numbers. As for theorder of operations , brackets are decisive if present. Otherwise '.' precedes '+'. Hence "A.B + C" is parsed as "(A.B) + C" and not as "A.(B + C)". Complementation is denoted by writing an overbar over its argument. The numerical analog of the complement of "X" is 1-"X". In the language ofuniversal algebra , a Boolean algebra is a algebra of type .Either
one-to-one correspondence between {0,1} and {"True","False"} yields classicalbivalent logic in equational form, with complementation read as NOT. If 1 is read as "True", '+' is read as OR, and '.' as AND, and vice versa if 1 is read as "False".ome basic identities
2 can be seen as grounded in the following trivial "Boolean" arithmetic:
* 1+1 = 1+0 = 0+1 = 1
* 0.0 = 0.1 = 1.0 = 0
* 1.1 = 1
* 0+0 = 0
*
*Note that:
* '+' and .' work exactly as in numerical arithmetic, except that 1+1=1.'+' and '.' are derived by analogy from numerical arithmetic; simply set any nonzero number to 1.
* Swapping 0 and 1, and '+' and '.' preserves truth; this is the essence of theduality pervading all Boolean algebras.This Boolean arithmetic suffices to verify any equation of 2, including the axioms, by examining every possible assignment of 0s and 1s to each variable (seedecision procedure ).The following equations may now be verified:
*
*
*
*
*
*Each of '+' and '.' distributes over the other:
*
*That '.' distributes over '+' agrees withelementary algebra , but not '+' over '.'. For this and other reasons, a sum of products (leading to aNAND synthesis) is more commonly employed than a product of sums (leading to aNOR synthesis).Each of '+' and '.' can be defined in terms of the other and complementation:
*
* We only need one binary operation, andconcatenation suffices to denote it. Hence concatenation and overbar suffice to notate 2. This notation is also that of Quine'sBoolean term schemata . Letting ("X") denote the complement of "X" and "()" denote either 0 or 1 yields thesyntax of the primary algebra.A "basis" for 2 is a set of equations, called
axiom s, from which all of the above equations (and more) can be derived. There are many known bases for all Boolean algebras and hence for 2. An elegant basis notated using only concatenation and overbar is:
# (This axiom only serves to prove that concatenation commutes, associates)
# (2 is adistributive lattice )
# (the lattice 2 is complemented, with an upper bound of 1)
# (0 is the lower bound)This basis makes for an easy approach to proof, called calculation, that proceeds by simplifying expressions to 0 or 1, by invoking axioms (2)-(4), andA bit of metatheory
De Morgan's theorem states that if one does the following, in the given order, to anyBoolean function :
* Complement every variable;
* Swap + and . operators (taking care to add brackets to ensure the order of operations remains the same);
* Complement the result,the result is logically equivalent to what you started with. Repeated application of De Morgan's theorem to parts of a function can be used to drive all complements down to the individual variables.A powerful and nontrivial
metatheorem states that any theorem of 2 holds for all Boolean algebras. This theorem is useful because any equation in 2 can be verified by adecision procedure . Logicians refer to this fact as "2 is decidable". All knowndecision procedure s require a number of steps that is anexponential function of the number of variables "N" appearing in the equation to be verified. Whether there exists a decision procedure whose steps are apolynomial function of "N" falls under theP=NP conjecture.ee also
* (Simple English Wikipedia)
*Boolean algebra (introduction)
*Boolean algebra (logic)
*Boolean algebra (structure)
*Boolean domain
*Bounded set
*Lattice (order theory)
*Order theory References
Many elementary texts on Boolean algebra were published in the early years of the computer era. Perhaps the best of the lot, and one still in print, is:
* Mendelson, Elliot, 1970. "Schaum's Outline of Boolean Algebra". McGraw-Hill.The following items reveal how the two-element Boolean algebra is mathematically nontrivial.
*Stanford Encyclopedia of Philosophy : " [http://plato.stanford.edu/entries/boolalg-math/ The Mathematics of Boolean Algebra,] " by J. Donald Monk.
* Burris, Stanley N., and H.P. Sankappanavar, H. P., 1981. " [http://www.thoralf.uwaterloo.ca/htdocs/ualg.html A Course in Universal Algebra.] " Springer-Verlag. ISBN 3-540-90578-2.
Wikimedia Foundation. 2010.