Lattices (Unit III)
Lattices (Unit III)
BOOLEAN ALGEBRA
• Partial Ordering.
• Posets.
• Lattices as Posets.
• Properties of Lattices.
• Lattices as Algebraic Systems.
• Sub Lattices.
• Direct product and homomorphism.
• Some special Lattices.
• Boolean Algebra.
Partial Ordering
Example :
The greater than or equal to ≥ relation is
a partial ordering on the set of integers 𝒁,
Since
(i.e) ≥ is reflexive.
𝒃 𝒂 ≥ 𝒃 and 𝒃 ≥ 𝒂 ⟹ 𝒂 = 𝒃
𝒄 𝒂 ≥ 𝒃 and 𝒃 ≥ 𝒄 ⟹ 𝒂 ≥ 𝒄
(i.e) ≥ is transitive.
Hence, 𝒁 , ≥ is a poset.
1. S h ow that 𝑵,≤ is a partially ordered set
where 𝑵 is set of all positive integers and ≤ is
defined by 𝒎 ≤ 𝒏 iff 𝒏 − 𝒎 is a non-negative
integer.
Solution :
To prove 𝑵 , ≤ is a partially ordered set, we have
to prove the relation ≤ is reflexive, anti
symmetric and transitive.
(i) As 𝒂 − 𝒂 = 𝟎 which is a non-negative integer,
𝒂 ≤𝒂
Therefore, ≤ is a reflexive.
(ii)Assume 𝒂 ≤ 𝒃 and 𝒃 ≤ 𝒂
𝒃 − 𝒂 ≥ 𝟎 and 𝒂 − 𝒃 ≥ 𝟎
Therefore, 𝒂 = 𝒃
(iii)Assume 𝒂 ≤ 𝒃 , 𝒃 ≤ 𝒄
𝒃 − 𝒂 ≥ 𝟎 and 𝒄 − 𝒃 ≥ 𝟎
𝒄 −𝒃+𝒃 −𝒂 ≥𝟎
𝒄 −𝒂 ≥𝟎
𝒂 ≤𝒄
(i.e) 𝒂 ≤ 𝒃 , 𝒃 ≤ 𝒄 ⟹ 𝒂 ≤ 𝒄
Therefore, ≤ is transitive.
12
2 3
2 . Draw the Hasse diagram for 𝑷 = 𝟏 , 𝟐 , 𝟑 , 𝟒 , 𝟔 , 𝟏𝟐
and ≤ is a relation such that 𝒙 ≤ 𝒚 if and only if
𝒙|𝒚 .
Solution :
4 6
2 3
1
3. Draw the Hasse diagram of 𝑺𝟐𝟒 , | where 𝑺𝟐𝟒
denotes the set of positive divisors of 𝟐𝟒 and |
denotes the relation “division”.
Solution :
𝑺𝟐𝟒 = 𝟏 , 𝟐 , 𝟑 , 𝟒 , 𝟔 , 𝟖 , 𝟏𝟐 , 𝟐𝟒
8 12
4 6
2 3
1
4. Obtain the Hasse diagram of 𝑷 𝑨𝟑 , ⊆ where
𝑨𝟑 = 𝟏 , 𝟐 , 𝟑 .
Solution :
Given 𝑨𝟑 = 𝟏 , 𝟐 , 𝟑
𝑷 𝑨𝟑
= ∅ , 𝟏 , 𝟐 , 𝟑 , 𝟏 ,𝟐 , 𝟏 ,𝟑 , 𝟐 ,𝟑 , 𝟏 ,𝟐 ,𝟑
{1 } {2 } {3 }
{φ }
Minimal and Maximal Elements
b c
e c c
a b b a
a a
Note :
1. The m aximal, minimal, the greatest and
least member of a poset can be easily
identified using the Hasse diagram of the
poset. They are the top and bottom
element in the diagram.
2. A poset can have more than one maximal
member and more than one minimal
member whereas the greatest and least
member, when they exist, are unique.
Ex. Which elements of the poset
({2, 4, 5, 10, 12, 20, 25}, | ) are maximal, and
which are minimal.
20
12
4 10 25
2 5
Supremum
If an upper bound of A precedes every other upper bound of
A, then it is called the supremum or least upper bound of A
and is denoted by sup(A) or lub(A).
Infimum
If a lower bound of A succeeds every other lower bound of
A, then it is called the infimum or greatest lower bound of A
and is denoted by inf(A) or glb(A).
Ex. Find the lower and upper bounds of the subsets
{a, b, c}, {j, h} and {a, c, d, f} in the poset with the
given Hasse diagram.
Sol. For {a, b, c},
Upper bounds : e, f, j, h Lower bound : a
For {j, h}, No Upper bound.
Lower bounds : a, b, c, d, e, f
For {a, c, d, f}, h j
Upper bounds : f, h, j
Lower bound : a g f
d e
b c
a
⚫ Ex. Find glb and lub of {b, d, g}, if they exist, in the
poset.
Upper bounds of {b, d, g}= { g, h}
Since g ≺ h, g is the least upper bound
lub = {g}
Lower bounds of {b, d, g} = { a, b}
Since a≺b, b is the greatest lower bound.
h j
glb = {b}
g f
d e
b c
a
⚫ Ex. In the poset shown below , find upper bound, lub ,
lower bound and glb for A = {2, 3} and B ={4, 6}, if they
exist.
For A= {2, 3}
Upper Bound = {4, 5 , 7, 8}
lub = does not exists
Lower Bound = does not Exists
glb = does not exists
For B = {4, 6}
Upper Bound = {8}
lub = {8}
Lower Bound = {1, 3}
glb =does not exists
In the poset shown below , find upper bound, lub,
lower bound and glb for {a, b, c} if they exist
Solution :
Given 𝑺 = 𝒂 , 𝒃 , 𝒄
𝑷 𝑺
= ∅ , 𝒂 , 𝒃 , 𝒄 , 𝒂 ,𝒃 , 𝒂 ,𝒄 , 𝒃 ,𝒄 , 𝒂 ,𝒃 ,𝒄
The Hasse diagram is given by
{a,b,c}
{φ}
1. The element 𝒂,𝒃,𝒄 does not precede
any element of the poset and hence it is
the only maximal element of the poset.
Given 𝑫𝟑𝟎 = 𝟏 , 𝟐 , 𝟑 , 𝟓 , 𝟔 , 𝟏𝟎 , 𝟏𝟓 , 𝟑𝟎
6 10 15
2 3 5
1
(i) All th e lower bounds of 𝟏𝟎 and 𝟏𝟓 are 𝟏
and 𝟓.
c d
a
Solution :
The poset represented by the Hasse
diagram is a lattice, since every pair of
elements of this poset have both least
upper bound and greatest lower bound.
Lattice as Algebraic System
Commutative Law :
For any 𝒂 , 𝒃 ∈ 𝑳, we have
(i) 𝒂 ∨ 𝒃 = 𝒃 ∨ 𝒂
(ii) 𝒂 ∧ 𝒃 =b ∧ a
Associative Law :
(i) 𝒂 ∨ 𝒃 ∨ 𝒄 = 𝒂 ∨ 𝒃 ∨ 𝒄
(ii) 𝒂 ∧ 𝒃 𝖠 𝒄 = 𝒂 𝖠 𝒃 𝖠 𝒄
Absorption Law :
(i) 𝒂 ∨ 𝒂 ∧ 𝒃 = 𝒂
(ii) 𝒂 ∧ 𝒂 ∨ 𝒃 = 𝒂
And Idempotent law: a∧a=a and a ∨ a=a for all a
in L
Distributive Lattice
𝒂 ∧ 𝒃 ∨𝒄 = 𝒂 ∧𝒃 ∨ 𝒂 ∧𝒄
and 𝒂 ∨ 𝒃 ∧𝒄 = 𝒂 ∨𝒃 𝖠 𝒂 ∨𝒄
Bounded Lattice
𝒂 ∨𝟎=𝒂; 𝒂 𝖠𝟎=𝟎
Since, 𝒂 ∨ 𝟎 = 𝒂 and 𝒂 𝖠 𝟏 = 𝒂, 𝟎 is the identity
of the operation ∨ and 1 is the identity
element of the operation 𝖠.
𝒂 ∨ 𝒃 = 𝟏 and 𝒂 𝖠 𝒃 = 𝟎.
Since 𝟎 ∨𝟏=𝟏 and 𝟎 𝖠 𝟏 = 𝟎 ,𝟎 and 𝟏 are
complements to each other.
A lattice 𝑳 ,∨ ,𝖠 , 𝟎 , 𝟏 is called
a complemented lattice if every
element of 𝑳 has at least one
complement.
1. If 𝑺𝟒𝟐 is the set of all divisors of 𝟒𝟐 and 𝑫 is
the relation “divisor of ” on 𝑺𝟒𝟐 . Prove that
𝑺𝟒𝟐 , 𝑫 is a complemented lattice.
Solution :
𝑺𝟒𝟐 = 𝟏 , 𝟐 , 𝟑 , 𝟔 , 𝟕 , 𝟏𝟒 , 𝟐𝟏 , 𝟒𝟐
The Hasse diagram of 𝑺𝟒𝟐 is given by
42
6 14 21
2 3 7
1
The zero elemen t of the lattice is 𝟏 and
unit element of the lattice is 𝟒𝟐.
𝟏 ∨ 𝟒𝟐 = 𝑳𝑪𝑴 𝟏 , 𝟒𝟐 = 𝟒𝟐 (≡ 𝟏)
𝟏 𝖠 𝟒𝟐 = 𝑮𝑪𝑫 𝟏 , 𝟒𝟐 = 𝟏 (≡ 𝟎)
𝟐 ∨ 𝟐𝟏 = 𝑳𝑪𝑴 𝟐 , 𝟐𝟏 = 𝟒𝟐 (≡ 𝟏)
𝟐 𝖠 𝟐𝟏 = 𝑮𝑪𝑫 𝟐 , 𝟐𝟏 = 𝟏 (≡ 𝟎)
𝟑 ∨ 𝟏𝟒 = 𝑳𝑪𝑴 𝟑 , 𝟏𝟒 = 𝟒𝟐 (≡ 𝟏)
𝟑 𝖠 𝟏𝟒 = 𝑮𝑪𝑫 𝟑 , 𝟏𝟒 = 𝟏 (≡ 𝟎)
𝟔 ∨ 𝟕 = 𝑳𝑪𝑴 𝟔 , 𝟕 = 𝟒𝟐 (≡ 𝟏)
𝟔 𝖠 𝟕 = 𝑮𝑪𝑫 𝟔 , 𝟕 = 𝟏 (≡ 𝟎)
Now 𝟏 ′ = 𝟒𝟐
𝟐 ′ = 𝟐𝟏
𝟑 ′ = 𝟏𝟒
𝟔′ = 𝟕
𝟕′ = 𝟔
𝟏𝟒′ = 𝟑
𝟐𝟏′ = 𝟐
𝟒𝟐′= 𝟏
Solution :
𝑫𝟒𝟓 = 𝟏 , 𝟑 , 𝟓 , 𝟗 , 𝟏𝟓 , 𝟒𝟓
9 15
3 5
(i. e) if 𝒂 , 𝒃 ∈ 𝑴, t h e n 𝒂 ∨ 𝒃 ∈ 𝑴 and 𝒂 ∧ 𝒃 ∈ 𝑴
Fro m t h e definition, i t is obvious t h a t t h e sub l a t ti ce itself
is a l a t t i c e with respect to ∨ and ∧.
If 𝑺𝒏 is the set of all divisors of the positive
integer 𝒏 and 𝑫 is the relation of „division‟
, prove that 𝑺𝟑𝟎 , 𝑫 is a lattic e. Find also
all the sub-lattices of 𝑺𝟑𝟎 , 𝑫 that c ontain
𝟔 or more elements.
Solution :
𝑺𝟑𝟎 = 𝟏 , 𝟐 , 𝟑 , 𝟓 , 𝟔 , 𝟏𝟎 , 𝟏𝟓 , 𝟑𝟎
6 10 15
2 3 5
1
𝟐 ∨ 𝟑 = 𝑳𝑪𝑴 𝟐 , 𝟑 = 𝟔
𝟐 ∧ 𝟑 = 𝑮𝑪𝑫 𝟐 , 𝟑 = 𝟏
𝟏𝟎 ∨ 𝟏𝟓 = 𝑳𝑪𝑴 𝟏𝟎 , 𝟏𝟓 = 𝟑𝟎
𝟏𝟎 ∧ 𝟏𝟓 = 𝑮𝑪𝑫 𝟏𝟎 , 𝟏𝟓 = 𝟓
𝟑 ∨ 𝟏𝟎 = 𝑳𝑪𝑴 𝟑 , 𝟏𝟎 = 𝟑𝟎
𝟑 ∧ 𝟏𝟎 = 𝑮𝑪𝑫 𝟑 , 𝟏𝟎 = 𝟏
𝟓 ∨ 𝟑𝟎 = 𝑳𝑪𝑴 𝟓 , 𝟑𝟎 = 𝟑𝟎
𝟓 ∧ 𝟑𝟎 = 𝑮𝑪𝑫 𝟓 , 𝟑𝟎 =𝟓
𝟐 ∨ 𝟑𝟎 = 𝑳𝑪𝑴 𝟐 , 𝟑𝟎 = 𝟑𝟎
𝟐 ∧ 𝟑𝟎 = 𝑮𝑪𝑫 𝟐 , 𝟑𝟎 = 𝟐
Similarly every pair of elem ents has LUB and
GLB.
𝟏 , 𝟐 , 𝟑 , 𝟔 , 𝟏𝟎 , 𝟑𝟎 , 𝟏 , 𝟑 , 𝟓 , 𝟏𝟎 , 𝟏𝟓 , 𝟑𝟎 ,
𝟏 , 𝟐 , 𝟓 , 𝟔 , 𝟏𝟎 , 𝟑𝟎 and 𝟏 , 𝟐 , 𝟓 , 𝟏𝟎 , 𝟏𝟓 , 𝟑𝟎
Lattice Homomorphism
𝒇 𝒂 ∨𝒃 = 𝒇 𝒂 ∨𝒇𝒃
𝒇 𝒂 𝖠𝒃 =𝒇 𝒂 ∧ 𝒇𝒃
Complete Lattice
Ans : 𝟏 ,𝟐 ,𝟒 ,≤ .
3. Give an example of bounded lattice
which is distributive and
complemented.
Ans : 𝑷 𝑺 ,𝖴,∩ , 𝑫𝟕𝟎, | and 𝑺𝟒𝟐, 𝑫 .
Boolean Algebra
For all 𝒂, 𝒃, 𝒄 in B
𝑩𝟏 : Identity laws
𝒂+𝟎=𝒂
𝒂 .𝟏 = 𝒂
𝑩𝟐∶ Commutative laws
𝒂+𝒃 =𝒃+𝒂
𝒂. 𝒃 = 𝒃. 𝒂
𝒂+ 𝒃+𝒄 = 𝒂+𝒃 +𝒄
𝒂. 𝒃. 𝒄 = 𝒂. 𝒃 . 𝒄
𝑩𝟒: Distributive laws
𝒂 + 𝒃. 𝒄 = 𝒂 + 𝒃 . 𝒂 + 𝒄
𝒂. 𝒃 + 𝒄 = 𝒂. 𝒃 + 𝒂. 𝒄
𝑩𝟓 : Complement laws
𝒂 + 𝒂′ = 𝟏
𝒂. 𝒂′ = 𝟎
Note :
1. In Boolean algebra, we use the operation + and .
1. Idempotent law :
2. Dominance law :
3. Absorption law :
𝒂. 𝒂 + 𝒃 = 𝒂 𝒂𝒏𝒅 𝒂 + 𝒂. 𝒃 = 𝒂 ∀ 𝒂, 𝒃 ∈ 𝑩
4. Demorgan‟s law :
𝒂 + 𝒃 ′ = 𝒂′ . 𝒃′
𝒂. 𝒃 ′ = 𝒂′ + 𝒃′ ∀ 𝒂, 𝒃 ∈ 𝑩
Proof : (i) 𝒂 ∨ 𝒃 ′ = 𝒂 ′ 𝖠 𝒃 ′
𝒂 ∨ 𝒃 ∨ 𝒂′ 𝖠 𝒃′
= 𝒂 ∨ 𝒃 ∨ 𝒂′ 𝖠 𝒂 ∨ 𝒃 ∨ 𝒃′
[By Distributive law]
= 𝒃 ∨ 𝒂 ∨ 𝒂′ 𝖠 𝒂 ∨ 𝒃 ∨ 𝒃′
[By Commutative law]
= 𝒃 ∨ 𝒂 ∨ 𝒂′ 𝖠 𝒂 ∨ 𝒃 ∨ 𝒃′
= 𝒃 ∨𝟏 𝖠 𝒂 ∨𝟏
(i. e) 𝒂 ∨ 𝒃 ∨ 𝒂 ′ 𝖠 𝒃 ′ = 𝟏 … … . (1)
Now, 𝒂 ∨ 𝒃 𝖠 𝒂′ 𝖠 𝒃′
= 𝒂 𝖠 𝒂′ 𝖠 𝒃′ ∨ 𝒃 𝖠 𝒂′ 𝖠 𝒃′
[By Distributive law]
= 𝒂 𝖠 𝒂′ 𝖠 𝒃′ ∨ 𝒃 𝖠 𝒃′ 𝖠 𝒂′
[By Commutative law]
= 𝒂 𝖠 𝒂′ 𝖠 𝒃′ ∨ 𝒃 𝖠 𝒃′ 𝖠 𝒂′
[ By Associative law]
(i. e) 𝒂 ∨ 𝒃 𝖠 𝒂 ′ 𝖠 𝒃 ′ = 𝟎 … … … … (2)
Hence, 𝒂 ∨ 𝒃 ′ = 𝒂 ′ 𝖠 𝒃 ′ .
(ii) 𝒂 𝖠 𝒃 ′ = 𝒂 ′ ∨ 𝒃 ′
𝒂 𝖠 𝒃 ∨ 𝒂′ ∨ 𝒃′
= 𝒂 ∨ 𝒂′ ∨ 𝒃′ 𝖠 𝒃 ∨ 𝒂′ ∨ 𝒃′
= 𝒂 ∨ 𝒂′ ∨ 𝒃′ 𝖠 𝒃 ∨ 𝒃′ ∨ 𝒂′
= 𝒂 ∨ 𝒂′ ∨ 𝒃′ 𝖠 𝒃 ∨ 𝒃′ ∨ 𝒂′
= 𝒂 𝖠 𝒃 𝖠 𝒂′ ∨ 𝒂 𝖠 𝒃 𝖠 𝒃′
[By Distributive law]
= 𝒃 𝖠 𝒂 𝖠 𝒂′ ∨ 𝒂 𝖠 𝒃 𝖠 𝒃′
= 𝒃 𝖠 𝒂 𝖠 𝒂′ ∨ 𝒂 𝖠 𝒃 𝖠 𝒃′
= 𝒃 𝖠𝟎 ∨ 𝒂 𝖠𝟎
=𝟎∨𝟎
(i. e) 𝒂 𝖠 𝒃 𝖠 𝒂 ′ ∨ 𝒃 ′ = 𝟎 … … … … (4)
Hence, 𝒂 𝖠 𝒃 ′ = 𝒂 ′ ∨ 𝒃 ′ .
1. Simplify the Boolean expression 𝒙+𝒚 ′ 𝒙𝒚 ′ .
Solution :
𝒙+𝒚 ′ 𝒙 𝒚 ′ = 𝒙′. 𝒚′ . 𝒙′ + 𝒚′
= 𝒙′ . 𝒚′ . 𝒙′ + 𝒙′ . 𝒚′ . 𝒚′
= 𝒙′ . 𝒚′ + 𝒙′ . 𝒚′
Solution :
𝒂′ . 𝒃′ . 𝒄 + 𝒂 . 𝒃′ . 𝒄 + 𝒂′ . 𝒃′ . 𝒄′
= 𝒃′ . 𝒄 + 𝒃′ . 𝒂′
[Distributive lawl
RHS [Complement lawl
(ii) LHS
[Since a • ä = 01
[Distributive lawl
eorem (DeMorgan'sLaw) 13.6 (a) (a + b) = or (a v b)' = a' A b' and (b) (a •b)
=
[Associative
I
[Complement
I
[Identity
- 1-1
DISCRETE MAIIAEMATICS
Il
Examplo 11 Prove that [ {(Fnj') u z} n (x u z)]
[{(Fnj)uz} u (x u z) J
Solution I-IIS
[since n j
Example 12 Simplify. [(x u j; ) n (x nj;n i)]
Solution (x or ) u (xn fnz)
Solution have,
[Distributive law)
[Since ä a = 0]
[Associative law)
[Distributive law)
[Since x + = Il
[Since I •a = al
[Since I + z = Il
Example14 Using properties of Boolean algebra, prove that for each x in a Boolean algebra,if
x + y = I and x •y 0, theny = F.
Solution We have,
[Since x = x = 01
[Since x x = 0 (given))
[Distributive law)
[Since x + =
[Since x + y = I (given))
[Commutative law]
[Distributive lawl
[Since x • = 01
ample 15 Simplify the Boolean expression:
Solution We have,
[DeMogran's lawl
[Since (f) =
(x + z) • (x + 57) [Since (a + b) • (a + c) = a + b •c))