Skip to main content
Logo image

Applied Discrete Structures

Section 13.3 Boolean Algebras

In order to define a Boolean algebra, we need the additional concept of complementation. A lattice must have both a greatest element and a least element in order for complementation to take place. The following definition will save us some words in the rest of this section.

Definition 13.3.1. Bounded Lattice.

A bounded lattice is a lattice that contains both a least element and a greatest element.
We use the symbols 00 and 11 for the least and greatest elements of a bounded lattice in the remainder of this section.

Definition 13.3.2. The Complement of a Lattice Element.

Let [L;,] be a bounded lattice. If aL, then a has a complement if there exists bL such that
ab=11andab=00
Notice that by the commutative laws for lattices, if b complements a, then a complements b.

Definition 13.3.3. Complemented Lattice.

Let L=[L;,] be a bounded lattice. L is a complemented lattice if every element of L has a complement in L.

Example 13.3.4. Set Complement is a Complement.

In Chapter 1, we defined the complement of a subset of any universe. This turns out to be a concrete example of the general concept we have just defined, but we will reason through why this is the case here. Let L=P(A), where A={a,b,c}. Then [L;,] is a bounded lattice with 0= and 1=A. To find the complement, if it exists, of B={a,b}L, for example, we want D such that
{a,b}D=and{a,b}D=A
It’s not too difficult to see that D={c}, since we need to include c to make the first condition true and can’t include a or b if the second condition is to be true. Of course this is precisely how we defined Ac in Chapter 1. Since it can be shown that each element of L has a complement (see Exercise 1), [L;,] is a complemented lattice. Note that if A is any set and L=P(A), then [L;,] is a complemented lattice where the complement of BL is Bc=AB.
In Example 13.3.4, we observed that the complement of each element of L is unique. Is this always true in a complemented lattice? The answer is no. Consider the following.

Example 13.3.5. A Lattice for which complements are not unique.

Let L={1,2,3,5,30} and consider the lattice [L;,] (under “divides”). The least element of L is 1 and the greatest element is 30. Let us compute the complement of the element a=2. We want to determine a¯ such that 2a¯=1 and 2a¯=30. Certainly, a¯=3 works, but so does a¯=5, so the complement of a=2 in this lattice is not unique. However, [L;,] is still a complemented lattice since each element does have at least one complement.

Definition 13.3.6. Complementation as an operation.

If a complemented lattice has the property that the complement of every element is unique, then we consider complementation to be a unary operation. The usual notation for the complement of a is a¯.
The following theorem gives us an insight into when uniqueness of complements occurs.

Proof.

Let aL and assume to the contrary that a has two complements, namely a1 and a2. Then by the definition of complement,
aa1=0 and aa1=1,andaa2=0 and aa2=1,.
Then
a1=a111=a1(aa2)=(a1a)(a1a2)=00(a1a2)=a1a2
On the other hand,
a2=a211=a2(aa1)=(a2a)(a2a1)=00(a2a1)=a2a1=a1a2
Hence a1=a2, which contradicts the assumption that a has two different complements.

Definition 13.3.8. Boolean Algebra.

A Boolean algebra is a lattice that contains a least element and a greatest element and that is both complemented and distributive. The notation [B;,,¯] is used to denote the boolean algebra with operations join, meet and complementation.
Since the complement of each element in a Boolean algebra is unique (by Theorem 13.3.7), complementation is a valid unary operation over the set under discussion, which is why we will list it together with the other two operations to emphasize that we are discussing a set together with three operations. Also, to help emphasize the distinction between lattices and lattices that are Boolean algebras, we will use the letter B as the generic symbol for the set of a Boolean algebra; that is, [B;,,¯] will stand for a general Boolean algebra.

Example 13.3.9. Boolean Algebra of Sets.

Let A be any set, and let B=P(A). Then [B;,,c] is a Boolean algebra. Here, c stands for the complement of an element of B with respect to A, AB.
This is a key example for us since all finite Boolean algebras and many infinite Boolean algebras look like this example for some A. In fact, a glance at the basic Boolean algebra laws in Table 13.3.11, in comparison with the set laws of Chapter 4 and the basic laws of logic of Chapter 3, indicates that all three systems behave the same; that is, they are isomorphic.

Example 13.3.10. Divisors of 30.

A somewhat less standard example of a boolean algebra is derived from the lattice of divisors of 30 under the relation “divides”. If you examine the ordering diagram for this lattice, you see that it is structurally the same as the boolean algebra of subsets of a three element set. Therefore, the join, meet and complementation operations act the same as union, intersection and set complementation. We might conjecture that the lattice of divisors of any integer will produce a boolean algebra, but it is only the case of certain integers. Try out a few integers to see if you can identify what is necessary to produce a boolean algebra.
Table 13.3.11. Basic Boolean Algebra Laws
Commutative Laws ab=ba ab=ba
Associative Laws a(bc)=(ab)c a(bc)=(ab)c
Distributive Laws a(bc)=(ab)(ac) a(bc)=(ab)(ac)
Identity Laws a0=0a=a a1=1a=a
Complement Laws aa¯=1 aa¯=0
Idempotent Laws aa=a aa=a
Null Laws a1=1 a0=0
Absorption Laws a(ab)=a a(ab)=a
DeMorgan’s Laws ab=a¯b¯ ab=a¯b¯
Involution Law a¯=a
The “pairings” of the boolean algebra laws reminds us of the principle of duality, which we state for a Boolean algebra.

Definition 13.3.12. Principle of Duality for Boolean Algebras.

Let B=[B;,,c] be a Boolean algebra under , and let S be a true statement for B. If S is obtained from S by replacing with (this is equivalent to turning the graph upside down), with , with , 00 with 11, and 11 with 00, then S is also a true statement in B.

Exercises Exercises

1.

Determine the complement of each element BL in Example 13.3.4. Is this lattice a Boolean algebra? Why?
Answer.
B Complement of B{a}{b}{c}{a,b}{a,c}{b,c}AA{b,c}{a,c}{a,b}{c}{b}{a}
This lattice is a Boolean algebra since it is a distributive complemented lattice.

2.

  1. Determine the complement of each element of D6 in [D6;,].
  2. Repeat part a using the lattice in Example 13.2.5.
  3. Repeat part a using the lattice in Exercise 13.1.1.
  4. Are the lattices in parts a, b, and c Boolean algebras? Why?

4.

Let A={a,b} and B=P(A).
  1. Prove that [B;,,c] is a Boolean algebra.
  2. Write out the operation tables for the Boolean algebra.

5.

It can be shown that the following statement, S, holds for any Boolean algebra [B;,,] : (ab)=a if and only if ab.
  1. Write the dual, S, of the statement S.
  2. Write the statement S and its dual, S, in the language of sets.
  3. Are the statements in part b true for all sets?
  4. Write the statement S and its dual, S, in the language of logic.
  5. Are the statements in part d true for all propositions?
Answer.
  1. S:ab=a if ab
  2. The dual of S:AB=A if AB is S:AB=A if AB
  3. Yes
  4. The dual of S:pqp  if pq is S:pqp if qp
  5. Yes

6.

State the dual of:
  1. a(ba)=a.
  2. a((b¯a)b)=1.
  3. (ab¯)b=ab.

7.

Formulate a definition for isomorphic Boolean algebras.
Answer.
[B;,,] is isomorphic to [B;,,~] if and only if there exists a function T:BB such that
  1. T is a bijection;
  2. T(ab)=T(a)T(b) for all a,bB
  3. T(ab)=T(a)T(b) for all a,bB
  4. T(a¯)=T(a)~ for all aB.

8.

For what positive integers, n, does the lattice [Dn,] produce a boolean algebra?
You have attempted of activities on this page.