Content

Boolean Algebra 2

It's algebra, Jim, but not as we know it

Although we appear to be going off in a completely new direction, we will get back to switching circuits . When we do we will have powerful, algorithmic, tools for producing the simplest switching circuits for any specified problem. We have already cheated by using these tools in some of the answers to the problems of the last section.

As we know, one rather odd thing happens with the zeros and ones that we used in the switching circuits . Everything looks normal when you multiply. You would expect and get

\[0 \times 0 = 0; \quad 0 \times 1 = 0 =1 \times 0;\quad \mbox{ and } 1 \times 1 = 1.\]

But addition throws up something new. Sure

\[0 + 0 = 0;\quad 0 + 1 = 1 = 1 + 0; \]

But 1 + 1 = 1! This is not what you might have guessed ahead of time. After all we normally get 1 + 1 = 2 and in arithmetic base 2, 1 + 1 = 0. However, 1 + 1 = 1 is quite different.

On the other hand, there are other places where sort of 1 + 1 is 1, but you might not have thought of it that way. Think about set theory. If you have the set of all sets contained in some set $I$, the power set of $I$, then the union of $I$ with itself is $I$. So$ I \cup I = I$. If we think of union as being addition does it give us the arithmetic above that we got for zeros and ones?

Ah, but $I \cap I = I$ too. Would we be better off using intersection for addition if we want to find another example of 1 + 1 = 1?

Questions

  1. Check out union and intersection to see which is the best parallel to addition of the zeros and ones in switching circuits.
  2. Does either of union or intersection parallel multiplication?
  3. If $A$ is a subset of $I$, then what is $A \cup I$ and $A\cap I$. Do either of these look like addition or multiplication by multiplication by 1?
  4. Is there anything else that our zeros and ones have that sets have? What properties does the 'anything else' have? Are these consistent with the zeros and ones?

It turns out that we have stumbled into a whole new ballgame. The zeros and ones we started with and the sets we looked at next, are all examples of a useful axiomatic system that contains lots of examples other than the two we have been playing with. This axiomatic system is called Boolean algebra (see https://en.wikipedia.org/wiki/Boolean_algebra).

A Boolean algebra, $B$, is a set $B$ on which operations $+, \times$ and complementation are defined along with a zero and a one, which satisfy the following axioms.

Questions

  1. Test those axioms out on the 0 and 1 of switching circuits.
  2. What are the complements of 0 and 1 in any Boolean algebra $B$?
  3. Let $I = \{x, y\}.$ Check that $B = \{\emptyset, \{x\}, \{y\}, I\}$ is a Boolean algebra. What are + and $\times$? How does this change if $I$ is any set?
  4. Let $B =\{1, p, q, pq\}$ where $p$ and $q$ are distinct prime numbers. Let + be the least common multiple of two members of $B$ and $\times$ be their greatest common divisor. In order to make $B$ a Boolean algebra, what are 0, 1 and the complements of all the elements of $B$?
    How can this be generalised? Do you need $p$ and $q$ to be primes? Could you make a Boolean algebra from $ \{1, p, \dots, pqr\}$ where $p$, $q$ and $r$ are all distinct prime numbers? Do you need the primes to be distinct?
  5. What other Boolean algebras can you discover?

Before you think that we are still right off track, we should say that this is actually going to be very useful for switching circuits. But there is more to deal with before we can get to that point. In fact, for a time, we are going to delve in the life of a pure mathematician. There may have been quite a lot of things that you have been assuming about Boolean algebras that are true but which need to be supported by the axioms. If they aren't, they are not true and you shouldn't have been using them. So what would a pure mathematician say? What would one of these rare creatures worry about?

First worry: $ x + x = x$. It's clearly true in our switching circuits that two of the same switches in parallel are the same as just one on its own. It also works for the power set (see the answer to Q7) of a set. Does it work for all of the other Boolean algebras that you now know? Alright, BUT it's not an axiom! So how do we know it's true for all Boolean algebras? Well, is it supported by the axioms? Let's look.

\begin{alignat*}{3} x + x &= (x + x) \times 1 && \qquad \mbox{(this is OK by axiom 6)}\\ &= (x + x) \times (x + x') && \qquad\mbox{(axiom 8)}\\ &= x + (x \times x') && \qquad \mbox{(axiom 5)}\\ &= x + 0 &&\qquad\mbox{(axiom 8)}\\ &= x &&\qquad\mbox{(axiom 6)} \end{alignat*}

The problem here is how do you choose the right path to go down? What axioms do you need and in what order? There's no really good answer to this. You just have to play around for a start until you have a better intuition of the axioms. Then you have to play around till you get the right ones. It looks as if there isn't an algorithm that might help you.

Second worry: $x \times x = x$. Does it seem to be true? Try it.

\begin{alignat*}{2} x \times x & = x \times x + 0 &\qquad \mbox{(axiom 6)}\\ &= x \times x + x \times x' &\qquad \mbox{(axiom 8)}\\ &= x \times (x + x') &\qquad \mbox{(axiom 5)}\\ &= x \times 1 &\qquad \mbox{(axiom 8)}\\ &= x &\qquad \mbox{(axiom 6)} \end{alignat*}

There are more worries in the next set of questions.

Questions

  1. Prove the following equalities are true for the Boolean algebras that you know. Prove that they must always be true in every Boolean algebra.
    1. $x + 1 = 1;$
    2. $x \times 0 = 0; $
    3. $x \times (x + y) = x;$
    4. $x + (x \times y) = x$.
  2. Which of the following are true? Prove those. Which of the following are false? Say why that is the case? Are they true in some Boolean algebra?
    1. $x = x'$;
    2. $(x')' = x;$
    3. in some Boolean algebras $x'$ is not unique
  3. Prove that $(x + y)' = x' x y'$.

A mathematical note

In your role as pure mathematician you may have noticed some symmetry in what has been going on. It looks as if we have a result in Boolean algebra and we interchange + and $\times $, and 0 and 1, then we get a new result that it also true. This is called the principle of duality and it is sometimes useful as it reduces the number of things that you need to prove for any conjecture in Boolean algebra. Check that the axioms show this principle. So now worry on.

Questions

  1. What is the dual of the equality in Q24? Check this for the Boolean algebras that you know.
  2. Show that in a Boolean algebra
    1. $x + (x \times b) = x$
    2. $x + (x' \times x) = x + x$
    State and prove the dual of a and b. Show that each step in the proofs of the duals of a and b corresponds to a dual in the proofs of a and b.
  3. Go through the axioms of Boolean algebra and apply the principle of duality. Hence by adding one new axiom, reduce the length of as many of the axioms as possible.

In Boolean algebra you may have met an abstract quantity defined by axioms for the first time. It turns out that there are a whole host of them in what is known as Abstract Algebra. Things such as groups, rings and fields are also defined by sets of axioms. All of these objects arose in attempts to generalise something that occurred naturally. For example, groups (see https://en.wikipedia.org/wiki/Group_(mathematics)) have only one operation and could be thought of as generalisations of the integers with addition being the only operation; rings (see https://en.wikipedia.org/wiki/Ring_(mathematics)) have two operations and are generalisations of the integers with two operations, addition and multiplication; and fields (see https://en.wikipedia.org/wiki/Field_(mathematics)) again have two operations and have developed from the rational numbers with addition and multiplication. Like Boolean algebra, generalisations have been studied by pure mathematicians and have applications outside mathematics.

Using `$\times$' for multiplication is beginning to get tedious. In normal arithmetic we avoid this tedium by replacing $x \times y$ by $xy$. Let's do this from here on.

Questions

  1. Simplify
    1. $(x + y' + z')(x' + y)(x' + z)$
    2. $xy + xy' + x'+ y$
    3. $xz' + xyz'+ z$.

Next page - Content - Switches again