Boolean AlgebrasSlide 2Properties of a Boolean AlgebraSlide 4Slide 5Set-Theoretic InterpretationLogic InterpretationBinary InterpretationOther InterpretationsSlide 10ConnectionsDualityOther PropertiesSlide 14Slide 15ApplicationsBoolean AlgebrasLecture 24Section 5.3Wed, Mar 22, 2006Boolean AlgebrasIn a Boolean algebra, we abstract the basic properties of sets and logic and make them the defining properties.A Boolean algebra has three operators+ Addition (binary) Multiplication (binary)— Complement (unary)Properties of a Boolean AlgebraCommutative Lawsa + b = b + aa b = b aAssociative Laws(a + b) + c = a + (b + c)(a b) c = a (b c)Properties of a Boolean AlgebraDistributive Lawsa + (b c) = (a + b) (a + c)a (b + c) = (a b) + (a c)Identity Laws: There exist elements, which we will label 0 and 1, that have the propertiesa + 0 = aa 1 = aProperties of a Boolean AlgebraComplement Lawsa +a = 1a a = 0Set-Theoretic InterpretationLet B be the power set of a universal set U.Interpret + to be , to be , and — to be complementation.Then what are the interpretations of 0 and 1?The identity and complement laws would be interpreted asA 0 = A, A 1 = AA Ac = 1, A Ac = 0Logic InterpretationLet B be a collection of statements.Interpret + to be , to be , and — to be .Then what are the interpretations of 0 and 1?Again, look at the identity and complement laws.p 0 = p, p 1 = pp p = 1, p p = 0Binary InterpretationLet B be the set of all binary strings of length n.Interpret + to be bitwise “or,” to be bitwise “and,” and — to be bitwise complement.Then what are the interpretations of 0 and 1?Look at the identity and complement laws.x | 0 = x, x & 1 = xx | x = 1, x & x = 0Other InterpretationsLet n be any positive integer that is the product of distinct primes. (E.g., n = 30.)Let B be the set of divisors of n.Interpret + to be gcd, to be lcm, and — to be division into n.For example, if n = 30, then a + b = gcd(a, b)a b = lcm(a, b)a = 30/a.Other InterpretationsThen what are the interpretations of “0” and “1”?Look at the identity and complement laws.a + “0” = gcd(a, “0”) = a, a “1” = lcm(a, “1”) = a,a +a = gcd(a, 30/a ) = “1”, a a = lcm(a, 30/a) = “0”.ConnectionsHow are all of these interpretations connected?Hint: The binary example is the most basic.DualityOne can show that in each of the preceding examples, if we Reverse the interpretation of + and Reverse the interpretations of 0 and 1the result will again be a Boolean algebra.Other PropertiesThe other properties appearing in Theorem 1.1.1 on p. 14 can be derived as theorems.Double Negation Law aIdempotent Lawsa + a = aa a = aOther PropertiesUniversal Bounds Lawsa + 1 = 1a 0 = 0DeMorgan’s Lawsbabababa)()(Other PropertiesAbsorption Lawsa + (a b ) = aa (a + b ) = aComplements of 0 and 10 = 11 = 0ApplicationsThese laws are true for any interpretation of a Boolean algebra.For example, if a and b are integers, then gcd(a, lcm(a, b)) = alcm(a , gcd(a, b)) = aIf x and y are ints, thenx | (x & y) == xx & (x | y) ==
View Full Document