Beruflich Dokumente
Kultur Dokumente
- Boolean algebras, simplilication of boolean functions, M.Lupea Boolean algebras and hoolean functions
MFCS
-- 2010
in
1854.
In
proved thata two valued binary boolean algebra can describe the operations of twovalued electrical switchinq circuits. In nodern times boolean alsebras and boolean
functions are indispensable in the design of computer chips and digital circuits
1. Boolean algebras
Definition
1.
A boolean algebra is a structure (,4, n, v, , 0, 1), where: . lAl> 2, A contains at least two elements: 0 Ei 1, 0 +
xn0=0.nx:0
and
*n,=0
a a
and
tti=l,YxeA
=
duble negation: x=
x,YxeA
comutativity:
x
^y =
nx
and
xv y = !v x,Yx,yeA
and
associativity:
y,zeA
x=x
and
lrvx: xrYxeA
-" y =,
:r'v
(-r;
De Morgan laws:
, ny = *u
and
absorption laws:
.r n (.v
l) : ;r and
n.'')
='
EMFCS
The principle of duality in a boolean algebra: ,,For any equality of two-n:,: there is another equality, [J'=v', obtainecl by interchanging n, v and 0, 1,'.
em j,:*.::l
'..
U:V,
Example
1.
:
1
(Bz:{0,1},
^,
V,
, 0, 1), where:
1 ;t '1
I
i
:
0-
Alternative syrnbols used in binary boolean algebra are * (for n) and + (for v).
Example 2. The structure (Fp, r', v, -, F, T) is a booiean alsebra: ' lFpl2 2, Fp - the set of all well-formed propositional formulas; o F, Te Fp, where F, T are the truth values; o (conjunction), v (disjunction); ^ o --r (negation); Example 3. The structure
cdll=y-1,
@(n, A, U, c, a,l0
is a boolean algebra.
ofl
B:
(Bz, A, V,
-, 0, l)
Bz:{0;}
qi n e,Al.
boolean
,(B)'
-+ 82 defined
as follows:
projection function: Pi
Bl
2.If
.f , g ,
B;
(f
7(\,...,*r) = f er*,*r)
and2.
MFCS
of n variable.
Theorem 2.
-, .[0, f
and
are
=0,
,f
"2,
_,(x1,...,
xr):1
thd
1.
Example
For
4.
X
0
1
"fo@):o
0
0
.fi@): x ,fz(i:
0
1
fz@)=1 I I
I
0
Example
5.
1
:L6
.fi&,y)
"fs(*,y)
1)
fo6'y)
contradiction
"fi (x,y)
"fz&'y)
"f:(*,y)
-fo6,y)
*lOtt ev)/
"fr(x,y)
x^y
0 0
0 0 0
0 0
xny
0
xvy
0
0 0
0
0 0
0
I
_l
I
0
I
0
0
I
I
I I
I
I I
I
0
0 I
-v
fa6'y)
fs6,y)
,fto&,y)
1)
ft t6,y)
f tz@,y)
L
fis@,y)
.fit6,y)
-fis6,y)
x{y
0
U
xey
I
0
y-)x
0
x-)y
I I
0
xty
I
,^
tautologt
I I
I
0
1
I
0
I I
0
0
I
0
I I
0 0
l
0
I I
Each function has an inverse function obtained as its negation. Pairs of inverse functions:
Uo, "fis)
'
(fz, frs)
(h,
fn), (fq'.ftt),
(fs,.fi0)
(fa, fg) ,
6t ' "ft)
MFCS
functions, M i-|ta-Slitr
J (nor)
Pierce's function, x
y =G
" ),
n -
=0' [x, xt:xand 00=0=1; 0l=0; Forx, ae{0,1}: x0:i, - 11, if x=a
*"
=7!'
:!." if a
=1,
10:T=0;
1l:l
t-=10. ifx+a,
x,qe{0,
1}
Theorem 3. A booleanfunction
f ,(B)'
-+
82,n.M
l. canonical disjunctive form (CDF): v -(f (at,..., dn) ^xf1 (D f @t,..., x,) = (a1,...,ar)eB!
2. canonical conjunctive form (CCF):
n '..n
*no')
Q)
Theorem 4.
f@t,...,xr)=
(a1,...,an)eBl^(f(at,.-.,dr)t,"rot
v...v
*ro')
A booleanfunction -f
,(B)n
its
values -f(ab...,ar),where
(a1,...,a)eBl:
L canonical disjunctive
form (CDF):
(aln.., .,"r)eBl $i.f (at,..., dr)=l
(1)e(l')f(x1,"',xn)=
2. canonical conjunctive
-t
(*1orn"'nxndn;
form (CCF):
(a1,...,
(2)
12',1
f @t,"', xn) =
MFCS
Example 6. For n:2, the canonical disjunctive forrns of the functions .fs.13,.f0,.fi2 frorn Exarnple 5 are build using formula (1):
., (0 n xl yl) =; ,., ^ ^, "l -y0 ) .frs(x,y)=(lnr0r...1,0)v(1nx0^-yl)v(0 rr: ^.y0)v(1n rt nyt):(; "i)"(i"y)v(.rny) .fa(x, y)= (0 n 3r0) v (1 n r0 n yt) v (1 n rl -y0) v (0 n rt n yt) = (; t y) v (" r.. y)
.fs@,y):
(1
"0
,,r
"y0 )
"0,^
^yt)=fr"ilv(in
!)=x"(iu
y)
We remark that the functions' indices. reprezented in binary using 4 binary digits, are the
[|
Remark: . The canonical disiunctive form is recommended when the function has more values
than
1.
1
The canonical coniunctive form is recommended when the function has lnore values
than 0.
Example
7.
(0 n
"'
r.'-y0)
(1
"'
rt-v')
"
apply
distibutivity:)
v y)
):
:1r.
Example
8.
(x
ui) "1i
n.1.,tn
Write the corresponding canonical forms of .fz, .fs , .fs , .fg , zccording to the previous remark:
Formula
(l') will be used for .f2,.15 andforrnula (2') will be used fot .fi(x,y), foQ,y)
(xr n yo) = x
.fz6,i:
^,
(CDF)
f5o. l)= i.r0 ^.1'' )t, tt' ^;)'l ) = ti n)'lv ixn v) = txvr)
nl
= 1n J
1' ICDF)
MFCS
y)=
0 0 ix v y ) n (t
t t, y ) = (x v y) n (x v.y) =
CF)
f'@
v)
:#,*;#iljl;*::
,rn
xnx
ccF,
Remarks:
o r
The boolean function 7s doesn't have a canonical disjunctive form. have a canonical coniunctive for:m' The boolean function f
_rdoesn't
Definition 3.
Let
r o o
A conjunction of variables is called a monom' of n A monom which contains all n variables is called canonical monom or minterm
xlor n ...
xnon
,di e 82,
xft
Example 9,For n:3: . xt n x2 is a monom, but not a canonical monom; . xl ni2 nx3 is a canonical monom (rninterm) of 3 variables; . i, u'i2 v x3 is a maxterm of 3 variables'
Properties:
. . .
A maxterm is a boolean function which is 0 for only one argument' A minterm is a boolean function r,vhich is 1 for only un argument'
-t'
Remarks: of 1. The index of a minterm of n variables is obtained by the conversion in decimal powers of all n variables the binary number composed of the digits representing the
2.
from the expression of the minterm' in decimal of The index of a maxterm of n vanables is obtained by the conversion the powers the binary number composed of the duals of the digits, digits representing of ail nvariables from the expression of the maxterm.
MFCS
Example 10.
For
n:l,there
ate 2n X
0
1
lvlt
mI = Mo = x
I
0
x v
0
0
1
Ay
I
i"v
0
u.l -
t,t2 -
x,.,
o
U
x^y
0 0 0
xv y
An^
il,
xv,
I
Mz= xv y
1
1
Y': xvy
I I I
0
0 I
0
0
I
0 0 0
I
0
0
I
1
I 0
0
I
We'remark that the minterms have a unique value 1 on their columns, and the tnaxterms
have a unique value 0 on the coresponding colurnns.
1110
m0012)
X0 n Y0
:i
"i
Y
t/13=t'l't1l12y
=XI nyl
=x,'Y
Ml=Mot1z1:tdt
Example 12.
Y7
=*u
m0=m000(r)=*0 n.y0
n'0 =inynZ
M0=Mooo1z1 =x6 v y6
r rd =xv yv z
Ml=Mott121 =X" v
oll-
y'v z'=xv yv z
M7=Mtttrz,
Theorem 5.
.
o
The conjunction of two distinct minterms is 0. n1; nmi =A, Yi + i, i' i =0'"''?"-l ' The disjunction of two distinct maxterms is
l: M , v M , =1,
Yi + j,
i,
= A,...,2n-l
A minterm and maxterm lvith the same index are inverse functions. Mi=mi,7I; =mi, Yi=0,"',2't-1 '
MFCS
tl
Example 13.
. m2Aftr6:G ny n=:0n-/n: = [' "y nrln(x ny ntl=(i,rx; . Mtv M, -(xu yu21r6u yuil=(ivx), yri=1vJ v:=. il=*o nyl ,r 21 =xAyAz-xvyur=*l v"y0vr0 = -r0t-t1 il=ronylnrl=,
Remark:
. . o
The canonical conjunctive form, CCF, is the conjunction of the nlaxtenns crr:rcr:.'idins to the arguments for which the function is 0.
The canonical disjunctive form, CDF, is the disjunction of the minterms correspondng
to the arguments for which the function is
1.
Example 14.
For n:3 the boolean function .f (xu xz, xs) is given below. Write the canonical forms of
1', ."1
f
l7l7
Y^ --z
X3
M2
1
Ma
M5
I
//lg
//11
/713
m6
0 0 0 0
0
0
0 I
I
0
0 I 0 0 0 0 0 0
0 0 0
1
0
0 0 0 0 0
1
I
0
1
i
I I
0
I
I
1
0
0 0 0 0 0
I
I
1
0
I
0
1
0 0 0
0 0 0
I I I
I
0 0
1
0
1
0 0
1
I I
I
1
I
0
1
1
0
0
0
U
I
I a
The canonical conjunctive form is built using the maxterms coffesponding to the values 0 the function.
of
CCF(/):Mz^Mq^Ms:
the function.
(xr
trirtrx:)n(ir
x2v\)^(", u*ruirS
I of
The canonical disjunctive form is built using the rninterms coffesponding to the values
CDF(/):tnoy trtry rlttY Ln.6Y L/17: :(i, nirnir)t(irn x2r,xj)t (i, AX2/rxr)v (", ,.x2nir)v(x, Ax2A\)