CS 2742 (Logic in Computer Science) - Fall 2011: Antonina Kolokolova
CS 2742 (Logic in Computer Science) - Fall 2011: Antonina Kolokolova
Lecture 15
Antonina Kolokolova
October 20, 2011
46
Boolean algebra
As you have noticed, the algebra of sets is very similar to the algebra of propositions. This
is because they are all examples of boolean algebras.
Definition 2. A Boolean algebra is a set B together with two operations, generally denoted
+ and , such taht for all a and b in B both a + b and a b are in B and the following
properties hold:
Commutative laws: a + b = b + a and a b = b a.
Associative laws: (a + b) + c = a + (b + c) and (a b) c = a (b c).
Distributive laws: (a + b) c = a c + b c and a b + c = (a + c) (b + c) (recall that the
second one does not hold for the normal arithmetic + and ).
Identity laws: a + 0 = a and a 1 = a
Complement laws: for each a there exists an element called negation of a and denoted
a
such that a + a
= 1, a a
= 0.
In the case of propositional logic, 0 is F , 1 is T and there are no other elements, so it is
sufficient to say that T = F and F = T (in that setting, is used for complementation).
In set theory, 0 and 1 are and the universe U , respectively, and negation of every set is its
complement.
Now, properties of Boolean algebras such as DeMorgans law can be derived from these
axioms.
47