1 / 80

An introduction to Boolean Algebras

Lecture 3.1. Paolo PRINETTO Politecnico di Torino (Italy) University of Illinois at Chicago, IL (USA) Paolo.Prinetto@polito.it Prinetto@uic.edu www.testgroup.polito.it. An introduction to Boolean Algebras. Goal.

opal
Download Presentation

An introduction to Boolean Algebras

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Lecture 3.1 Paolo PRINETTO Politecnico di Torino (Italy)University of Illinois at Chicago, IL (USA) Paolo.Prinetto@polito.it Prinetto@uic.edu www.testgroup.polito.it An introduction to Boolean Algebras

  2. Goal • This lecture first provides several definitions of Boolean Algebras, and then focuses on some significant theorems and properties. • It eventually introduces Boolean Expressions and Boolean Functions.

  3. Prerequisites • Students are assumed to be familiar with the fundamental concepts of: • Algebras, as presented, for instance, in: • F.M. Brown: “Boolean reasoning: the logic of boolean equations,” Kluwer Academic Publisher, Boston MA (USA), 1990, (chapter 1, pp. 1-21)

  4. Prerequisites(cont’d) • Number systems and codes, as presented, for instance, in: • E.J.McCluskey: “Logic design principles with emphasis on testable semicustom circuits”, Prentice-Hall, Englewood Cliffs, NJ, USA, 1986, (chapter 1, pp. 1-28) or

  5. Prerequisites(cont’d) • [Haye_94] chapter 2, pp. 51-123 or • M. Mezzalama, N. Montefusco, P. Prinetto:“Aritmetica degli elaboratori e codifica dell’informazione”,UTET, Torino (Italy), 1989 (in Italian), (chapter 1, pp. 1-38).

  6. Homework • Prove some of the properties of Boolean Algebras, presented in slides 39 ÷ 59.

  7. Further readings • Students interested in a deeper knowledge of the arguments covered in this lecture can refer, for instance, to: • F.M. Brown: “Boolean reasoning: the logic of boolean equations,” Kluwer Academic Publisher, Boston MA (USA), 1990, (chapter 2, pp. 23-69)

  8. Outline • Boolean Algebras Definitions • Examples of Boolean Algebras • Boolean Algebras properties • Boolean Expressions • Boolean Functions.

  9. Boolean Algebras Definitions • Boolean Algebras are defined, in the literature, in many different ways: • definition by lattices • definition by properties • definition by postulates [Huntington].

  10. Definition by lattices • A Boolean Algebra is a complemented distributive lattice.

  11. Definition through properties • A Boolean Algebrais an algebraic system • ( B , + , · , 0 , 1 ) • where: • B is a set, called the carrier • + and · are binary operations on B • 0 and 1 are distinct members of B • which has the following properties:

  12. P1: idempotent •  a  B: • a + a = a • a · a = a

  13. P2: commutative •  a, b  B: • a + b = b + a • a · b = b · a

  14. P3: associative •  a, b, c  B: • a + (b + c) = (a + b) + c = a + b + c • a · (b · c) = (a · b) · c = a · b · c

  15. P4: absorptive •  a, b  B: • a + (a · b) = a • a · (a + b) = a

  16. P5: distributive • Each operation distributes w.r.t. the other one: • a · (b + c) = a · b + a · c • a + b · c = (a + b) · (a + c)

  17. P6: existence of the complement •  a  B,  a’  B | • a + a’ = 1 • a · a’ = 0. • The element a’ is referred to as complement of a.

  18. Definition by postulates • A Boolean Algebrais an algebraic system • ( B , + , · , 0 , 1 ) • where: • B is a set • + and · are binary operations in B • 0 and 1 are distinct elements in B • satisfying the following postulates:

  19. A1: closure •  a, b  B: • a + b B • a · b B

  20. A2 : commutative •  a, b  B: • a + b = b + a • a · b = b · a

  21. A3: distributive •  a, b, c  B: • a · (b + c) = a · b + a · c • a + b · c = (a + b) · (a + c)

  22. A4: identities •  0  B |  a  B, a + 0 = a •  1  B |  a  B, a · 1 = a

  23. A5: existence of the complement •  a  B,  a’  B | • a + a’ = 1 • a · a’ = 0.

  24. Some definitions • The elements of the carrier set B={0,1} are called constants • All the symbols that get values  B are called variables (hereinafter they will be referred to as x1, x2, , xn ) • A letter is a constant or a variable • A literal is a letter or its complement.

  25. Outline • Boolean Algebras Definitions • Examples of Boolean Algebras • Boolean Algebras properties • Boolean Expressions • Boolean Functions.

  26. Examples of Boolean Algebras • Let us consider some examples of Boolean Algebras: • the algebra of classes • propositional algebra • arithmetic Boolean Algebras • binary Boolean Algebra • quaternary Boolean Algebra.

  27. The algebra of classes • Suppose that every set of interest is a subset of a fixed nonempty set S. • We call • S a universal set • its subsets the classes of S. • The algebra of classes consists of the set 2S (the set of subsets of S) together with two operations on 2S , namely union and intersection.

  28. The algebra of classes (cont'd) • This algebra satisfies the postulates for a Boolean Algebra, provided the substitutions: • B  2S • +   • ·   • 0   • 1  S • Thus, the algebraic system • ( 2S, , , , S ) • ia a Boolean Algebra.

  29. Propositions • A proposition is a formula which is necessarily TRUE or FALSE (principle of the excluded third), but cannot be both (principle of no contradiction). • As a consequence, Russell's paradox : • “this sentence is false” • is not a proposition, since if it is assumed to be TRUE its content implies that is is FALSE, and vice-versa.

  30. Propositional calculus • Let: • P a set of propositional functions • F the formula which is always false (contradiction) • T the formula which is always true (tautology) •  the disjunction (or) •  the conjunction (and) •  the negation (not)

  31. Propositional calculus (cont'd) • The system • ( P,  , , F , T ) • is a Boolean Algebra: • BP • + • ·  • 0F • 1T

  32. Arithmetic Boolean Algebra • Let: • n be the result of a product of the elements of a set of prime numbers • D the set of all the dividers of n • lcm the operation that evaluates the lowest common multiple • GCD the operation that evaluates the Greatest Common Divisor.

  33. Arithmetic Boolean Algebra (cont'd) • The algebraic system: • ( D, lcm, GCD, 1, n ) • Is a Boolean Algebra: • BD • +lcm • · GCD • 01 • 1n

  34. · 0 1 0 0 0 1 0 1 + 0 1 0 0 1 1 1 1 Binary Boolean Algebra • The system • ( {0,1} , + , · , 0 , 1 ) • is a Boolean Algebra, provided that the two operations + and · be defined as follows:

  35. Quaternary Boolean Algebra • The system • ( {a,b,0,1} , + , · , 0 , 1 ) • is a Boolean Algebra provided that the two operations + and · be defined as follows: • + 0 a b 1 · 0 a b 1 • 0 0 a b 1 0 0 0 0 0 • a a a 1 1 a 0 a 0 a • b b 1 b 1 b 0 0 b b • 1 1 1 1 1 1 0 a b 1

  36. Outline • Boolean Algebras Definitions • Examples of Boolean Algebras • Boolean Algebras properties • Boolean Expressions • Boolean Functions.

  37. Boolean Algebras properties • All Boolean Algebras satisfy interesting properties. • In the following we focus on some of them, particularly helpful on several applications.

  38. The Stone Representation Theorem • “Every finite Boolean Algebra is isomorphic to the Boolean Algebra of subsets of some finite set ”. [Stone, 1936]

  39. Corollary • In essence, the only relevant difference among the various Boolean Algebras is the cardinality of the carrier. • Stone’s theorem implies that the cardinality of the carrier of a Boolean Algebra must be a power of 2.

  40. Consequence • Boolean Algebras can thus be represented resorting to the most appropriate and suitable formalisms. • E.g., Venn diagrams can replace postulates.

  41. Duality • Every identity is transformed into another identity by interchanging: • + and · •  and  • the identity elements 0 and 1.

  42. Examples • a + 1 = 1 • a · 0 = 0 • a + a’ b = a + b • a (a’ + b) = a b • a + (b + c) = (a + b) + c = a + b + c • a · (b · c) = (a · b) · c = a · b · c

  43. The inclusion relation • On any Boolean Algebra an inclusion relation (  ) is defined as follows: • a  b iff a · b’ = 0.

  44. Properties of the inclusion relation • The inclusion relation is a partial order relation, i.e., it’s: • reflexive : a  a • antisimmetric : a  b e b  a  a = b • transitive : a  b e b  c  a  c

  45. The inclusion relation in the algebra of classes • The relation gets its name from the fact that, in the algebra of classes, it is usually represented by the symbol  : • A  B  A  B’ =  A B

  46. The inclusion relation in propositional calculus • In propositional calculus, inclusion relation corresponds to logic implication: • a  b a  b

  47. Note • The following expressions are all equivalent: • a  b • a b’ = 0 • a’ + b = 1 • b’  a’ • a + b = b • a b = a .

  48. Properties of inclusion • a  a + b • a b  a

  49. Complement unicity • The complement of each element is unique.

  50. Involution • (a’)’ = a

More Related