Boolean
Boolean
Boolean Algebra
Definition: A two-valued Boolean algebra is defined on a set of 2 elements B = {0,1} with 3 binary operators
OR (+), AND ( • ), and NOT ( ' ).
B B
+ 0 1 0 1 '
0 0 1 0 0 0 0 1
A A A
3.2 Axioms - need no proof. 1 1 1 1 0 1 1 0
1. Closure Property.
The result of each operation is an element of B.
2. Identity Element.
a) 1 for AND because x • 1 = 1 • x = x.
b) 0 for OR because x + 0 = 0 + x = x.
4. Distributive Property.
a) x • (y + z) = (x • y) + (x • z).
b) x + (y • z) = (x + y) • (x + z).
To show that this is true, we need to show that for any value of binary variables x, y, and z, x • (y + z) will have
the same value as (x • y) + (x • z).
x y z y+ z x( y+ z) xy xz (xy) + (xz)
0 0 0 0 0 0 0 0
0 0 1 1 0 0 0 0
0 1 0 1 0 0 0 0
0 1 1 1 0 0 0 0
1 0 0 0 0 0 0 0
1 0 1 1 1 0 1 1
1 1 0 1 1 1 0 1
1 1 1 1 1 1 1 1
5. Complement Element. For every x ∈ B, there exists a complement element x' ∈ B such that:
a) x + x' = 1 0 + 0' = 0 + 1 = 1 and 1 + 1' = 1 + 0 = 1
b) x • x' = 0 0 • 0' = 0 • 1 = 0 and 1 • 1' = 1 • 0 = 0
Proof of 3b)
x y y+x (y+x) x
0 0 0 0
0 1 1 0
De Morgan's Law.
a) (x + y)' = x' y' 1 0 1 1
b) (x y)' = x' + y' 1 1 1 1
Duality Principle.
This principle states that any algebraic equality derived from these axioms will still be valid whenever the OR and
AND operators, and identity elements 0 and 1, have been interchanged. i.e. changing every OR into AND and vice
versa, and every 0 into 1 and vice versa.
Ex. Theorem 1b) follows from Theorem 1a) by the duality principle.
3 AND terms
F1 = x y + x y' z + x' y z
2 litererals 3 litererals
x y z + x y z' = x y (z + z')
Variable Values Function Values = x y (1)
x y z F1 F1' =xy
0 0 0 0 1
0 0 1 0 1
0 1 0 0 1
0 1 1 1 0
1 0 0 0 1
1 0 1 1 0
1 1 0 1 0
1 1 1 1 0
There are two ways to determine the algebraic expression for the complement of a function:
Difficult to see when F ' = 1. Easier to see when F ' = 0. F ' = 0 when each term is 0.
2. Use the duality principle, i.e. interchange the AND and OR operators, and by complementing each literal.
The same function can be specified by two or more different algebraic expressions.
x y z
F = xy + xy'z + x'yz
xy
+ xy + xy'z
xy'z + F
xy'
xy'z
F'
x'y