Module 2 Part 1
Module 2 Part 1
SocLuan ngbe Boolcan algcbra, like any other deductive mathematical system, may be deined with a
3et 9 eumenk set of elements, a set of operators, and a number of unproved axioms or postulates. A
set of elements is any collection of objects having a common property If S is a set, and
Cpealts Xand y are certain objects, then x E S denotes that .x is a member of the set S, and
y Sdenotes that v is not an element ofS. A set with a denumerable nunber of ele
ments is specifed by braces: A = (1, 2, 3, 4}. i.e., the elements of set A are the num
bers 1, 2, 3, and 4. binary operator defined on a set S of elements is a rule that as
signs t0 cach pair of elennents from S a unique element from S. As an examplc.
pesllae) consider the relation a* b c. We say that * is a binary operator if it speciies a rule
for find1ng c from the pair (a, b) and also if a, b, cE S. However, * is not a binary
operator if a, b E S, whereas the rule finds c S.
Postulates The postulates of a mathematical system form the basic assumptions from which it is
possible to deduce the rules, theorems, and properties of the system. The most com
mon postulates used to formulate various algebraic structures are:
1. Closure. A set S is closed with respect to a binary operator if, for every pair of
elements of S, the binary opertor specihes a rule tor obBa1ning aunique element
of S. For exanple. the sct of natural numbers N= (1. 2. 3, 4, }is closed
cossd with respect to the binary operalor plus (+) by the rules of arithmetic addition,
since for any a, hE Nwe obtain a unique c E N by the operationu t b = c.
Not The set of natural numbers is not closed with respect to the binary operutor minus
cosd?(-)by the rules of arithnmetic subtraction because 2 3=-| and 2, 3 E N.
while (-) N.
36
R o o l tA
(1. (a) Closure with respect to the operator +.
P o s lt
ae la
asn
lgbxa
-51;4 3
39
Sectlon 2-2 Axtomatte DeMnition of Boolearn Algebra
ordinary algcbra to deal with Boolean algebra, thc beginner Dust be careful not to sub
stitute the rules of ordinary algebra where they are not applicable.
It is important to distinguish between the elements of the set of an algebraic struc
ture and the variabies of an algebraic system. For example, the elernents of the field ot
real numbers are numbers, whercas variablcs such as a, b, c, etc., used in ordinary al
gebra, are symbols that stand for rcal numbers. Similarly in Boolean algebra, one
defines the clements of the set B, and variables such as x, y, z are merely symbols that
represent the elements. At this point, it is important to rcalize that jn order to have a_
Boolean algebra, one must show:
1. the clements of the set B,
2. the rules of opcration for the two binary operators, and
3. that the set of elements B, together with the two operators, satisfies the six Hunt
ington postulates.
One can formulate many Boolean algebras, depending on the choice of elements of
B and the rules of operation. In our subsequent work, we deal only with atwo-valued
Boolean algebra, i.e., one with onlytwo elements, Two-valued Boolean algebra has ap
plications in set theory (the algebra of classes) and in propositional logic. Our interest
here is with the application of Boolean algebra to gate-type circuits.
0 1 0 1 1 1
0
1
These rules are exacily the sanme as the AND, OR,and NOT operations, respectively,
defined in Table 1-6. We must now show that the Huntinglon postulates are valid for
the set B = (0, l} and the two binary operators deñned before.
1. Closure is obvious from the tables since the result of each operation is either l or
0and I, 0 E B.
2. From the tables we see that Ideonly elonent
(a) 0 + 0 = 0 0 + 1a |+ 0= 1
(b) I ! = | |0= 0 1= 0
which establishes the two identity elements 0for t and Ifor as defined by pos
tulate 2.
40 Chapter 2 Boolean Algebra and Logle Gates
3. The
bles.
commutalive laws are obvIOUs from the symmetry of the
binary operator ta
4. (a) Thc
distributive law a (y t ¿) - (av) t (az) can be
from thc operator tables by forming a truth shown to hold true
table of all
and . For each
combination, we derive x (y + z) and possiblc valucs of x, y.
show that the valuc is
the same as (x y) + (* z).
2 yt
0 0 0
1
1
1 1
1 1
(b) The distributive law of + over can be shown to holò true by means o a
truth table similar to the one above.
5. From the complement table it is casily shown that
(a) x + r'=1, since 0+ 0' = 0 t I= land ] + 1' = | + 0 = I
(b) x*' = 0, since 0-0' = 0:1= 0 and I )'=|0 = 0, which verites
postulatc 5.
6. Postulate 6 is satistied because the two-valued Boolean algebra has two distinct el
ements, Iand 0, with l # 0.
We have just established a two-valued Boolean algebra having a set of two clernents,
]and 0, (wo binary operators with operation rules cquivalent to the AND and OR op
erations, and a complement operator equivalent to the NOT operator. Thus,Boolcan al
gebra has been defined in a formal mathematical manner and has been shown to be
equivalent to the binary logic presented heuristically in Section 1-9. The heuristic pre
sentation is helpful in understanding the applicationof Boolcan algcbra to gate-type cir
cuits. The formal presentation is necessary for developing the theorems and properties
of the algebraic system. Thetwo valued Boulean algebra detined in this section is also
called switching algebra" by engineers. To emphasize the siilarities between two
valued Boolean algehra and other binary systems, this algebra was called "bingry logic"
in Section -9. From bere on, we shall drop the adjective "two-valued" irom Boolean
algebra in subsequent discussions.
Sectlon 2-3 Basiec Theorems and Propertles of Boolean Algebra 41
2-3 BASIC THEOREMS AND
OF BOOLEAN ALGEBRAPROPERTIES
Basic Theorems
Table 2-1 lists six theorems of Boolean algebra and for of its postulates. The notation
is simplified by omitting the whencver this does not lead to confusion. The theorems
and postutates listed are the most basic relationships in Boolean algebra. The reader is
advised to become familiar with them as soon as possible. The theorems, like the pos
tulates, are listed in pairs; each relation is the dualof the one paired with it. The postu
Jates are basic axioms of the algebraic structure and need no proof. The theorems must
be proven from the postulates. The proofs of the theorems with one variable are pre
senied below. At the right is listed the number of the postulate that justifies each step of
the proof.
TABLE 2-1
Postultes and Theorems of Boolean Algebra
4 postubhes, u b h a ,
(b) x = x
Postulate 5 (a) x + x'= l (b) xx= 0
Theorem 1 ídempcbncy (a) x + r x
Theorem 2 (a) x + | 1 (b) x0 0
Theorem 3, involution (r')' =
Postulate 3, commutative (a) x +y y t x (b) xy yx
Theoren 4, associative (a) x + (y + z) = (I + y) + z (b) x(y:) = (ry)z
Postulae 4, distributive (a) x(y + ) = ry + *z (b) x + yz = (x t y)x t )
Theorem 5, DeMorgan (a) (r + y' x'y' (b) (xy)' x'+ y
Theorem 6, absorption (a) x t xy K (b) x( + y) =x
Chapter 2 Boolean Algebra and LogicGater
42
THEOREM 1|a): xt*=.
t )1 by postulate: 2(b)
5(a)
4(b)
X+ 0 5/6)
21a)
THEOREM 1{b|: xx=x.
by postulate: 2(a)
S(b)
4{a)
5(2)
2(6)
Note that theorcm 1{b) is the dual of theorem l(a) and that each step of the proof in
pari (b) is the dual of part (a). Any dual theoren: can be similarly derived from the
proof of its corresponding pair.
THEOREM 2(aj: t 1 = 1.
by postulate: 2(b)
= (a t xx t ) 5(a)
4(b)
2(b)
5(a)
PooaySBasBing.-grom.the..kHS.
À.=A+o..Cby. ldarnty. laws,.a+0.n0)
= A: lompemeot.Jaus, aã a
=7+n) (Ã+Â).(usiog.disimhuhxe.auo,
-( J..ustog.Lomplemest.auc,
.Complment. aw,
0t.Q.=)..
=A+ (A:
-AtA.:6).(asing. Canmeatatue.las,
a.At0..using.Comdema.as,aa-0
A Hence..poved.
Memo No.
Mo Tu We Th Fr Sa Su Date
Consersus. he Ore>/.
Recluncay Iwcacre.
AB+.A.+.Bc=.ABtDe.
Th..onsenSus..ba. hesolvent
.O...hedundant..).tu..sms..Aß.
.and..Á.C..s..BC.
Condihox\S.
angy..dhORm..ae
D3.vajabls..mt. be.psseot. kD
(k...CxpAssian.
..a)..Cach..vaiabe..cis.. opeaud. teoite
3)..Cs..koiabu..out. be. co..Come
Nnlbd..CAO.
L'ooa... ket..Y.z. AB.+.ÔGt BG.
=...ABtÐG tBC:L.(Ca.ideohky law)
lau
.ABtÔc.t. BC.CAt Lapemaot la)
AB.+Ô..t. ABG.+. ÔBL (Dismbubve loy
.=.AB.tABC..t.ÔctÔBC..(Atsa.Acrag
=RBU+).+.ÔcCitB)..((Distnhubve lae)
=.AB.t.'.c.. .Hlera..DVd..
2-4 BOOLEAN FUNCTIONS
Abinary variable can take the value of Oor 1. A Boolcan function is an expression
DRoy Vuctt formed with binary variablcs,the two binary operatorsOR and AND, and unary oper
alor NOT, parentheses, and an cqual sign. For a given value of the variables, thefunc
)Bna ORJoy tion can be either Oor l. Consider, for example, the Boolean function
F = yz
) hasy Cpexcuo The funcion F, is cquai to l ifx= 1and y = 1 and z' = 1; otherwise Fi = 0. The
above is an example of a Boolcan function reprcsented as an algebraic expressíon. A
Boolean function may also be represented in a truth table. To represent a function in a
truth table, we need a list of the 2" combinations of 1's and 0's of the n binary vari
5) eqal Sign ables, and a column showing the combinations for which the function is equal to 1 or 0.
As shown in Tablc 2-2, there arc cight possible distinct combinations for assigning bits
to thrce variables. The column labeled F contains either a 0 or a 1for each of these
combinations. The table shows that the function F is equal to 1only when x = 1,
y= 1,and z = 0. It is equal to0 otherwise. (Note that the statement 2' = I is equiva
lent to saying that z 0.) Consider now the function
TARLE 2-2
Trth Tables for F y ' , F =X+ y'
F x'ye + *'y + y', and F, = y' + x'z
F F
0 0 1 1 1
0
0
1 1
1 1 1
1 1 0
1 0 0
46 Chapter 2 Boolean Algebraand Logic Gate:
E, = 1if x = 10f it y 0,
and vz = 01 in rOWs 001 andwhile
z = 1, In Table 2-2. x = I in
101. The latter combination appliesthealso
last four rOws
for x = 1.
Therefore. there are five combinations that make F =1. As a third
the function example, consider
F, -sy'z + x'yz + xy ' Hw
This is shown in Table 2-2 with four l's and four 0's. F, is the same as F,
ered below. and is consid
Any Boolean function can be represcnted in a truth table. The number of rows in the
Nole tablc is 2", where n is the nunber of binary variables in the function. The I's and 0's
combinations ior cach row is casily obtained from the binary numbers by counting
from 0to 2 1. For cach row of the table, there is a value for the function equal to
either 1or 0.(The question now arises, is it possible to find two algebraic expressions
th¡t specify the same function? The answer to this question is yes. As a matter of fact,
the manipulationof Boolean algebra is applied mostly to the problem of finding simpler
expressions for the same function. Consider, for example, the function:
F, = xy + x'z
From Table 2-2. we find that F, is the same as Fs,since both have identical I's and O's
for each combination of values of the three binary variables.(In general, two functions
of n binary variables are said to be equal if they have the same value for all possibie 2"
combinations of the n variables. )
A Boolean tunction may be ransformcd from an algebraic Cxpression into a logic di
agram conposcd of AND, OR,and NOT gates. The implementation of the four func
Coats tions introduced in the previous discussion is shown in Fig. 2-4. The logic diagram in
cudes an inverter circuit for every variable present in its complement form. (The
inverter is unnecessary if the complement of the variable is availabje.) There is an
AND gate for each term in the expression, and an OR gate is used to combine two or
more terms. From the diagrarmns, it is obvious that the implementation of F, requires
fewer gates and fewer inputs than F. Since F, and F, are equal Boolean functions, it is
more economical to implement the F. form than the F, form. To find simpler circuits,
one must know howto manipulate Boolean functions to obtain equal and simpler ex
pressions. What constitutes the best form of a Boulean function depends on the particu
lar application. Inthis section, consideration is given to the criterion of equipnent min
imization.
Algebraic Manipulation
A literal is a primed or unprimed variable. When aBoolean function is in1plemented
with logic gates, cach literal in the function designates an input to agate, and each term
is implenented with a gate. The minimization of the number of literals and the number
of terms results in a circuit with less equipment. It is not always possiblc to minimize
both simuitaneously, usually , turther criteria must be available At the moment, we
Sectlan 24 Boolean Fnctlons
(a) F, = *ye
(b) F, =*+y
shall narrow the minimization criterion to literal ninimizatiog. We shall discuss other
criteria in Chapter 5. The number of Jiterals in a Boolean function can be mininized by
algebraic manipulations. Unfartunately, there are no speciñc rules to follow that will
guarantee the final answer. The only method available is a cut-and-try procedure em
ploying the postulates, the basic theorems, and any other manipulation method that be.
comes familiar with use. The following examples illustrate this procedure.