Professional Documents
Culture Documents
Functional Killers of Bool John
Functional Killers of Bool John
Functional Killers of Bool John
Algebra- Postulates
Postulates for formulating algebraic arguments:
Closure: Set S is closed with respect to a binary
operator if for every pair of elements in S, binary
operator generates a unique element in S.
Example: Set of natural numbers N = {1,2,3,}. N
is closed with respect to binary operator +, but
not closed with respect to as 2-3 = -1 .
Algebra- Postulates
Binary operator (Bin op) B commutative if
xBy=yBx
Bin op B associative if (x B y) B z = x B (y B z)
(Order of operation does not matter).
Algebra- Postulates
Bin ops B,C. B is distributive over C if
x B (y C z) = (x B y) C (x B z).
Question: Is * distributive over + and - ?
Are +/- distributive over * ?
Set S has an identity element e with respect to
binary operator B if x B e = e B x = x x S
1 and 0 are identity elements with respect to
operators * and + respectively.
Algebra- Postulates
Set S having an identity element e with respect
to bin op B has an inverse when x S, y: x B y
= e (read: for all x in S, there exists a y such that x
B y equals e).
For ordinary algebra, the following are true:
For a 0, 1/a is the multiplicative inverse
For a , -a (subtraction) represents additive
inverse.
Boolean Algebra
Mathematical system/structure defined by a
boolean set B and binary operators +,. is
defined as Boolean algebra, when following
postulates hold:
Set B is closed with respect to operators +,.
0 is the identity element for B w.r.t. + operator
1 is the identity element for B w.r.t. . operator
Structure commutative w.r.t. + and . (x+y = y+x,
x.y = y.x)
Boolean Algebra
Operator . distributive over +: x.(y+z) = x.y + x.z
Oprtr + distributive over . : x+(y.z) = (x+y). ( x+z)not true for ordinary algebra
Complement: x B, x: x+x = 1, x.x = 0 (x
read as x-bar or x-complement)
There are at least two x, y B: x y
Associativity holds for both +, .
No additive or multiplicative inverses exist.
Conversely, no complement in ordinary algebra.
x.y
x+y
x.y
(x.y)
(x+y)
(x+y)
xy
xy
xy
(xy)
Go to
y.z
x+y.z
x+z
x+y
(x+y). (x+z)
Theorem 1: x+x = x
Dual x. x = x
Proof: x+x = (x+x).1 = (x+x).(x+x)=(x+x.x)=x+0 = x
Th 2:
x+1 = 1
Dual x.0 = 0
Proof: x+1 = x+ (x+x) = (x+x) +x = x+x = 1
Involution (x) = x
Th 3: DeMorgans theorem:
(NOR) (x+y) = x.y
(x.y)=x+y (NAND)
(HW: Prove)
Th 4: Absorption: x+x.y=x
x.(x+y)=x
Boolean functions
Act over boolean variables to return boolean
(logical) outputs. E.g., F1 = x+yz
x
0
y
0
z
0
y
1
x+y.z
0
yz
F1
x
y
z
x yz
x
y
x yz
VERSUS
x
z
x
F2
xz
F2
xy
2 terms with 4 literals
z
x
y
xy
y
3 terms with 8 literals
x(x+y) = x.y
x+x.y = (x+x).(x+y) = x+y (Distributivity)
(x+y)(x+y) = x.x+x.y+x.y+y.y = x+x(1+y) = x
xy+xz+yz = xy+xz+xyz+xyz = xy+xz(1+y)+xyz
= xy+xz+xyz = xy(1+z)+xz = xy+xz
(x+y).(x+z).(y+z) = (x+y).(x+z) (by duality)
Complement of a function: (A+B+C) = ABC
(change . to + and complement every literal.
Function Complements
Application of Demorgans laws:
o F1 = xyz+xyz; F1= (xyz+ xyz) = (xyz).(xyz)
= (x+y+z).(x+y+z) (Equivalent to taking function
dual and complementing literals)
o F2 = x(yz+yz); F2 =(xyz+xyz)
= (x+y+z).(x+y+z) = x+xy+xz+xy+xz+yz+zy
= x+yz+yz (alternatively of the form a+b.c,
where a=x, b = (y+z) and c = (y+z)
Hw: XNOR from XOR
Term
Minterm
Designation
Term
Maxterm
Designation
xyz
m0
(x+y+z)
M0
xyz
m1
(x+y+z)
M1
xyz
m2
(x+y+z)
M2
xyz
m3
(x+y+z)
M3
xyz
m4
(x+y+z)
M4
xyz
m5
(x+y+z)
M5
xyz
m6
(x+y+z)
M6
xyz
m7
(x+y+z)
M7
Minterm: Bit 1 => variable in original form, 0 => variable in complemented form
Maxterm: Bit 0 => variable in original form, 1 => variable in complemented form
Minterms and Maxterms are function complements
F1
F2
F1=xyz+xyz+xyz
= m1+m4+m7 = (1,4,7)
F2=xyz+xyz+xyz+xyz = m3+m5+m6+m7
= (3,5,6,7)
- Summation/ORing of minterms
Equivalent
F2=(x+y+z).(x+y+z).(x+y+z).(x+y+z)
=M0.M1.M2.M4 = (0,1,2,4)
- product/ANDing of MAXterms
RECAP
Boolean algebra- postulates (Distibutivity of +
over . ) , complementarity
Two-valued Boolean algebra- gates and logic
circuits- Duality, DeMorgans laws and
Function Complements