HTML Notes on Boolean Algebra
Boolean Algebra
Boolean algebras arise in a number of different ways.
Power Set of a Set
Given a set , we have certain algebraic operations on subsets of
. These are:
is the collection of all elements of
that are in
as well as
. It is called the intersection of the two subsets.
is the collection of all elements of
that are either in
or in
. It is called the union of the two subsets.
is the collection of all elements of
that are not in
. It is called the complement of the set
is the collection of all elements of
that are in
but not in
. This is called the difference of
from
.
There are some natural relations between these operations. For example,
Thus, all the operations can be defined in terms of and
. Moreover, we have relations like the following among these operations.
If we use to denote the collection of subsets of
, then these operations put an algebraic structure on
which makes it a "Boolean algebra".
Basic set-theory is all about finding out which identities are true in this Boolean algebra. In high-school, we learned to do these using Venn diagrams. This is not too difficult for identities involving 2 or 3 sets but becomes much more complicated after that. Hence, we will look at a different approach below.
Propositional Logic
Propositional logic deals with “propositions” (also called “statements” or “assertions”). These are statements that have definite true or false values. For example:
This is lecture hall 6
We are studying MTH102
It is cold in January in Mohali
We will denote propositions by capital letters of the Roman alphabet. Propositions can be combined to produce new propositions.
represents the combination
‘and’
. This proposition is only true when both
and
are true.
represents the combination
‘or’
. This proposition is true whenever either or both of
and
are true.
represents the negation of
(‘not’
). It is true exactly when
is false.
These are the basic operations of “Propositional Calculus”. We have some natural properties of these operations:
Further, if we use 0 for ‘false’ and 1 for ‘true’, then we have some more identities:
We note the similarity of these identities with those for the subsets of a set. In fact, if we replace with
,
with
and taking complements with negation, we have exactly the same relations as the ones above!
This shows that there is a common algebraic structure to both systems. In the next section, we will see how to understand this similarity conceptually.
In your course (IDC102) on electronics you must have encountered ‘nand’ gates which are defined by . You must have also learned that all other operations can be obtained from this by using the identities:
A construct called "Truth Tables" gives us a good way to check for the possible true/false values for an expression involving propositions ,
,
and so on. We put 0 or 1 as the value for each of the component propositions and look at the value of the combined statement. For this we need the basic table:
![]() |
![]() |
![]() |
![]() |
![]() |
---|---|---|---|---|
0 | 0 | 0 | 0 | 1 |
0 | 1 | 0 | 1 | 1 |
1 | 0 | 0 | 1 | 0 |
1 | 1 | 1 | 1 | 0 |
While this is more convenient than Venn diagrams, it is still cumbersome for combining a large number of basic propositions as the number of rows is when there are
component basic propositions.
Indicator functions
To see the algebraic structure in both cases above more clearly, we will look at them in a slightly different way.
Given a subset of
. For any element
of
, the statement
is a proposition which can be true or false. Moreover, we see that:
We can think of the possible truth values of the proposition corresponding to different
in
by think of a "variable"
. We are thus led to the
indicator function
of defined by:
It follows that is precisely the set of
for which
. Conversely, given a map
. The subset
of
is defined as the collection of elements
of
for which
.
It is clear that and
, so this is a natural one-to-one correspondence between functions from
to
and subsets of
.
We note that the above truth table for propositions has an analogue for the indicator function values:
![]() |
![]() |
![]() |
![]() |
![]() |
---|---|---|---|---|
0 | 0 | 0 | 0 | 1 |
0 | 1 | 0 | 1 | 1 |
1 | 0 | 0 | 1 | 0 |
1 | 1 | 1 | 1 | 0 |
However, there is a more convenient way of doing this using arithmetic.
where the operations on the right-hand side are the usual operations on functions. We note that the function is identically 1 for all elements of
, so it can also be called the constant function 1. Similarly, the indicator function
of the empty set takes the value 0 for all elements of
and can be considered as the constant function 0.
The usual sum of indicate functions is not an indicator function. Hence, it is convenient to define a new operation on
by the relations
This can also be seen as addition modulo 2. One can check that this addition has the usual properties with respect to multiplication on the set
.

Similarly, We also note that the following two useful identities hold.
Using these identifications, any operation involving subsets of
can be converted into an algebraic operation involving the associated indicator functions. This clearly makes calculations involving large numbers of sets easier to write down.
We note that the truth table for is:
![]() |
![]() |
![]() |
---|---|---|
0 | 0 | 0 |
1 | 0 | 1 |
0 | 1 | 1 |
1 | 1 | 0 |
This table is similar to the truth table for the "exclusive or" operation between propositions (sometimes called "xor") which we can thus denote also by . When
and
are propositions:
This can be written as . Thus if we use the suggestive notation
in place of
, then the above rules simplify into the familiar algebraic rules:
Along with these familiar rules, we have the slightly unfamiliar rules and
. This again allows us to replace calculations in propositional logic (also called propositional calculus) into algebraic calculations using the rules given above.
The notion of "Boolean Algebra" abstracts these two examples. We can define a Boolean algebra as a set
with two operations
for addition and
for multiplication. Moreover, there are elements
and
in
so that all the rules written above for propositions become true with these operations and these elements. In other words, we have the usual rules of addition and multiplication. Moreover, the special additional rules are
and
; these are what makes the algebra "Boolean".
For all practical purposes, we can think of a Boolean algebra as a sub-collection of which is closed under taking unions, intersections and complements and contains the set
as well. (Hence, it also contains the empty set which is the complement of
!)
Alternatively, we can think of a Boolean Algebra as a collection of combinations of statements which may turn out to be true or turn out to be false.