Elements of Discrete Mathematics
Elements of Discrete Mathematics
Elements of Discrete Mathematics
Editorial Board
Prof. S.K.Verma
Dr. Harinderjit Kaur Chawla
Ms. Mridu Sharma
Content Writers
Dr. Deepti Jain
Dr. Ankit Gupta
Mr. Sanyam Gupta
Academic Coordinator
Deekshant Awasthi
Published by:
Department of Distance and Continuing Education under
the aegis of Campus of Open Learning/School of Open Learning,
University of Delhi, Delhi-110 007
Printed by:
School of Open Learning, University of Delhi
1
2 CONTENTS
4 Introduction to Lattices 78
4.1 Learning Objectives . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
4.2 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
4.3 Lattices as a POSET . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
4.4 Lattices as Algebraic Structures . . . . . . . . . . . . . . . . . . . . . 83
4.5 Bounded Lattice . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86
4.6 Sublattices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87
4.7 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90
4.8 Self Assessment Exercise . . . . . . . . . . . . . . . . . . . . . . . . . 91
4.9 Answers to In-Text Exercises . . . . . . . . . . . . . . . . . . . . . . 93
4.10 References . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94
4.11 Suggested Readings . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94
Structure
1.1 Introduction 4
1.2 Learning Objectives 5
1.3 Sets 5
1.3.1 The Empty Set 7
1.3.2 Equal set 8
1.4 Subsets 8
1.4.1 Power Set 9
1.4.2 Finite and Infinite sets 9
1.5 Venn Diagram 9
1.6 Propositions and Logical Operations 12
1.6.1 Logical Connectives and Compound Statements 13
1.6.2 Conjunction 14
1.6.3 Disjunction 14
1.6.4 Quantifiers 15
1.6.5 Conditional Statements / Implication 16
1.6.6 Biconditional / Biimplication 17
1.7 Mathematical Induction 20
1.8 Summary 22
1.9 Self-Assessment Exercise 23
1.10 Solutions to the In-text Exercises 23
1.1 Introduction
We have studied some concept of sets in earlier classes or standard. In this section
we will introduce the basis concept of set and some concepts related to the set like
4
1.2. LEARNING OBJECTIVES 5
subset, power set and so on. We will deal with the Venn diagram also which describe
the concepts of set in more attractive way. We will introduce the statement or propo-
sition with some logical operations. This section also discussed about the conditional
statements and after that we will describe mathematical technique to proof the result
that is called Mathematical Induction.
The concept of set serves as a fundamental part of the present day mathematics.
Today this concept is being used in almost every branch of mathematics. Sets are used
to define the concepts of relations and functions. The study of geometry, sequences,
probability, etc. requires the knowledge of sets. In everyday life, we often speak of
collections of objects of a particular kind, such as, a pack of cards, a crowd of people,
a cricket team, etc. In mathematics also, we come across collections, for example,
of natural numbers, points, prime numbers, etc. A set is a well-defined collection of
objects.
1.3 Sets
Definition 1.1. A well-defined collection of distinct objects is said to be set. These
objects is called elements or members of the set.
Remark 1. Usually we denote the set using capital letters like A,B,C,D and so
on.
2. All the elements of a set are written within braces.
3. We use the symbol “∈” when an element belongs to the set and “∈”
/ when an
element does not belong to the set.
4. The elements of a set are usually denoted by small letters a,b,c,x,y, etc.
Roster or tabular form - In this form, we write a set as a list of all the elements of
the set within the curly braces {} separated by commas.
Set-builder form - In this form, we write a set as all the elements of the set sat-
isfying a common property. All other elements outside the set does not satisfy that
property.
In example 1.2 (a), A = {2, 4, 6} which has the common property that all the elements
of A are even number less than 7, therefore we can write the set A in set-builder form,
A = {x | x is even number less than 7}
In example 1.2 (b), B = {1, 2, 3, 6, 7, 14, 21, 42} has set-builder form,
B = {x | x is odd number which divides 42}
Solution.
x2 + x − 6 = 0
⇒ (x − 2)(x + 3) = 0
⇒ x = 2, −3
set is {2,-3}
Example 1.6. Write the set A = {4, 9, 16, . . .} in set builder form.
Solution. A = {22 , 32 , 42 , . . .}
A = {x | x is a square of natural number except 1
or A = {x | x = (n + 1)2 , where n ∈ N}
Example 1.7. Write the set A = { 21 , 32 , 43 , 54 } in set-builder form.
Solution. A = {x | x = n
n−1
, where n ∈ N and 2 ≤ n ≤ 5}
Example 1.8. Write the set A = {x : x is positive integer and x2 ≤ 20} in roster form.
Solution. A = {1, 2, 3, 4}
1.4 Subsets
Definition 1.4. Let A and B be two sets, The set A is called subset of a set B if every
element of A is also an element of B. We denote it as A ⊆ B.
Remark. 1. By using the symbol “⇒” which means “implies”, we can write the
definition of subset as A ⊆ B if a ∈ A ⇒ a ∈ B
We read this statement as A is subset of B if “a” belongs to A implies “a” belongs to
B.
or A is subset of set B if “x” is an element of A implies “x” is an element of B.
2. If A is not subset of set B, we can denote it as A ⊈ B.
3. A is a subset of itself i.e A ⊆ A.
4. φ is subset of every set.
A ⊈ B and B ⊆ A
B ⊆ C and C ⊈ B
A ⊆ C and C ⊆ A
1.5. VENN DIAGRAM 9
(a) 2 ∈ A
(b) 3 ∈ A
(c) c ∈
/A
(d) ∅ ∈ A
(e) {} ∈
/A
(f) A ∈ A
2. In each part, give the set of letters in each word by listing the elements of the
set.
(a) AARDVARK
(b) BOOK
(c) MISSISSIPPI
3. Let A = {1, {2, 3}, 4}. Identify each of the following as true or false.
(a) 3 ∈ A
(b) {1, 4} ⊆ A
1.5. VENN DIAGRAM 11
(c) {2, 3} ⊆ A
(d) {2, 3} ∈ A
(e) {4} ∈ A
(f) {1, 2, 3} ⊆ A
In Exercise 4 and 5, write the set in the form {x | P (x)}, where P (x) is a property
that describes the elements of the set.
4. {a, e, i, o, u}
5. {−2, −1, 0, 1, 2}
(a) {5, 1} ⊆ A
(b) {8, 1} ∈ A
(c) {1, 8, 2, 11, 5} ⊈ A
(d) ∅ ⊆ A
(e) {1, 6} ⊈ A
(f) {2} ⊆ A
(g) {3} ∈
/A
(h) A ⊆ {11, 2, 5, 1, 8, 4}
9. Let A = {1}, B = {1, a, 2, b, c}, C = {b, c}, D = {a, b}, and E = {1, a, 2, b, c, d}.
For each part, replace the symbol □ with either ⊆ or ⊈ to give a true statement.
(a) A □ B
(b) ∅ □ A
(c) B □ C
(d) C □ E
(e) D □ C
(f) B □ E
12 LESSON - 1. DISCRETE MATHEMATICS
In Exercise 10, find the set of smallest cardinality that contains the given sets as
subsets.
11. Is it possible to have two different (appropriate) universal sets for a collection
of sets? Would having different universal sets create any problems? Explain.
12. Use the Venn diagram to identify each of the following as true or false.
(a) B ⊆ A
(b) A ⊆ C
(c) C ⊆ B
(d) w ∈ A
(e) t ∈ A
(f) w ∈ B
13. Complete the following statement. A generic Venn diagram for three sets has
regions. Describe them in words.
15. If P (B) = {{a}, {}, {c}, {b, c}, {a, b}, . . .} and |P (B)| = 8, then B =
16. x ∈ A, x ∈ B, x ∈
/ C, y ∈ B, y ∈ C, and y ∈
/A
Solution. The declarative sentence is a statement which has true value or which is
true.
Example 1.17. 2 + 3 = 6
Solution. The declarative sentence is a statement which has false value or which is
false.
Solution. It is a declarative sentence but not a statement as the value of this statement
depends on x.
Example 1.20.
Hence we combine the statement p, q by the connector “and” and get the compound
statement p and q. The true or false value of any compound statement depends on
the true or false value of statements and on the type of connectives to be used. Now
we will discuss some important connectives.
p ∼p
T F
F T
Solution. ∼ p : 2 + 3 ≤ 1
Since p is true and therefore ∼ p is false.
1.6.2 Conjunction
If p and q are two prepositions, then conjunction of p and q is a compound statement
“p and q” denoted by p ∧ q. The connective “and” is denoted by symbol ∧.
Truth table of conjunction is given as follows:
p q p∧q
T T T
T F F
F T F
F F F
Example 1.22. Form the conjunction of p and q where p : 3 < 4 and q : −5 > −9
Example
√ 1.23. Form the conjunction of p and q where p : 5 is positive integer and
q : 2 is rational number.
√
Solution. p ∧ q : 5 is positive integer and 2 is rational number.
since p is true and q is false. Therefore the value of p ∧ q is false.
p q p∧q ∼p (p ∧ q) ∧ ∼ p
T T T F F
F T F T F
T F F F F
F F F T F
1.6.3 Disjunction
If p and q are two prepositions, then disjunction of p and q is compound prepositions
“p or q” denoted by p ∨ q. The connective “or” is denoted by symbol ∨. Truth table
of disjunction is given as follows:
1.6. PROPOSITIONS AND LOGICAL OPERATIONS 15
p q p∨q
T T T
T F T
F T T
F F F
p q p∨q ∼p (p ∨ q) ∧ ∼ p
T T T F F
T F T F F
F T T T T
F F F T F
1.6.4 Quantifiers
We have to learned how to write a set in set-builder form. In this form we specified
the property of all elements of a set and write the property in a statement. If this
statement is true then that element lies in that set. Here we will denote this state-
ment by P (x) and its called predicate. Each choice of x gives the proposition p(x)
that is either true or false. There are two common constructions first “if P (x), then
execute the particular step” and second is “while Q(x), do specific action ” These two
predicates P (x) and Q(x) are called the guard for the block of programming code in
computers.
Example 1.27. Let A = {x | x is an integer less than 5}. Here A is a set-builder form,
P (x) is the statement “x is an integer less than 5”. P (1) is “1 is an integer less than
1”, which is true. Therefore 1 ∈ A. Similarly we can check that P (2), P (3), P (4) are
only true statements. Hence A = {1, 2, 3, 4}
Now we will see that there is a universal quantification of a predicate P (x) which is
a statement “For all value of x,P (x) is true”. This universal quantification of P(x) is
denoted by ∀ x P (x). The symbol “∀” is called universal quantifiers.
Example 1.28. Let Q(x) : x + 10 < 15. Then for all x Q(x) is false statement as Q(12)
is not true.
Solution. p ⇒ q
If weather is bad, then its raining.
The compound statement “if p then q ” has either true or false value, depends upon
the true or false value of p and q statement. Truth table of p ⇒ q is as follows:
p q p⇒q
T T T
T F F
F T T
F F T
Example 1.30. Find the contrapositive and converse of the compound statement “If
it is raining, then I will not go market”.
Example 1.31. Let 5 > 3 if and only if 0 < 5 − 3. Then this equivalence is true or
false ?
Solution. Let
p:5>3
q :0<5−3
Since p is true, q is also true,
therefore p ⇔ q is true.
18 LESSON - 1. DISCRETE MATHEMATICS
p q p⇒q ∼q ∼p ∼q⇒∼p (p ⇒ q) ⇔ (∼ q ⇒ ∼ p)
T T T F F T T
T F F T F F T
F T T F T T T
F F T T T T T
p ∼p p∧∼p
T F F
T F F
F T F
F T F
p q p⇒q p∨q (p ⇒ q) ∧ (p ∨ q)
T T T T T
T F F T F
F T T T T
F F T F F
Since the value of given statement depends on the value of p ⇒ q and p ∨ q. Therefore
this is contingency.
Theorem 1.1. The operations for propositions have the following basic logical equiv-
alence properties.
Commutative Properties
1. p ∨ q ≡ q ∨ p
2. p ∧ q ≡ q ∧ p
Associative Properties
3. p ∨ (q ∨ r) ≡ (p ∨ q) ∨ r
4. p ∧ (q ∧ r) ≡ (p ∧ q) ∧ r
Distributive Properties
5. p ∨ (q ∧ r) ≡ (p ∨ q) ∧ (p ∨ r)
1.6. PROPOSITIONS AND LOGICAL OPERATIONS 19
6. p ∧ (q ∨ r) ≡ (p ∧ q) ∨ (p ∧ r)
Idempotent Properties
7. p ∨ p ≡ p
8. p ∧ p ≡ p
Properties of Negation
9. ∼ (∼ p) ≡ p
10. ∼ (p ∨ q) ≡ (∼ p) ∧ (∼ q)
11. ∼ (p ∧ q) ≡ (∼ p) ∨ (∼ q)
Theorem 1.2. (a) (p ⇒ q) ≡ ((∼ p) ∨ q)
(b) (p ⇒ q) ≡ (∼ q ⇒ ∼ p)
(c) (p ⇔ q) ≡ ((p ⇒ q) ∧ ((q ⇒ p))
(d) ∼ (p ⇒ q) ≡ (p ∧ ∼ q)
(e) ∼ (p ⇔ q) ≡ ((p ∧ ∼ q) ∨ (p ∧ ∼ q))
Theorem 1.3. Each of the following is a tautology.
(a) (p ∧ q) ⇒ p
(b) (p ∧ q) ⇒ q
(c) p ⇒ (p ∨ q)
(d) q ⇒ (p ∨ q)
(e) ∼ p ⇒ (p ⇒ q)
(f) ∼ (p ⇒ q) ⇒ p
(g) (p ∧ (p ⇒ q)) ⇒ q
(h) (∼ p ∧ (p ∨ q)) ⇒ q
(i) (∼ q ∧ (p ⇒ q)) ⇒ ∼ p
(j) ((p ⇒ q) ∧ (q ⇒ r)) ⇒ (p ⇒ r)
The results of theorem 2 and theorem 3 can be proved using truth table.
In-text Exercise 1.3. 1. Write each of the following statements in terms of p, q, r,
and logical connectives where p : I am awake; q : I work hard; r : I dream of
home.
(a) ((∼ p) ∧ q) ⇒ r
(b) r ⇒ (p ∨ q)
(c) (∼ r) ⇒ ((∼ q) ∨ p)
(d) (q ∧ (∼ p)) ⇔ r
(a) (p ∧ s) ⇒ q
(b) ∼
(c) (∼ r) ⇒ p
(a) p ⇒ (q ⇒ p)
(b) q ⇒ (q ⇒ p)
Example 1.36. Show that the following result is true for all n ≥ 1, by mathematical
induction
1 + 2 + 3 + . . . + n = n(n+1)
2
k(k + 1)
i.e 1 + 2 + 3 + ... + k = (1.1)
2
1 + 2 + 3 + . . . + k + k + 1 = (1 + 2 + . . . + k) + k + 1
k(k + 1)
= + k + 1 (using 1.1)
2
k(k + 1) + 2(k + 1)
=
2
(k + 1)(k + 2)
=
2
(k + 1)((k + 1) + 1)
=
2
Thus we have proved that the result is true for n = k + 1
Hence by Principle of Mathematical Induction, the result is true for all n ≥ 1.
Example 1.37. Let A1 , A2 , A3 . . . An be any n-sets. Show the following result using
mathematical induction.
∪
n ∩n
( Ai ) = Ai
i=1 i=1
∪
k ∩
k
( Ai ) = Ai (1.2)
i=1 i=1
∪
k+1
( Ai ) = A1 ∪ A2 ∪ A3 ∪ . . . ∪ Ak+1
i=1
= A1 ∪ A2 ∪ . . . ∪ Ak ∪ Ak+1
= (A1 ∪ A2 ∪ . . . ∪ Ak ) ∪ Ak+1
= (A1 ∪ A2 ∪ . . . ∪ Ak ) ∩ Ak+1
∩
k
=( Ai ) ∩ Ak+1 (using 1.2)
i=1
∩
k+1
=( Ai )
i=1
In-text Exercise 1.4. In Exercise 1 through 4, prove the statement is true by using
mathematical induction.
1. 2 + 4 + 6 + . . . + 2n = n(n + 1)
2. 1 + 21 + 22 + . . . + 2n = 2n+1 − 1
n(n+1)(2n+1)
3. 12 + 22 + 32 + . . . + n2 = 6
a(1−r n )
4. a + ar + ar2 + . . . + arn−1 = 1−r
for r 6= 1
1.8 Summary
• A well defined collection of objects is said to be set. These objects is called
elements or members of the set.
• A set which does not have any element is called empty set.
• Two sets are said to be equal if they have exactly same elements.
• A set which has n distinct elements or empty set is called finite otherwise infinite.
1.9. SELF-ASSESSMENT EXERCISE 23
• A table which shows the truth values of a compound statement in terms of its
component parts, is said to be a truth table.
• If p and q are two statements then “if p then q ” is called conditional statement.
2. (a) {A, R, D, V, K}
(b) {B, O, K}
(c) {M, I, S, P}
3. (a) False
(b) True
(c) False
(d) True
(e) False
(f) False
4. {x | x is a vowel }
5. {x | x ∈ Z and x2 < 5}
8. (a) True
(b) False
(c) False
(d) True
(e) True
(f) True
(g) True
(h) True
9. (a) ⊆
(b) ⊆
(c) ⊈
(d) ⊆
(e) ⊈
(f) ⊆
10. {1, 2, 3}
11. Yes, Yes, the complement of a set would not be defined unambiguously.
13. Eight. There are three parts that represent what is left of each set when common
parts are removed, three regions that each represent the part shared by one of
the three pairs of sets, a region that represents what all three sets have in
common, and a region outside all three sets.
14. B = {m, n}
15. B = {a, b, c}
16.
is one solution.
2. (a) It will not rain tomorrow and it will not snow tomorrow.
(b) It is not the case that if you drive, I will walk.
4. (a) TRUE
(b) TRUE
(c) TRUE
(d) FALSE
(a) FALSE
(b) TRUE
26 LESSON - 1. DISCRETE MATHEMATICS
(c) TRUE
(d) FALSE
3. (a) True
(b) False
(c) True
(d) True
p q p ⇒ (q ⇒ p)
T T T T
T F T T
6. (a)
F T T F
F F T T
↑
tautology
1.10. SOLUTIONS TO THE IN-TEXT EXERCISES 27
p q q ⇒ (q ⇒ p)
T T T T
T F T T
(b)
F T F F
F F T T
↑
contingency
k(k + 1)(2k + 1)
= + (k + 1)2
6
k(2k + 1)
= (k + 1)( + (k + 1))
6
k+1
= (2k 2 + k + 6(k + 1))
6
k+1
= (2k 2 + 7k + 6)
6
(k + 1)(k + 2)(2k + 3)
=
6
(k + 1)((k + 1) + 1)(2(k + 1) + 1)
=
6
RHS of P (k + 1).
28 LESSON - 1. DISCRETE MATHEMATICS
a(1−r1 )
4. Basic step: n = 1 P (1) : a = 1−r
is true.
a(1−r k )
Induction step: LHS of P (k + 1) : a + ar + . . . + ark−1 + ark = 1−r
+ ark =
a−ar k +ar k −ar k+1 a(1−rk+1 )
1−r
= 1−r
. RHS of P (k + 1).
Lesson - 2
Structure
2.1 Learning Objectives 29
2.2 Introduction 30
2.3 Relations and their properties 30
2.4 Types of Relations 34
2.4.1 Reflexive and Irreflexive Relations 34
2.4.2 Symmetric, Antisymmetric and Asymmetric Relations 35
2.4.3 Transitive Relation 36
2.5 Equivalence Relation 37
2.6 Equivalence Classes 42
2.7 Partially Ordered Relations 44
2.8 Summary 48
2.9 Self-Assessment Exercise 49
2.10 Solutions to In-text Exercises 49
29
30 LESSON - 2. RELATIONS AND POSETS
2.2 Introduction
Mathematics is all about finding the patterns - a recognisable link between quantities.
In day-to-day life, we come across several patterns that characterize relations such as
father and son, brother and sister, teacher and student etc. In the arena of Mathe-
matics, we come across many relations between objects/numbers such as number m
is less than or equal to n, set A is a subset of B. In al these cases, one can notice
that a relation always involves pairs of objects in a particular order. Relation maps
elements of one set to the elements of another sets.
In this chapter, we will study about the importance of relations and their proper-
ties. We will also discuss about the equivalence class and partial order relation and
their importance in the field of Algebra and Discrete Mathematics. Relations and
partial order set are the building block of the discrete mathematics.
Note. From this ordered pair notation, one can easily say that a relation from the set
A to B is a subset of A × B.
even if we have no alternative description for the same. Now, we define the notion of
a relation formally:
Definition 2.1. Let A and B be two nonempty sets. Then a relation R from A to B
is a subset of directed set A × B, that is, R ⊆ A × B. Whenever the ordered pair
(a, b) ∈ R, we say the element a is related to b by the relation R. Sometimes, we
denote the same with aRb.
Example 2.1. Let A = {1, 2, 3, 4} and B = {a, b}. Then R = {(1, a), (2, b), (4, a)} is a
relation from A to B.
Then
R = {(2, 1), (3, 1), (3, 2), (4, 1), (4, 2), (4, 3)}
Example 2.3. Let A = R be the set of all real numbers. Then, we define the relation
R on A:
xRy if and only if x and y holds the equation x2 + y 2 = 1
In the above example, we have the collection of all the ordered pairs, which lie on
the unit circle.
Example 2.4. Let A be the set of all the straight lines in a plane. Then, we can define
the following relation R on A:
That is, Dom(R) is the collection of all the first elements in the ordered pairs in
R.
Note. All the elements of A and B, which are not in Dom(R) and Ran(R) in any way
respectively, are not part of relation R.
Example 2.5. In the Example 2.2, the Dom(R) = {2, 3, 4} and Ran(R) ={1, 2, 3}.
32 LESSON - 2. RELATIONS AND POSETS
Example 2.6. In the Example 2.3, the Dom(R) = Ran(R) = [−1, 1].
Definition 2.4. Let R be a relation from A to B and let x ∈ A. Then we define R(x),
the R-relative set of x as
R(x) = {y ∈ B | (x, y) ∈ R}
that is, the collection of all the elements of B which are related to x.
Similarly, let A1 ⊆ A, then the R-relative set of A1 , which is denoted by R(A1 ) is
defined as
R = {(a, b), (a, a), (a, c), (b, s), (c, a), (c, d), (c, f ), (d, f )}
. Then, here R(a) = {a, b, c} and R(b) = {s}. Let A1 = {c, d}, then R(A1 ) =
{a, d, f }.
In the following result, we show some set theoretic relation between the R-relative
sets.
Theorem 2.1. Let R be a relation from A to B and let A1 and A2 be two nonempty
subsets of A. Then:
1. If A1 ⊆ A2 , then R(A1 ) ⊆ R(A2 );
∪ ∪
2. R(A1 A2 ) = R(A1 ) R(A2 );
∩ ∩
3. R(A1 A2 ) ⊆ R(A1 ) R(A2 ).
Proof. Let R be a relation from A to B and let A1 and A2 be two non-empty subsets
of A.
1. If y ∈ R(A1 ), then there exists some x ∈ A1 such that (x, y) ∈ R. By the given
hypothesis, we have A1 ⊆ A2 , thus we have x ∈ A2 . Hence, we have y ∈ R(A2 ).
Therefore
R(A1 ) ⊆ R(A2 ).
∪
2. Since, we have A1 ⊆ (A1 A2 ) then by part (1), we have
∪
R(A1 ) ⊆ R(A1 A2 ).
∪
Similarly, A2 ⊆ (A1 A2 ) implies that
∪
R(A2 ) ⊆ R(A1 A2 ).
2.3. RELATIONS AND THEIR PROPERTIES 33
Thus, we have ∪ ∪
R(A1 ) R(A2 ) ⊆ R(A1 A2 ).
∪ ∪
Conversely, let y ∈ R(A1 ∪A2 ), then there exists some x ∈ A1 A2 such that
(x, y) ∈ R. Since x ∈ A1 A2 , then either a ∈ A1 or x ∈ A2 or in both. If
x ∈ A1 and (x, y) ∈ R, therefore, we must have y ∈ R(A1 ). Similarly,
∪ if x ∈ A2 ,
then we have y ∈ R(A2 ). In both the case, we have y ∈ R(A1 ) R(A2 ). Hence,
we have ∪ ∪
R(A1 A2 ) ⊆ R(A1 ) R(A2 ).
Thus, ( ∪ ) ∪
R A1 A2 = R(A1 ) R(A2 ).
∩ ∩
3. Since, we have A1 A2 ⊆ A1 and A1 A2 ⊆ A2 , then by part (1), we have
∩
R(A1 A2 ) ⊆ R(A1 )
and ∩
R(A1 A2 ) ⊆ R(A2).
Thus, we have ∩ ∩
R(A1 A2 ) ⊆ R(A1 ) R(A2 )
.
In the above Theorem, equality in part (3) does not hold good in general. For
this, we have the following example.
R = {(a, a), (a, b), (a, c), (b, a), (b, c), (c, d), (c, a)}
Then, we consider A1 = {a} and A2 = {b}. Then, we have R(A1 ) = {a, b, c} and
R(A2 ) = {a, c}. Here, we have A1 ∩A2 = ∅, thus R(A1 ∩A2 ) = ∅ but R(A1 )∩R(A2 ) =
{a, c} 6= ∅.
In the following result, we will show that a relation can be determine with the
help of its R-relative sets.
Theorem 2.2. Let R and S be two relations from the set A to B and let R(a) = S(a)
for all a ∈ A, then R = S.
Proof. Let (a, b) ∈ R, then we have b ∈ R(a). By the given hypothesis, we have
R(a) = S(a), that is, b ∈ S(a). Therefore, we have (a, b) ∈ S. Hence, R ⊆ S.
Similarly, we have S ⊆ R. Thus, R = S.
In-text Exercise 2.1. 1. Find the domain and range of the following relation R:
34 LESSON - 2. RELATIONS AND POSETS
R = {(a, b) ∈ A × A | a 6= b}
From the last example, one can conclude that reflexive and irreflexive relations
are not complement to each other. We have relations, which are neither reflexive nor
irreflexive.
Remark. By the definition of reflexive relation, one can observe that R is reflexive on
a set A, then
Dom(R) = Ran(R) = A.
Remark. A relation R is not symmetric if there exists some a and b ∈ A such that
aRb, but bRa.
Example 2.12. Let A be a set of all person living in Delhi and let R be relation on A
defined as
(x, y) ∈ R if and only if x is friend of y.
Then R is a symmetric relation. As, whenever (x, y) ∈ R, means x is friend of y,
which means y is friend of x. Therefore (y, x) ∈ R.
Example 2.14. Let A be the set of all natural numbers and let
R = {(a, b) ∈ A × A | a divides b}
Then, one can easily verify that if x < y, that is, xRy, then y ≮ x. Thus, R is a
asymmetric relation on Z.
Similarly, if suppose x is related to y and y is also related to x, that is, we have
x < y and y < x, which is not possible, hence the hypothesis of antisymmetric relation
can not hold, that is, R is vacuously antisymmetric relation.
Check, whether R is symmetric?
Then, there does not exist no triplets a, b, c ∈ A such that (a, b) ∈ R and (b, c) ∈ R.
Thus, R is transitive vacuously.
We can summarize the reflexive, symmetric and transitive relations as follows:
Result 2.1. Let R be a relation on a set A. Then R is
1. reflexive if a ∈ R(a) for all a ∈ A;
R = {(1, 1), (1, 2), (2, 2), (3, 4), (3, 3), (4, 3), (4, 4)}
Here, one can easily observe that (a, a) ∈ R for all a ∈ A. Therefore R is reflexive.
Even R is transitive as well (Check yourself!). But R is not symmetric as (1, 2) ∈ R
but (2, 1) ∈
/ R. Thus, R is not an equivalence relation.
Example 2.20. Let A = N, the set of all natural numbers, and let R be defined by
Is R an equivalence relation?
38 LESSON - 2. RELATIONS AND POSETS
Solution. Since a ≮ a. Thus, R is not reflexive. Also, if a < b, it does not follow that
b < a. Thus, R is neither symmetric too.
But, if have a < b and b < c which imply that a < c. Thus, R is transitive
relation. Hence, R is not an equivalence relation.
R = {(a, b) ∈ A × A | a ≡ b(mod(n))}
Solution. Here
3. Let (a, b) ∈ R and (b, c) ∈ R, that is, (a − b) and (b − c) both are divided by n.
Hence, (a − c) = (a − b) + (b − c) is divisible by n. Thus, R is transitive as well.
Definition 2.12. A collection of pairwise disjoint subsets of a given set is called parti-
tion of the set, where the union of the subsets must equal to the entire set.
1. ∪
A= Bi
i∈Λ
∩
2. Bi Bj = ∅ for all i 6= j.
In the Example 2.22, the collection {a, e} and {b, c, d, f } also forms another par-
tition of A. Thus, one can conclude that partition of a set is not unique.
In the next result, we will show that every partition of a set A generates an
equivalence relation. Later, we will show that this result is other way around as well.
Here, we recall that the sets in partition of a set are either disjoint or identical.
Also, they are known as blocks of P.
2. Let (a, b) ∈ R, that is a and b both are in the same block, then b and a also lie
in the same block. Thus, R is symmetric.
Now, we will demonstrate the above result, with the help of an example.
be a partition of A. Here, the blocks of P are {1, 2, 5}, {3, 4} and {6, 7}.
Consider A1 = {1, 2, 5} and 1 ∈ A1 . For the equivalence relation, each element of A1
must be related to every other element in A1 . That is, we have
R1 = {(1, 1), (1, 2), (1, 5), (2, 1), (2, 2), (2, 5), (5, 1), (5, 2), (5, 5)}
Repeat the same for the blocks {3, 4} and {6, 7}. Thus, we have
and
R3 = {(6, 6), (6, 7), (7, 6), (7, 7)}
∪ ∪
Hence, the equivalence relation R generated by the partition P is R = R1 R2 R3 .
{R(a) | a ∈ A}
In words,we can say that P consists of all distinct R-relative sets which are gen-
erated by the elements of A.
Note. For a given partition of A, one can simply construct an equivalence relation on
A.
In then following results, we will show that all the equivalence relations on a given
non-empty set A can be produced from partitions.
Theorem 2.4. Let R be an equivalence relation on a given non-empty set A and let
a, b ∈ A. Then, we have
That is, for an equivalence relation, two elements are related to each other if and
only if their R-relative sets coincide.
Proof. Let R be an equivalence relation on A and let a, b ∈ A such that R(a) = R(b).
Then, we have to show that (a, b) ∈ R, that is, a is related to b.
Since R is reflexive, therefore (b, b) ∈ R, that is, b ∈ R(b). By the given hypothesis,
we have R(a) = R(b), that is, b ∈ R(a). Thus, we have (a, b) ∈ R.
Conversely, Let (a, b) ∈ R. Then, we have to show that R(a) = R(b), which is
same as proving the following two results:
1. R(a) ⊆ R(b);
2. R(b) ⊆ R(a).
2.5. EQUIVALENCE RELATION 41
We have (a, b) ∈ R, that is, b ∈ R(a) and as R is a symmetric relation thus, we have,
a ∈ R(b).
Now, let x ∈ R(a) which implies (a, x) ∈ R. Since, R is an equivalence relation,
thus transitive. Hence, we (b, x) ∈ R, that is, x ∈ R(b). Therefore, we have R(a) ⊆
R(b).
Similarly, let y ∈ R(b), that is (b, y) ∈ R. Also, we have (a, b) ∈ R. So, by
transitivity, we have (a, y) ∈ R. Hence, we have R(b) ⊆ R(a). Therefore, we have
R(a) = R(b).
Now, we will provide our main result which connect the partition of a set with its
corresponding equivalence relation.
Theorem 2.5. Let R be an equivalence relation on a given non-empty set A and let P
be the collection of all distinct relative sets R(a) for a ∈ A. Then, P is a partition of
A. Also, R is the equivalence relation generated by P.
Remark. Let R be an equivalence relation on A, then the R-relative sets, R(a) are
called equivalence classes of R and they are denoted by [a].
The partition P constructed in Theorem 2.5 are nothing but the collection of equiv-
alence classes of R.
R = {(1, 1), (1, 2), (2, 1), (2, 2), (3, 4), (4, 3), (3, 3), (4, 4)}
Then, one can easily verify that R is an equivalence relation on A. Also, we have
R(1) = {1, 2} = R(2) and R(3) = {3, 4} = R(4). Hence, the quotient set
Example 2.26. Let A = Z be the set of all integers and let R be a relation on A,
define as
(a, b) ∈ R if and only if a − b is divisible by 2
Then, one can easily verify that R is an equivalence relation on A and its equiv-
alence classes are
Since R(0) ∪ R(1) = A and R(0) ∩ R(1) = ∅. Thus, we have A/R consists of R(0),
that is set of all even integers and R(1), set of all odd integers only.
Working Rule for Determining partitions A/R for a finite set A Let P be a partition
of A and let R be the corresponding equivalence relation generated by the partition
P.
step 1 Let A1 be a member of P and let a ∈ A1 . Then from the above example, one
can observe that A1 consists of all elements x ∈ A which are related to a, that
is, (a, x) ∈ R.
Therefore, we have R(a) ⊆ A1 . Also, we have A1 ⊆ R(a). Thus, we have
A1 = R(a).
step 2 Let there exist some b(6= a) ∈ A and b ∈ A2 , then by the case (1), we have
A2 = R(b).
step 3 Repeat the step (3), until all the elements of A are excluded.
{b ∈ A | aRb}
[a] = {b ∈ Z | aRb}
= {a, −a}
Example 2.28. Let R be a relation defined on the set of integers Z such that aRb, if
a ≡ b(mod4)
Similarly, we have
Hence, we have
[0] ={. . . , −8, −4, 0, 4, 8, . . .}
[1] ={. . . , −7, −3, 1, 5, 9, . . .}
In general, equivalence class of a is given by
[a] ={b | a ≡ b(mod4)}
={b | b − aa is divisible by 4}
={. . . , a − 8, a − 4, a, a + 4, a + 8, . . .}
In-text Exercise 2.3. 1. Determine whether the given relation R on a set A is an
equivalence relation.
(a) A = {1, 2, 3, 4}
R = {(1, 1), (2, 1), (2, 2), (3, 3), (4, 4), (4, 3)};
(b) A = {1, 2, 3, 4}
R = {(1, 1), (1, 2), (1, 3), (2, 1), (2, 2), (3, 1), (2, 3), (3, 3), (4, 4), (3, 2)}
2. Let A be the set of all the students admitted in SOL, then aRb if and only if a
and b have the same last name. Is, R an equivalence relation.
3. Let {{1, 3, 5}, {2, 4}} be a partition of the set A = {1, 2, 3, 4, 5}. Find the
corresponding equivalence relation on A.
4. Let S = {1, 2, 3, 4, 5} and A = S × S. let us define the following relation R on
A:
(a, b)R(c, d) if and only if ac = bd
Show that R is an equivalence relation.
Example 2.32. Check whether the relation < on the set of natural numbers, a partial
order relation.
Solution. As a ≮ a for a ∈ P . Thus, the given relation is not reflexive. Hence the
given relation is neither partial order nor equivalence.
Definition 2.15. Let R be a relation define on a set A. Then the inverse relation of
R, denoted by R−1 is define as
Result 2.2. Let P be a non-empty set and R be a partial order relation on P . Then
the inverse relation, R−1 is also a partial order relation on P .
Solution. Let R be a partial order relation on P . Then
1. R is reflexive, therefore, we have (a, a) ∈ R for all a ∈ P . Hence, we have
(a, a) ∈ R−1 for all a ∈ P . Therefore, R−1 is reflexive.
2. Let (a, b) ∈ R−1 and (b, a) ∈ R−1 . Thus, by definition of inverse relation, we
have (b, a) ∈ R and (b, a) ∈ R. Since, R is an antisymmetric relation. Hence,
we have a = b. Therefore, R−1 is an antisymmetric relation.
46 LESSON - 2. RELATIONS AND POSETS
3. Let (x, y) ∈ R−1 and (y, z) ∈ R−1 . That is, we have (y, x) ∈ R and (z, y) ∈ R.
Hence, by transitivity of R, we have (z, x) ∈ R. Thus, (x, z) ∈ R−1 . Hence R−1
is transitive.
Note. The partially ordered set (P, R−1 ) is called the dual of the poset (P, R).
−1
Since, we have (R−1 ) = R. Thus, the dual of the dual is nothing but the same
relation R.
The most common partial order relations are ≤ and ≥ defined on Z. Therefore,
it a common practice to mention a partial order on a set A with the symbol ≤ or
with ≥ for R. Thus the reader may see the symbol ≤ used for many different partial
orders on different sets. To distinguish various partial orders from one another, we
may also use different symbols such as ≤1 , ≤′ , ≥1 , ≥′ and so on.
Remark. Let (A, ≤) is a partially ordered set, then we will use (A, ≥) for the dual
poset of (A, ≤).
Similarly, the dual of poset (A, ≤1 ) will be denoted by (A, ≥1 )
Definition 2.16. Let (A, ≤) be a partially ordered set, then we say a, b ∈ A are com-
parable if either
a ≤ b or b ≤ a
Example 2.33. Let A = N, be the set of all natural numbers and let R be a relation
define on A such that
aRb if and only if a | b
Then, one can easily verify that
Here, one can observe that 3 ∤ 4 and 4 ∤ 3, that neither 3 is divisible by 4 nor 4 is
divisible by 3. Hence, 3 and 4 are not comparable. But elements 2, 4 are comparable
as 2 | 4.
Remark. Thus the word “partial” in partially ordered set (A, ≤) is used because of
the fact that in A some elements are comparable and some may not be comparable.
What if, in a set, every elements are comparable to each other?
2.7. PARTIALLY ORDERED RELATIONS 47
Definition 2.17. Let R be a partial order relation on a given set A, where every pair
of elements is comparable, that is, for all a, b ∈ A, we have either a ≤ b or b ≤ a, then
the set A is called linearly ordered set.
Example 2.34. Consider the set P = Z be the set of integers then the usual less than
or equal to relation ≤ is a partial order on P . Then, one can easily observe that for
every pair a, b ∈ P , we have either a ≤ b or b ≤ a. Thus, (P, ≤) is a chain.
In the next result, we will show how to construct new partial order relations from
the existing one.
Theorem 2.6. Let (A, ≤) and (B, ≤) be two partially order sets. Then (A × B, ≤) is
a partial order set, with the partial order ≤ defined as
Proof. Here, we have to show that the partial order ≤ on the product space A × B
is a partial order relation, that is, reflexive, antisymmetric and transitive.
1. Let (a, b) ∈ A × B, that is, a ∈ A and b ∈ B. As, (A, ≤) and (B, ≤) both are
reflexive, thus, we have a ≤ a and b ≤ b. Hence, we have
(a, b) ≤ (a, b)
2. Now let (a, b) ≤ (a′ , b′ ) and (a′ , b′ ) ≤ (a, b) for some a, a′ ∈ A and b, b′ ∈ B.
Then„ we have
Since (A, ≤) and (B, ≤) both are antisymmetric (being partial order), thus,
we have a = a′ and b = b′ . Hence, we have (a, b) = (a′ , b′ ). Therefore, ≤ is
antisymmetric on A × B.
3. Let
(a, b) ≤ (a′ , b′ ) and (a′ , b′ ) ≤ (a′′ , b′′ )
for some a, a′ , a′′ ∈ A and b, b′ , b′′ ∈ B. Then we have
a ≤ a′ and a′ ≤ a′′
Therefore, we have a ≤ a′′ , by the transitivity of the poset (A, ≤). Similarly,
we have
b ≤ b′ and b′ ≤ b′′
Hence, we have b ≤ b′′
48 LESSON - 2. RELATIONS AND POSETS
Thus, we have
(a, b) ≤ (a′′ , b′′ )
Therefore, ≤ is a partial order on A × B and hence A × B is a partial order set.
Remark. The partial order ≤ defined on the Cartesian product A × B is also called
the product partial order.
In-text Exercise 2.4. 1. Determine whether the relation R is a partial order on the
set p;
3. Let A be the collection of all the candidates applying for the B. Sc (H) Mathe-
matics and let R be a relation define on A such that
2.8 Summary
In this chapter, we have covered the following:
R(x) = {y ∈ A | (x, y) ∈ R}
3. A relation R on a set A is
4. Check, whether “greater than” relation > is a partial order relation on the set
of real numbers.
is an equivalence relation.
R = {(1, 1), (1, 3), (1, 5), (3, 1), (3, 3), (3, 5), (5, 1), (5, 3),
(5, 5), (2, 2), (2, 4), (4, 2), (4, 4)}
4 Here R is reflexive as (a, b)R(a, b) for all (a, b) ∈ A. Also, R is symmetric
and transitive as well.
In-text Exercise 2. 4 1 (a) R is not reflexive as 1R1, hence R is not a partial order relation.
(b) Here, R is not reflexive as 2R2, hence R is not a partial order relation.
(c) Here R is a partial order relation.
2 R is not an anti-symmetric relation. Thus, R is not a partial order relation.
3 Here R is neither anti-symmetric nor transitive. Hence, R is not a partial
order relation.
Lesson - 3
Structure
3.1 Learning Objectives 51
3.2 Introduction 52
3.3 Functions 52
3.4 Bijective Functions 55
3.4.1 Invertible Function 56
3.5 Lexicographic Order 61
3.6 Hasse Diagrams 62
3.7 Functions between Posets 66
3.8 Bounds of a POSETS 69
3.8.1 Greatest and Least Element 69
3.8.2 Maximal and Minimal Elements 70
3.9 Summary 73
3.10 Self-Assessment Exercise 74
3.11 Solutions to In-text Exercise 75
• study the inverse of function, whenever it exists and their respective properties;
51
52 LESSON - 3. FUNCTIONS AND OTHER PROPERTIES
• introduce and study the poset with the help of Hasse diagrams;
• study Lattices and its algebraic structure.
3.2 Introduction
In this chapter, our focus will be on a special type of relation known as function.
Functions play very important role in mathematics, computer science other diverse
field of education. Later, we will also revisit the partial order set and its various
properties. Finally, we will discuss some basic notion for lattices, which will be used
frequently in later chapters.
3.3 Functions
In this section, we will define the notion of a function, which is a special type of
relation. Later on, we study some basic properties and types of functions. We will
demonstrate all these properties with the help of various examples.
Definition 3.1. Let A and B be two non-empty sets. Then a function f from A to B
is a relation from A to B satisfying the following properties
1. for all a ∈ Dom(f ), f (a), the f -relative set of a is non-empty.
That is, Dom(f ) = A;
2. For every a ∈Dom(f ), f -relative set of a contains exactly one element of B.
That is, whenever a1 = a2 , we have f (a1 ) = f (a2 ).
Remark. Whenever a ∈
/ Dom(f ), then f (a) = ∅.
For the simplicity, we mention the relation f with the set of pairs
Functions are also known as mappings or transformations because, here every element
of A is mapped to a unique element of B. The element b = f (a) is referred as image
of a under f and the element a is called pre image of b under f .
Example 3.1. Let A = {1, 2, 3, 4} and B = {a, b, c, d} and let us define a relation f
from A to B as
f = {(1, a), (2, a), (3, b), (4, c)}
Here, we have
f (1) =f (2) = a
f (3) = b
f (4) = c
Example 3.2. Let A = {1, 2, 3, 4} and B = {a, b, c, d}. Consider the relation
Example 3.3. Let A = R be the set of all real numbers, and let p(x) be polynomial
with real coefficients, that is
p(x) = a0 + a1 x + . . . + an xn .
Example 3.4. Let A = N, be the set of all natural numbers and let B, be the set of
all even integers. Then, we can define a function f : A → B as
One can easily confirm that f is a function defined by giving a formula for the values
f (n).
Example 3.5. Let A = Z, be the set of all integers and let B = {0, 1}. Let f : A → B
define as {
0 if x is even
f (x) =
1 if x is odd
Then f is a function because for each x ∈ A, f (x) is either 0 or 1, singleton.
g◦f: A→C
Since, f and g both are functions, then for each a ∈ A, f (a) is a singleton element,
that is, there exists some b ∈ B such that f (a) = b. Therefore, we have g(f (a)) = g(b).
Since, g is a function, thus, for b ∈ B, there exists some c ∈ C, such that
g(b) = c
Thus, we have, for each a ∈ A, there exists some c ∈ C such that g ◦ f (a) = c, that
is, g ◦ f (a) contains just one element of C. Hence, g ◦ f is a well define function form
A to C.
Example 3.6. Let A = C = N be the set of all natural numbers, B = E, be the set of
all even natural numbers. Let us define two functions f : A → B and g : B → C as
f (x) = 2x
g(x) = x/2
Then, find g ◦ f
Solution. Consider
1. f is onto if Ran(f ) = B;
2. f is one-one if for
f (a) = f (b) imples a = b
Example 3.7. Let us consider A = {1, 2, 3, 4} and B = {a, b, c, d}, and let us define a
function f from A to B as
Then the function f is not onto, as Ran(f ) = {a, c, d} 6= B. Also, we have f (1) =
f (2) = a, but 1 6= 2. Hence, f is neither one-one nor onto.
Example 3.8. Let us consider A = B = Z, be the set of all integers and let f : A → B
be a function defined as
f (a) = a + 1 for all a ∈ A.
Then
1. f is one-one:
Consider
2. f is onto:
For all b ∈ B, there always exists some a = b − 1 ∈ A, such that
f (a) = f (b − 1) = (b − 1) + 1 = b
Is f everywhere defined?
56 LESSON - 3. FUNCTIONS AND OTHER PROPERTIES
f (x) = f (y) ⇒ x = y
f (x1 ) = y = f (x2 )
2. Here, we have given then f −1 is a function and we have to show that f −1 is also
one-one.
−1
Since, f −1 is a function, thus (f −1 ) = f is also a function. Thus, by case (1),
we have f −1 is one-one.
3.4. BIJECTIVE FUNCTIONS 57
Dom(f −1 ) = Ran(f )
Thus, from the above theorem, one can conclude that whenever f is one-one and
onto then f −1 is also one-one and onto and vice-versa. That is, we have
f (a) = b ⇔ a = f −1 (b)
Example 3.10. Let A = B = R be the set of all real numbers and let f : A → B be a
function defined as
f (x) = |x|
Is f invertible?
In the following, we will notice some results concerning the composition of func-
tions.
1. IB ◦ f = f ;
2. f ◦ IA = f
Also, if f is one-one and onto then,
3. f −1 ◦ f = IA
4. f ◦ f −1 = IB .
Proof. 1. Consider
for a ∈ A and b ∈ B.
IA (a) = a
= f −1 (f (a))
( )
= f −1 ◦ f (a)
Hence, we have IA = f −1 ◦ f .
IB (b) = b
= f (f −1 (b))
( )
= f ◦ f −1 (b)
Hence, we have IB = f ◦ f −1 .
(g ◦ f )−1 = f −1 ◦ g −1
Proof. 1. We have
f ◦ g = IB and g ◦ f = IA
that is, f ◦ g(b) = f (g(b)) and g ◦ f (a) = g(f (a)) = a for all a ∈ A and b ∈ B.
Hence, we have Ran(f ) = B and Ran(g) = A, thus f and g both are onto.
Also, consider
f (x) = f (y)
3.4. BIJECTIVE FUNCTIONS 59
f −1 (b) = f −1 (f (g(b)))
= (f −1 ◦ f )g(b)
= IA (g(b))
= g(b)
Example 3.11. Let A = B = R, the set of all real numbers and let f : A → B be a
function defined as
f (x) = x3
and let g : B → A be defined as
√
3
g(x) = x.
Show that f is one-one and onto. Also, show that g = f −1 .
√
Solution. Let x ∈ R and y = f (x) = x3 . Hence, we have x = 3 y = g(y).
Therefore, g(y) = g(f (x)) = (g ◦ f )(x).
Thus, g ◦ f = IA . Similarly, one can show that f ◦ g = IB . Thus, by the Theorem
3.3, both f and g are one-one and onto.
In the next result, we will show that over the finite sets, a function is one-one if
and only if its onto.
Theorem 3.4. Let A and B be two finite sets such that the number of elements in A
and B are same. Let f : A → B be defined everywhere. Then f is one-one if and only
if f is onto.
Proof. Let A = {a1 , a2 , . . . , an } and B = {b1 , b2 , . . . , bn } be two finite sets such that
both have same cardinality (finite), that is, the number of elements in the set A and
B are same. Let f be a function from A to B which is defined everywhere.
Then, suppose f is one-one, that is f (a1 ), f (a2 ), . . . , f (an ) must map to n distinct
elements, that is, f (a1 ) 6= f (an ) of B. Since, the number of elements in B is also n,
hence f must be onto.
Similarly, suppose f is onto, then f (a1 ), f (a2 ), . . . f (an ) form the entire set B, thus
all must be distinct. Hence f is one-one.
60 LESSON - 3. FUNCTIONS AND OTHER PROPERTIES
Thus, one can say that if f is a function define from A to B, where A and B are
finite sets having same number of elements. Then, to prove that a function is bijective
it is sufficient to show that f is either one-one or onto.
In-text Exercise 3.1. 1. Let A = {a, b, c, d} and B = {1, 2, 3}. Check whether the
given relation R from A to B is a function.
(a) g ◦ f (2);
(b) f ◦ g(2);
(c) g ◦ f (x);
(d) f ◦ g(x);
(e) f ◦ f (x);
(f ) g ◦ g(x).
6. Give a bijective function between the set of all natural numbers N and A =
{x | x is a positive even integer}
7. Let f be a function from A = {1, 2, 3, 4} and B = {a, b, c, d}. Check, whether
f −1 is a function.
(a) f = {(1, a), (2, a), (3, c), (4, d)}
(b) f = {(1, a), (2, c), (3, b), (4, d)}
a1 < a′1 or
a1 = a′1 , and a2 < a′2 or
a1 = a′1 , a2 = a′2 and a3 < a′3 or
a1 = a′1 , a2 = a′2 , . . . an−1 = a′n−1 and an < a′n
Example 3.13. Let G = {a, b, . . . , z} be the collection of all the alphabets in English,
with usual linearly ordered, that is (a ≤ b, b ≤ c, . . . y ≤ z). Let Gn = G×G×. . . G (n-
factors) can be identified with the set of all words having length n. Then lexicographic
order on Gn has the property that if A1 A2 , where A1 , A2 ∈ Gn . Then A1 would
precede A2 in usual dictionary order listing.
Then, one can easily observe that Bat Cat, park part.
Note. The elements of S n and S ∗ are of the same length n but with different notations,
that is, (a1 , a2 , . . . , an ) ∈ S n and a1 a2 . . . an ∈ S ∗ .
The notations differ for some historical reasons and they are interchangeable de-
pending on context.
Example 3.14. Let S = {a, b, . . . , z} be the collection of all alphabets with usual order.
Then S ∗ is the set of all possible “words” of any length. Then, we have
help helping
in S ∗ , while
helper helpin
in S 6 .
Remark. Consider
help helping
this type of order is also known as prefix order. That is, any word is greater than all
of its prefixes. The words occur in the dictionary also follow the prefix ordering.
Thus, the prefix order is a dictionary order but for the words of any finite length
n.
Definition 3.7. A finite partially ordered set P can be represented by Hasse Diagram
where elements of P are represented by points in a plane and whenever xRy (x 6= y),
we draw the point y higher than x and connect with x via a line segment.
Non-comparable elements are not joined. That is, there will be no horizontal line
in the diagram.
Example 3.15. Let A = {1, 2, 3, 5, 7, 11, 13} be a non-empty set. Consider the partial
order of divisibility on A, that is a ≤ b if and only if a divides b. Then the following
partially ordered set A can be represented by the Hasse diagram given by the Figure
3.5. Here, every element of A is divisible by 1 and all are co-prime, thus we have 1 is
at the lower level and all the other elements are in the upper level.
Remark. Let A be a partially ordered set and the element x is related to y and y is
related to z, then because of transitivity the element x is related to z. Then, in the
Hasse diagram, we do not have to connect x with z directly as they are connected via
y.
Example 3.16. Let A = {1, 2, 3, 4, 6, 12}. Consider the partial order of divisibility on
the set A. That is, xRy if and only if x divides y. Here, the elements in the partial
order is given by
R = {(1, 1), (1, 2), (1, 3), (1, 4), (1, 6), (1, 12), (2, 2), (2, 4), (2, 6), (2, 12),
(3, 3), (3, 6), (3, 12), (4, 4), (4, 12), (6, 6), (6, 12), (12, 12)}
Hence, the Hasse diagram of the poset is represented by Figure 3.4.
Example 3.17. Let A = {a, b, c} and S = P(A), be the power set of A. Then P(A) is
a partially ordered set under the set inclusion relation “ ⊆′′ .
P(A) = {∅, {a}, {b}, {c}, {a, b}, {a, c}, {b, c}, {a, b, c}}
Remark. Hasse diagram of a finite linearly ordered set is always in the from of straight
line as shown in the Figure 3.6.
That is, let A = {a, b, c, d, e, f } be a finite linearly ordered set such that a ≤ b ≤
c . . . ≤ f . Then, its Hasse diagram is always in the from of straight line as shown in
the Figure 3.6. In the next example, we will demonstrate the Hasse diagram of the
poset (A, ≤) and its dual (A ≥).
Example 3.18. Let (A, ≤) be a partially ordered set, where A = {a, b, c, d, e, f } having
some relation R, whose Hasse diagram is as follow:
In-text Exercise 3.2. 1. Consider the partial order of divisibility on the set A, that
is, aRb if and only if a divides b. Draw the Hasse diagram of the given poset.
Definition 3.8. Let (A, ≤) and (B, ≤′ ) be two posets. Then a map f : A → B is called
for all x, y ∈ A;
f (x) = f (y)
Example 3.19. Consider a set A = {0, 1} with usual relation ≤ . Then consider a map
f : A → A, defined as
f (0) = 1 and f (1) = 0
Then, the map f is one-one (its actually bijective). But f is not a poset homomor-
phism as, we have 0 ≤ 1 but f (0) = 1 ≮ 0 = f (1).
3.7. FUNCTIONS BETWEEN POSETS 67
Example 3.20. Let A = Z+ be the set of all positive integers and let ≤ be the usual
less than or equal to partial order on A. Let B be the collection of all positive even
numbers with ≤ usual partial order. Then consider the function f : A → B defined
as
f (x) = 2x
Then, f is an isomorphism between A and B.
1. f is one-one.
Let f (x) = f (y), that is, we have 2x = 2y. Thus, we have x = y. Hence,
we have f is one-one. Also, we have Dom(f ) = A, therefore, f is everywhere
defined.
2. f is onto.
Let c ∈ B, that is, c = 2m for some m ∈ Z+ . Thus, we have f (m) = 2m = c.
Hence f is onto.
3. f is poset homomorphism.
Let x, y ∈ A such that x ≤ y. Therefore, we have 2x ≤ 2y. Hence we have
f (x) ≤ f (y). Similarly, we have whenever f (x) ≤ f (y) implies that x ≤ y.
Hence, we have
x ≤ y if and only if f (x) ≤ f (y)
Theorem 3.5. Suppose the elements of A′ have some property relating to other ele-
ments of A, and if this property is completely defined on ≤, then the elements of B ′
must possess exactly the same property with respect to ≤′ .
Consider the Hasse diagram in the Figure 3.7, defined on a poset (A, ≤), where
A = {a, b, c, d}
Note. Let (A, ≤) and (B, ≤′ ) be two finite posets and let f : A → B be a bijective
function. Let H be any Hasse diagram of (A, ≤). Then, we have the following:
68 LESSON - 3. FUNCTIONS AND OTHER PROPERTIES
In-text Exercise 3.3. 1. Let A = B = Z with usual ≤. Check whether the given
function f from A to B is poset isomorphism.
(a) f (x) = −x
x
(b) f (x) = 2
(c) f (x) = x2
Greatest and least element of a poset (A, ≤), if exist then, they will be unique
and they will be comparable with all other elements of A. Therefore, now onwards
we will use the least and the greatest element of A.
Consider the following examples:
Example 3.22. Let A = {a, b, c}. Then consider a poset (P(A), ⊆), with the partial
order, set inclusion. Let
L = {∅, {1, 2}, {2}, {3}}
Then, (L, ⊆) is a poset and ∅ is the least element of L as ∅ ⊆ B for all B ∈ L. But
L has no greatest element.
Example 3.23. Let us consider M = {{2}, {3}, {1, 2}, {1, 2, 3}}. Then (M, ⊆) is again
a poset and {1, 2, 3} is the greatest element of M , because B ⊆ {1, 2, 3} for all B ∈ M .
Here, M has no least element.
Example 3.24. Consider N = {{2}, {3}, {1, 3}}. Here, in the poset (N, ⊆) neither has
the least element nor the greatest element.
Example 3.25. Consider O = {∅, {1}, {3}, {1, 3}}. Then (O, ⊆) is a poset. Then O
has both the greatest and the least elements, which are {1, 2, 3} and ∅ respectively.
That is, a maximal element need not be comparable with all the elements of poset.
Similarly, we have
We already mentioned that the least and the greatest elements, if exist are always
unique. That is, there is at the most one least and one greatest element.
Remark. But there may be none, one or more than one maximal and minimal element
of a poset (A, ≤).
Consider the Example 3.22, here the minimal element is ∅ but {3}, {1, 2} both are
maximal elements of (L, ⊆).
Note. Every greatest element is maximal and every least element is minimal.
Also, a minimal element need not be the least one and maximal element need not
be the greatest element.
1. A poset (A, ≤) may not have a maximal element. Consider the poset (N, ≤),
with the usual less than or equal to relation. Then (N, ≤) has no maximal
element.
3.8. BOUNDS OF A POSETS 71
With the help of maximal element, we are in position to prove that the greatest
element of a poset (A, ≤) is unique, if it exists.
Result 3.1. The greatest element of a poset is always a maximal element and it is
always unique, if exists.
Proof. Let (A, ≤) be a poset. Let if possible, there exist two greatest element a, b ∈ A.
Thus, from the definition, we have x ≤ a and x ≤ b for all x ∈ A. Since, a, b ∈ A.
Thus, we have a ≤ b and b ≤ a. Hence, by the anti-symmetric property, we have
a = b. Thus, the greatest element is unique.
Now, we will show that every greatest element is a maximal element.
For, this, let a ∈ A be the greatest element of A. Let if possible, a is not the maximal
element of A. Then, there exists some y ∈ A such that a < y, that is, we have a ≤ y
but a 6= y. Since, a is the greatest element of A, thus, we have y ≤ a. Hence, we have
a = y. Hence, a is a maximal element of A.
Similarly, we have the following result.
Result 3.2. The least element of a poset is always a minimal element and it is always
unique, if exists.
Example 3.26. Let us consider A = {2, 3, 4, 6, 7}. Then consider a partial order
relation ≤, define as a ≤ b if and only if a divides b. Here, minimal elements are 2, 3
and 7. Because, there does not exist a ∈ A such that a ≤ 2, a ≤ 3 and a ≤ 7. Hence,
there is no least element of this poset.
In the next result, we will provide a sufficient condition for the existence of max-
imal and minimal elements.
Theorem 3.6. Every non-empty finite subset of a poset (A, ≤) has maximal and min-
imal elements.
Proof. Let (A, ≤) be a poset and let A = {x1 , x2 , . . . , xn } be a non-empty set. Let x1
is a maximal element of A, then we are done.
If not, there must exist some xi ∈ A such that x1 < xi . If xi is a maximal element
of A, then we are done. If not, again, there exist some xj ∈ A such that xi < xj .
Continue like this, this process will end after a finite number of steps. Hence, we
get some element x ∈ A, which is a maximal element.
On the similar lines, one can show that there exists minimal element of A as
well.
In the following, we define upper bound, lower bound, supremum and infimum of
a poset, which is analogous to the respective concept in analysis.
72 LESSON - 3. FUNCTIONS AND OTHER PROPERTIES
3. The least upper bound of B, if it exists is called the supremum or the least
upper bound of B and is denoted by sup B;
4. The greatest lower bound of B, if it exists, is called the infimum or the greatest
lower bound of B and it is denoted by inf B.
Remark. The supremum and the infimum of a set B is always unique, if they exist.
Also, the supremum and infimum of the set may or may not belong to the set.
Let A = R be the set of all real numbers with usual ≤. Then consider posets
(A, ≤) and B = (0, 1) ⊆ A. Then inf B = {0} and sup B = {1} which are not belong
to B.
Again consider, A = N, the set of natural numbers with usual ≤ relation. Then
(A, ≤) has the infimum element that is, 1 ∈ A but A has no supremum element in A.
Note. 1. There can be more than one upper bound (respectively, lower bound) of
a set. But there will be at the most one supremum (respectively, infimum).
2. The greatest element of the set is always belongs to the set, whereas the supre-
mum or upper bound of the set may lie outside of the set.
3. If the supremum of the set, lies in the set then it will be nothing but the greatest
element of the set.
The following is an equivalent version of well ordering principle.
Theorem 3.7 (Zorn’s Lemma). Let (A, ≤) be a poset such that every chain of elements
in A has an upper bound in A, then A has at least one maximal element.
From the above discussion, one can say that in general not every poset (A, ≤) has
sup or inf.
Example 3.27. Let us consider a poset (A, ≤) with the Hasse diagram3.10.
1. Then B = {1, 2, 3} is a subset of A and the upper bound of B are 5, 6, 10 and 8
and the least upper bound of B is 5 as we have 5 ≤ 6, 5 ≤ 8 and 5 ≤ 10.
Also, the lower bound of B is 1 only. Thus, it will be the infimum or the greatest
lower bound of B.
2. Consider C = {8, 10} ⊆ A. Then, C has no upper bound in A. But has lower
bounds, which are 1, 2, 3, 4, 5 and 6. Here the infimum of C is 6.
In-text Exercise 3.4. 1. Let A = {2, 4, 6, 9, 12, 18, 27, 36, 48, 60, 72} be a set and ≤
be a partial order relation defined as a ≤ b if and only if a divides b. Then find
3.9 Summary
In this chapter, we have covered the following:
1. A function f from A to B is a relation from A to B such that
(a) f : N → Q define as
x
f (x) =
x+1
(b) f : R+ → R define as
f (x) = x2
(c) f : A → B, where A = {1, 4, 9, 16} and B = {1, 2, 3, 4} and
√
f (x) = x, the positive square root of x
f (x) = x + 1.
6. Check, whether the posets with the following Hasse diagrams are lattices.
f (x) = 2x
This unit is devoted to basic introduction to lattices, its properties and its different
types. We have kept the treatment of concepts as elementary as possible. We have
carefully prepared the ground for students who will progress to study its computer
science applications in future. Within lattice theory we have placed emphasis on
sublattices, product of lattices and distributive lattices. The study of lattices com-
bines algebraic, order-theoretic and graph-theoretic ideas to provide results which are
linked to the partial ordered sets studied in the previous unit.
Chapter 1 provides a firm foundation for the concept of lattices as a special kind
of partial ordered set as well as an algebraic structure. It further discusses sublattice
of a lattice. In chapter 2, we studies product of lattices and isomorphism between
lattices. Chapter 3 deals with two different types of lattices, namely distributive lat-
tice and complemented lattice. Complemented distributive lattices will be studied
extensively in the following unit.
Lattice theory has many applications in the field of computer science and concept
analysis. The field of concept analysis has already made an impact on lattice theory
and has a lot to offer to social scientists concerned with data analysis. Many of
the topics covered are relevant to and have connections with computer science or
information science. We will see many applications to the theory in the following
unit.
77
Lesson - 4
Introduction to Lattices
Dr. Deepti Jain
Sri Venkateswara College
University of Delhi
Structure
4.1 Learning Objectives 78
4.2 Introduction 79
4.3 Lattices as a POSET 79
4.3.1 Remarks on join(∨) and meet(∧) 80
4.4 Lattices as Algebraic Structures 83
4.5 Bounded Lattice 86
4.6 Sublattices 87
4.7 Summary 90
4.8 Self Assessment Exercise 91
4.9 Answers to In-Text Exercises 93
4.10 References 94
4.11 Suggested Readings 94
78
4.2. INTRODUCTION 79
4.2 Introduction
The development of ‘Lattice Theory’ started in 1854, when George Boole (1815 -
1864) introduced an important class of algebraic structures in his publication ‘Math-
ematical Analysis of Logic’. His goal was to find a mathematical model for human
reasoning. In his honor these structures have been called Boolean algebras. They are
special types of lattices. It was E. Schröder, who about 1890 considered the lattice
concept in today’s sense. Later in 1933-37, a series of articles were published by G.
Birkhoff, Von Neumann, Ore etc. Their work showed that lattices have fundamen-
tal applications in modern algebra, projective geometry, point-set theory, functional
analysis, and logic and probability. As a result of all this pioneer work, lattice theory
was recognised as a substantial branch of modern algebra.
We have already seen partially ordered sets in the previous chapters. Many im-
portant properties of a partially ordered set P are expressed in terms of the existence
of upper bounds and lower bounds of subsets of P . One of the most important classes
of partially ordered sets defined in this way is lattices. Here we present some ba-
sic properties of such partially ordered sets, and also consider lattices as algebraic
structures in a way that is reminiscent of the study of, for example, groups and rings.
S u := {x ∈ P | s ≤ x, ∀s ∈ S} and S l := {y ∈ P | s ≥ y, ∀s ∈ S}.
Definition 4.2. Let P be a poset and let S ⊆ P . If S u has a least element x, then x
is called the least upper bound of S. Equivalently, x is the least upper bound of S if
Definition 4.3. Let P be a poset and let S ⊆ P . If S l has a greatest element x, then
x is called the greatest lower bound of S. Equivalently, x is the greatest lower bound
of S if
Since least elements and greatest elements are unique, least upper bounds and
greatest lower bounds are unique when they exist. The least upper bound of S is also
called the supremum of S and is denoted by sup S; the greatest lower bound of S is
also called the infimum of S and is denoted by inf S.
Remark. Recall from the previous chapter that the top and bottom elements of a
poset P are denoted by > and ⊥ respectively. If P has a top element, then P u = {>}
in which case sup P = >. When P has no top element, we have P u = ∅ and hence
sup P does not exist. Similarly, inf P =⊥, if P has a bottom element.
Now we define the term ‘Lattice’.
Definition 4.4. A lattice is a poset (L, ≤) in which every subset {a, b} consisting of
two elements has a least upper bound and a greatest lower bound. We denote the
least upper bound of {a, b} by a ∨ b and call it the join of a and b. Similarly, we
denote the greatest lower bound of {a, b} by a ∧ b and call it the meet of a and b.
2. Let P be any poset. If x and y belongs to P and x ≤ y, then y is the least upper
bound of {x, y} and x is the greatest lower bound of {x, y}. Thus whenever
x ≤ y, we have x ∨ y = y and x ∧ y = x. In particular, since ≤ is reflexive, we
have x ∨ x = x and x ∧ x = x.
3. In a poset P , the least upper bound x ∨ y of {x, y} may fail to exist for two
different reasons:
In Figure 4.1(i) the set {b, c} has no upper bound because b and c has no
common upper bound. Thus {b, c}u = ∅ and hence b ∨ c does not exist. In
(ii) we find that {c, d}u = {a, b} which has no least element as a and b are not
comparable. Hence c ∨ d does not exist.
d1
0
0
1 1
0
0c
1 a 1
0
0
1 1
0
0b
1
b1
0
0
1
11
00
00
11
a
00
11 c 1
0 1d
0
0
1 0
1
(i) (ii)
Figure 4.1:
4.3. LATTICES AS A POSET 81
4. Consider the poset shown in Figure 4.2. At first glance anybody would think
that a ∨ b = e, but on careful inspection we find that {a, b}u = {d, e, f }. Since d
and e are minimal elements of {d, e, f } and d k e, the set {d, e, f } has no least
element and hence a ∨ b does not exist.
d e
a b
Figure 4.2:
Example 4.1. Every chain is a lattice. Let P be a chain and let x, y ∈ P . Then either
x ≤ y or y ≤ x. If x ≤ y, then x ∨ y = y and x ∧ y = x, and if y ≤ x, then x ∨ y = x
and x ∧ y = y. Hence P is a lattice.
Example 4.2. Let X be a set and let L = P(X), the power set of X. We have seen
that inclusion relation, ⊆, is a partial order relation on L. Let A and B belong to
the poset (L, ⊆). Then A ∨ B is the set A ∪ B as A ⊆ A ∪ B, B ⊆ A ∪ B, and, if
A ⊆ C and B ⊆ C, then it follows that A ∪ B ⊆ C. Similarly, we can show that the
element A ∧ B is the set A ∩ B in (L, ⊆). Thus, L is a lattice. Figure 4.3 shows Hasse
diagram of (P({1, 2, 3}), ⊆).
Example 4.3. Consider the poset (Z + , ≤), where for a and b in Z + , a ≤ b if and only
if a | b. Recall that k is the greatest common divisor of a and b if
• if j divides both a and b, then j divides k (i.e., j ≤ k for all lower bounds j of
{a, b}).
82 LESSON - 4. INTRODUCTION TO LATTICES
{1, 2, 3}
1
0
0
1
1
0
0{1, 3} 0{2, 3}
{1, 2} 1
0 1
0 0
1
1
0
1 1
1
0
{1} 1{3}
1
0 1
0
1
0 {2}
0
1 0
1
0
0
1
∅
Figure 4.3:
Thus the greatest common divisor of a and b is precisely the meet of a and b in
(Z + , ≤). Similarly, the join of a and b in (Z + , ≤) is given by their least common
multiple. Thus (Z + , ≤) is a lattice in which
Example 4.4. Let n be a positive integer and let Dn be the set of all positive divisors
of n. Then Dn is a lattice under the divisibility relation as considered in Example
4.3. Thus, if n = 18, we have D18 = {1, 2, 3, 6, 9, 18}. The Hasse diagram of D18 is
shown in Figure 4.4(i). If n = 30, we have D30 = {1, 2, 3, 5, 6, 10, 12, 18, 36}. The
Hasse diagram of D30 is shown in Figure 4.4(ii).
18 30
1
0
0
1
11
00
00
11
1
0
61
0 6 1
0 1
010 0
1
015
0
1 09
1
0
1 0
1 0
1 1
1
0 1
0
03 1
0
11
00
00
11
20
1 1 15
0
2
00
11 11
00
003
11
1
0
0
1 1
0
0
1
1 1
D18 D30
(i) (ii)
Figure 4.4:
Problem 4.1. Which of the following diagrams in Figure 4.5 represent lattices?
Solution. Hasse diagrams (a), (b), (c) and (g) represent lattices. Diagram (d) does
not represent a lattice because neither b ∨ c nor d ∧ e exist. Diagram (e) does not
represent a lattice because e ∨ f does not exist. Diagram (f ) does not represent a
lattice because a ∨ b does not exist.
In-text Exercise 4.1. 1. Draw the Hasse diagram of the poset P = {1, 2, 3, 4, 5, 6, 7}
under divisibility order. Find the join and meet, where they exist, of each of
the following subsets of P . Either specify the join or meet or indicate why it
fails to exist. Is P a lattice?
(i) {3}, (ii) {4, 6}, (iii) {2, 3}, (iv) {2, 3, 6}, (v) {1, 5}.
4.4. LATTICES AS ALGEBRAIC STRUCTURES 83
d f
1d
0 1
0 1
0
0
1 c 0
1 1
0
11
00
00
11
c1
0
0
1 1
0
d0 11 e
00
1
0 1 00
11
1c
0
1
0
0
1
b1
0 1
0
0d
1
1
0
0e
1
1
0
0b
1
b 1
0
0
1 11
00 1
0
11
00
b 1c
0
1
0
0
1
a
1
0 a 1
0
1
0
1
0 0
1
a1
0 a
(a) (b) (c) (d)
e
1
0
1
0
e f
1
0
0
1 1
0
0
1
e
d 1
0
0
1
1
0 c1
0
0
1 1
0
0d
1
1
0
b 11
00 1
0 1
0
1
0
b
11
00 1c
0 1d
0
b1
0
0
1 1
0
0c
1 1
0
00
11
11
00
00
11
1
0
1
0 a
a 0
1
a1
0
Figure 4.5:
Lemma 4.1. (The Connecting Lemma): Let L be a lattice and let a, b ∈ L. Then the
following are equivalent:
(i) a ≤ b
(ii) a ∨ b = b
(iii) a ∧ b = a.
Proof. It is shown in Section 4.3.1(2) that (i) implies both (ii) and (iii). Now we
assume (ii) is true. Then b is an upper bound for {a, b} and therefore b ≥ a. Thus,
(i) holds. Similarly, (iii) implies a is a lower bound of {a, b} and therefore a ≤ b and
hence (i) hold.
Definition 4.5. An (algebraic) lattice (L, ∧, ∨) is a set L with two binary operations
∧ (meet) and ∨ (join) which satisfy the following laws for all x, y, z ∈ L:
(L1) x ∧ y = y ∧ x, x ∨ y = y ∨ x,
(L2) x ∧ (y ∧ z) = (x ∧ y) ∧ z, x ∨ (y ∨ z) = (x ∨ y) ∨ z,
(L3) x ∧ (x ∨ y) = x, x ∨ (x ∧ y) = x,
(L4) x ∧ x = x, x ∨ x = x.
84 LESSON - 4. INTRODUCTION TO LATTICES
(L1) is the commutative law, (L2) is the associative law, (L3) is the absorption law,
and (L4) is the idempotent law.
In the following theorem we will establish the equivalence of two definitions of lattices.
We will do it in two steps.
Step 1: Consider a poset (L, ≤). Define ∨ and ∧ operations on L using supremum and
infimum of elements as
a ∨ b = sup{a, b} and a ∧ b = inf{a, b},
and show that these operations satisfy all four identities (L1 ) − (L4 ) given in
Definition 4.5, thus forming an algebraic lattice.
Step 2: Conversely, we begin with an algebraic lattice (L, ∨, ∧). We define a binary
relation ≤ on L as
a ≤ b ⇔ a ∧ b = a,
and show that it is a partial order relation on L, thus making (L, ≤) a poset.
We will further verify that supremum and infimum defined using this partial
order relation agrees with the join and meet operations of the algebraic lattice
(L, ∨, ∧), i.e.,
a ∨ b = sup{a, b} and a ∧ b = inf{a, b}.
x = x ∧ y = x ∧ (y ∧ z) = (x ∧ y) ∧ z = x ∧ z,
(x ∨ y) ∨ z = x ∨ (y ∨ z) (by(L1))
= x∨z (∵ y ≤ z),
= z (∵ x ≤ z),
It follows from The Connecting Lemma that Theorem 4.1 yields a one-to-one re-
lationship between lattice ordered sets and algebraic lattices. Therefore we shall use
the term lattice for both concepts. We may henceforth say ‘Let L be a lattice’, re-
placing L by (L, ≤) or by (L, ∧, ∨) if we want to emphasize that we are thinking of
it as a special kind of poset or as an algebraic structure. The number of elements of
L, denoted by |L|, is called the cardinality (or order) of the lattice L.
Remark. • The lattice (L, ∧, ∨) has a one if and only if (L, ≤) has a top element
> and, in that case, 1 = > . Similarly, the lattice (L, ∧, ∨) has a zero if and
only if (L, ≤) has a bottom element ⊥ and, in that case, 0 =⊥.
a ∨ 0 = a, a∧0=0
a ∨ 1 = 1, a ∧ 1 = a.
Example 4.5. The lattice N under the partial order of divisibility is not a bounded
lattice since it has a zero element, the number 1, but has no greatest element.
Example 4.6. The lattice Z under the usual partial order ≤ is not bounded since it
has neither a zero element nor a one element.
Example 4.7. The lattice P(X) of all subsets of a set X, is bounded. Its one element
is X and its zero element is ∅. In particular, the lattice P(N) is bounded with zero
element as ∅ and one element as N.
In-text Exercise 4.2. 1. Which of the following structures (L, ≤) are lattices, lat-
tices with a zero element, lattices with a unit element?
(a) L is the set of all finite subsets of an infinite set A and ≤ is the inclusion
relation ⊆.
(b) L0 with inclusion relation ⊆, where L0 is a set of subsets of an infinite set
A defined as follows:
L0 := {X ⊆ A | X finite} ∪ A
4.6. SUBLATTICES 87
(c) L is the set of all infinite subsets of an infinite set A and ≤ is inclusion
relation.
(d) L is the set of all subsets of a set A containing a fixed subset, C, i.e.,
L = {X : C ⊆ X ⊆ A} and ≤ is inclusion relation.
4.6 Sublattices
Definition 4.7. Let L be a lattice. A non-empty subset M of L is called a sublattice
of L if it is closed with respect to ∨ and ∧ of any two elements i.e., a, b ∈ M ⇒
a ∨ b ∈ M and a ∧ b ∈ M . The set of all sublattices of L is denoted by Sub L, and
Sub0 L = Sub L ∪ {∅}.
Example 4.8. .
[x, y] := {a ∈ L | x ≤ a ≤ y}
is a sublattice of L.
6. Consider the lattice L and its subsets M, P and Q shown in Figure 4.6. The
subset M is not a sublattice of L since a ∧ b = 0 ∈
/ M . The subset P is also not
a sublattice of L since a ∨ b = c ∈
/ P . The subset Q is a sublattice of L.
1 1 1
e f e f e f
c
c
a b a b a b a b
0 0 0
L M P Q
Figure 4.6:
7. A subset of a lattice (L, ≤) may be a lattice in its own right without being a
sublattice of (L, ≤). For example consider the lattice (L, ≤) and its subset P
shown in Figure 4.6. Here (P, ≤) is a lattice when considered as a poset itself,
but it is not a sublattice of (L, ≤), i.e., the operations ∨P and ∧P are not the
restrictions of the operations ∨L and ∧L .
8. The set of all sublattices of a lattice L forms a poset under inclusion relation and
as discussed in Example 4.2, (SubL, ⊆) forms a lattice. Similarly, (Sub0 L, ⊆)
also forms a lattice.
Problem 4.2. Let L be a lattice. Prove that the following are equivalent:
(i) L is a chain,
Proof. (i) ⇒ (ii) Let L be a chain and let M be a non-empty subset of L. We will
show that M is closed with respect to join and meet. Let x, y ∈ M . Since L is a
chain and M ⊆ L, therefore either x ≤ y or x ≥ y. If x ≤ y, then x ∨ y = y ∈ M and
x ∧ y = x ∈ M , and if x ≥ y, then x ∨ y = x ∈ M and x ∧ y = y ∈ M . Hence M is
closed w.r.t join and meet and therefore is a sublattice of L.
(iii) ⇒ (i) Let x, y ∈ L be any two elements. Let M = {x, y}. Then M is a two-
element subset of L and therefore by (iii) is closed w.r.t. join and meet. This implies
x ∨ y ∈ M , i.e., x ∨ y is either x or y. If x ∨ y = x, then x ≥ y, and if x ∨ y = y, then
x ≤ y. Thus any two elements in L are comparable and hence L is a chain.
v v
d e
e d f
b a b
a c c
u u
L M N
Figure 4.7:
(ii) Let M = {u, a, b, c, d, f, v} be the set of shaded elements of the lattice N . For
a, c ∈ M , a ∨ c = e in N and e ∈ / M , therefore M is not closed w.r.t join and
thus is not a sublattice of N .
Solution. The Figure 4.8 shows a labelled diagram of 22 and (Sub0 22 , ⊆). Here
Sub0 22 = {∅, {a}, {b}, {c}, {d}, {a, c}, {c, d}, {a, b}, {b, d}, {a, b, d}, {a, c, d}, {a, b, c, d}}.
In-text Exercise 4.3. 1. Are the following statements true/false? Explain your an-
swer.
{a, b, c, d}
{a, c, d} {a, b, d}
d
∅
22 (Sub022, ⊆)
Figure 4.8:
d c
Figure 4.9:
4.7 Summary
In this chapter we have covered the following points:
1. A lattice is a poset (L, ≤) in which every subset {a, b} consisting of two elements
has a least upper bound and a greatest lower bound.
2. The least upper bound of {a, b} is denoted by a ∨ b and is called the join of a
and b. The greatest lower bound of {a, b} is denoted by a ∧ b and is called the
meet of a and b.
(a) a ∧ b ≤ a, b ≤ a ∨ b.
(b) a ≤ b implies a ∨ c ≤ b ∨ c and a ∧ c ≤ b ∧ c.
4.8. SELF ASSESSMENT EXERCISE 91
10. Every finite lattice has zero and one elements and therefore bounded.
11. An infinite lattice may be bounded or may not be bounded. (P(N); ⊆) and
(Z; ≤) are examples of infinite bounded and not bounded lattices, respectively.
14. It is clear from the definition that every sublattice is a lattice. However, any
subset of L which is a lattice need not be a sublattice. A subset of a lattice
(L, ≤) may be a lattice in its own right without being a sublattice of (L, ≤).
Such an example is given in Example 4.8(7).
1.2 The poset Q = {1, 2, 4, 5, 6, 12, 20, 30, 60} of (N0 ; ) is not a lattice. Draw a
diagram of Q and find elements a, b, c, d ∈ Q such that a ∨ b and c ∧ d do not
exist in Q.
1.3 Consider the poset of divisors of 30, D30 , under divisibility order. Is it a lattice?
If the bottom element 1 and the top element 30 is deleted from D30 , is the result
still a lattice? Explain.
92 LESSON - 4. INTRODUCTION TO LATTICES
1.4 Give an example of a poset P in which there are three elements a, b, c such that
(a) Which of these posets are not lattices? Explain. [Hint: (i), (iii) and (iv)
are not lattices. why?]
(b) Which of these posets are bounded lattices? Explain.
g
f v d
d e e f
c e
d e
c d
b
a b a c c b f
a b a
0 u
(i) (ii) (iii) (iv)
Figure 4.10:
1.6 Prove that any finite lattice is bounded. Give an example of a lattice without
a zero and one element.
1.7 Prove that in a lattice (L, ≤) every finite nonempty subset S has a least upper
bound and a greatest lower bound.
1.9 Let L = P(S) be the lattice of all subsets of a set S under the inclusion relation.
Let T be a non-empty subset of S. Show that P(T ) is a sublattice of L.
1.10 Let L be a lattice and let a, b ∈ L. The interval [a, b] is defined as the set of all
x ∈ L such that a ≤ x ≤ b. Prove that [a, b] is a sublattice of L.
1.12 Find all sublattices of D24 that contain at least five elements.
4 6
2 3 5 7
Figure 4.11:
Excercise 1.2
1. (a) Lattice with zero element; empty set is the zero element.
(b) Lattice with zero and one element; empty set is the zero element and A is
one element.
(c) May not be a lattice. Let A = N, and X = {2n | n ∈ N} and Y = {2n+1 |
n ∈ N}. Then X and Y are two infinite subsets of A and X ∧ Y = ∅ ∈
/ L.
Thus L is not a lattice.
(d) Lattice with zero and one element; set C is the zero and A is the one
element.
Excercise 1.3
∨ ∧
1. (a) True. If L is a finite lattice then L = 1 and L = 0.
(b) False. (P(N), ⊆) is an infinite lattice and 1 = N and 0 = ∅.
94 LESSON - 4. INTRODUCTION TO LATTICES
2.
SubL = {{a}, {b}, {c}, {d}, {e}, {a, b}, {b, d}, {b, c}, {d, e}, {c, e}, {a, d}, {a, c}, {b, e},
{a, e}, {a, b, d}, {a, b, c}, {a, b, e}, {b, d, e}, {b, c, e}, {a, b, d, e}, {a, b, c, e},
{b, d, c, e}, {a, b, c, d, e}}.
4.10 References
[1 ]Davey, B. A., & Priestley, H. A. (2002). Introduction to lattices and order.
Cambridge university press.
[2 ] Lidl, R., & Pilz, G. (2012). Applied abstract algebra. Springer Science &
Business Media.
[3 ] Kolman, B., Busby, R. C., & Ross, S. (1995). Discrete mathematical struc-
tures. Prentice-Hall, Inc.
[2 ] Grätzer, G. (2002). General lattice theory. Springer Science & Business Media.
Lesson - 5
Structure
5.1 Learning Objectives 95
5.2 Introduction 96
5.3 Product of Lattices 96
5.4 Homomorphism of Lattices 99
5.5 Isomorphism of Lattices 101
5.6 Summary 105
5.7 Self Assessment Exercise 106
5.8 Answers to In-Text Exercises 107
5.9 References 108
5.10 Suggested Readings 108
95
96 LESSON - 5. PRODUCT AND ISOMORPHISM OF LATTICES
5.2 Introduction
There are several different ways to join two lattices together and taking product is
one of the ways. In this construction we require that the sets being joined are disjoint.
There is no restriction on taking product of a lattice with itself as we can always take
isomorphic copies of the original lattice which are disjoint. In this chapter we discuss
the concept of product of lattices and the connection between the operations of the
product with the operations of each coordinate of the product.
Further, we need to be able to recognize when two lattices are ‘essentially the same’
in the sense that either of the algebraic structure can be obtained from the other just
by renaming of the elements. We define lattice isomorphism between two lattices.
Two strictly weaker notions that relate to isomorphisms namely monomorphisms and
endomorphisms are also being discussed. We also know that every lattice is a poset,
therefore it is important to discuss relationships between order-isomorphisms and
lattice-isomorphisms.
Proof. We will show that ∨ and ∧ defined on L × K satisfy the identities (L1 ) − (L4 )
given in Definition 4.5. We will prove it for join and urge the reader to prove similarly
the identities for meet operation.
(L1 ):
(L2 ):
(L3 ):
(L4 ):
Hence (L × K, ∨, ∧) is a lattice.
{(x, y) | x ∈ L, y ∈ K}
Remark. Let L and K be lattices. Then we know that L and K are also posets. In
the previous chapters we have seen that product of posets is a poset with coordinate
wise partial order relation. Now the lattice formed by the product poset, L × K, of
lattices L and K is the same as that obtained by defining ∨ and ∧ coordinate-wise
on L × K.
Proof. Let L and K be lattices. Then by Theorem 5.1, L × K is a lattice. Now let
(l1 , k1 ), (l2 , k2 ) ∈ L × K.
Therefore
sup{(l1 , k1 ), (l2 , k2 )} = (l1 , k1 ) ∨ (l2 , k2 ), and
inf{(l1 , k1 ), (l2 , k2 )} = (l1 , k1 ) ∧ (l2 , k2 ).
Therefore by the connecting lemma the two lattices are equivalent. Hence the proof.
98 LESSON - 5. PRODUCT AND ISOMORPHISM OF LATTICES
L=3 K = 1 ⊕ 22 L×K
Figure 5.1:
The product of lattices can graphically be described in terms of the Hasse diagram.
Figure 5.1 shows the product of the lattices L = 3 and K = 1 ⊕ 22 . One may notice
that isomorphic copies of L and K sit inside L × K as the sublattices L × {0} and
{0} × K.
It is easy to verify that the product of lattices L and K always contains sublattices
isomorphic to L and K, in fact L×K contains as many copies of sublattice isomorphic
to K as many elements in L and as many copies of sublattice isomorphic to L as
many elements in K. The product of more than two lattices or powers of a lattice
are iteratively defined.
Problem 5.1. Let L and K be the finite chains {0, 1, 2} and {0, 1} respectively. Draw
the Hasse diagram of the product lattice L × K × K.
(1,2,1)
2 (1,2) (1,2,0)
(1,1,1) (0,2,1)
(0,0,1)
(1,0) (1,0,0) (0,1,0)
(0,1)
0 0
(0,0) (0,0,0)
L K L×K L×K ×K
Figure 5.2:
In-text Exercise 5.1. 1. If L and K are chains of length 2, draw the Hasse diagram
of L × K with the product partial order. Label all the elements of L × K. Is
L × K also a chain?
2. Which of the following statements are true or false? Explain your answer.
5.4. HOMOMORPHISM OF LATTICES 99
12
11
13
a2
a1 b1
01 02 03
L K M
Figure 5.3:
Isomorphism
monomorphism epimorphism
homomorphism
join-homomorphism meet-homomorphism
order-homomorphism
Figure 5.4:
a ≤ a ∨ b ⇒ f (a) ≤ f (a ∨ b) (5.1)
b ≤ a ∨ b ⇒ f (b) ≤ f (a ∨ b) (5.2)
(5.1) and (5.2) implies that f (a ∨ b) is an upper bound for {f (a), f (b)} and therefore
Then since f (a) ≤ f (c) and f (b) ≤ f (c), and f is an order isomorphism, we have
a ≤ c and b ≤ c. This implies a ∨ b ≤ c.
f (a ∨ b) = f (a) ∨ f (b).
a ∧ b ≤ a ⇒ f (a ∧ b) ≤ f (a) (5.5)
a ∧ b ≤ b ⇒ f (a ∧ b) ≤ f (b) (5.6)
(5.5) and (5.6) implies that f (a ∧ b) is a lower bound for {f (a), f (b)} and therefore
Then since f (d) ≤ f (a) and f (d) ≤ f (b), and f is an order isomorphism, we have
d ≤ a and d ≤ b. This implies d ≤ a ∧ b.
f (a ∧ b) = f (a) ∧ f (b).
f −1 (a ∨ b) = f −1 (f (c) ∨ f (d))
= f −1 (f (c ∨ d))
= c∨d
= f −1 (a) ∨ f −1 (b).
Similarly,
f −1 (a ∧ b) = f −1 (f (c) ∧ f (d))
= f −1 (f (c ∧ d))
= c∧d
= f −1 (a) ∧ f −1 (b).
Solution:.
(i) Let f (a), f (b) ∈ f (M ). Then since f is a lattice homomorphism and M ∈ SubL,
we have
f (a) ∨ f (b) = f (a ∨ b) ∈ f (M ).
Similarly,
f (a) ∧ f (b) = f (a ∧ b) ∈ f (M ).
Thus, f (M ) is a sublattice of K.
f (c ∨ d) = f (c) ∨ f (d)
= f (f −1 (a)) ∨ f (f −1 (b))
= a∨b
⇒c∨d = f −1 (a ∨ b).
Similarly, it can be shown that f (1M ) ∧ a = a for all a ∈ N . Thus, f (0M ) = 0N and
f (1M ) = 1N , and hence f (M ) is a bounded sublattice of K.
In-text Exercise 5.2. 1. Show that D6 , the set of all divisors of 6, is isomorphic to
2 × 2.
5.6 Summary
In this chapter we have covered the following points:
{(x, y) | x ∈ L, y ∈ K}
(1,1)
1 1
(1,0) (0,1)
0 0
(0,0)
L K L×K
Figure 5.5:
2. (a) True.
(b) False. An example is shown in the Exercise 6.
(c) True. (>1 , >2 ) ≥ (l1 , l2 ) for each (l1 , l2 ) ∈ L1 × L2 .
(d) False. (0L , 0K ) is the zero element of L×K and (1L , 1K ) is the one element
of L × K.
Excercise 2.2
1. The Hasse diagram for D6 and 2 × 2 are shown in Figure 5.6. We define a map
6 (1,1)
3 (1,0) (0,1)
2
1 (0,0)
D6 2×2
Figure 5.6:
f : D6 → 2 × 2 as
f (1) = (0, 0), f (2) = (1, 0), f (3) = (0, 1), f (6) = (1, 1).
5.9 References
[1 ]Davey, B. A., & Priestley, H. A. (2002). Introduction to lattices and order.
Cambridge university press.
[2 ] Lidl, R., & Pilz, G. (2012). Applied abstract algebra. Springer Science &
Business Media.
[3 ] Kolman, B., Busby, R. C., & Ross, S. (1995). Discrete mathematical struc-
tures. Prentice-Hall, Inc.
[2 ] Grätzer, G. (2002). General lattice theory. Springer Science & Business Media.
Lesson - 6
Structure
6.1 Learning Objectives 109
6.2 Introduction 109
6.3 Distributive lattices 110
6.4 Complemented Lattices 115
6.5 Summary 117
6.6 Self Assessment Exercise 119
6.7 Answers to In-Text Exercises 120
6.8 References 121
6.9 Suggested Readings 121
6.2 Introduction
In previous chapters we began an exploration of the algebraic theory of lattices, along
with many results on join (∨) and meet (∧) to ensure that each lattice (L; ∨, ∧) arose
from a lattice (L; ≤) and vice-versa. Now we introduce identities linking join and
109
110 LESSON - 6. DISTRIBUTIVE AND COMPLEMENTED LATTICES
meet which are not implied by the laws (L1 )-(L4 ) defining lattices. These hold in
many of our lattices, in particular in powersets. In the second part of the chapter we
study a different feature of elements of lattices, namely the existence of complements.
We study these special features with the aim of defining very ’rich’ type of algebraic
structure, Boolean algebras.
Remark. In view of the above result, if a lattice satisfy one of the distributive law
then it will surely satisfy the other law too. Thus, to check for the distributivity of
a lattice it is sufficient to check for one of the distributive laws. In other words, L is
distributive if and only if one of the distributive laws holds.
6.3. DISTRIBUTIVE LATTICES 111
Example 6.2. The ‘diamond lattice’ M3 and the ‘pentagon lattice’ N5 shown in Figure
6.1 are not distributive.
1 1
u
a b c v
0 0
M3 N5
Diamond Pentagon
Figure 6.1:
a ∧ (b ∨ c) = a ∧ 1 = a 6= 0 = 0 ∨ 0 = (a ∧ b) ∨ (a ∧ c).
In N5 , we have
w ∨ (u ∧ v) = w ∨ 1 = 1 6= u = u ∧ 1 = (w ∨ u) ∧ (w ∨ v).
Theorem 6.1. A lattice is distributive if and only if it does not contain a sublattice
isomorphic to the diamond or the pentagon.
A lattice which ”contains” the diamond or the pentagon must clearly be nondis-
tributive. The converse needs much more work and here we are omitting this proof.
This is a powerful theorem and can be used quite efficiently by inspecting the Hasse
diagram of a lattice. As an application of Theorem 6.1 we get the following corollary.
Corollary 6.1. Every chain is a distributive lattice.
Proof. Since a chain can never contain a diamond or a pentagon as a sublattice
therefore by Theorem 6.1, a chain is a distributive lattice.
112 LESSON - 6. DISTRIBUTIVE AND COMPLEMENTED LATTICES
b d
f e
a c
Figure 6.2:
Example 6.3. The lattice with Hasse diagram shown in Figure 6.2 cannot be distribu-
tive since it contains the pentagon {0, a, b, 1, e} as a sublattice.
Example 6.4. The lattice with Hasse diagram shown in Figure 6.3 cannot be distribu-
tive since it contains the diamond {a, b, c, d, 1} as a sublattice.
b c d
a e
Figure 6.3:
Conversely, let lattice L satisfy cancellation law. We will show that L is distribu-
tive. On the contrary assume that L is not distributive. Then by Theorem 6.1, L
has a sublattice isomorphic to either M3 or N5 . We will discuss both cases one by one.
By Case 1 and Case 2, we conclude that our assumption is wrong. Thus, L has
no sublattice isomorphic to N5 or M3 and hence is distributive.
The above theorem provides another useful tool to test distributivity of a lattice.
We get the following corollary as a consequence of the above theorem.
L1 3×3
Figure 6.4:
6.4. COMPLEMENTED LATTICES 115
1 1
1
d e
b c b c d e
c
d
a e a a b
0 0 0
(i) (ii) (iii)
1 1
b b
c
a c
a
0 d
0
(iv) (v)
Figure 6.5:
Problem 6.1. Which of the lattices of Figure 6.5 are distributive. Use Theorem 6.1
and Proposition 6.1 to justify the answer.
(v) The given lattice itself is isomorphic to N5 and therefore not distributive.
In-text Exercise 6.1. 1. Is (D12 , gcd, lcm) a distributive lattice, where D12 is the
set of all divisors of 12?
1 1
e
c
b c d
a b a
0 0
(i) (ii)
Figure 6.6:
Example 6.6. The lattice L = P(X) is such that every element has a complement,
since if A ∈ L, then its set complement Ā = X − A has the properties A ∨ Ā = X
and A ∧ Ā = ∅. That is, the set complement of A is also the complement of A in the
lattice L. Also, it is important to notice that complement in L is uniquely determined
by set-complement.
Example 6.8. Not every lattice with 0 and 1 is complemented. For instance, in a
chain with three elements, {0, a, 1}, 0 < a < 1, a does not have a complement. In
fact, every chain with more than two elements is not complemented, as none of the
elements in a chain other than 0 and 1 has complements.
Example 6.9. A complement need not be unique. Consider the diamond lattice M3
shown in Figure 6.1. The element a in the diamond has two complements b and c, as
a ∨ b = 1 and a ∧ b = 0, and a ∨ c = 1 and a ∧ c = 0. Similarly, the element b has two
complements, a and c, and c has two complements, a and b.
Example 6.10. Consider the lattices D18 and D30 discussed in Example ?? and shown
in Figure 4.4. Observe that every element in D30 has a unique complement. For
example, 2 is a complement of 15, 10 is a complement of 3 and 5 is a complement of
6. However, the elements 3 and 6 in D18 have no complements.
Theorem 6.3. If L is a distributive lattice, then each x ∈ L has at most one comple-
ment.
Remark. In a non-distributive lattice L, an element may have more than one com-
plement. For example, in both M3 and N5 there are elements having more than one
complement.
Problem 6.2. Which of the lattices shown in Figure 6.5 are complemented?
Solution. (i) In this lattice, 1 and 0 are complements of each other, a and c are
complements of each other, and b and e are complements of each other. The
element d has no complement and therefore the lattice is not complemented.
(ii) In this lattice 1 and 0 are complements of each other, elements b, c, d and e are
complements of each other. The element a has no complement and hence the
lattice is not complemented.
(iii) In this lattice, no element other than 0 and 1 has a complement and therefore
it is not complemented.
(iv) In this lattice, no element other than 0 and 1 has a complement and therefore
it is not complemented.
(v) In this lattice, the element c is complement of a and b, and vice-versa. Hence
it is complemented.
In-text Exercise 6.2. 1. Which of the following statements are true/false? Explain
your answers.
6.5 Summary
In this chapter we have covered the following points:
3. In a lattice, the two distributive laws are equivalent. Thus, if a lattice satisfy
one of the distributive law then it will surely satisfy the other law too.
118 LESSON - 6. DISTRIBUTIVE AND COMPLEMENTED LATTICES
8. A lattice L is distributive if and only if L does not have any sublattice isomorphic
to M3 or N5 .
(i) (x ∧ y) ∨ (x ∧ z) ≤ x ∧ (y ∨ z),
(ii) x ∨ (y ∧ z) ≤ (x ∨ y) ∧ (x ∨ z).
3.3 Show that if a bounded lattice has two or more elements, then 0 6= 1.
3.4 Let L be a bounded lattice with at least two elements. Show that no element
of L is its own complement.
3.6 In the lattice defined by the Hasse diagram given in the Figure 6.7, how many
complements does the element b have?
c e
b f
Figure 6.7:
3.7 Which of the following statements are true/false? Explain your answers.
3.8 Is the lattice ({1, 2, 3, 5, 30}; |) with divisibility order distributive? Is it comple-
mented?
3.9 Which of the lattices of Figure 6.8 are distribute and which are complemented?
Explain your answers.
120 LESSON - 6. DISTRIBUTIVE AND COMPLEMENTED LATTICES
1 1 1
b c c
a d a b c d
a b
0 0 0
(i) (ii) (iii)
Figure 6.8:
12
4 6
2 3
is not distributive.
2. (i) This lattice does not have any sublattice isomorphic to M3 as M3 has three
non-comparable elements while this lattice does not have three non-comparable
elements. Also it does not have any sublattice isomorphic to N5 as N5 has two
pairs of non-comparable elements while this has only one pair of non-comparable
elements, namely a and b. Thus, It is distributive.
6.8 References
[1 ]Davey, B. A., & Priestley, H. A. (2002). Introduction to lattices and order.
Cambridge university press.
[2 ] Lidl, R., & Pilz, G. (2012). Applied abstract algebra. Springer Science &
Business Media.
[3 ] Kolman, B., Busby, R. C., & Ross, S. (1995). Discrete mathematical struc-
tures. Prentice-Hall, Inc.
[2 ] Grätzer, G. (2002). General lattice theory. Springer Science & Business Media.
Unit Overview
Boolean algebras have many important applications in mathematics and they are the
subject of the classical Stone Representation Theorem which identifies them all (up
to isomorphism) with sub-algebras of powerset algebras. Boolean algebra was intro-
duced by George Boole in 1847 as a tool for the mathematical analysis of logic. It was
not used for practical purposes, however, until the late 1930s, when A. Nakashima
and, independently, C. E. Shannon used it for analyzing relay contact networks. After
World War II, the switching theory was extended to include sequential systems (i.e.,
systems whose outputs depend not only on the inputs but also on the previous states
of the system). Based on these advances in theory, digital electronic computers and
other digital systems were developed. Today, digital electronic systems are widely
used, and the corresponding theories are studied in mathematics, computer science,
and electrical engineering. The purpose of this unit is to introduce Boolean algebra,
its properties and its applications to switching circuits.
122
Lesson - 7
Boolean Algebra
Dr. Deepti Jain
Sri Venkateswara College
University of Delhi
Structure
7.1 Learning Objectives 123
7.2 Introduction 123
7.3 Boolean Algebras 124
7.4 De Morgan’s Law 126
7.5 Boolean Polynomials or Boolean Expressions 129
7.6 Truth Table 130
7.7 Summary 131
7.8 Self-Assessment Exercise 132
7.9 Solutions to In-text Exercises 133
7.10 Suggested Reading 134
7.2 Introduction
Boolean algebras are special lattices which are useful in the study of logic, both digital
computer logic and that of human thinking, and of switching circuits. This latter
123
124 LESSON - 7. BOOLEAN ALGEBRA
application was initiated by C.E. Shannon, who showed that fundamental properties
of electrical circuits of bistable elements can be represented by using Boolean algebras.
We shall consider such applications in later chapters.
a ∧ (b ∨ c) = (a ∧ b) ∨ (a ∧ c).
Definition 7.2. A lattice L with 0 and 1 is called complemented if for each x ∈ L there
is at least one element y such that x ∧ y = 0 and x ∨ y = 1. Each such y is called a
complement of x.
Notation. From now on, B will denote a Boolean algebra with two binary operations
∨ and ∧, with zero element 0 and a one element 1, and the operation of complemen-
tation ′ , in short B = (B, ∧, ∨, 0, 1,′ ) or B = (B, ∧, ∨), or simply B.
Example 7.1. (P(X), ∩, ∪, ∅, X,′ ) is the Boolean algebra of the power set of a set
X. Here ∩ and ∪ are the set-theoretic operations intersection and union, and the
complement is the set-theoretic complement, namely X − A = A′ ; ∅ and X are the
zero and one elements. If X has n number of elements then P(X) has 2n elements.
Example 7.2. Let B = {0, 1} be the chain of length two, 2, where the operations are
defined by
′
∧ 0 1 ∨ 0 1
0 0 0 0 0 1 0 1
1 0 1 1 1 1 1 0
Theorem 7.1. If S1 = {x1 , x2 , ..., xn } and S2 = {y1 , y2 , ..., yn } are any two finite sets
with n elements, then the Boolean algebras (P(S1 ); ∩, ∪) and (P(S2 ); ∩, ∪) are iso-
morphic. Consequently, the Hasse diagrams of these Boolean algebras may be drawn
identically.
Since both S1 and S2 have same number of elements, we may define a one-one
onto correspondence f between the elements of S1 and S2 . For each subset A of S1 ,
the set of corresponding elements f (A) forms a subset of S2 . One may easily verify
that if A, B are any subsets of S1 such that A ⊆ B, then f (A) ⊆ f (B) in S2 . Also
f (A′ ) = (f (A))′ implies that the Boolean algebras (P(S1 ); ∩, ∪) and (P(S2 ); ∩, ∪) are
isomorphic.
The essential point of this theorem is that the Boolean algebra (P(S); ∩, ∪) does
not depend in any way on the nature of the elements in S, it is completely determined
by the number of elements in it. Thus, for each n ∈ N0 , there is only one type of lattice
having the form (P(S); ∩, ∪). It has 2n elements. Also we know that Bn = {0, 1}n
has 2n elements. If S = {1, 2, 3, ..., n}, then we may define
f : {0, 1}n → P(S), as follows
f (i1 , i2 , ..., in ) = {k | ik = 1}.
Then one may verify that f is a Boolean isomorphism. Thus, each lattice (P(S); ∩, ∪)
is isomorphic with Bn , where n = |S| and thus possess all the properties of Bn . In
fact, Each finite Boolean algebra is isomorphic to Bn , for some n ∈ N and therefore,
has 2n number of elements.
126 LESSON - 7. BOOLEAN ALGEBRA
Example 7.4. Consider the lattice D6 consisting of all positive integer divisors of 6
under divisibility order. D6 = {1, 2, 3, 6} is isomorphic to B2 . In fact, f : D6 → B2 is
a Boolean isomorphism, where
f (1) = (0, 0), f (2) = (1, 0), f (3) = (0, 1), f (6) = (1, 1).
Example 7.5. Consider the lattices D20 and D30 of all positive divisors of 20 and 30,
respectively, under the divisibility order. Since D20 has 6 elements and 6 6= 2n for
any n ∈ N, we conclude that D20 is not a Boolean algebra. The lattice D30 has 8
elements and 8 = 23 . Also D30 is a distributive complemented lattice and hence a
Boolean algebra. The map f : D30 → B3 defined as
x ≤ y ⇔ x′ ≥ y ′ .
Proof.
x ≤ y ⇔ x ∨ y = y ⇔ x′ ∧ y ′ = (x ∨ y)′ = y ′ ⇔ x′ ≥ y ′ .
Theorem 7.3. In a Boolean algebra B, for all x, y ∈ B, the following are equivalent:
(i) x ≤ y
(ii) x ∧ y ′ = 0
(iii) x′ ∨ y = 1
(iv) x ∧ y = x
(v) x ∨ y = y.
Proof. By connecting lemma we know that (i), (iv) and (v) are equivalent. Now we
will prove that (i) is equivalent to both (ii) and (iii).
(i) ⇒ (ii)
0 = x∧0
= x ∧ (y ∧ y ′ )
= (x ∧ y) ∧ (x ∧ y ′ )
= x ∧ (x ∧ y ′ )
= x ∧ y′
(ii) ⇒ (i)
To show that x ≤ y we will show that x ∧ y = x.
x∧y = (x ∧ y) ∨ 0
= (x ∧ y) ∨ (x ∧ y ′ )
= ((x ∧ y) ∨ x) ∧ ((x ∧ y) ∨ y ′ )
= x ∧ [(x ∨ y ′ ) ∧ (y ∨ y ′ )]
= x ∧ [(x ∨ y ′ ) ∧ 1]
= x ∧ (x ∨ y ′ )
= x.
This establishes the equivalence of (i) and (ii). Next,
(i) ⇒ (iii)
128 LESSON - 7. BOOLEAN ALGEBRA
1 = 1∨y
= (x ∨ x′ ) ∨ y
= (x′ ∨ x) ∨ y
= x′ ∨ (x ∨ y)
= x′ ∨ y.
Next, to show that (iii) implies (i) we will show that x ∨ y = y.
(iii) ⇒ (i)
x∨y = 1 ∧ (x ∨ y)
= (x′ ∨ y) ∧ (x ∨ y)
= [(x′ ∧ (x ∨ y))] ∨ [y ∧ (x ∨ y)]
= [(x′ ∧ x) ∨ (x′ ∧ y)] ∨ y
= 0 ∨ (x′ ∧ y) ∨ y
= (x′ ∧ y) ∨ y
= y.
This establishes the equivalence of (i) and (iii). Hence the proof.
In-text Exercise 7.1. 1. Determine which of the lattices shown in Figure 7.1 are
Boolean algebras. Explain your answer.
f g g
d e e f e f
d d
b c b c b c
a a a
(i) (ii) (iii)
h h
d
f g e f g
c
e b c d
b
b c d a
a
a
(v) (vi)
(iv)
Figure 7.1:
2. Are there any Boolean algebras having 9 elements? Why or why not?
3. Is D42 a Boolean algebra? Why or why not?
7.5. BOOLEAN POLYNOMIALS OR BOOLEAN EXPRESSIONS 129
5. There are no Boolean polynomials in X other than those that can be obtained
by repeated use of rule 1, 2, 3 and 4.
Boolean polynomials are also called Boolean expressions.
Two Boolean polynomials are equal if their sequences of symbols are identical.
We denote the set of all Boolean polynomials in {x1 , x2 , ..., xn } by Pn .
Example 7.6. The following are some examples of Boolean polynomials over {x1 , x2 , x3 }:
1. p1 (x1 , x2 , x3 ) = (x1 ∨ x2 ) ∧ x3
2. p2 (x1 , x2 , x3 ) = (x1 ∨ x′2 ) ∨ (x2 ∧ 1)
3. p3 (x1 , x2 , x3 ) = (x1 ∨ (x′2 ∧ x3 )) ∨ (x1 ∧ (x2 ∧ 0))
4. p4 (x1 , x2 , x3 ) = (x1 ∧ (x2 ∨ x′3 )) ∧ ((x′1 ∧ x3 )′ ∨ (x′2 ∧ 0))
Since every Boolean polynomial over x1 , ..., xn is a boolean polynomial over x1 , ..., xn , xn+1 ,
we have
P1 ⊂ P2 ⊂ P3 · · · ⊂ Pn ⊂ Pn+1 ⊂ · · · .
Next, we introduce the concept of Boolean polynomial function as follows:
Definition 7.5. Let B be a Boolean algebra, let B n be the product of n copies of B,
and let p be a Boolean polynomial in Pn . Then
p̄B : B n → B; (a1 , a2 , ..., an ) 7→ p̄B (a1 , a2 , ..., an ),
is called the Boolean polynomial function of degree n induced by p on B. Here
p̄B (a1 , a2 , ..., an ) is the element in B which is obtained from p by replacing each xi by
ai ∈ B, 1 ≤ i ≤ n.
130 LESSON - 7. BOOLEAN ALGEBRA
p ∼ q ⇔ p̄B = q̄B .
Equivalently, two Boolean polynomials are equivalent if one can be obtained from
other by using laws of Boolean algebra. For example, p = x ∧ y and q = y ∧ x are
equivalent Boolean polynomials in P2 .
Result 7.1. Let p, q ∈ Pn , p ∼ q and B is any Boolean algebra then
p̄B = q̄B .
p(x, y, z) = (x ∧ y) ∨ (y ∧ z ′ ).
Construct the truth table for the Boolean polynomial function p̄B : B3 → B.
Solution. The truth table for the given Boolean polynomial function is as follows:
x y z p̄B (x, y, z) = (x ∧ y) ∨ (y ∧ z ′ )
0 0 0 (0 ∧ 0) ∨ (0 ∧ 0′ ) = 0
0 0 1 (0 ∧ 0) ∨ (0 ∧ 1′ ) = 0
0 1 0 (0 ∧ 1) ∨ (1 ∧ 0′ ) = 1
0 1 1 (0 ∧ 1) ∨ (1 ∧ 1′ ) = 0
1 0 0 (1 ∧ 0) ∨ (0 ∧ 0′ ) = 0
1 0 1 (1 ∧ 0) ∨ (0 ∧ 1′ ) = 0
1 1 0 (1 ∧ 1) ∨ (1 ∧ 0′ ) = 1
1 1 1 (1 ∧ 1) ∨ (1 ∧ 1′ ) = 1
Construct the truth table for the Boolean polynomial function p̄B : B3 → B.
Solution. The Boolean polynomial function p̄B : B3 → B is described by substituting
all 23 ordered triples of B3 for x1 , x2 , x3 . The truth table for this Boolean polynomial
function is as follows:
7.7. SUMMARY 131
Example 7.9. Apply the rules of Boolean arithmetic to show that the Boolean poly-
nomials (x ∧ z) ∨ (y ′ ∨ (y ′ ∧ z)) ∨ ((x ∧ y ′ ) ∧ z ′ ) and (x ∧ z) ∨ y ′ are equivalent.
Solution. Consider,
(x ∧ z) ∨ (y ′ ∨ (y ′ ∧ z)) ∨ ((x ∧ y ′ ) ∧ z ′ )
Solution. Consider,
7.7 Summary
1. A lattice L with 0 and 1 is called complemented if for each x ∈ L there is at
least one element y such that x ∧ y = 0 and x ∨ y = 1. Each such y is called a
complement of x.
132 LESSON - 7. BOOLEAN ALGEBRA
7. Any two finite Boolean algebras with same number of elements are isomorphic.
p ∼ q ⇔ p̄B = q̄B .
(a ∧ b) ∨ (a ∧ b′ ) = a.
b ∧ (a ∨ (a′ ∧ (b ∨ b′ ))) = b.
7.9. SOLUTIONS TO IN-TEXT EXERCISES 133
(a ∧ b ∧ c) ∨ (b ∧ c) = b ∧ c.
a ∨ (b ∧ c) = b ∧ (a ∨ c).
Exercise 7. Compute the truth table of the Boolean polynomial function p̄B : B3 → B
defined by p given as follows:
(i) p(x, y, z) = x ∧ (y ∨ z ′ )
(ii) p(x, y, z) = (x ∨ y) ∧ (z ∨ x′ )
Exercise 8. Apply the rules of Boolean arithmetic to show that the following Boolean
polynomials are equivalent:
1. (i) The element b has no complement and therefore the given lattice is not a
Boolean algebra.
(ii) The element d has no complement and therefore the given lattice is not a
Boolean algebra.
134 LESSON - 7. BOOLEAN ALGEBRA
(iii) The element d has no complement and therefore the given lattice is not a
Boolean algebra.
(iv) The given lattice has a sublattice isomorphic to M3 and therefore not
distributive and hence not a Boolean algebra. OR the element e has no
complement and hence the lattice is not a Boolean algebra.
(v) The element b has no complement and therefore the given lattice is not a
Boolean algebra.
(vi) The given lattice is isomorphic to 23 . Since 2 is a Boolean lattice and
product of Boolean lagebras is a Boolean algebra, therefore the given lattice
is a Boolean algebra.
3. The lattice D42 = {1, 2, 3, 6, 7, 14, 21, 42}. The Figure 7.2 shows the Hasse
diagram of D42 . It has 8 elements and is isomorphic to 23 which being product
of Boolean algebras is a Boolean algebra. Hence D42 is a Boolean algebra.
42
1
0
1
0
1
0
0
1
6 1
0
0
1 014
1
0
1 021
1
1
0 1
0
03 17
0
20
1 1 1
0
1
0
0
1
1
D42
Figure 7.2:
[2 ] Lidl, R., & Pilz, G. (2012). Applied abstract algebra. Springer Science &
Business Media.
[3 ] Kolman, B., Busby, R. C., & Ross, S. (1995). Discrete mathematical struc-
tures. Prentice-Hall, Inc.
Lesson - 8
Structure
8.1 Learning Objectives 135
8.2 Introduction 136
8.3 Normal Forms of Boolean Polynomials 136
8.3.1 Disjunctive Normal Form (as join of meets) 137
8.3.2 Conjunctive Normal Form (as meet of joins) 140
8.4 Minimal Forms of Boolean Polynomials 142
8.4.1 Quine Mc-Clusky Method 144
8.4.2 Karnaugh Map 147
8.5 Summary 151
8.6 Self Assessment Exercise 153
8.7 Solutions to In-text Exercises 153
8.8 Suggested Reading 154
135
136LESSON - 8. NORMAL AND MINIMAL FORMS OF BOOLEAN POLYNOMIALS
8.2 Introduction
We have seen in the previous chapter that it is possible and desirable to simplify a
given Boolean polynomial by using the axioms of a Boolean algebra. For this process
of simplification it is often difficult to decide which axioms should be used and in
which order they should be used. There are several systematic methods to simplify
Boolean polynomials. This problem area in the theory of Boolean algebras is called
the optimization or minimization problem for Boolean polynomials; it is of impor-
tance in applications such as the simplification of switching circuits.
In this chapter we define normal forms of Boolean polynomials and learn ways
to represent polynomial into disjunctive and conjunctive normal forms. Further, we
define minimal form of Boolean polynomials and explain Quine McClusky method to
reduce a Boolean polynomial into its minimal form. In the end, we describe Karnaugh
diagrams, another way of representing/simplifying the Boolean polynomials.
Boolean Identities
Let (B, +, ·,′ ) be a Boolean algebra. Then for all x, y, z ∈ B the following identi-
ties hold:
8.3. NORMAL FORMS OF BOOLEAN POLYNOMIALS 137
2. We look at each (b1 , b2 , ..., bn ) ∈ Bn for which p̄(b1 , b2 , ..., bn ) = 1 and write down
the term xb11 xb22 · · · xbnn , where x1i = xi and x0i = x′i .
3. The sum of all such terms is equivalent to p and is the required DN form of p.
Example 8.1. Find the disjunctive normal form of p = ((x1 +x2 )′ x1 +x′′′ ′ ′
2 ) +x1 x2 +x1 x2 .
Solution. We list the values of p̄ in a truth table. First, p̄(0, 0) = ((0 + 0)′ 0 + 0′′′ )′ +
00 + 00′ = 0, and so on:
138LESSON - 8. NORMAL AND MINIMAL FORMS OF BOOLEAN POLYNOMIALS
b1 b2 p̄(b1 , b2 )
0 0 0
0 1 1 ←
1 0 1 ←
1 1 1 ←
Now, we look for the terms (b1 , b2 ) for which p̄(b1 , b2 ) = 1. Such terms are marked
with an arrow in the truth table. We write down the corresponding minterms as
follows:
Example 8.2. Find the disjunctive normal form of p = x1 (x2 + x3 )′ + (x1 x2 + x′3 )x1 .
b1 b2 b3 p̄(b1 , b2 , b3 )
0 0 0 0
1 0 0 1←
0 1 0 0
0 0 1 0
1 1 0 1←
1 0 1 0
0 1 1 0
1 1 1 1←
We look for the terms (b1 , b2 , b3 ) for which p̄(b1 , b2 , b3 ) = 1 and write the corresponding
minterms as follows:
8.3. NORMAL FORMS OF BOOLEAN POLYNOMIALS 139
b1 b2 b3 f (b1 , b2 , b3 )
0 0 0 1
0 0 1 0
0 1 0 0
0 1 1 1
1 0 0 1
1 0 1 0
1 1 0 0
1 1 1 0
Solution. We only look at the elements for which f (b1 , b2 , b3 ) = 1 and get a polyno-
mial p immediately:
p = ((xy ′ )′ + z ′ )(x′ + z ′ )′ .
140LESSON - 8. NORMAL AND MINIMAL FORMS OF BOOLEAN POLYNOMIALS
Solution. .
p = ((xy ′ )′ + z ′ )(x′ + z ′ )′
= ((x′ + y) + z ′ )(xz) (De Morgan’s Law)
= (xz)(x′ + y + z ′ ) (Commutative Law)
= xzx′ + xzy + xzz ′ (Distributive Law)
= xx′ z + xyz + 0 (zz ′ = 0 and x · 0 = 0)
= 0 + xyz + 0 (xx′ = 0 and 0 · z = 0)
= xyz. (xyz + 0 = xyz)
Solution. Let p = x1 (x2 + x3 )′ + x′1 + x′3 and q = (x1 x3 )′ . We will show that the
Boolean polynomial function p̄B and q̄B induced by p and q respectively are same on
B3 . The truth table of p and q are as follows:
b1 b2 b3 p̄(b1 , b2 , b3 ) b1 b2 b3 q̄(b1 , b2 , b3 )
0 0 0 1 0 0 0 1
1 0 0 1 1 0 0 1
0 1 0 1 0 1 0 1
0 0 1 1 0 0 1 1
1 1 0 1 1 1 0 1
1 0 1 0 1 0 1 0
0 1 1 1 0 1 1 1
1 1 1 0 1 1 1 0
(i) xy + xy ′ + x′ y
(ii) xy ′ + x(yz)′ + z.
2. Let f : B3 → B have the value 1 precisely at the arguments (0, 0, 0), (0, 1, 0), (0, 1, 1), (1, 0, 0).
Find a Boolean polynomial p with p̄ = f and try to simplify p.
2. We look at each (b1 , b2 , ..., bn ) ∈ Bn for which p̄(b1 , b2 , ..., bn ) = 0 and write down
the term xb11 + xb22 + · · · + xbnn , where x1i = x′i and x0i = xi .
3. The product of all such terms is equivalent to p and is the required CN form of p.
Example 8.6. Write the CN form of the Boolean polynomial p = x′1 x2 + x1 x′2
Solution. The truth table of the Boolean polynomial p is as follows:
b1 b2 p̄(b1 , b2 )
0 0 0
1 0 1
0 1 1
1 1 0
Now we look at the elements (b1 , b2 ) for which p̄(b1 , b2 ) = 0 and write the sum
expression for each.
(1) (b1 , b2 ) = (0, 0)
xb11 + xb22 = x01 + x02 = x1 + x2
b1 b2 b3 p̄(b1 , b2 , b3 )
0 0 0 0
1 0 0 1
0 1 0 0
0 0 1 1
1 1 0 1
1 0 1 1
0 1 1 1
1 1 1 1
142LESSON - 8. NORMAL AND MINIMAL FORMS OF BOOLEAN POLYNOMIALS
Now we look at the elements (b1 , b2 , b3 ) for which p̄(b1 , b2 , b3 ) = 0 and write the
sum expression for each.
(1) (b1 , b2 , b3 ) = (0, 0, 0)
x b1 + y b2 + z b3 = x 0 + y 0 + z 0 = x + y + z
(2) (b1 , b2 , b3 ) = (0, 1, 0)
x b1 + y b2 + z b3 = x 0 + y 1 + z 0 = x + y ′ + z
Thus, p ∼ (x + y + z)(x + y ′ + z) and this is the required CN form of p.
Remark. A way to come from the disjunctive normal form to conjunctive normal form
of a Boolean polynomial p is to write p as (p′ )′ , expand p′ by using De Morgan’s laws
and negate this again.
Example 8.8. Convert the following DN form of p to CN form:
p = x′1 x2 + x1 x′2 .
Solution. Consider,
Now, q = x1 x3 . Remove one factor x3 from q and let q1 = x1 . Then q¯1 (1, 0, 0) = 1
while p̄(1, 0, 0) = 0. Thus, q1 does not imply p.
Similarly, remove x1 from q and let q2 = x3 . Then q¯2 (0, 0, 1) = 1 while p̄(0, 0, 1) =
0. Thus, q2 does not imply p.
Hence, q is a prime factor of p.
Theorem 8.1. A Boolean polynomial p ∈ Pn is equivalent to the sum of all prime
implicants of p.
Definition 8.11. A sum of prime implicants of p is called irredundant if it is equivalent
to p, but does not remain equivalent if any of its summands is removed.
A minimal sum-of-product expression must be irredundant.
Now, we describe a method a method to obtain a minimal form of a Boolean
polynomial, namely Quine Mc-Clusky Method.
144LESSON - 8. NORMAL AND MINIMAL FORMS OF BOOLEAN POLYNOMIALS
row number
′ ′ ′
wxyz 0 0 0 1 (1)
w′ x′ yz ′ 0 0 1 0 (2)
w′ x′ yz 0 0 1 1 (3)
wx′ yz ′ 1 0 1 0 (4)
wxy ′ z ′ 1 1 0 0 (5)
wx′ yz 1 0 1 1 (6)
wxyz ′ 1 1 1 0 (7)
Step 3. Each expression with r ones is added to each expression containing r + 1 ones.
We only have to compare expressions in neighboring classes with dashes in the
same position. If two expressions differ in exactly one position, then they are of
the forms p = i1 i2 · · · ir · · · in and q = i1 i2 · · · i′r · · · in , where all ik are in {0, 1, −},
and ir ∈ {0, 1}, respectively. Then p and q reduces to i1 i2 · · · ir−l − ir+l · · · in ,
and p and q are ticked. In our example this yields
The expressions with ticks are not prime implicants and will be subject to
further reduction. They yield the single expression
row number
(2)(3)(4)(6) – 0 1 –
8.4. MINIMAL FORMS OF BOOLEAN POLYNOMIALS 145
row number
(1)(3) 0 0 – 1 w’x’z
(4)(7) 1 – 1 0 wyz’
(5)(7) 1 1 – 0 wxz’
(2)(3)(4)(6) – 0 1 – x’y
As the sum of all prime implicants is not necessarily in minimal form (because
some summands might be superfluous), we perform the last step in the proce-
dure.
Step 5. Construct a table of prime implicants, heading elements for the columns are
the product expressions in d, and at the begining of the rows are the prime
implicants calculated in Step 3. A cross × is marked off at the intersection of
the ith row and jth column if the prime implicant in the ith row is a subproduct
of the product expression in the jth column.
Either the summands of the core together cover all product expressions in d;
then the core is already the (unique) minimal form of d. Otherwise, we denote
by q1 , ..., qk those product expressions which are not covered by prime implicants
in the core. The prime implicants not in the core are denoted by pl , ..., pm · We
form a second table with index elements qj for the columns and index elements
pi for the rows. The mark × is placed in the entry (i, j) indicating that pi covers
qj . We then try to find a minimal subcollection of p1 , ..., pm which covers all of
q1 , ..., qk and add them to the core.
The core is given by the sum of those prime implicants which are the only ones
to cover a summand in d, namely by the sum of 00 − 1, −01−, and 11 − 0. This
sum already covers all summands in d, so the minimal form of d is given by the
core w′ x′ z + y ′ z + wxz ′ . The prime implicant wyz ′ was superfluous.
row number √
0 ones w ′ x′ y ′ z ′ 0 0 0 0 (1) √
1 ones w′ x′ yz ′ 0 0 1 0 (2) √
wx′ y ′ z ′ 1 0 0 0 (3) √
2 ones w′ xy ′ z 0 1 0 1 (4) √
w′ xyz ′ 0 1 1 0 (5) √
3 ones w′ xyz 0 1 1 1 (6) √
wx′ yz 1 0 1 1 (7) √
wxy ′ z 1 1 0 1 (8) √
wxyz ′ 1 1 1 0 (9) √
4 ones wxyz 1 1 1 1 (10)
(1)(2) 0 0 − 0 A
(1)(3) − 0 0 0 B
(2)(5) 0 − 1 0 C
√
(4)(6) 0 1 − 1 √
(4)(8) − 1 0 1 √
(5)(6) 0 1 1 − √
(5)(9) − 1 1 0
√
(6)(10) − 1 1 1
(7)(10) 1 − 1 1 D
√
(8)(10) 1 1 − 1 √
(9)(10) 1 1 1 −
(4)(6)(8)(10) − 1 − 1 E
(5)(6)(9)(10) − 1 1 − F
√
The marking of the expressions by or letters A, B, ... is done after the simplifi-
cation. Having found the prime implicants we denote them by A, B, C, D, E, F . Here
is the list of all prime implicants of f .
8.4. MINIMAL FORMS OF BOOLEAN POLYNOMIALS 147
(1)(2) 0 0 − 0 w ′ x′ z ′ A
(1)(3) − 0 0 0 x′ y ′ z ′ B
(2)(5) 0 − 1 0 w′ yz ′ C
(7)(10) 1 − 1 1 wyz D
(4)(6)(8)(10) − 1 − 1 xz E
(5)(6)(9)(10) − 1 1 − xy F
Step 4. We make the table of prime implicants, where the first “row” represents
the product expressions of f and first “column” represent all the prime implicants of
f.
(1) (2) (3) (4) (5) (6) (7) (8) (9) (10)
00−0 A × ×
−000 B × ×
0−10 C × ×
1−11 D × ×
−1−1 E × × × ×
−11− F × × × ×
The product expressions numbered (3), (4), (7), (8) and (9) are implied by exactly
one prime implicant and therefore, the core, i.e., the sum of the main terms, is B +
D + E + F (in our short notation). Column (2) is the only product expression that
is not covered by the core. The prime implicants which are not in the core are A and
C. The new table is as follows:
(2)
00−0 A ×
0−10 C ×
A+B+D+E+F
if we use A; it is
C +B+D+E+F
if we choose C. In our usual notation the minimal form of f is
w′ x′ z ′ + x′ y ′ z ′ + wyz + xz + xy
or
w′ yz ′ + x′ y ′ z ′ + wyz + xz + xy.
Definition 8.12. Karnaugh diagram for n-variables is a rectangle divided into 2n cells
where each cell represents a minterm in the variables.
The minterms in forth column has value 1 for (1, 1) and value 0 everywhere else.
The Karnaugh diagram for two variables consists of 22 = 4 cells. It consists of a b1
and b′1 columns and a b2 and b′2 row for two input variables b1 , b2 .
b1 b′1
b2 (4) (3)
b′2 (2) (1)
b1 b′1
b2
b′2
b1 b′1
b′3
b2
b3
b′2
b′3
Karnaugh diagram for four input variables are of the following form:
8.4. MINIMAL FORMS OF BOOLEAN POLYNOMIALS 149
b1 b′1
b′4
b2
b4
b′2
b′4
b′3 b3 b′3
• We may use shaded parts of the diagram more than once, since the polynomials
corresponding to blocks are connected by ‘+’.
• The idea is to identify the largest possible blocks and to cover all shaded cells
(or 1’s cell) with the fewest blocks, using the largest block first.
(i) xy + xy ′
(ii) xy ′ + x′ y + x′ y ′
Solution. (i) For p = xy + xy ′ the Karnaugh diagram is given in Figure 8.1. The two
shaded cells can be grouped together in one block and represents the polynomial y.
Thus, the minimal form of p is y, i.e., p ∼ y as x + x′ = 1.
x x0
y
y0
Figure 8.1:
150LESSON - 8. NORMAL AND MINIMAL FORMS OF BOOLEAN POLYNOMIALS
x x0
y
y0
Figure 8.2:
x x0
z0
y
y0
z0
Figure 8.3:
Example 8.13. Find the minimal form for p = x1 x2 x′3 + x′1 x2 x4 + x2 x3 x′4 + x′1 x′2 x4 +
x2 x3 x4 + x′1 x2 x′3 x′4 using Karnaugh diagram.
Solution. The Karnaugh diagram of p is shown in Figure 8.4. The diagram consists of
two blocks. The horizontal block represents x2 and the other block represents x′1 x4 .
Thus, p ∼ x2 + x′1 x4 .
Example 8.14. Find simple function for the Karnaugh diagram shown in Figure 8.5.
Solution. The Boolean polynomial for the given Karnaugh diagram is p = x2 x′4 +
x′1 x3 + x′1 x′2 x4 .
In-text Exercise 8.3. Attempt the following questions:
1. Use Quine Mc-Clusky method to find the minimal form of P whose disjunctive
normal form is xy ′ z + x′ yz ′ + xyz ′ + xyz.
2. Use Karnaugh diagram to find the minimal form of p = xyz +xyz ′ +x′ yz +x′ yz ′ .
8.5. SUMMARY 151
x1 x01
x04
x2
x4
x02
x04
x03 x3 x03
Figure 8.4:
x1 x01
x04
x2
x4
x02
x04
x03 x3 x03
Figure 8.5:
8.5 Summary
1. To simplify notation, we write p + q for p ∨ q and pq for p ∧ q.
2. A product expression (briefly a product) is a Boolean polynomial in which ’+’
does not occur. A product expression in which every variable or its complement
is presented once is called a minterm.
3. A representation of a Boolean polynomial p ∈ Pn as a sum of product of x1 (or
x′1 ), x2 (or x′2 ),..., xn (or x′n ) is called its disjunctive normal form (in short DN
form).
4. Steps to write Disjunctive Normal Form of a given Boolean polynomial
(a) If p ∈ Pn , we first write down the truth table of p̄.
(b) We look at each (b1 , b2 , ..., bn ) ∈ Bn for which p̄(b1 , b2 , ..., bn ) = 1 and write
down the term xb11 xb22 · · · xbnn , where x1i = xi and x0i = x′i .
(c) The sum of all such terms is equivalent to p and is the required DN form
of p.
152LESSON - 8. NORMAL AND MINIMAL FORMS OF BOOLEAN POLYNOMIALS
10. An expression p implies an expression q if for all b1 , b2 , ..., bn ∈ B, p̄B (b1 , b2 , ..., bn ) =
1 ⇒ q̄B (b1 , b2 , ..., bn ) = 1. In this case, p is called an implicant of q.
15. Quine Mc-Clusky Method and Karnaugh maps (or Karnaugh Diagrams) are
two ways to obtain minimal form of Boolean polynomials.
8.6. SELF ASSESSMENT EXERCISE 153
(x′ y + xyz ′ + xy ′ z + x′ y ′ z ′ t + t′ )′ .
x′1 x2 + x3 (x′1 + x2 ).
5. Find hte disjunctive normal form of the polynomial whose conjunctive normal
form is (x + y + z)(x + y + z ′ )(x + y ′ + z)(x + y ′ + z ′ )(x′ + y + z).
6. Use the Quine Mc-Clusky method to find a minimal form of xyz ′ +xy ′ z +xy ′ z ′ +
x′ yz + x′ y ′ z.
2. x′ z ′ + y ′ z ′ + x′ y
3. (i) x1 x′3 + x1 x2
154LESSON - 8. NORMAL AND MINIMAL FORMS OF BOOLEAN POLYNOMIALS
Excercise 2.2
3. (x + y + z ′ )(x + y ′ + z ′ )
Exercise 2.3
1. yz ′ + xz
2. y
[2 ] Lidl, R., & Pilz, G. (2012). Applied abstract algebra. Springer Science &
Business Media.
[3 ] Kolman, B., Busby, R. C., & Ross, S. (1995). Discrete mathematical struc-
tures. Prentice-Hall, Inc.
Lesson - 9 Switching Circuits
Dr. Deepti Jain
Sri Venkateswara College
University of Delhi
Structure
9.1 Learning Objectives 155
9.2 Introduction 155
9.3 Electrical Circuits 156
9.4 Logic Gates 159
9.5 Applications of Switching Circuits 162
9.6 Summary 166
9.7 Self Assessment Exercise 167
9.8 Solutions to In-Text Exercises 167
9.9 References 169
9.10 Suggested Readings 169
9.2 Introduction
One of the most important applications of lattice theory and also one of the oldest
applications of modern algebra is the use of Boolean algebras in modeling and sim-
plifying switching or relay circuits. The aim of this chapter is to describe electrical
or electronic switching circuits in a mathematical way or to design a diagram of a
155
156 LESSON - 9. SWITCHING CIRCUITS
circuit with given properties. We will use logic gates to present diagrams of switching
circuits.
Figure 9.1:
Definition 9.2. Two switches S1 and S2 are inter connected in either series or in
parallel.
(a) Two switches S1 and S2 are said to be connected in series if the current pass
only when both are in closed state and current does not flow if any one of the
switches or both switches are open. It is symbolized as shown in Figure 9.2.
S1 S2
Figure 9.2:
(b) Two switches S1 and S2 are said to be connected in parallel if current flows
when any one or both are closed and does not flow when both are open. It is
symbolized as shown in Figure 9.3.
S1
S2
Figure 9.3:
Note. The symbol S1′ indicates a switch which is open if and only if S1 is closed and
is called complement of S1 .
If a switch S1 appears in two separate places in a circuit, then they are either both
open or both closed.
9.3. ELECTRICAL CIRCUITS 157
Definition 9.3. The following definitions give a connection between electrical switches
and the elements of a Boolean algebra. Let Xn = {x1 , x2 , ..., xn }.
(vii) p̄(a1 , a2 , ..., an ) is called the value of the switching circuit p at a1 , a2 , ..., an ∈ B.
The a′i s are called input variables.
x1 x2
x1 x3
Figure 9.4:
S1 S2
S1 S3
Figure 9.5:
Example 9.1. Draw the contact diagram of the polynomial x((y +w′ )+z ′ (x+w+z ′ ))y.
Solution. The contact diagram of the polynomial is given by the diagram in Figure
9.6.
Example 9.2. Draw the contact diagram of the polynomial x1 (x2 (x3 +x4 )+x3 (x5 +x6 )).
Solution. The contact diagram of the polynomial is given by the diagram in Figure
9.7.
158 LESSON - 9. SWITCHING CIRCUITS
w’
x y
x
z’ w
z’
Figure 9.6:
x3
x2
x4
x1
x5
x3
x6
Figure 9.7:
Example 9.3. Simplify p = (x1 + x2 )(x1 + x3 ) + x1 x2 x3 and draw the contact diagram
of the simplified form.
Solution.
p = (x1 + x2 )(x1 + x3 ) + x1 x2 x3
∼ x1 + x1 x2 + x2 x3 + x1 x2 x3
∼ x2 x3 + (x1 + x1 x2 + x1 x2 x3 )
∼ x2 x3 + x1
Thus, p ∼ x1 + x2 x3 and the contact diagram of it is as follow:
x1
x2 x3
Figure 9.8:
9.4. LOGIC GATES 159
a a
a a0
(iii) AND-Gate
It symbolizes the polynomial p(x1 , x2 , ..., xn ) = x1 x2 ...xn , and is shown as fol-
lows:
a1
a2
a3 a1a2a3...an
..
an
(iv) OR-Gate
It symbolizes the polynomial p(x1 , x2 , ..., xn ) = x1 + x2 + · · · + xn , and is shown
as follows:
160 LESSON - 9. SWITCHING CIRCUITS
a1
a2
a3 a1 + a2 + a3 + · · · + an
..
an
Note. A short notation for the NOT-gate is to draw a black disc immediately before
or after one of the other gates to indicate complement. Some examples are shown in
Figure 9.9.
a1 a1 a1
(a1a2)0 a1a02 (a1a02)0
a2 a2 a2
Definition 9.5. In propositional logic the three more polynomials (x′1 + x2 ), (x1 + x2 )′
and (x1 x2 )′ are also defined and the gates corresponding to these are as follows:
1. Subjunction Gate
It symbolizes the polynomial p(x1 , x2 ) = x′1 + x2 , and is shown as follows:
a1
a01 + a2
a2
a1
(a1 + a2)0
a2
a1
(a1a2)0
a2
a1
a2
p̄(a1, a2, a3)
a3
Exercise 11. Determine the Boolean polynomial p of the circuit given in Figure 9.10
a1
a2
a4
a3
Figure 9.10:
a1
a2
a3
Figure 9.11:
Example 9.4. In a large room there are electrical switches next to the three doors
to operate the central lighting. The three switches operate alternatively, i.e., each
switch can switch on or switch off the lights. We wish to determine the switching
circuit p, its symbolic representation, and contact diagram.
Each switch has two positions: either on or off. We denote the switches by
x1 , x2 , x3 and the two possible states of the switches xi by ai ∈ {0, 1}. The light
situation in the room is given by the value p̄(a1 , a2 , a3 ) = 0(= 1) if the lights are off
(are on, respectively). We arbitrarily choose p̄(1, 1, 1) = 1.
(i) If we operate one or all three switches, then the lights go off, i.e., we have
p̄(a1 , a2 , a3 ) = 0 for all (a1 , a2 , a3 ) which differ in one or in three places from
(1, 1, 1).
(ii) If we operate two switches, the lights stay on, i.e., we have p̄(a1 , a2 , a3 ) = 1 for
all those (a1 , a2 , a3 ) which differ in two places from (1, 1, 1).
a1 a2 a3 minterms p̄(a1 , a2 , a3 )
1 1 1 x1 x2 x3 1
1 1 0 x1 x2 x′3 0
1 0 1 x1 x′2 x3 0
1 0 0 x1 x′2 x′3 1
0 1 1 x′1 x2 x3 0
0 1 0 x′1 x2 x′3 1
0 0 1 x′1 x′2 x3 1
0 0 0 x′1 x′2 x′3 0
From this tabular we can derive the DN form for the switching circuit p which is as
follows:
p = x1 x2 x3 + x1 x′2 x′3 + x′1 x2 x′3 + x′1 x′2 x3 .
This p is in minimal form. The symbolic representation of the circuit p is given
in Figure 9.12.
a1
a2
a3
Figure 9.12:
x2 x3
x1
x02 x03
x2 x03
x01
x02 x3
Figure 9.13:
For p2 we choose conjunctive normal form, which is preferable when there are
many 1’s as function values:
a1
a2
a3
Figure 9.14:
Exercise 12. A voting-machine for three voters has three YES-NO switches. Current
is in the circuit precisely when YES has a majority. Draw the contact diagram and
the symbolic representation by gates and simplify it.
a1 a2 a3 p̄(a1 , a2 , a3 )
1 1 1 1
1 1 0 1
1 0 1 1
1 0 0 0
0 1 1 1
0 1 0 0
0 0 1 0
0 0 0 0
166 LESSON - 9. SWITCHING CIRCUITS
From this tabular we can derive the DN form for the switching circuit p which is as
follows:
x1 x3
x2 x3
a1
a2
a3
Figure 9.15:
In-text Exercise 9.2. 1. An oil pipeline has three pipelines b1 , b2 , b3 which feed it.
Design a plan for switching off the pipeline at three points S1 , S2 , S3 such that
oil flows in the following two situations: S1 and S3 are both open or both closed
but S2 is open; S1 is open and S2 , S3 are closed.
9.6 Summary
In this chapter we have covered the following points:
1. A switch is a device in an electric circuit which lets (or does not let) the current
to flow through the circuit. The switch can assume two states: closed and open.
Closed (On) state allows the current to flow and Open (off) state that does not
allow the current to flow.
2. Two switches S1 and S2 are said to be connected in series if the current pass
only when both are in closed state and current does not flow if any one of the
switches or both switches are open.
3. Two switches S1 and S2 are said to be connected in parallel if current flows
when any one or both are closed and does not flow when both are open.
9.7. SELF ASSESSMENT EXERCISE 167
4. The symbol S1′ indicates a switch which is open if and only if S1 is open and is
called complement of S1 .
2. In a production process there are three motors operating, but only two are
allowed to operate at the same time. Design a switching circuit which prevents
that more than two motors can be switched on simultaneously.
3. Design a switching circuit that enables you to operate one lamp in a room from
four different switches in that room.
4. A hall light is controlled by two switches, one upstairs and one downstairs.
Design a circuit so that the light can be switched on or off from the upstairs or
the downstairs.
a1
a2
a3
Figure 9.16:
Excercise 3.2
a1
a2
a3
Figure 9.17:
9.9. REFERENCES 169
9.9 References
[1 ]Davey, B. A., & Priestley, H. A. (2002). Introduction to lattices and order.
Cambridge university press.
[2 ] Lidl, R., & Pilz, G. (2012). Applied abstract algebra. Springer Science &
Business Media.
[3 ] Kolman, B., Busby, R. C., & Ross, S. (1995). Discrete mathematical struc-
tures. Prentice-Hall, Inc.
[2 ] Grätzer, G. (2002). General lattice theory. Springer Science & Business Media.
978-93-95774-34-5
9 789395 774345