Discourse Notes
Discourse Notes
FACULTY OF SCIENCE
DEPARTMENT OF MATHEMATICS
Mathematical Discourse and Structures
Preamble Mathematical Discourse and Structures is a compulsory course for all Level 1 Second Semester
students registered for the BSc Honours Degree in Mathematics and an optional course for those Level 1
students registered for the BSc Honours Degree in Statistics.
Aims
• The course aims to help students get an idea of what mathematics as a discipline really is, its
language, structure and presentation.
• It also aims to help students to come to grips with abstract notions at an early stage in their university
level training.
• Finally it aims to provide the students with the foundations of advanced mathematics.
1
Be able to construct proofs and to understand various types of proofs and how those proofs are applied.
Demonstrate a strong grasp of the language of mathematics through effective writing and reading of
mathematical arguments.
To understand different types of structures and operations, their interaction and applications.
Course Outline
1. Sets and Relations. Introduction to sets; set descriptions; the Russell Paradox; set operations;
relations; relation types(reflexive, symmetric, anti-symmetric, transitive, equivalence); equivalence
classes and partitions; revisiting functions as special relations. [9]
2. Logic. Introduction to mathematical statements and propositions, predicates, truth value; logical
operators and truth tables; tautologies, equivalent statements, contradictions, converse and contra-
positive statements; negations; quantifiers; mathematical statements with quantifiers, truth values
for quantifiers; methods of proofs; Comparison between the algebras of logic and sets. [9]
3. Operations and Structures. Binary operations, associative laws, commutative law; identity,
inverse and idempotent elements. Axioms of addition and multiplication on Q, R, C(including
distributive axiom). Use of the axioms to derive basic properties such as the cancellation laws and
to define mathematical structures: groups, rings, fields, vector spaces, posets, lattices, symmetry
groups. [9]
4. Numbers. Natural numbers N : the successor function and its properties, the principle of math-
ematical induction, the pigeon hole principle; Integers Z: closedness(under addition, multiplication
etc), ordering prime integers and prime factorizations; Rational numbers Q: closedness and order-
ing; irrationals; density of irrationals; some interesting number types: constructible, algebraic and
transcendental numbers; real numbers R; the real numbers R as a complete, ordered field. [9]
Recommended Reading
• Devlin, K., Sets, functions, and logic: an introduction to abstract mathematics, CRC Press, 2003.
2
• Stewart, I. and Tall, D.,The Foundations of Mathematics, Oxford University Press, 1977.
Additional Reading
3
Chapter 1
Sets
The concepts introduced in this chapter are truly fundamental and underlie almost every branch of math-
ematics. The notion of a set is elementary to all mathematics.
1.1 Sets
Definition 1.1.1. (Set) A set is a well-defined collection of objects. Each of the objects in the set is called
a member or an element of the set.
4
1.1.1 Notation
Elements of a set are usually denoted by lower-case letters, while sets are denoted by capital letters.
The symbol ∈ indicates membership in a set.
If a is an element of a set A, this is written as a ∈ A.
The symbol ∈ is read ”is a member of” or ”is an element of”.
The symbol ∈
/ is used to indicate that an object is not an element of a given set.
If x is not an element of the set A, this is written as x ∈
/ A.
(ii) Another method of specifying a set is to use some defining attribute or characteristic of the elements
of the set. This method is more general and precise and involves a description of the properties satisfied
by the elements of the set.
This is read as ”the set A of all objects x such that x has the property P ”. This notation is called the
Set-Builder notation. The vertical bar is read as ”such that”.
5
1.1.3 Special Sets
These sets, each denoted using special letters, called blackboard bold letters, occur frequently in mathe-
matics.
N = {1, 2, 3, ...}, the set of all natural numbers.
Z = {..., −2, −1, 0, 1, 2, ...}, the set of all integers.
Z+ = {1, 2, 3, ...}, the set of positive integers.
Q = { pq | p, q ∈ Z and q 6= 0}, the set of rational numbers.
R the set of real numbers.
R+ , the set of positive real numbers.
C = {a + bi | a, b ∈ R}, the set of complex numbers.
Definition 1.1.2. Equal Sets If A and B are sets such that every element of A is an element of B and
every element of B is an element of A, then A and B are equal.
1.2 Subsets
Definition 1.2.1. Subset A set A is a subset of the set B if and only if every element of A is also an
element of B. We also say that A is contained in B, and use the notation A ⊆ B.
A is a proper subset of B if every element of A belongs to the set B, but there is at least one element
of B which is not in A. If A is a proper subset of B, then this is denoted by A ⊂ B.
6
Example 1.2.1. (i) If A = {0, 2, 9}, B = {0, 2, 7, 9, 11} then A ⊂ B (A is a proper subset of B).
(ii) If A = {a, a, b}, B = {a, b}, then A and B denote the same set, i.e., A = B. So in using the Tabular
Form of a set, members of the set should not be repeated. Similarly the order of writing down the members
of a set does not matter.
(iii) If A = {1, 2, 4}, B = {1, 2, 4, 6, 8}, A is proper subset of B and B is a superset of A.
Definition 1.2.4. Empty Set A set with no elements is called an empty set or a null set. An empty set
is denoted by ∅.
Example 1.2.2. (i) The set of real roots of the polynomial equation x2 + 4 = 0 is an empty set.
(ii) {x | x = x + 4} is an empty set.
The second example is the set whose only element is the empty set and, as it has one element it is not
an empty set. Although they may have different specifications, all empty sets are regarded as equal, by
convention. The uniqueness means that an empty set is described as THE empty set.
Theorem 1.2.1. Two sets A and B are equal if and only if A ⊆ B and B ⊆ A.
7
Example 1.3.1. (i) {1, 3, 5, 7}, (ii) {dog, cat, donkey}, (iii) The letters of English alphabet.
Definition 1.3.2. A set is infinite if it is not finite, that is, it contains an infinite number of elements.
Example 1.3.2. (i) R, the set of real numbers, (ii) The points in the interval [0, 1].
Definition 1.3.3. The cardinality of a finite set is the number of elements it contains, while that of an
infinite set will be defined later when the relevant concepts have been considered.
Definition 1.4.1. A set which contains all the objects under consideration is called the universal set. This
set is usually denoted by U .
The universal set depends on situation and the sets being considered. Even then it is not unique as
any superset of a universal set is also a universal set.
Example 1.4.1. If A = {0, 2, 7}, B = {3, 5, 6}, C = {1, 8, 9, 10} then the universal set can be taken as the
set U = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10}. Note that 4 is included in the universal set even although it is not in
any one of the given sets.
The result of this theorem is described by saying that ”set inclusion is reflexive”.
8
Theorem 1.5.2. If A ⊆ B, and B ⊆ C, then A ⊆ C where A, B and C are sets.
Therefore A ⊆ C.
The result of this theorem is described by saying that ”set inclusion is transitive”.
Definition 1.6.1. The set of all subsets of a set A is called the power set of A. The power set of A is
denoted by P (A).
Proof. Exercise.
Hint: Proof is by induction on n.
9
1.7 Operation On Sets: Union of Sets
Definition 1.7.1. The union of two sets A and B is the set whose elements are all of the elements in A
or in B or in both.
Example 1.7.1. (i) If A = {5, 7, 8} , B = {2, 7, 9, 10, 11} then, A ∪ B = {2, 5, 7, 8, 9, 10, 11},
(ii) If A = {x | x ∈ Z, and x ≥ 3} and B = {x | x ∈ Z , and x ≥ 8}, then A ∪ B = {x | x ∈ Z, x ≥ 3}.
Sn
Definition 1.7.2. If A1 , A2 , A3 , ..., An denote, sets then the union of these sets denoted by i=1 Ai is
defined as ni=1 Ai = {x | x ∈ Ai for at least one set Ai } .
S
x∈A ⇒ x ∈ A or x ∈ B
⇒ x ∈ (A ∪ B).
10
Proof. Clearly A ⊆ A ∪ ∅. (1)
Conversely, let x ∈ A ∪ ∅. Then
x∈A∪∅ ⇒ x ∈ A or x ∈ ∅
⇒ x ∈ A.
Thus A ∪ ∅ ⊆ A. (2)
From (1) and (2), we have
A ∪ ∅ = A.
x∈A∪B ⇒ x ∈ A or x ∈ B
⇒ x ∈ B or x ∈ A.
⇒ x ∈ B ∪ A.
Hence A ∪ B ⊆ B ∪ A. (1)
Conversely, let y ∈ B ∪ A. Then
y ∈B∪A ⇒ y ∈ B or y ∈ A
⇒ y ∈ A or y ∈ B.
⇒ y ∈ A ∪ B.
Hence B ∪ A ⊆ A ∪ B. (2)
From (1) and (2) we have
11
A ∪ B = B ∪ A.
x ∈ (A ∪ B) ∪ C ⇒ x ∈ (A ∪ B) or x ∈ C
⇒ (x ∈ A or y ∈ B) or x ∈ C
⇒ x ∈ A or (x ∈ B or x ∈ C)
⇒ x ∈ A or x ∈ (B ∪ C)
⇒ x ∈ A ∪ (B ∪ C).
y ∈ A ∪ (B ∪ C) ⇒ y ∈ A or x ∈ (B ∪ C)
⇒ x ∈ A or (y ∈ B or x ∈ C)
⇒ (x ∈ A or x ∈ B) or x ∈ C
⇒ x ∈ A ∪ B or x ∈ C
⇒ x ∈ (A ∪ B) ∪ C.
Thus (A ∪ B) ∪ C ⊆ A ∪ B) ∪ C. (2)
From (1) and (2) we have
(A ∪ B) ∪ C = A ∪ (B ∪ C).
12
1.9 Intersection of Sets
Definition 1.9.1. The intersection of two sets A and B is the set whose elements are all of the elements
common to both A and B.
Tn
i=1 Ai = {x | x ∈ Ai for every i (i = 1, 2, ..., n)}.
Example 1.9.1. (i) Let A = {1, 2, 3, 8}, B = {5, 8, 9}. Then A ∩ B = {8}.
(ii) If A = {a, b, c, d}, B = {b, d, e, f, g} then A ∩ B = {b, d}.
x∈A∩B ⇒ x ∈ A and x ∈ B
⇒ x ∈ A.
Hence A ∩ B ⊆ A.
Proof. Exercise.
13
Proof. Exercise.
Proof. Exercise.
x ∈ A ∩ (B ∪ C) ⇒ x ∈ A and x ∈ B ∪ C
⇒ x ∈ A and (x ∈ B or x ∈ C)
⇒ (x ∈ A and x ∈ B) or (x ∈ A and x ∈ C)
⇒ x ∈ (A ∩ B) or x ∈ (A ∩ C)
⇒ x ∈ (A ∩ B) ∪ (A ∩ C).
y ∈ (A ∩ B) ∪ (A ∩ C) ⇒ y ∈ (A ∩ B) or y ∈ (A ∩ C)
⇒ (y ∈ A and y ∈ B) or (y ∈ A and y ∈ C)
⇒ y ∈ A and (y ∈ B or y ∈ C)
⇒ y ∈ A and y ∈ B ∪ C
⇒ y ∈ A ∩ (B ∪ C).
14
A ∩ (B ∪ C) = (A ∩ B) ∪ (A ∩ C).
Proof. Exercise.
To be discussed in class.
Before we talk about a Hasse Diagram we will mention a definition of a partial order(this will be explored
more in the chapter 5 of Structures).
Example 1.12.1. (i) If A is a non-empty set and P (A) denotes the power set of A, then the relation set
inclusion (⊆) on P (A) is a partial ordering.
(ii) Let A = {1, 2, 3, 4, 6, 8, 9, 12, 18, 24, 36, 72} and R be a relation on A which is defined by ’a divides b’.
Then R is a partial order on A.
Definition 1.12.2. (Hasse Diagram) A Hasse diagram is a pictorial representation of a finite partial
order on a set. In this representation, the objects, that is, the elements are shown as vertices (or dots).
Example 1.12.2. In Example 1.12.1(i) let A = {a, b, c}. Then P (A) = {∅, {a}, {b}, {c}, {a, b}, {a, c}, {b, c}, {a, b, c
Then the diagram below is the Hasse diagram of the partial order on P (A).
15
The Hasse Diagram for Example 1.12.1(ii) is also below:
Definition 1.13.1. Two sets are said to be disjoint if they have no element in common.
Example 1.13.1. The sets, A = {0, 5, 8, 9} and B = {3, 4, 11} are disjoint.
A \ B = {x | x ∈ A and x ∈
/ B}.
16
Example 1.14.1. Let A = {a, b, c} and B = {b, c, d, e, f, g}, then A \ B = {a}.
Ac = U \ A = {x ∈ U | x ∈
/ A}.
Theorem 1.15.1. If A and B are two subsets of the universal set U , then
(i) U c = ∅ (ii) ∅c = U (iii) A ∪ Ac = U (iv) A ∩ Ac = ∅
(v) (Ac )c = A (vi) A ⊆ B ⇒ B c ⊆ Ac
x ∈ (A ∩ B)c ⇒x∈
/ A∩B
⇒x∈
/ A or x ∈
/B
⇒ x ∈ Ac or x ∈ B c
⇒ x ∈ Ac ∪ B c
y ∈ Ac ∪ B c ⇒ y ∈ Ac or y ∈ B c
⇒y∈
/ A or y ∈
/B
⇒y∈
/ A∩B
⇒ y ∈ (A ∩ B)c
17
Thus Ac ∪ B c ⊆ (A ∩ B)c .
From (1) and (2) we have
Ac ∪ B c = (A ∩ B)c .
x∈A\B ⇒ x ∈ A and x ∈
/B
⇒ x ∈ A and x ∈ B c
⇒ x ∈ A ∩ Bc.
Hence A \ B ⊆ A ∩ B c . (1)
Conversely, let y ∈ A ∩ B c . Then
y ∈ x ∈ A ∩ Bc ⇒ y ∈ A and y ∈ B c
⇒ y ∈ A and y ∈
/B
⇒ y ∈ A \ B.
18
Thus A ∩ B c ⊆ A \ B. (2).
From (1) and (2) we have A \ B = A ∩ B c .
Definition 1.17.1. The symmetric difference of two sets A and B is defined as,
A 4 B = {x | x ∈ A ∪ B and x ∈
/ A ∩ B}.
Definition 1.18.1. If A is finite set with n distinct elements, then n is called the cardinality of A. The
cardinality of A is denoted by |A|.
Example 1.18.1. Let A = {a, b, c, d}. Then A is a finite set and |A| = 4.
|A ∪ B| = |A| + |B| − |A ∩ B|
19
and
Definition 1.19.1. If A and B are two non-empty sets, then the Cartesian product of A and B is the set
of all ordered pairs (a, b) where a ∈ A and b ∈ B. The Cartesian product of the sets A and B is denoted
by A × B.
Example 1.19.1. If A = {0, 1, 2}, B = {3, 5}, then A × B = {(0, 3), (0, 5), (1, 3), (1, 5), (2, 3), (2, 5)}.
A ⊆ B ⇒ A × C ⊆ B × C.
Proof. Exercise.
20
Chapter 2
Relations
This chapter deals primarily with the concept of a Relation. The mathematical concept of a relation deals
with the way the variables are related or paired. In mathematics the expressions like, is less than, is greater
than, is perpendicular to, is parallel to are relations. In this chapter, we shall only consider relations called
binary relations. The equivalence relation in sets is also discussed.
Definition 2.1.1. Let A and B be non-empty sets, then any subset of R of the Cartesian product A × B
is called a relation from A to B.
Example 2.1.1. Let A = {1, 2, 3} and B = {2, 7, 8}. Then R = {(1, 7), (2, 2)(3, 8)(3, 7)} is a relation from
A to B.
21
2.2 Properties of Relations
Example 2.2.1. (i) Let A = {a, b, c, d} and R = {(a, a), (b, b), (c, c), (d, d)}, then R is a reflexive relation
on A.
(ii) ’Equality’ is a reflexive relation, since an element is always equal to itself.
(a, b) ∈ R ⇒ (b, a) ∈ R.
Example 2.2.2. Let A = {a, b, c, d, e} and R = {(a, a), (a, e), (c, d), (e, c), (e, a), (d, c), (c, e)}. Then R is
symmetric since (a, e), (e, a) ∈ R, (c, d), (d, c) ∈ R and (e, c), (c, e) ∈ R.
Example 2.2.3. Let A = {1, 2, 3} and R = {(1, 1), (2, 2), (2, 3), (3, 2), (3, 3)} then R is transitive.
Example 2.2.4. Let A = {a, b, c}, and R = {(a, a), (a, b), (b, a), (b, b), (b, c), (c, a), (c, b), (c, c)}. Then R is
an equivalence relation on A.
22
(a, b) ∈ R and (b, a) ∈ R ⇒ a = b for all a, b ∈ R,
Example 2.2.6. Show that the relation ’=’ defined on a set A is an equivalence relation. Solution (i)
a = a for every a ∈ A Thus R is reflexive.
(ii) If a = b, then b = a for all a, b ∈ A.So R is symmetric.
(iii) If a = b and b = c, then a = c. Thus R is transitive.
Therefore R is an equivalence relation.
(a, b) ∼ (c, d) ⇔ 3a − b = 3c − d.
(a, b) ∼ (c, d) ⇒ 3a − b = 3c − d
⇒ 3c − d = 3a − b (since = is symmetric)
⇒ (c, d) ∼ (a, b).
Hence ∼ is symmetric.
For (a, b), (c, d), (e, f ) such that (a, b) ∼ (c, d) and (c, d) ∼ (e, f ) we have,
23
(a, b) ∼ (c, d) and (c, d) ∼ (e, f ) ⇒ 3a − b = 3c − d and 3c − d = 3e − f
⇒ 3c − d = 3e − f (since = is transitive)
⇒ (c, d) ∼ (e, f ).
Therefore ∼ is transitive.
Thus ∼ is an equivalence relation.
Definition 2.3.1. (Partition) Let A be a non-empty set. A partition F of A is a family F = {Ai }i∈I of
non-empty subsets of A satisfying these conditions:
S
(i) i∈I Ai = A,
(ii) Ai ∩ Aj = 1, if i 6= j.
Example 2.3.1. Let A = {1, 2, 4, 5, 6, 7, 8, 9, 10}, A1 = {1, 5, 7, 9}, A2 = {2, 4, 6} and A3 = {8, 10}. Then
F = {A1 , A2 , A3 } is a partition of A.
[a] = {b ∈ A | a ∼ b}.
24
(ii) For all a, b ∈ A, a ∼ b if and only if [a] = [b],
(iii) For all a, b ∈ A, if a b, then [a] ∩ [b] = ∅
(iv) Any two equivalence classes are either disjoint or equal.
Therefore the equivalence classes partition A.
The concept of a relation was defined very generally. In this section we shall now discuss a special relations
called functions. If f is a relation on a set A, then in this section we may write f (a) = b to mean (a, b) ∈ f
Example 2.4.1. Let A = {1, 2, 3, 4} and B = {3, 5, 10, 18, 20}. Define a relation f by
f = {(1, 3), (1, 2), (2, 3), (3, 10), (4, 5)}. Then f is everywhere defined but not well-defined.
if f = {(1, 5), (2, 4)}, then f is well-defined but everywhere defined.
Let f = {(1, 3), (2, 3), (3, 10), (4, 5). Then f is a function.
Definition 2.5.1. (i) A relation f : A → B is injective(or one-to-one) if f (x) = f (y) ⇒ x = y for all
x, y ∈ A.
25
(ii) A relation f : A → B is surjective(or onto) if for all b ∈ B, there is an a ∈ A such that f (a) = b.
(iii) A relation ii bijective if it is injective and surjective.
A mapping which is injective is called an injection and a function which is surjective is called a
surjection.
Example 2.5.1. Let A = {1, 2, 3, 4} and B = {3, 5, 10, 18, 20}. Let f = {(1, 5), (1, 20), (2, 3), (3, 10)}.
Then f is injective, not everywhere defined, not well-defined and not surjective.
If f = {(1, 3), (1, 5)(2, 5), (2, 10), (4, 18)(4, 20)}, then f is surjective, not everywhere defined, not well-
defined, not injective.
Definition 2.6.1. Let f : A → B, and g : B → C be two mappings. Then the composition of two mappings
f and g denoted by g ◦ f is the mapping from A into C defined by
Then (g◦f )(x) = g[f (x)] = g[(x+1)] = 2(x+1)2 +3, (f ◦g)(x) = f [g(x)] = f (2x2 +3) = 2x2 +3+1 = 2x2 +4.
g ◦ f and f ◦ g are both defined but g ◦ f 6= f ◦ g.
Definition 2.6.2. Let f : A → B, be a one-one, onto mapping (bijection), then f −1 : B → A is called the
inverse mapping of f . f 1 is the set defined as
f 1 = {(b, a) | (a, b) ∈ f }
26
Example 2.6.2. Let R be a set of real numbers and f : R → R be given by
27
Chapter 3
Logic
3.1 Introduction
In this chapter we shall study mathematical logic, which is concerned with all kinds of reasoning. Math-
ematical logic has two aspects. On one hand it is analytical theory of art of reasoning whose goal is to
systematize and codify principles of valid reasoning. It may be used to judge the correctness of statements
which make up the chain.
Principles of logic are valuable to problem analysis, programming and logic design.
A statement is a sentence that is true or false but not both. Distinguishing what is true from what is not
true is fundamental in mathematics. So in order to establish this we need have some rules. Firstly, we
need to agree that to recognize certain kinds of expressions as statements in our mathematical language.
Secondly, we agree to classify a given collection of one or more mathematical statements as true; these
statements are called axioms. Thirdly, we adopt a system of rules by which we can label certain new
statements as ‘true’; these statements will be related in carefully specified ways to statements that we
already accept as true. These rules of truth assignment are called our laws of logic, deduction, inference,
or proof. A proof is a chain of statements leading, implicitly or explicitly, from the axioms to a statement
under consideration, compelling us to declare that that statement, too, is true. A statement that has been
proved is called theorem. Accepting a list of axioms as an initial mathematical act may not be easy; the
axioms may be in conflict with our intuitions, if ‘true’ has its usual meaning.
28
Note that there is some flexibility in the use of this terminology. Rather than call every proven result a
theorem, for variety it is often the custom to reserve the word theorem for proven results of major impor-
tance, to call a theorem of slightly less importance a proposition, to label a theorem of interest primarily
for its use in proving a more important result a lemma, and to call a theorem that follows quickly as a
consequence of a previous theorem a corollary.
Statements can be connected by words like ‘not’, ‘and’, ‘or’, etc. These words are known as logical
connectives. The statements which do not contain any of the connectives are called atomic statements or
simple statements.
The common connectives used are: negation (¬), and ∧, or (∨), if ... then (→), if and only if ←→,
equivalence (⇔). We will use these connectives along with symbols to combine various simple statements.
A statement that is formed from simple statements through the use of sentential connectives is called a
compound statement.
The table showing the Truth values of a statement formula is called ‘Truth Table’.
3.2.3 Conjunction
A compound statement obtained by combining two simple statements say p and q, by using the connective
‘and’ is called conjunction, i.e., the conjunction of two statements p and q is the statement p ∧ q. It is read
as ‘p and q’.
29
The statement p ∧ q has the truth value T , whenever both p and q have the truth value T , otherwise p ∧ q
has the truth value F . The above property can also be written in the form of the table below, which we
regard as defining p ∧ q:
p q p∧q
T T T
T F F
F T F
F F F
The truth value of p ∧ q depends only on the truth values of p and q, and there need be no connection
between the subject matter of p and that of q. Let p be ‘students who are registered for this class are
science students’ and q be ‘3 + 5 = 8’. Thus the conjunction of p and q is a true proposition, although the
occasion may seldom arise when we might wish to state it. The symbolic expression p ∧ q is not in itself a
statement, but it becomes a statement when the letters p and q are replaced by statements.
3.2.4 Disjunction
The word ‘or’ has at least two meanings in standard English, as the following examples illustrate:
(1) At the airport while waiting to board our plane we hear, ‘Parties with young children or physically
handicapped individuals will be seated first’.
(2) At the restaurant we learn that ‘the price of dinner includes soup or salad’.
In example (1) we understand that if our party satisfies at least one of the specified conditions, then we
will be seated first; in particular, if our party includes both a physically handicapped person and a child,
or if it includes a physically handicapped child, we will still qualify to be seated first. This ‘or’ is called
30
inclusive, since our fulfilment of one condition includes the possibility that we may also fulfill the other.
In example (2) we understand that we are entitled to exactly one of the two possibilities; hence this ‘or’
is called exclusive. In mathematics the convention is to use ‘or’ in the inclusive sense unless we explicitly
state otherwise; thus ‘p or q’ is true if p is true, q is true, or both are true.
Any two simple statements can be combined by the connective ‘or’ to form a statement called the disjunction
of the statements; i.e., if p and q are simple statements, the sentence ‘p or q’ is the disjunction of p and q.
The disjunction of p and q is denoted symbolically by p ∨ q.
p ∨ q is read as ‘p or q’
The truth table of p ∨ q is given below:
p q p∨q
T T T
T F T
F T T
F F F
Example 3.2.2. Let p: Roses are red q: Violets are blue, then, p ∨ q: Roses are red or violets are blue
3.2.5 Negation
We form the negation of a statement by using the logical term ‘not’, symbolically denoted by ¬. If p
is a statement, then ¬p (verbalized as ‘not p’) denotes its negation. If p is ‘Mark is smiling’, then ¬p is
‘Mark is not smiling’. There are variations on the ways to phrase a negation, due to the complexities of
our language; for example, the negation of ‘No man is an island’ is ‘At least one man is an island’ or ‘Some
man is an island’. A safe way to negate p is to precede p by ‘It is not the case that’. The effect of negation
on the truth values of propositions is summarized in the following table, called the truth table for ¬.
p ¬p
T F
F T
31
The bottom row of the table above tells us that when p is true, then ¬p is false.
So far we have talked about two logical connectives, namely ¬ and ∧.
If a statement form S has three variables p, q, and r, then the left part of the truth table will look like this:
p q r
T T T
T T F
T F T
T F F
F T T
F T F
F F T
F F F
3.3 Proposition
If p, q, r, s, ... are simple statements, then the Compound Statement P (p, q, r, s, ...) is called a Proposition.
The statement p, q, r, ... are called the sub-statements or variables of P .
The truth value of proposition P depends on the truth values of the variables, p, q, r, .... If the truth values
of the variables are known to us, then we can find the truth value of the proposition P . A truth table is a
simple way to show this relationship.
p q ¬p ¬p ∧ q
T T F F
T F F F
F T T T
F F T F
32
3.4 Conditional Statements
3.4.1 Conditional
p q p −→ q
T T T
T F F
F T T
F F T
The conditional, if p then q, can be expressed in any of the following nine equivalent ways :
p −→ q, q if p, p only if q, p is sufficient for q, q is necessary for p, q provided p, q when p, q whenever p.
You must know all these.
33
3.4.2 Biconditional
Definition 3.4.2. A statement of the form ‘p if and only if q’ is called a biconditional statement. It is
denoted by p ←→ q.
p q p ←→ q
T T T
T F F
F T F
F F T
p q p −→ q q −→ p
T T T T
T F F T
F T T F
F F T T
34
p q ¬p ¬q ¬q −→ ¬p
T T F F T
T F F T F
F T T F T
F F T T T
3.4.4 Tautology
A statement formula that is true for all possible values of its propositional variables is called a tautology.
3.4.5 Contradiction
Two propositions p and q are said to be logically equivalent or simply equivalent if p → q is a tautology.
35
Two formulas may be equivalent, even if they do not contain the same variables. Two statement
formulas p and q are equivalent if p ⇐⇒ q is a tautology and conversely, if p ⇐⇒ q is a tautology then p
and q are equivalent.
(∨) : B × B −→ B ∧ : B × B −→ B.
COMMUTATIVE LAWS
ASSOCIATIVE LAWS
DISTRIBUTIVE LAWS
IDEMPOTENT LAWS
36
(∨) : (∀p ∈ B)[p ∨ p ⇔ p], (∧) : (∀p ∈ B)[p ∧ p ⇔ p].
IDENTITY LAWS
(∃0, 1 ∈ B) such that
(a) (∀p ∈ B)[p ∨ 1 ⇔ 1, p ∧ 1 ⇔ p].
(b) (∀p ∈ B)[p ∨ 0 ⇔ p, p ∧ 0 ⇔ 0].
COMPLEMENT LAWS
(∀p ∈ B)(∃¬p ∈ B) such that
(a) (∀p ∈ B)[p ∨ (¬p) ⇔ 1, p ∧ (¬p) ⇔ 0].
(b) [¬1 ⇔ 0, ¬0 ⇔ 1].
(c) (∀p ∈ B)[¬(¬p) ⇔ p].
Proof. Exercise
3.6 Quantifiers
In this section we introduce, two logical notions called quantifiers. So far we have discussed the proposi-
tions in which each statement has been about a particular object. In this section we shall see how to write
propositions that are about whole classes of objects.
In grammar a predicate is the word in a sentence which expresses what is said of the object. It is a part of a
37
declarative sentence describing the properties of an object or relation among objects (The word ‘Predicate’
and property will be used to mean the same thing) for example ‘is a cricket player’, ‘is a teacher’ ‘is short’
are predicates. In logic the word predicate has a broader role than in grammar. The basis for this is the
observation that a predicate is supplemented by, including a variable x as a place holder, for the intended
subject, the result behaves as ‘a statement function’, in the sense that for each value of x a statement
results. Consider the statement
p : x is an even number
The truth value of p depends on the value of x. p is true when x = 4, and false when x = 11. The
statement p is not a proposition. In this section we extend the system of logic to include such statements.
In grammar ‘Rajan loves’ is not a predicate. If ‘x’ is introduced as a place holder for the object, then we
get the result as
which is a statement function. Thus we can define, a predicate p(x) as an expression having the quality
that on an assignment of values to the variable x, from an appropriate domain, a statement results.
38
The phrases ‘for every x’, ‘for all x’ and ‘for each x’, have the same meaning and we can symbolize each
by ∀x.
If P (x) denotes a predicate (propositional function), then the universal quantification for P (x), is the
statement.
‘For all values of x, P (x) is true’.
In some situations we only require that there be at least one value for each the predicate is true. This can
be done by prefixing P (x) with the phrase ‘there exists an x’. The phrase ‘there exists an x’. is called an
existential quantifier.
The existential quantification for a predicate is the statement ‘There exists a value of x’ for which P (x).
The symbol ∃, is used to denote the logical quantifier ‘there exists’ the phrases ‘There exists an x’,
‘There is a x’, for some ‘x and ‘for at least one x’ have the same meaning.
The existential quantifier for P (x) is denoted by ∃x P (x).
39
(∃ an integer x) (x ≤ 8)
i.e., the negated proposition is: There is an integer less than or equal to 8.
(iii) The negated proposition of
(∃ an integer x) (0 ≤ x ≤ 8) is
(∀ integers x) (x < 0 or x > 8)
In this section, we discuss different types of Proof: Direct Proof, Proof by Contradiction, Indirect Proof
e.t.c
We assume that p is true, and from the available information the conclusion q is shown to be true by valid
reference. In this method of proof we construct a chain of statements p, p1 , p2 , p3 , ..., pn , ..., q, where p is
either a hypothesis of the theorem or an axiom and each of the implications p ⇒ p1 , p1 ⇒ p2 , ..., pn ⇒ q
is either an axiom or is implied by the implication preceding it.
40
3.7.2 Method of Contraposition
Indirect Proof : This method of proof is very useful and is powerful at all levels of the subject mathematics.
Indirect method follows from the tautology (p −→ q) ⇔ ((¬q) −→ (¬p)). This states that the implication
p =⇒ q is equivalent to ¬q =⇒ ¬p. To prove p =⇒ q indirectly, we assume that q is false and then show
that p is false.
Example 3.7.2. For any integer n > 2, prove that n prime =⇒ n odd.
SolutionLet
p: α2 is an even integer
q: α is an even integer
let ¬q be true, then α is not an even integer therefore α must be odd. α is of the form α = 2m + 1 for
some integer m.
α = 2m + 1
=⇒ α2 = (2m + 1)2
= 4m2 + 4m + 1
= 2(2m2 + 2m) + 1
In this method of proof, we assume the opposite of what we are trying to prove and get a logical contra-
diction. Hence our assumption must have been false. Therefore what we were originally required to prove
must be true. To prove p −→ q is true, in this the proof can be constructed as follows:
(i) Assume p ∧ (¬q) is true.
(ii) On the basis of the assumption find some conclusion that is false.
41
(iii) Then the contradiction discovered in step (ii) leads us to the conclusion that p ∧ (¬q) is false which
powers that p −→ q is true.
√ p
2=
q
where p and q have no common factor. After cancelling the common factors squaring on both sides, we get
p2
2=
q2
⇒ p2 = 2q 2
⇒ p2 is even
⇒ p is even
⇒ p = 2m for some integer m
⇒ (2m)2 = 2q 2
⇒ 4m2 = 2q 2
⇒ q 2 = 2m2
⇒ q is even
Hence p and q have common factor of 2, which is a contradiction to the statement that p and q have no
common factors.
√ √
Hence our assumption that 2 is rational leads to a contradiction. Thus 2 is irrational.
Theorem 3.7.1. Principle of Mathematical Induction Let S be a set of natural numbers with the
following properties:
(a) The integer 1 belongs to S
(b) Whenever the integer k is in S, the next integer k + 1 must also be in S.
Then S is the set of all positive integers.
42
Example 3.7.4. Prove that:
n2 + n
1 + 2 + 3 + ... + n = for all n ∈ N.
2
n2 + n
Proof. Let P (n) be the statement 1 + 2 + 3 + ... + n = for n ∈ N.
2
Initial Step
For P (1) we have
12 + 1
LHS = 1 and RHS = = 1. Hence LHS = RHS and so P (1) is true.
2
Inductive Assumption(Hypothesis)
Assume that P (k) is true, that is,
k2 + k
1 + 2 + 3 + ... + k = for k ∈ N.
2
Inductive Step We want to show that P (k + 1) is true, that is,
(k + 1)2 + (k + 1)
1 + 2 + 3 + ... + k + 1 = .
2
Now
LHS of P (k + 1) = 1 + 2 + 3 + ... + k + 1
= (1 + 2 + 3 + ... + k) + (k + 1)
k2 + k
= + (k + 1) (Inductive Assumption)
2
2
k + k + 2k + 2
=
2
(k 2 + 2k + 1) + (k + 1)
=
2
(k + 1)2 + (k + 1)
=
2
= RHS of P (k + 1)
n2 + n
Hence P (k + 1) is true and by the Principle of Mathematical Induction, 1 + 2 + 3 + ... + n = for
2
all n ∈ N.
Below is another form of induction which is equivalent to the one used above.
Theorem 3.7.2. The Principle of Strong Mathematical Induction Let S be a set of natural numbers
with the following properties:
(a) The integer 1 belongs to S
(b) If k is a positive integer such that 1, 2, ..., k belong to S, then k + 1 must also be in S.
Then S is the set of all positive integers.
Example 3.7.5. If the numbers an are defined by a1 = 11, a2 = 21 and an = 3an−1 − 2an−2 for n ≥ 3,
43
prove that
an = 5.2n + 1, n ≥ 1.
⊕ : B × B −→ B ⊗ : B × B −→ B.
44
(⊕) : (∀a, b ∈ B)[a ⊕ b] ∈ B, (⊗) : (∀a, b ∈ B)[a ⊗ b ∈ B].
COMMUTATIVE LAWS
ASSOCIATIVE LAWS
DISTRIBUTIVE LAWS
IDEMPOTENT LAWS
IDENTITY LAWS
(∃z, e ∈ B) such that
(a) (∀a ∈ B)[a ⊕ e ≡ e, a ⊗ e ≡ e].
(b) (∀a ∈ B)[a ⊕ z ≡ a, a ⊗ z ≡ z].
COMPLEMENT LAWS
(∀a ∈ B)(∃a0 ∈ B) such that
(a) (∀a ∈ B)[a ⊕ a0 ≡ e, a ⊗ a0 ≡ z].
(b) [e0 ≡ z, z 0 ≡ e].
(c) (∀a ∈ B)[(a0 )0 ≡ a].
Note this definition and the set of all subsets of a universal set U is a Boolean algebra with ⊕ being ∩ and
⊗ being ∪, and that the set B of statements is a Boolean algebra ⊕ being ∨ and ⊗ being ∧.
45
Chapter 4
4.1 Operations
When you went from primary school to secondary school you were introduced to your first level of abstrac-
tion, the introduction of algebra where instead of working entirely with numbers you were introduced to
using symbols, the letters of various alphabets, to represent numbers and to manipulate those symbols to
obtain general results and to set up and solve equations. This you have continued to do with more and
more sophistication throughout your secondary school days and early days at university. You have mainly
used symbols to represent numbers and arrays of numbers (matrices, determinants etc) and functions.
You have added and multiplied them together or composed them but basically you have dealt with sets
based on the number sets N, Z, Q, R, C. Earlier in this course you have been introduced to arbitrary set
and looked at some of these ides in various contexts. The next step is to abstract from various sets of
numbers with +, · and to see how these ideas can be abstracted to introduce structures which generalize
these number structures so that you work with symbols to solve problems for infinitely many situations at
once. Can you do the same for structures as you did for number sets with the operations of addition and
multiplication?
One way to approach this is to “see” what properties are used in the definitions of addition and
multiplication of numbers and abstract these to arbitrary sets.
46
For instance for every pair of numbers a, b there are unique numbers a + b and a · b, their sum and
product. However, since for matrix multiplication on the set M = Mn×n (Q) of all n × n matrices with
rational entries , the ordered pairs (A, B) and (B, A) give possibly different products A · B and B · A, the
abstract notion should deal with ordered pairs (a, b), that is members of the Cartesian Product set A × A.
Moreover if the ordered pair (a, b) ∈ Q × Q, then a + b, a · b are unique rational numbers in Q. This is
described by saying that Q is closed under addition and multiplication so this concept of closure also needs
to appear in the definition of the abstract concept of a binary operation. The situation of associating an
ordered pair of elements of a set with an everywhere defined and unique element of the same set is precisely
that of a function from
A × A −→ A
It is usual to denote ∗(a, b) by a ∗ b, based on the normal practice of putting the operation between the
elements.
For examples of binary operations, the above are given: the addition and multiplication of numbers on
each of the sets N, Z, Q, R, C., and matrix addition and multiplication on M .
For later work it is useful to note that number multiplication is also a binary operation on Q0 = Q \ {0}
since if a, b ∈ Q0 , then a, b 6= 0 so ab is an everywhere and well defined non-zero rational number so number
multiplication is a function from Q0 × Q0 to Q0 .
Another example of a binary operation is given by the following. This example is very important in
the Theory of Groups.
Let A be a set (any set). Define the set SA to be the set of all bijective functions on A
θ ∈ SA ⇔ θ : A → A is a bijective function.
Because of the importance of this concept to future work such functions are given the special name of
47
PERMUTATION on A and the set SA of all permutations on A is (called) the SYMMETRIC GROUP
ON A. As an exercise for tomorrow, you are asked to prove that if σ, τ are permutations on a set A then
the composition σ ◦ τ of σ and τ is an everywhere defined and well defined permutation on A and so
composition of functions is a binary operation on SA .
48
Chapter 5
This section closely follows the book The Foundations of Mathematics by Stewart and Tall.
The object of the section is to give an axiomatic foundation to the natural numbers based on the
successor function, otherwise known as the Peano Axioms for the natural numbers. As with the previous
example of an axiomatic system this is derived by abstracting the properties of the natural numbers and
giving it a basis in set theory.
49
These axioms are enough to develop all the properties of the natural numbers. It should be noted that
N = N0 \ {0} is the set of all natural numbers since 0 is generally not regarded as a natural number. That
N3 enshrines the idea of proof by induction is shown in the following proposition.
This result shows that 0 is the only element that is not a successor, a property that distinguishes it
from all other elements of N0 . Its successor, s(0) will be denoted by 1. Proof by induction will always take
the format outlined in the above proof: define a set S, show that 0 ∈ S and that if n ∈ S, then s(n) ∈ S.
Then invoke N3 to deduce that S = N0 .
Thinking of S as
S = {n ∈ N0 |P (n)}
for some proposition P yields the more usual form of proof by induction: Prove that P (0) is true, show
that if P (n) is true, then P (s(n)) is true and deduce that P (n) is true for all n ∈ N0 .
The successor s(0) of 0 will be denoted by 1. Thus 1 has a very special place in the set of natural
numbers.
Addition and multiplication of the elements in N0 will now be defined using induction or recursion.
This process needs to be carefully justified but it will be taken for granted in the present course. The
justification has to be based on a set theoretical format.
A1 (∀m ∈ N0 ) m + 0 = m.
M1 (∀m ∈ N0 ) m0 = 0.
M2 (∀m, n ∈ N0 ) ms(n) = mn + m.
50
Using these definitions and the axioms of the natural numbers the rules of arithmetic will now be
established but first the following should be noted:
From A2 and A1 m + 1 = m + s(0) = s(m + 0) = s(m). This gives the successor of m its normal
(habitual) meaning.
1. 0 + m = m,
2. 1 + m = s(m),
3. 0m = 0,
4. 1m = m.
Proof of 1.
Proof of 2.
Proof of 3.
51
If n ∈ S, then 0 · n = 0 and 0s(n) = 0n + 0 = 0 + 0 = 0. Thus s(n) ∈ S and S = N0 .
Proof of 4.
The usual rules of associativity and commutativity and distributivity of multiplication over addition
are established in the next theorem.
1. (m + n) + p = m + (n + p),
2. m + n = n + m,
3. m(n + p) = mn + mp,
4. (mn)p = m(np),
5. mn = nm.
Proof of 1.
If p ∈ S, then (m + n) + p = m + (n + p) and so
Proof of 2.
52
Let S = {n ∈ N0 |(∀m ∈ N0 ) m + n = n + m} ⊆ N0 . Then by A1 and the first part of the last theorem
m + 0 = m = 0 + m and so 0 ∈ S.
If n ∈ S, then m + n = n + m and so
Proof of 3.
Proof of 4.
Proof of 5.
53
step it is necessary to show that
(∀m, n ∈ N0 ) nm + m = s(n)m.
If m ∈ T , then nm + m = s(n)m.
Therefore
= (nm + n) + (m + 1)
= nm + (n + (m + 1))
= nm + ((n + m) + 1)
= nm + ((m + n) + 1)
= nm + (m + (n + 1))
= (nm + m) + (n + 1)
= s(n)m + s(n)
= s(n)s(m).
54
Therefore
= (nm + n) + (m + 1)
= nm + (n + (m + 1))
= nm + ((n + m) + 1)
= nm + ((m + n) + 1)
= nm + (m + (n + 1))
= (nm + m) + (n + 1)
= s(n)m + s(n)
= s(n)s(m).
55