DM Notes Maths
DM Notes Maths
Set is the fundamental discrete structure upon which all other discrete structures are built. The
notion of sets was introduced by German Mathematician George Cantor (1845 - 1918) for a
better understanding of finite sequences. Simply set in mathematics means exactly what it
means in ordinary language, namely, a collection of objects. A battalion of soldiers, a ream of
papers, the alphabet, all are examples of sets.
1.1.1 Notation
We use uppercase letters: 𝐴, 𝐵, 𝐶, . .. to denote a set and elements are denoted in lowercase letter: 𝑥, 𝑦, 𝑧,
𝑝, 𝑞, 𝑟 . ..
Elements of the set can be listed or definition of the variables can be given using a variable. For
instance,
𝑋 = {1,3,5,7,9}
1|Page
we can use an identifier (′𝑥′ for example) to denote a representative element , while a ‘:’ symbol
means ‘such that’ and then the rule that the identifier should obey:
or
{𝑥 ∶ 𝑥 ∈ 𝑍, |𝑥| < 5 }
The latest way to write a set known as comprehension notation - can be expressed in standard form
as:
𝑥 | 𝑃(𝑥), where 𝑃(𝑥)is a statement states that the set comprised of all elements ′𝑥′ for which
𝑃 is true.
● ∈ Stands for ‘is an element of. . . . For Example: 𝑠𝑛𝑎𝑘𝑒 ∈ 𝑆𝑒𝑡 𝑜𝑓 𝑅𝑒𝑝𝑡𝑖𝑙𝑒𝑠
● ∉ Stands for ‘is not an element of . . .
● For example: 𝑁𝑒𝑤 𝐷𝑒𝑙ℎ𝑖 ∉ 𝑆𝑒𝑡 𝑜𝑓 𝐴𝑓𝑟𝑖𝑐𝑎𝑛 𝑐𝑎𝑝𝑖𝑡𝑎𝑙 𝑐𝑖𝑡𝑖𝑒𝑠
A set can be
i. Finite: for example, 𝑠𝑒𝑡 𝑜𝑓 𝐼𝑛𝑑𝑖𝑎𝑛 𝐶𝑖𝑡𝑖𝑧𝑒𝑛𝑠
ii. Infinite: for example, {3, 9, 12, 15, 18, . . . }
(Note: the use of the ellipsis......indicates that sequence of numbers is endless).
Always, remember one thing that the order in which the elements in a set occur is immaterial.
Empty set: A set with no elements is called an empty or null set and generally denoted by 𝜙. For
example, Let a set 𝐴 = {𝑎, 𝑏, 𝑐} is given then 𝜙 ⊆ 𝐴. But 𝜙 ∉ 𝐴. Thus, the inclusion of an element is
the membership of an element in a set.
Other examples,
Example 1.1
Equity
2|Page
Two sets are said to be equal if they contain the same elements i.e. if every element of B is
also in A, & every element of A is also in B, then we say A = B.
e.g. if 𝐴 = {1,2,3} 𝑎𝑛𝑑 𝐵 = {1,3,2} 𝑡ℎ𝑒𝑛 𝐴 = 𝐵 .Two sets A & B are set to be equal, iff 𝐴 ⊆
𝐵 𝑎𝑛𝑑 𝐵 ⊆ 𝐴 or symbolically,
𝐴 = 𝐵 ⇔ (𝐴 ⊆ 𝐵 𝑎𝑛𝑑 𝐵 ⊆ 𝐴)
Example 1.2
{1,2,4} = {1,2,2,4};
{1,4,2} = {1,2,4};
Subsets
It can easily be imagine a set within a set. The contained set is called a subset of the containing set. If
the set A is a subset of B, we write:
𝐴⊆𝐵
Example 1.3
The set of people living in Delhi is subset of the set of people living in India
The set of organic compounds is the subset of chemical compounds.
Set 𝐴 is called a proper subset of a set 𝑩if 𝐴 ⊆ 𝐵 and 𝐴 ≠ 𝐵. Symbolically it is written as
⊂ 𝐵 . It is also called proper inclusion. A proper inclusion is not reflexive but it is transitive
i.e. (𝐴 ⊂ 𝐵) and (𝐵 ⊂ 𝐶) ⇒ (𝐴 ⊂ 𝐶)
Note:
Every set is a subset of the universal set, and the empty set is a subset of every set.
i.e. for every set 𝐴, the empty set does not have anything that isn’t in 𝐴 . So for all sets
𝐴 (𝜙 ⊆ 𝐴)
If A is a subset of B i.e.(𝐴 ⊆ 𝐵) and B is a subset of A i.e.(𝐵 ⊆ 𝐴) then 𝐴 𝑎𝑛𝑑 𝐵 should
comprises of exactly similar elements, and hence they are equal. In further terms: If (𝐴 ⊆ 𝐵)
and (𝐵 ⊆ 𝐴) then (𝐴 = 𝐵)
Disjoint
Disjoint sets can be defined as the sets with different elements with respect to each other. For
Instance:
If 𝐴 = 𝑆𝑒𝑡 𝑜𝑓 𝑒𝑣𝑒𝑛 𝑛𝑢𝑚𝑏𝑒𝑟𝑠 𝑎𝑛𝑑 𝐵 = {1, 3, 5, 11, 19} then 𝐴 𝑎𝑛𝑑 𝐵 are disjoint sets.
The intersection of any two sets 𝐴 𝑎𝑛𝑑 𝐵, written as 𝐴 ∩ 𝐵, is the set consisting of all the elements
which belong to both 𝐴 𝑎𝑛𝑑 𝐵 i.e.
3|Page
(𝐴 ∩ 𝐵) = {𝑥 ∶ 𝑥 ∈ 𝐴 𝑎𝑛𝑑 𝑥 ∈ 𝐵}
Example: 1.4 (𝐴 ∩ 𝐵) = (𝐵 ∩ 𝐴)
(𝐴 ∩ 𝐴) = 𝐴 𝑎𝑛𝑑 (𝐴 ∩ 𝜙) = 𝜙
Note:
Two sets 𝐴 𝑎𝑛𝑑 𝐵 are called disjoint iff (𝐴 ∩ 𝐵) = 𝜙, i.e. 𝐴 𝑎𝑛𝑑 𝐵 have no element in
common.
A collection of set is called disjoint collection if, for every pair of sets in the collection the
two sets are disjoint. The elements of a disjoint collection are said to be mutually disjoint.
e.g. If 𝐴 = {{1, 2}, {3}}, 𝐵 = {{1}, {2, 3}}, 𝑎𝑛𝑑 𝐶 = {{1, 2, 3}}now these sets are mutually
disjoint because (𝐴 ∩ 𝐵) = 𝜙, (𝐵 ∩ 𝐶) = 𝜙 𝑎𝑛𝑑 (𝐴 ∩ 𝐶) = 𝜙. So the given sets are mutually
disjoint.
Union
The union of 𝐴 𝑎𝑛𝑑 𝐵, written as (𝐴 ∪ 𝐵), is the set of all elements which are members of the set A or
the set B or both it is written as
(𝐴 ∪ 𝐵) = {𝑥 ∶ 𝑥 ∈ 𝐴 𝑜𝑟 𝑥 ∈ 𝐵}
i.e. 𝐴∪𝐵 =𝐵∪𝐴
𝐴∪𝜙 =𝐴
𝐴∪𝐴 =𝐴
Complements
Let 𝐴 𝑎𝑛𝑑 𝐵 be two sets. For any set A, the relative complement of 𝐵 with respect to 𝐴, written as 𝐴 −
𝐵 is the set consisting of all elements of 𝐴 which are not elements of 𝐵 i.e.
𝐴 − 𝐵 = {𝑥: 𝑥 ∈ 𝐴 𝑎𝑛𝑑 𝑥 ∉ 𝐵}
Relative complements of 𝐵 with respect to 𝐴 can be written as 𝐴 \ 𝐵
Let 𝑈 be the universal sets. For any set 𝐴, the relative complement of 𝐴 with respect to 𝑈, i.e.
𝑈 − 𝐴 is called the absolute compliment of 𝐴 . It is often called the compliment of 𝐴 and denoted
by 𝐴𝐶.
4|Page
1.5 Venn Diagrams
Introduction of the universal set permits the use of a pictorial device to study the connection between
the subsets of a universal set and their intersection, union, difference and other operations. The
diagrams used are called Venn Diagrams
1.5.1 Definition
Venn diagram is a schematic representation of a set by a set of points. The universal set U is
represented by a set of points in a rectangle and a subset say A of U is represented by the interior of
circle. The operation of union and intersection can be very simply represented through Venn
diagrams.
Thus “Venn diagrams are pictorial representations of sets and their inter-relations, and of them some
basic results in set theory become obvious through these diagrams”.
Any closed curve enclosing an area may be supposed to represent a set. Thus, let
𝐴 𝐴
𝐵
𝐵
𝐴 U 𝐴 U
𝐴 𝐵
Fig. 1.1 e 𝐴 ∩ 𝐵
Thus from (Fig. 1.1 e), we see the portion common to two circles represents 𝐴 ∩ 𝐵, while 𝐴 ∪
𝐵 is represented by the total area covered by the two circles together.
Suppose we represent the universal set 𝑈 by the rectangle in the (fig. 1.1 d). The component of 𝑆 with
respect to 𝑈 denoted by 𝑆′ 𝑜𝑟 𝑆𝑐 (fig. 1.2).
5|Page
𝑆
(Fig. 1.2) 𝑆′ 𝑜𝑟 𝑆𝑐
Venn diagrams can also help in visualizing some types of problems given below
1.5.2 Complements
Suppose, if 𝑈 is a universal complement or simply complement of a set 𝐴, denoted by 𝐴𝑐 is the set of
elements which belong to 𝑈 but which do not belong to 𝐴:
𝐴𝑐 = {𝑥: 𝑥 ∈ 𝑈, 𝑥 ∉ 𝐴}
The relative complement of a set 𝐵 with respect to a set 𝐴, simply, the difference of 𝐴 and 𝐵, denoted
by 𝐴/𝐵 is the set of elements which belong to 𝐴 but which do not belong to 𝐵.
𝐴\𝐵 = {𝑥: 𝑥 ∈ 𝐴, 𝑥 ∉ 𝐵}
𝐴 𝑐
𝐴
𝐴 𝐵
𝐴 × 𝐵 = {(𝑎, 1), (𝑎, 2), (𝑎, 3), (𝑏, 1), (𝑏, 2), (𝑏, 3)}
Note: if 𝐴 = ∅ 𝑎𝑛𝑑 𝐵 is any non-empty set then 𝐴 × 𝐵 = ∅ = 𝐵 × 𝐴
6|Page
Remark 1: In general 𝐴 × 𝐵 ≠ 𝐵 × 𝐴
𝐴 × (𝐵 × 𝐶) ≠ (𝐴 × 𝐵) × 𝐶
1.7 Power Sets
On several occasions testing all the combinations of elements in a set for the particular property
involves numerous problems. In order to consider all such combinations in a set 𝑆, it needs to create a
set which has these combinations as subsets of 𝑆
Let 𝑆 be a set, and then the power set of 𝑆 i.e. set of all subsets of set 𝑆 can be represented as 𝑃(𝑆)
Example 1.7 The power set P({3, 5, 7}) is the set of all subsets of {3, 5, 7}.
Hence, P({3, 5, 7}) = {∅, {3}, {5}, {7}, {3, 5}, {3, 7}, {5, 7}, {3, 5, 7}}.
Note that in the set of subsets, empty set and the set itself are among its members. An empty
P (∅) = {∅}.
The set {∅} has exactly two subsets, viz., ∅ and the set {∅} itself. Therefore,
P ({∅}) = {∅, {∅}}.
Initially we are introducing two basic counting principles i.e. Product Rule and Sum Rule. Later on,
we will discuss the way they used to solve the counting problems
Example 1.8:
A company with two employees namely Sanjeev and Pankaj, leases a floor in a building having 12
offices. So in exactly how many ways does the distinct office can be assigned to both of the
employees?
7|Page
later on, Pankaj can be assigned an office in 11 ways (since an office is already allotted to Sanjeev).
Hence using product rule we can express this situation as,
12 x 11 = 132
Ways to assign offices to these two employees.
Example 1.9
A student can select only a project from three given lists out of which each one consists of 23, 15 and
19 projects respectively. There is no repetition of any project among these three lists. Then how many
projects is there that can be selected by students?
Solution: The student can select a project either from the first list or the second list or the third list.
Though no project is repeated in any of the list, using sum rule there are 23 + 15 + 19 = 57 ways
to select a project.
Assume that if a job can be done in one of two methods and within that there is one which is common
to both. In such a scenario, the sum rule cannot be used to count the number of methods to conduct the
job. This can be done in two or more ways. We have to see whether to do this job in many ways that
will be counted repeatedly. So we have to subtract those methods which we have counted twice.
Example 1.10
How many bytes either start with a 1 bit or terminated with the two bits 00?
Solution: We can create a string of bits of length eight that will either start with 1 or terminates with
two bits 00. We can create a string of bits having length eight that starts with a bit 1 in 27
8|Page
= 128 ways. This is due to the product rule, since the first bit can be chosen in only single way and
every other bits can be chosen in two ways. Similarly, we can create a string of bits with length eight
terminating with the two bits 00, in 26 = 64 ways. This is due to the product rule, since each of the first
six bits can be chosen in two ways and the last two bits can be chosen in only one way.
Some of the ways to create a string of bits with length eight starts at 1 are the same as the ways to
create a string of bits with length eight that terminates with the two bits 00. There are 25 = 32 ways to
create such a string. This uses the product rule, since the first bit can be chosen in only one way, every
sixth bits can be chosen in two ways, and the last two bits can be chosen in one way. Subsequently,
the number of strings of bits with length eight that starts at 1 or terminate at 00, which equals the
number of ways to create a string of bits of length eight that starts at 1 or that terminates with 00,
equals 128 + 64 − 32 = 160.
The division rule can be reaffirmed in terms of sets: “If a finite set S is the union of 𝑛 pairwise disjoint
subsets each with 𝑑 elements, then 𝑛 = |𝑆|/𝑑 .”
We can demonstrate the division rule for counting with the following example.
Example 1.11
How many dissimilar ways to seat four people about a circular table, where two seating’s are assumed
the same when each person has the same left and the right neighbor?
Solution: Firstly, randomly select a seat around the table and tag it seat 1. Then tag the remaining
seats in arithmetical order, arranged clockwise manner around the table.
Consider the facts,
- There are four ways to opt the person for seat 1,
- Three ways to opt the person for seat 2,
- Two ways to opt the person for seat 3,
- One way to opt the person for seat 4.
Therefore, we can say that this can be done in factorial 4 ways, i.e. 4! = 24 ways to order the given
four people for these seats.
Though, each of the four choices for seat 1 leads to the same arrangement, as it can be distinguished
two arrangements only when one of the people has a different immediate left or immediate right
neighbor.
Now we have four ways to select the person for seat 1, by the division rule it will be
24/4 = 6
9|Page
Fig. 1.4
Tree Diagrams
The problems on counting can also be solved by using trees. A tree contains a root; a number of
branches originate from the root, and possible further branches originating the endpoints of other
branches. To use trees in counting, we use a branch to represent each possible choice. We represent
the possible outcomes by the leaves, which are the endpoints of branches not having other branches
starting at them.
Example 1.12
Assume that “I Love India” T-shirts available in five variants: S, M, L, XL, and XXL. Besides this
assume that each variant available in four different colors, yellow, orange, pink, and gray, except for
XL, which available in orange, pink, and gray, and XXL, which have pink and gray. How many
different t-shirts does a memento shop should stock to have at least one of each available variant and
color of the T-shirt?
Solution: The trees diagram in the given Figure 1-5 displays all the possible variants and color pairs.
It follows that the memento shop owner needs to stock 17 different T-shirts.
Fig. 1.5
10 | P a g e
1.9 Cardinality
Sets are broadly used in counting problems, therefore for such use we need to study about their sizes.
Let us assume that S be a set contains n distinct elements where n is any non-negative integer then the
set S is said to be finite. The cardinality of set S can be represented by |S| which is in other term also
called as number of elements in S.
Examples 1.13
Let X be the set of odd positive integers less than 20. Then |X| = 10.
Let P be the set of prime positive integers less than 10. Then |P| = 5.
Though the null set contain no elements, it follows that |∅| = 0.
Till now the notion of cardinality was in the scope of finite sets which is used to compare the two
finite sets on the basis of their sizes. Now we are extending this notion to infinite set where the
comparison can be done on the basis of the difference between their sizes with respect to each other.
These notions have vital applications to computer science. A set is said to be uncomputable in case of
infeasibility of a computer program to find all its values, even with unlimited time and memory. This
notion is used to explain why uncomputable sets exist.
Definition:
The sets A and B are said to have same cardinality only when their sizes are equal and have one to
one correspondence between distinct elements of the set. It can be expressed as |A| =
|B|.
In case of infinite sets, we need to talk of the cardinality on relatively among two sets instead of being
particular to a set.
In other words, If there is a one to one correspondence between A and B, the size of A is less than or
same as the size of B and we express it as |A| ≤ |B|. Here we can add that when
|A| ≤ |B| and A and B have different cardinality, we can conclude that the cardinality of A is less than
the cardinality of B and it will be |A| < |B|.
1.10 Countability
11 | P a g e
Fig. 1.6
A set is said to be countably infinite iff, it has the similar cardinality as the set of positive integers
𝑍+. A set is called countable iff, it is finite or countably infinite.
Fig. 1.7
In order to proof that the set odd positive integers is finite, we need to have one to one
correspondence with the set of positive integers 𝑍+. It can be expressed as,
𝑓(𝑥) = 2𝑥 – 1
from 𝑍+ to the set of odd positive integers. We prove that 𝑓 is a one-to-one correspondence by
showing that it is both one-to-one and onto. To see that it is one-to-one, suppose that
𝑓 (𝑥) = 𝑓 (𝑦).
Then 2𝑥 − 1 = 2𝑦 − 1, so 𝑥 = 𝑦.
To see that it is onto, suppose that 𝑛 is an odd positive integer. Then 𝑛 is 1 less than an even integer
2𝑘, where 𝑘 is a natural number. Hence 𝑛 = 2𝑘 − 1 = 𝑓 (𝑘).
An infinite set is countable if and only if it is possible to list the elements of the set in a sequence
(indexed by the positive integers). The reason for this is that a one-to-one correspondence 𝑓 from the
set of positive integers to a set S can be expressed in terms of a sequence
𝑎1, 𝑎2, . . . , 𝑎𝑥, . . . , 𝑤ℎ𝑒𝑟𝑒 𝑎1 = 𝑓 (1), 𝑎2 = 𝑓 (2), . . . , 𝑎𝑥 = 𝑓 (𝑥), . . . .
A significant proof method presented in 1879 by Georg Cantor and commonly known as the Cantor
diagonalization argument. It was supposed to prove that the set of real numbers is not countable.
12 | P a g e
Let’s see that how the set of real numbers is uncountable, we assume in advance that the set of real
numbers is countable and reach at a stage of contradiction. Then, the subset of all real numbers that
are between 0 and 1 would also be countable (since any subset of a countable set is also countable).
Under this assumption, the real numbers between 0 and 1 can be listed in some order, say, r1, r2, r3, ...
We can decimal represent these real numbers like
𝑟1 = 0. 𝑑11𝑑12𝑑13𝑑14. … …
𝑟2 = 0. 𝑑21𝑑22𝑑23𝑑24. … …
𝑟3 = 0. 𝑑31𝑑32𝑑33𝑑34. … …
𝑟4 = 0. 𝑑41𝑑42𝑑43𝑑44. … …
...
where dij ∈ {0, 1, 2, 3, 4, 5, 6, 7, 8, 9}. (For example, if r1 = 0.23794102 . . . , we have d11 = 2, d12 = 3,
d13 = 7, and so on.) Then, form a new real number with decimal expansion
r = 0.d1d2d3d4 . . . , where the decimal digits are determined by the following rule:
𝑑𝑖 = {4 𝑖𝑓 𝑑𝑖𝑖 ≠ 4
5 𝑖𝑓 𝑑𝑖𝑖 ≠ 4
Decimal expansion of each real number is unique by itself. Consequently, the real number 𝑟 is
not equal to any of its component because the decimal expansion of r differs from the decimal
expansion of their components to the right of the decimal point.
Though there is a real number r between 0 and 1 that is not in the list, the supposition that all
the real numbers between 0 and 1 could be listed should be false. Thus, all the real numbers between 0
and 1 cannot be listed, so the set of real numbers between 0 and 1 is uncountable. Any set having an
uncountable subset is uncountable. Therefore, the set of real numbers is uncountable.
Useful Definitions
13 | P a g e
𝑥 ∈ 𝐴 ∩ 𝐵 ⟺ 𝑥 ∈ 𝐴 𝑎𝑛𝑑 𝑥 ∈ 𝐵
𝑥 ∈ 𝐴 ∪ 𝐵 ⟺ 𝑥 ∈ 𝐴 𝑜𝑟 𝑥 ∈ 𝐵
𝑥 ∈ 𝐴 − 𝐵 ⟺ 𝑥 ∈ 𝐴 𝑎𝑛𝑑 𝑥 ∉ 𝐵
𝑥 ∈ 𝐴𝐶 ⟺ 𝑥 ∉ 𝐴
𝑥, 𝑦 ∈ 𝐴 × 𝐵 ⟺ 𝑥 ∈ 𝐴 𝑎𝑛𝑑 𝑦 ∈ 𝐵
o 𝐴 ∩ 𝐴𝐶 = ∅
o 𝑈𝐶 = ∅
o ∅𝐶 = 𝑈
1.11.2 Proofs
Distributive Law
Proof: Let 𝑥 ∈ 𝐴 ∪ (𝐵 ∩ 𝐶) ⟺ 𝑥 ∈ 𝐴 𝑜𝑟 𝑥 ∈ (𝐵 ∩ 𝐶)
14 | P a g e
⟺ 𝑥∈𝐴 𝑜𝑟 (𝑥 ∈ 𝐵 𝑎𝑛𝑑 𝑥 ∈ 𝐶)
⟺ (𝑥 ∈ 𝐴 𝑜𝑟 𝑥 ∈ 𝐵) 𝑎𝑛𝑑 (𝑥 ∈ 𝐴 𝑜𝑟 𝑥 ∈ 𝐶)
⟺ 𝑥 ∈ (𝐴 ∪ 𝐵) 𝑎𝑛𝑑 𝑥 ∈ (𝐴 ∪ 𝐶)
⟺ 𝑥 ∈ {(𝐴 ∪ 𝐵) ∩ (𝐴 ∪ 𝐶)}
The pigeonhole principle states that if n+1 pigeons fly into n pigeonholes, then at least one pigeonhole
must contain two or more pigeons. This principle is illustrated in Figure 1.8 for 5 pigeons and 4
pigeonholes. Illustration (a) shows the pigeons perched next to their holes, and
(b) shows the correspondence from pigeons to pigeonholes. The pigeonhole principle is sometimes
called the Dirichlet box principle because it was first stated formally by J. P. G. L. Dirichlet (1805–
1859).
Fig. 188
Illustration (b) suggests the following mathematical way to phrase the principle.
A generalization of the pigeonhole principle states that if n pigeons fly into m pigeonholes and, for
some positive integer k, k < n/m, then at least one pigeonhole contains k + 1 or more pigeons. This is
illustrated in Figure 1.9 for m = 4, n = 9, and k = 2. Since 2 < 9/4 = 2.25, at least one pigeonhole
contains three (2 + 1) or more pigeons. (In this example, pigeonhole 3 contains three pigeons.)
15 | P a g e
Fig. 1.9
Propositional Logic
Reasoning revolves around reasoning. We can call it as set of rules while working with logical
reasoning. The history shows great signs over the timeframe that reasoning is being a constant factor
in derivation of knowledge and its representation. This is all the critical work of George Boole, a
famous British mathematician which was handy taken by Gotlob Frege. Modern philosopher and
Mathematician Bertand Russell with Alfred Whitehead had come out with the new definite set of
logics which are common in use now.
Logic is based on truth and false of statements. However, there are many other factors which
determine whether the statement is true of false. In spite of using individual statements, symbols had
been used to represent arbitrary statements so that the results can be used.
It is basically logic of sentences or in other words it is the logic of statements. It is the way through
which one studies the joining or modifying entire propositions, statements or sentences.
One can also come up with more complicated propositions, statements or sentences as well as logical
relationship or any property among them by deriving these basic statements. In this Propositional
logic the basic statements can be called as indivisible units. Or in other words it cannot be further
divided into statements. Hence propositional logic does not study these partial statements and hence
doesn’t come out with any logical properties and relations on them i.e. subject and predicate of a
statement.
Among many propositional logics the truth functional propositional logic is perfect. It is based on
logical operators and connectives which give rises to complex statements. Interestingly the
16 | P a g e
truth value of these complex statements depend upon the truth value of simple statements and hence
once can derive that the statement is true or false and not both.
This clearly shows that the sentences in this category are either true or false and also known as
propositional sentences.
4.2 Propositions
As defined earlier a proposition is a sentence which is either true or false, but not both. We can also
call like this if the proposition is true, then its truth value is true.
Example 4.1 Let us consider the following propositions along with their truth values:
4. “4 + 4 = 9” False
Let us see some other examples where the sentences are neither true nor false.
From these three sentences, we can come out with any result whether they are true of false, hence we
can’t call them propositions. . The 5th sentence is an order; the 6 th sentence is a question, tea may be
hot or cold. Similarly the 7th sentence asks about the temperature. Thus, no definite set of information
(true/false) can we derive from these sentences, so we can say they are not propositional sentences.
Although there are many connectives, but are confining herewith five connectives, basic in nature are:
NOT
AND
OR
IF_THEN (or IMPLY)
17 | P a g e
IF_AND_ONLY_IF
The name which is supposed to represent a proposition is commonly known as propositional variable.
We can understand the same with some examples.
1.
P1: The earth is a planet (True)
2.
P2 : Fish walks on road (False)
3.
P3 : 2+ 2 = 4 (True)
The logic starts with a variable. In simple words we can define variable as a letter we use for an
unknown object of any type.
Let us consider the equation 𝑎 + 𝑏 = 10. Here 𝑎 and 𝑏 are variables which denotes
some values whose sum is 10.
“Let B is superset of X”. This shows that B is a variable (where it is an unknown set) whereas
we can’t call X as variable (it is a name given to set of all odd numbers).
It would be quite normal to say something like this: “Let 𝑥 and 𝑦 be two real numbers. Suppose that
they satisfy the equations 𝑥 + 𝑦 = 8 and 𝑥 + 3𝑦 = 12. Determine the values of 𝑥 and 𝑦” It is then
reasonable to call them variables, because initially no information is given about them. Further we
have some relationships between 𝑥 and 𝑦 and from these relationships it is possible to deduce the
exact values of 𝑥 and 𝑦.
18 | P a g e
Table 4.1 Connectives, symbols and symbolic form
Negation
If 𝑝 is any proposition, the negation of 𝑝, denoted by ~𝑝 and read as not 𝑝, is a proposition which is
false when 𝑝 is true and true when 𝑝 is false. Consider the statement
𝑝: 𝑃𝑎𝑟𝑖𝑠 𝑖𝑠 𝑖𝑛 𝐹𝑟𝑎𝑛𝑐𝑒
Strictly speaking, negation is not a connective, since it does not join two statements and ~𝑝 is not
really a compound statement. However, negation is a unary operation for the collection of statements,
and ~𝑝 is a statement if 𝑝 is considered a statement.
𝑞 : No student is intelligent .
is
19 | P a g e
~𝑞 : Some students are intelligent.
Note that “No student is intelligent” is not the negation of 𝑝; “All students are intelligent” is not the
negation of 𝑞.
Conjunction
If 𝑝 and 𝑞 are two statements, then conjunction of 𝑝 and 𝑞 is the compound statement denoted by 𝑝⋀𝑞
and read as “𝑝 and 𝑞”. The compound statement 𝑝 ∧ 𝑞 is true when both 𝑝 and 𝑞 are true, otherwise it
is false.
Example 4.5
Solution:
Remarks
The symbol ∧ has specific meaning which is corresponding to the connective ‘and’ appearing in the
English language, although ‘and’ may also be used with some other meanings. In order to see the
difference, consider the following three statements:
In statement (i) the connective ‘and’ is used in the same sense as the symbol ∧. In (ii) the word ‘and’
is used in the sense of ‘and then’ because the action described in “Shekhar started to work” after the
action described in “shekhar switched on the computer”. Finally, in (iii) the world ‘and’ is not at all a
connective.
In logic we may combine any two sentences to form a conjunction, there is no requirement that the
two sentences be related in content or subject matter. Any combinations, however absurd, are
permitted, of course, we are usually not interested in sentences like ‘’Tanvir loves to play cricket”,
and 4 is divisible by 2’.
Disjunction
If 𝑝 and 𝑞 are two statements, the disjunction of 𝑝 and 𝑞 is the compound statement denoted by 𝑝⋁𝑞
and read as “𝑝 𝑜𝑟 𝑞”. The statement 𝑝⋁𝑞 is true if at least one of 𝑝 𝑜𝑟 𝑞 is true (The advertiser who
writes ‘The candidate must know English or Hindi, certainly would not reject a candidate if he knows
both the languages). It is false when both 𝑝 𝑎𝑛𝑑 𝑞 are false.
20 | P a g e
The English word “or” can be used in two different senses – as an inclusive (“and/or”) or exclusive
(“either/or”). For example consider the following statements.
In the compound statement (1), the disjunction of the statements 𝑝 has been used in exclusive sense (𝑝
or 𝑞 but not both); that is to say: one or the other possibility exists but not both. Clearly, a person can
not do both.
Solution:
Write simple verbal sentence which describes each of the following statements
a) ~𝑝 b) 𝑝 ∧ 𝑞 c) 𝑝⋁𝑞 d) 𝑝 ∨ ~𝑞
Solution:
Example 4.8:
Let 𝑝 denote “It is cold” and let 𝑞 denote “It rains”. Write the following statements in symbolic form
a. It rains only if it is cold.
b. A necessary condition for it to be cold is that it rain.
c. A sufficient condition for it to be cold is that it rain.
21 | P a g e
Solution:
a. 𝑞 → 𝑝
b. 𝑝 → 𝑞
c. 𝑞 → 𝑝
Example 4.9
Determine the truth value of each of the following statements:
a. Mumbai is in India if and only if 3 + 3 = 6.
b. Mumbai is in India if and only if 3 + 3 = 7.
c. Mumbai is in Australia if and only if 3 + 3 = 6.
d. Mumbai is in Australia if and only if 3 + 3 = 7.
Solution:
(a) and (d) are true since the sub-statements are both true in (a) and both false in (d). On the
other hand, (c) and (b) are false since the sub-statements have different truth values.
Two propositions p and q are said to be logically equivalent, or simply equivalent or equal, denoted by
𝑝≡𝑞
For example, consider the conjunction of any two propositions 𝑝 and 𝑞 . The compound statement 𝑝 ∧
𝑞 is true when both 𝑝 and 𝑞 are true, otherwise false. There are four possible cases.
There four cases are listed in the first two columns and the truth values of ∧ 𝑞 , 𝑝 ∨ 𝑞 and
~𝑝 are shown in the table below:
22 | P a g e
𝑝
𝑝 𝑞 (𝑝 ∧ 𝑞) 𝑝 𝑞 (𝑝⋁𝑞) ~𝑝
T T T T T T T F
T F F T F T F T
F T F F T T
F F F F F F
(b) (c)
(a)
The truth value of a compound depends only on the truth values of the statements being combined and
on the types of connectives being used. Truth tables are especially valuable in the determination of the
truth of connectives being used. Truth tables are especially valuable in the determination of the truth
values of propositions constructed from simpler propositions. Note that the first columns of the table
are for the variables 𝑝, 𝑞, … … … and the number of rows depends on the number of variables. For 2
variables, 4 rows are necessary; for 3 variables, 8 rows are necessary; in general, for 𝑛 variables, 2𝑛
rows are required. The truth value at each step is determined from the previous stages by the
definition of connectives. The truth value of the proposition appears in the last column.
1. Idempotent Law
a. 𝑝 ∨ 𝑝 ≡ 𝑝
b. 𝑝 ∧ 𝑝 ≡ 𝑝
2. Associative Law
a. (𝑝 ∨ 𝑞) ∨ 𝑟 ≡ 𝑝 ∨ (𝑞 ∨ 𝑟)
b. (𝑝 ∧ 𝑞) ∧ 𝑟 ≡ 𝑝 ∧ (𝑟 ∧ 𝑟)
3. Commutative Law
a. 𝑝 ∨ 𝑞 ≡ 𝑞 ∨ 𝑝
b. 𝑝 ∧ 𝑞 ≡ 𝑞 ∧ 𝑝
4. De-Morgan’s Law
a. ∼ (𝑝 ∨ 𝑞) ≡∼ 𝑝 ∧∼ 𝑞
b. ∼ (𝑝 ∧ 𝑞) ≡∼ 𝑝 ∨∼ 𝑞
5. Distributive Law
a. 𝑝 ∨ (𝑞 ∧ 𝑟) ≡ (𝑝 ∨ 𝑞) ∧ (𝑝 ∨ 𝑟)
b. 𝑝 ∧ (𝑞 ∨ 𝑟) ≡ (𝑝 ∧ 𝑞) ∨ (𝑝 ∧ 𝑟)
6. ∼∼ 𝑝 ≡ 𝑝
7. 𝑝 ∨∼ 𝑝 ≡ 1, 𝑝 ∧∼ 𝑝 ≡ 0
8. 𝑝 ∨ 1 ≡ 1, 𝑝 ∧ 1 ≡ 𝑝
A compound proposition that is always true for all possible truth values of its variables or in other
words, that contains only T in the last column of its truth table is called a tautology. A compound
proposition that is always false for all possible values of its variables or in other words, that contains
only F in the last column of its truth table is called a contradiction. Finally a proposition that is neither
a tautology nor a contradiction is called a contingency.
23 | P a g e
Example 4.10 Propositions like
a) 𝑝 ⋁ ~𝑝 b) ~(𝑝 ∧ 𝑞) ∨ 𝑞 c) 𝑝 → (𝑝 ⋁ 𝑞)
Solution:
(a) The truth table of the given proposition is shown below. Since the truth value is TRUE for all
possible values of the propositional variables which can be seen in the last column the table,
the given proposition is tautology
(b) We construct the truth table for the expression in question. It can be seen that for any possible
assignment of 𝑝 and 𝑞, the expression ~(𝑝 ∧ 𝑞) ∨ 𝑞 is true, which establishes that it is a
tautology
(c) We construct the truth table of the given expression. It can be seen from the last column of the
truth table that the expression is true for all possible assignments of 𝑝 and 𝑞. Hence the
proposition is tautology.
24 | P a g e
Table 4.5 Truth table of 𝑝 → (𝑝 ∨ 𝑞)
25 | P a g e
𝑝 𝑞 𝑝∧𝑞 𝑝∨𝑞 𝑝 → (𝑝 ∨ 𝑞)
T T T T T
T F F T T
F T F T T
F F F F T
Let’s talk about normal forms. So far we have learned about the propositions, tautologies,
contradictions and putting them in truth table. Surprisingly it is not always possible to construct the
truth table when there are too many variables.
So the better method is to transform the expressions p and q to some form of expressions
i.e. 𝑝′ and 𝑞′ in such a way that they can denotes something like 𝑝 ≡ 𝑞.
The standard forms are popularly known as normal forms or in some places it can also be called as
canonical forms.
For simplifying the things, we often use the words product for the logical connective
conjunction and sum for logical connective disjunction.
We can take some other common terms like Elementary Product or Elementary Sum.
We are already familiar that any variable 𝑝, 𝑝 ∧ ~𝑝 is a contradiction. Hence, if 𝑝 ∧ ~𝑝 appears in the
elementary product, then the product is definitely false.
This clearly shows that the statement a necessary condition for an elementary product to be identically
false is that it should contains at least one pair of factors in which one is the negation of the other.
26 | P a g e
Hence, we can derive from this that for a statement the necessary condition for an elementary sum to
be identically true is that it must contain at least one pair of factor in which one is the negation of the
other.
For example, 𝑝 ∨ (𝑞 ∧ 𝑟) and 𝑝 ∨ (~𝑞 ∧ 𝑟) are in disjunctive normal form while 𝑝 ∧ (𝑞 ∧ 𝑟) is not in
disjunctive normal form.
Solution:
(a) 𝑝 ∧ (𝑝 ⇒ 𝑞) ≡ 𝑝 ∧ (~𝑝 ∨ 𝑞)
≡ (𝑝 ∧ ~𝑝) ∨ (𝑝 ∧ 𝑞)
Solution:
27 | P a g e
≡ [𝑞 ∨ (𝑝 ∧ 𝑟)] ∧ [(~𝑝 ∧ ~𝑟) ∨ ~𝑞]
After understanding DNF and CNF we are going to learn about PDNF i.e. Principal disjunctive
Normal form.
𝑝 ∧ 𝑞, ~𝑝 ∧ 𝑞, 𝑝 ∧ ~𝑞, and ~𝑝 ∧ ~𝑞
We can call these forms as minterms for the two variables 𝑝 and 𝑞.
Interestingly we do find that all minterms are different. If there are 𝑛 variables in a statement formula,
then there will be 2𝑛 minterms.
Let’s find the minterms of the three variables 𝑝, 𝑞 and 𝑟, they are
An equivalent formula consisting of disjunctions of min-terms alone for a given formula is commonly
called as principal disjunctive normal form (PDNF). Let’s do it with an example:
Solution:
𝑝 ∨ (𝑝 ∧ 𝑞) ≡ (𝑝 ∧ 𝑇) ∨ (𝑝 ∧ 𝑞) (𝑠𝑖𝑛𝑐𝑒 𝑝 ≡ (𝑝 ∧ 𝑇))
≡ (𝑝 ∧ (𝑞 ∨ ~𝑞)) ∨ (𝑝 ∧ 𝑞) (𝑠𝑖𝑛𝑐𝑒 𝑝 ∨ ~𝑝 ≡ 𝑇)
≡ (𝑝 ∧ 𝑞) ∨ (𝑝 ∧ ~𝑞)
1. 𝑝 ∨ (𝑝 → 𝑞)
2. 𝑝 ∨ (𝑝 ∧ 𝑞)
3. 𝑝→𝑞
Solution: Let’s try to find out the PDNF through truth table:
The disjunction of these minterms is the PDNF of the given formula. The PDNF of 𝑝 ∨ (𝑝 ∧ 𝑞)
can be find as below:
28 | P a g e
Table 4.6 Truth table of 𝑝 ∨ (𝑝 ∧ 𝑞)and corresponding minterms
𝑝 𝑞 𝑝∧𝑞 𝑝 ∨ (𝑝 ∧ 𝑞) 𝑀𝑖𝑛𝑡𝑒𝑟𝑚
T T T T 𝑝∧𝑞
T F F T 𝑝 ∧ ~𝑞
F T F F
F F F F
The truth table, clearly shows that only two truth values are true for the given formula. Hence, the
PDNF is (𝑝 ∧ 𝑞) ∨ (𝑝 ∧ ~𝑞).
𝑝 ∨ 𝑞, ~𝑝 ∨ 𝑞, 𝑝 ∨ ~𝑞, and ~𝑝 ∨ ~𝑞
We can call these forms as maxterms for the two variables 𝑝 and 𝑞. In PDNF we do have minterms
but in PCNF we will have maxterms.
We can understand with an example for three variables 𝑝, 𝑞 and 𝑟, the maxterms are: 𝑝 ∨ 𝑞 ∨
~𝑟, 𝑝 ∨ 𝑞 ∨ 𝑟, 𝑝 ∨ ~𝑞 ∨ 𝑟, ~𝑝 ∨ 𝑞 ∨ ~𝑟, ~𝑝 ∨ 𝑞 ∨ 𝑟, 𝑝 ∨ ~𝑞 ∨ ~𝑟, ~𝑝 ∨ ~𝑞 ∨ 𝑟,and ~𝑝 ∨ ~𝑞 ∨
~𝑟.
For a given formula, an equivalent formula consisting of conjunction of max-terms alone is popularly
called as Principal conjunctive normal form (PCNF). We can understand it better with the help of
following example:
Solution:
𝑝 ∧ (𝑝 ∨ 𝑞) ≡ (𝑝 ∨ 𝐹) ∧ (𝑝 ∨ 𝑞) (𝑠𝑖𝑛𝑐𝑒 𝑝 ∨ 𝐹 ≡ 𝑝)
≡ (𝑝 ∨ (𝑞 ∧ ~𝑞)) ∧ (𝑝 ∨ 𝑞) (𝑠𝑖𝑛𝑐𝑒 𝑞 ∨ ~𝑞 ≡ 𝐹)
≡ (𝑝 ∨ 𝑞) ∧ (𝑝 ∨ ~𝑞) (𝑠𝑖𝑛𝑐𝑒 𝑝 ∧ 𝑝 ≡ 𝑝)
We will try to find the Principal Conjunctive Normal Form Using Truth Table The
PCNF of a given formula using the truth table can be find out as follows.
For any given formula in the truth table,for every truth value 𝐹 we write the max-term corresponding
to the truth values. As maxterm consists of the variable itself it its truth value false and the negation of
the variable if its truth value is true.
The conjunction of these maxterms will be the PCNF of the given formula.
𝑝 𝑞 𝑝∨𝑞 𝑝 ∧ (𝑝 ∨ 𝑞) 𝑀𝑎𝑥𝑡𝑒𝑟𝑚
T T T T
T F T T
F T T F 𝑝 ∨ ~𝑞
F F F F 𝑝∨𝑞
Hence, the PCNF is (𝑝 ∨ 𝑞) ∧ (𝑝 ∨ ~𝑞).
In last we can say that PDNF and PCNF techniques are very useful in understanding the logics
effectively.
Inference
An inference can be defined as a process or a method of making logical conclusions on the basis of
premises known or expected to be true. The derived conclusion is considered to be natural.
The propositions that are assumed to be true are called hypotheses or premises. The proposition
derived by the using the rules of inference is called conclusion. The process of deriving conclusions
based on the assumption of premises is called a valid argument.
It can be explained as the illogical, but rational stuff via perceiving facts patterns, context for
understanding. In other words, inference does not used to derive conclusions but unlocks the new
avenues for inquiry. Inferences can be categorized in two types as:
1. Inductive Inference
2. Deductive inference.
Here we can check truthfulness of the premises and conclusion, besides logic & inference are
interrelated: does the truth of the assumption follow the premises?
To determine form of the inference is significant because on the basis of it, validity of an inference
can be determined. However, the word “valid” itself depicts the form of inference rather than the
truthiness of premises or the conclusion. It is possible that an inference can said to be valid even if
some portion is false and may get invalid in spite of some portion of it is true. Thus, a valid form
along with true premises will always have a true conclusion.
For instance,
A false conclusion may also come out of a valid argument with false premises :
If in case a false conclusion is made through making a valid argument from a given premises still then
an inference remains valid and follows the form of a correct inference.
Usually we read such news in newspaper that “A cricket team from a village in Uttarakhand surprises
by winning game by game. The team even overthrows the Mumbai team”
Inference is made on the ground of some known facts: The village was remote and
historically had never distinguished itself; the resources need for cricket was short due to the lack of
cricket clubs and a coach for proper training. Large cities might field good teams due to the greater
availability of high quality players and resources; and teams that can practice longer under the
guidance of coach can reasonably be expected to be better.
A rule of inference can be state as a form of logic where a function takes premises and assesses their
syntax to return a conclusion. For instance, the rule of inference said to be modus ponens considers
two premises, one in the form “If 𝑝 then 𝑞”, and another in the form “𝑝”, that returns the conclusion
“𝑞”. The rule is valid as far as semantics of classical logic are concerned, in the sense that conclusion
will be true provided premises are true.
Usually, a rule of inference retains truth is a kind of semantic property. It retains a common place in
many-valued logic. But a rule of inference is strictly syntactic with no requirement to retain any
semantic property. Typically, only recurring rules are significant; those provides a means to verify
whether the given formulation is a conclusion of a given set of formulation according to the rule.
Well known rules of inference in propositional logic comprise modus ponens, modus tollens, and
contraposition. Rules of inferences are used by first order predicate logic while treating logical
31 | P a g e
quantifiers.
In formal logic and other concerned domains, rules of inference are generally given in the subsequent
standard form:
It means that on every occasion during some logical induction the given premises may achieved, the
particular conclusion can be considered as well.
The actual language of expression to explain both of the premises & conclusions is based on the
perspective of the logical induction. For example, one may use logical formula as
𝐴→𝐵
In prepositional logic, it is said to be modus ponens rule. Rules of inference are usually expressed
as a model using syntactical variables. In the rule mentioned above, the syntactical variables 𝐴 and 𝐵
can assume any element of the universe to produce a countless set of inference rules.
Derivations can be expressed as proof method made up of a set of rules linked to one another to form
a proof. Any derivation ends with only one conclusion that is the statement said to be derived. If in
case, the premises are gone unfulfilled then the derivation is said to be a proof of theoretical statement
“if the premises exists, then the conclusion also exist”.
Under propositional logic, modus ponens is a rule of inference that can be expressed as as "𝐴 implies
𝐵; 𝐴 is declared as true, so therefore 𝐵 should be true.”
Modus Ponens are among the most frequently used notions in logic and should not be interpreted as a
law in logic but it’s a tool for the derivation of proofs that comprises the rule for definition and
substitution as well. Though it is allowed to ignore a conditional statement from the logical derivation
or an argument thus it is occasionally called as rule for detachment.
The conviction in the inference is the acceptance that if the previous statements are true, then the final
conclusion will also true. In other words,
“It is mango.”
32 | P a g e
Thus, “It must be a fruit”
𝐴 → 𝐵, 𝐴
∴𝐵
It means that whenever there is an implication as 𝐴 → 𝐵 and 𝐴 comes in a line of proof then in place
of 𝐴, 𝐵 can be placed in the later line. 𝐵 will be their only hint that is taken further in more complex
derivation.
It has a close relationship with another logical form of argument, modus tollens. Both of them have
similar but invalid forms that will be discussed later.
𝐴 → 𝐵, 𝐴⊢𝐵
Where, ⊢ is a logical sign means that 𝐵 is a syntactic result of 𝐴 → 𝐵 and 𝐴 in few logical methods.
((𝐴 → 𝐵)⋀𝐴) → 𝐵
Under propositional logic, modus tollens is inference rule and valid argument form. It is an
implementation of the common fact that in case of a statement which is true, then its contrapositive is
also true.
Modus tollens is also well known as law of contraposition, confirms the inference from 𝐴
implies 𝐵 and the contradictory of 𝐵, to the contradictory of 𝐴. Formally,
𝐴 → 𝐵, ¬𝐵
∴ ¬𝐴
where 𝐴 → 𝐵 stands for the statement “ 𝐴 implies 𝐵 ” (and ¬𝐴 → ¬𝐵 is called the “contrapositive”).
¬𝐵 stands for “it is not the occasion that 𝐵” (or in brief “not 𝐵”). Then, whenever “𝐴 → 𝐵” and “¬𝐵”
each appear by themselves as a line of a proof, then “¬𝐴” can validly be positioned on a later line.
Modus tollens has close relationship with modus ponens. There are two alike, but invalid, forms of
argument: asserting the consequent and contradicting the predecessor.
33 | P a g e
5.3.1 Formal notation
𝐴 → 𝐵, ¬𝐵 ⊢ ¬𝐴
Where, ⊢ is a logical sign in the sense that ¬𝐴 is a syntactic result of 𝐴 → 𝐵 and ¬𝐵 in some
logical system
((𝐴 → 𝐵)⋀¬𝐵) → ¬𝐴
Example 5.2
“If the smoke sensor detected fire, the fire alarm will ring”
Assuming that the premises are equally true (the fire alarm will ring if it detects smoke, and does
indeed won’t ring), it follows that no smoke has been detected. This is a valid argument since it is not
possible for the inference to be false if the premises are true. (It is feasible that there may have been
the smoke that smoke sensor did not detected, but that does not nullify the argument; the first premise
is “if the smoke sensor detects smoke.” It means the more important thing is that whether the sensor
detects the smoke irrespective of whether smoke is present there or not.
Each use of modus tollens can be adapted to a use of modus ponens and one use of substitution to the
premise which is a material implication. For example:
𝐵. (premise)
Likewise, each use of modus ponens can be converted to use of modus tollens and substitution.
34 | P a g e
5.4 Validity
Logically, an argument is said to be valid if it is in such a form so that almost it become impossible
for an inference to be false having premises true. It is not always essential that a valid argument needs
to be true but if the assertion is true then it would assure that the conclusion based on that assertion
will be true. It means that an argument schema is valid iff every argument of that logical structure is
valid.
is a bird.
Here truth values of the premises and conclusion are not responsible to make this argument valid but
conclusion needs a logical context and that gives these two premises. Otherwise the argument would
still remain valid where the truth value of premises and conclusion both are false.
The argument given in example 2.4 is of the same logical form as above in example 2.3. Difference is
that the truth value of premises and conclusion is false but the argument would be equally valid.
carrot is a vegetable.
It doesn’t matter how the universe is, but it is not always possible that these argument would
give true premises concurrently with false conclusion.
Sachin is mortal.
35 | P a g e
Here, the conclusion is not drawn from the premises so it contradicts the derived logic and hence the
argument is invalid while in general the conclusion can be considered as true.
From a standard point of view, whether an argument is valid is a matter of the argument’s logical
form. Numerous techniques are engaged by logicians to represent an argument’s logical form. A
simple example, applied to two of the above illustrations, is the following:
Let the letters '𝐻', '𝑀', and '𝑆' stand, individually, for the set of men, the set of mortals, and Sachin.
Using these symbols, an argument may be summarized as:
All 𝐻 are 𝑀.
𝑆 is a 𝐻.
Thus, 𝑆 is a 𝑀.
𝑆 is a 𝐻.
Thus, 𝑆 is a 𝑀.
An argument can formally called as valid if the conclusion is drawn on the basis of the premises then
no matter whether the premises are true or not. On the other hand, if in an argument a conclusion is
not drawn on the basis of the premises then no matter the premises could be true but the argument will
be called as invalid.
In mathematical logic, predicate logic is common term used to represent the formal logical systems
where it is comprises of the syntactical variables
The variables may possibly be any elements in the universe under consideration, or possibly relations
or functions over that universe of discourse. For instance, an existential quantifier over a function
symbol would be inferred as modifier “there is a function”.
The foundations of predicate logic were given unconventionally by Gottlob Frege and Charles
Sanders Peirce.
36 | P a g e
1. Mohit is a student.
2. Shridhar is a student.
3. Seema is a student.
If we write the propositions for these three sentences, we will require three propositions. In the same
way if we have a list of hundred students, then it is not suitable to write hundred propositions because
the part ‘is a student’ of the sentence is repeated in all these sentences. Hence, it is better to assign a
variable (say 𝑥) in place of the name of the student and keep the remaining part as it is, and define a
set 𝑋 of students from where 𝑥 can take its values.
The sentence can be written as ‘𝑥 is a student’ in which the part ‘is a student’ is called predicate, and
the set 𝑋 is called the universe of discourse for 𝑥. The complete sentence is called predicate on 𝑥. A
predicate on 𝑥 is denoted by the symbols 𝑃, 𝑄, 𝑅 and so on, with 𝑥 in braces, that is, 𝑃(𝑥), 𝑄(𝑥),
𝑅(𝑥), and so on, respectively.
For example,
𝑃(𝑥): 𝑥 𝑖𝑠 𝑎 𝑠𝑡𝑢𝑑𝑒𝑛𝑡
𝑄(𝑥): 𝑥 𝑖𝑠 𝑎𝑛 𝑎𝑛𝑖𝑚𝑎𝑙
A predicate can be defined without defining its universe of disclosure. In this case, the variable can
take any value from the universal set. A predicate can also be defined over more than one variable.
For example, consider the predicate on two variables.
5.6 Quantification
If we form a set 𝐴 of three students, then the sentence can be transcribed as follows: All the
For writing a representational form of the sentence, we need a predicate on a variable 𝑥 like
𝑃(𝑥): 𝑥 𝑖𝑠 𝑏𝑟𝑖𝑙𝑙𝑖𝑎𝑛𝑡, and the domain of 𝑥 (called universe of discourse) defined as the set 𝐴, and a
symbol for the phrase ‘for all’. The symbol is called quantifier. Thus, quantifier is a symbol that
quantifies the variables. At the time when we use quantifier before a predicate, the predicate becomes
a proposition.
In logic, an idea that states the quantity of subjects in the domain of discourse assigned with a symbol
and satisfies an open formula is called quantification.
1. Universal quantification
37 | P a g e
2. Existential quantification
𝑃(𝑥) for all values 𝑥 in the universe of discourse and is denoted by ∀𝑥𝑃(𝑥). We read ∀𝑥𝑃(𝑥)
as ‘for all 𝑥𝑃(𝑥)’ or ‘for every 𝑥𝑃(𝑥)’.
Note that ∀𝑥𝑃(𝑥) is true when 𝑃(𝑥) is true for every 𝑥 and is false when there is any 𝑥 for which
𝑃(𝑥) is not true.
Example 5.6 Let 𝑃(𝑥): 𝑥 𝑖𝑠 𝑒𝑣𝑒𝑛 𝑛𝑢𝑚𝑏𝑒𝑟 and universe of discourse for 𝑥 is the set {1,2,3,4}. Find
the truth value of ∀𝑥𝑃(𝑥).
Solution: As every number in the set is not an even number, the statement ∀𝑥𝑃(𝑥) is false.
Example 5.7 Let 𝑃(𝑥): 𝑥 ≠ 5 and universe of discourse for 𝑥 is the set {1,2,3,4}. Find the truth
value of ∀𝑥𝑃(𝑥).
Solution: As for every number 𝑥 in the set 𝑥 ≠ 5, the statement ∀𝑥𝑃(𝑥) is true.
There exists some 𝑥 in the universe of discourse such that 𝑃(𝑥) and it is symbolized by the symbol
∃𝑥𝑃(𝑥).
Note that ∃𝑥𝑃(𝑥) is true when 𝑃(𝑥) is true for at least one value of 𝑥 in the universe of discourse and
is false when 𝑃(𝑥) is false for every 𝑥 in the universe of discourse.
Example 5.8 Let 𝑃(𝑥): 𝑥 𝑖𝑠 𝑒𝑣𝑒𝑛 𝑛𝑢𝑚𝑏𝑒𝑟 and universe of discourse for 𝑥 is the set {1,2,3,4}. Find
the truth value of ∃𝑥𝑃(𝑥).
Solution: As some numbers in the set are even numbers, the statement ∃𝑥𝑃(𝑥) is true.
Example 5.9 Let 𝑃(𝑥): 𝑥 > 5 and universe of discourse for 𝑥 is the set {1,2,3,4}. Find the truth
value of ∃𝑥𝑃(𝑥).
Solution: As none of the number in the set is greater than 5, the statement ∃𝑥𝑃(𝑥) is false.
38 | P a g e
Problems for Exercise
3. Which of these sets are equal : {𝑥, 𝑦, 𝑧}, {𝑧, 𝑥, 𝑦}, {𝑦, 𝑧, 𝑥}, {𝑥, 𝑧, 𝑦}, {𝑦, 𝑥, 𝑧}.
11. Let p be “He is tall” and let q be “He is handsome”. Write each of the following
statements in symbolic form using p and q (Assume that “He is short” means “He is
not tall”, i.e., ∼ 𝑝).
a. He is tall and handsome.
b. It is false that he is short or handsome.
c. He is tall but not handsome.
39 | P a g e
d. He is neither tall nor handsome.
12. Determine the truth value of each of the following statements:
a. 1+1=5 or 2+2=4
b. 2+5=9 or 1+7=8
13. Find the truth table of the proposition ∼ (𝑝 ∧∼ 𝑞).
14. Find the truth tables of the following:
a. 𝑝 ∧ (𝑞 ∨ 𝑟)
b. (𝑝 ∧ 𝑞) ∨ (𝑝 ∧ 𝑟)
15. Prove the associative law : (𝑝 ∧ 𝑞) ∧ 𝑟 ≡ 𝑝 ∧ (𝑞 ∧ 𝑟)
16. Find a principle disjunctive normal form ∼ (𝑝 ∨ 𝑞) ↔ (𝑝 ∧ 𝑞)
17. Obtain a principal disjunctive normal form(~𝑝 ∨∼ 𝑞) → (∼ 𝑝 ∧ 𝑟).
18. Obtain a principle conjunctive normal form of (𝑞 ∨ (𝑝 ∧ 𝑞)) ∧∼ (𝑝 ∨ 𝑟) ∧ 𝑞)
19. Obtain a PDNF for 𝑝 ↔ 𝑞
20. Obtain PDNF of 𝑝 ∨ (∼ 𝑝 ∧∼ 𝑞 ∧ 𝑟).
21. State the rule of the inference used in the following arguments
a. If it rains, then the schools are closed; it rains. Therefore, the schools are
closed.
b. If it rains, then the schools are closed; the schools are not closed. Therefore it
does not rain.
22. Using modus ponens or modus tollens, make an argument for each one in the
following.
a. If this student is honest, she will not try to cheat when she takes a test.
This student tried to cheat on a test.
Therefore, by modus
b. If it is raining today, I will take my
umbrella. It is raining today.
Therefore, by modus
c. (𝑎 ∨ 𝑏) → 𝑐
𝑏
Therefore, by modus
d. I always bring my lunch on
Friday. I will buy my lunch
today.
Therefore, by modus
23. Supply the missing statement or reason in the following
a. 𝑝 → ~𝑞; 𝑝 ∴
b. ~𝑝 → 𝑞; ~𝑝 ∴
c. (∼ 𝑝 ∨ 𝑞) → ~(𝑞 ∧ 𝑟); ∼𝑝∨𝑞 ∴
( ) (
d. ∼ 𝑝 ∧ 𝑞 → 𝑞 ∧∼ 𝑟 ; ) ∼𝑝∧𝑞 ∴
e. (∼ 𝑝 ∨ 𝑞) → ~(𝑞 ∧ 𝑟); 𝑞∧𝑟 ∴
f. (∼ 𝑝 ∧ 𝑞) → (𝑞 ∧∼ 𝑟); ∼ (𝑞 ∧∼ 𝑟) ∴
24. Check whether the argument is valid or not
a. If I plant a tree, then I will get dirt under my nails. I didn’t get dirt under my
nails. Therefore, I didn’t plant a tree.
b. If I don’t change my oil regularly, my engine will die. My engine died. Thus, I
didn’t change my oil regularly
40 | P a g e
c. If I don’t tie my shoes, then I trip. I didn’t tie my shoes. Hence, I tripped.
d. All racers live dangerously. Arnav is a racer. Therefore, Arnav lives
dangerously
25. Translate the following into symbolic form:
a. Everybody loves him
b. Somebody cried out for help and called the police.
c. Nobody can ignore him.
26. State whether the following are true or false, where 𝑥, 𝑦 𝑎𝑛𝑑 𝑧 range over the integers.
a. ∀𝑥, ∋ 𝑦. (2𝑥 − 𝑦 = 0)
b. ∀𝑥, 𝑥 < 10 ⇒ ∀𝑦, (𝑦 < 𝑥 ⇒ 𝑦 < 9)
c. ∋ 𝑦. ∋ 𝑧. 𝑦 + 𝑧 = 100
27. Formalize the following (over the real numbers):
a. Negative numbers don’t have square roots
b. Every positive number has exactly two square roots
41 | P a g e