Lesson 2 - Boolean Algebra
Lesson 2 - Boolean Algebra
1.ClosAre A set S clottd with reupect to a binary epcroior i, 4.ldenhity Element A set Sis said to be an ldenhity ttment with respect ha lo.Dustributive Lauw IF ond ore 2 binany operators
Is said to be distnbuhivt ovtr whtntvir
on a t+ ,
hr voy poir of cements of S, the binory opcrator specifies a rule binany operohionon S if there exisiS an eemtnt e ¬ with the propert
r
obtaining a
unique ckmtnt of that X e x t o r evtry 2 ES
Exampie: Set of natural nbs
1.2.3.4 is cloed with
Exampie: The temet 0 ii an idtnhHy tHment with reupect to the
o n the
apect fo bino optrator by the rues of orithmehc binony optrator set of in kgrrs
oddition,sinu, for ony .b EN, thatii a unique C EN 3,2,1 D.1,245, Sint
Suth that asbs C. Tht stt of notural numbert 5 Nr
clostd with respect to binany optra tor by thc rults +00 x x for ony xe
of avithmeHe substrachon, becausSe 2-31 and The stt of notural numbt15, N, has no ioenhy ekmenty sin u O it excluded
2,3 CN, but C1EN. fwm tne st,
is 5. Invtrie A st howing the idenhty ekment e with reipech to a binary
2.ASSocaTivelow A
binony operator on a 8t1 soid to be
a3sociahre whtntvtr
Oprators said haN an Invese whtnevir for evtry x E, thtre exists
to
(xy)z x(y z) for all x.y.2 e
an etment yef' such that
3.Communatit law A binory operator on a tt s sord to be
Communahe whthtvtr
Fxamplt In the tt of intgant, I,ond
ihe optrator , with
e-0, the
y x fr ol x.yeS inetse of an ttment iu C,sinu a e a ) - 0 ,
Comparing Boolean algebra with arithmetic and ordinary algebra (the feld of real numbers), we 2
917xy12) x y 2 x 9)r 2
note the following diferences:
1.Huntington postulates do not include the associative law However, this law holds for
Boolean algebra and can be derived (for both operators).from the other postulates Same sumbols
2.The distributive law of Over:e.z+(y 2)= (z +)-(z+ 2))is valid for
Boolean algebra. but not for ordinary algebra
3.Boolean algebra does not have addtive or muitplicative inverses therefore, there are no
subtraction or division operations
4.algebra
Postudate5definesan operatorcalled thecomplementthatisnotavalable inordinary Not 1iKE regular" maths
5.Ordinaryalgebra deals with the real numbers. whichconsttute an infinite set of elements b.Distri butke law u a r + (y.2)=(xty)-(x12) - similar 5t3x2 (S+3) xUS+2)
Boolean algebradeals with the as yet undefined setof elements B butin the two-valued
Boolean algebradefinednext land ofinterestinoursubsequent useofthatalgebra).Bis 5. x*x'-1 010' 011 1+1 1101
defined asa set with only two elements, 0 and1
0 000:10 1:1 1:0 0
lo. SaHshed be Booltan Alg. hos 2 ekments 1A0 44 0,
24 BASIC THEOREMS AND PRoPEkTES
F BoOLEAN ALGEBRA.
WEORSN 10E 2t22
Table 2.1 Postulates and Theorems of Boolean Algebra 5t
Stalement
z1- uetifcaten
Postulate2 +0- b)
Sa)
heorem4
S)
Theorem3, imvolution (9
2a)
Postulate 3, commutafive (8) +y=Vt D) Tyy
Theorem 4, associatnve )
z+(+z)-(z+) + z (yz)= (zy)
Postulate 4, distnbutve (a) z(y+ )-zy tz +yE ( + v)(r+ 2) alarnere
Sta)
4b)
2b)
S(0)
Statement
|-0-0by auay
Justihcabon
L2)
+ - 0
C
2y-1+zy pochuiade 2
=
r(1 +
y) 4i)
=
z (y+ 1) Jea)
2)
The
theorems of Boclean algebra can ba proven by means of truth tables. In truth tables, both sides of the relationare checked to
yiold identical resuts for all possble combinations of the variables involved. The following truth table verifes the
see whethar they
first absorption theorem
xy
1
THEORE 1b): x x x
5 5#
Statament Junticotion Com Poe to DE MORGANS TH 5oRÉM
AND OR
pasu tak 21a)
Sth)
Xy Xy
4ta) 00 00 0
0 o
c1
10
2t6)
Note tat eorem 1tb) the dual of heoen 1j) ant that oach slap cf he proot in part ibj in the dual of iu counterpart in part
) Anydatheorh ca be amiartydorved trom the proct ottscArpondngthootem
Fi X+Y'Z
1 if x1 R yLZ 4}otherwie =O 1. x'T4) a + ay 0+ y= xy
Compie mtnt operotion ; y'|. iy- 0 2 ty (xx')(x4y) 1 (xiy)xt
F I i f xl oR
ye0A 2=1 3. (x+9)xy) x +
xy'» yx 19y'= x*ny'+ xyt 0 ll+y' +y)
n b of variables in fct 1MPLEMmENTATION of BooleaN funchion
NHrdbtr of ows tuth tabk
In
2 a) f2 y ' z ta' yz iay
*Ceunt from 0 2 - 1 xy+ y2 + w'2ix'yz
xyt1+2)+xzl14 9)
Complement of a
fun chion
0
O (AtB+C) (A+)' kt 8 C x
minimized A' th. 5 (a) (De Movgan)
b)F y' t a'z A' (BtC) Subst. Bt =x
A' (8'C th. S (a) oeMorgan)
th.4 b) [ossociahve)
A'BC'
Fa
#2 lAt8t C+Dt.t F) C'+A'S'CD'F
(ABCO. F)' =
A'+B'+ D'+ t
F
# (At8+C)'= (At)
A'' th. 5 a) (ve Morgan)
A'(B1c) Subst. BtC=x