lecture 4
lecture 4
Reading Objective
This reading supplements the concepts you have learned in the video. You will learn about the basic
definitions of predicates and then define quantifiers. You will work through multiple examples to gain
mastery of these topics.
Examples
• Consider the predicate P(x): [ 5x = 15 ]
Here, P(1) is F, P(3) is T
• Consider the 3-ary or a 3-place predicate P(x,y,z): [ x+y > z ]
Here, P(1,1,1) is T, P(1,1,2) is F
Definition 1.2
A domain or the universe of discourse is the set from which the n-tuple in the predicates takes their
values.
Examples
• In the P(x): [ x − 4 > 0 ], the domain of x can be the set of integers Z. Alternatively, the domain
of x could also be the set of real numbers R.
• Consider the predicate P(x,y): “The student x has taken the course y.” Here, if the domain of
x is the set of students studying in BITS Pilani and the domain of y is the courses offered by
BITS Pilani. Let “Seema” be a student of BITS Pilani who has taken the courses “Discrete
Mathematics”, “Introduction to Programming”. “Data Structures and Algorithms” is another
course being offered. Here, P(“Seema”, “Discrete Mathematics”) is T, and P(“Seema”, “Data
Structures and Algorithms”) is F.
2 Universal Quantifier
Definition 2.1
The universal quantification of P(x) is the statement: “P(x) is true for all values of x in the domain.”
denoted by ∀xP (x). Here, ∀ is called the universal quantifier.
1
Therefore, “∀xP (x)” is T if P(x) is true for every element in the domain and F if P(x) is false for at
least one element in the domain.
Definition 2.2
An element for which P(x) is false is called a counterexample of ∀xP (x).
Note that the truth value of the quantification of a statement depends on the domain or the universe
of discourse defined.
Examples
• ∀x[x > 0], where the domain is the set of natural numbers N is T.
• ∀x[x > 0], where the domain is the set of integers Z is F. Here, the counterexample can be x = -2.
3 Existential Quantifier
Definition 3.1
The existential quantification of P(x) is the proposition: “There exists an element x in the domain
such that P(x) is true.” denoted by ∃xP (x). Here, ∃ is called the existential quantifier.
Therefore, “∃xP (x)” is T if P(x) is true for at least one element in the domain, and F if P(x) is false
for all the elements in the domain.
Examples
• ∃x[x < 0], where the domain is the set of natural numbers N is F.
• ∃x[x < 0], where the domain is the set of integers Z is T.
Examples
Example 4.1
∀x[P (x) ∧ Q(x)] ≡ ∀xP (x) ∧ ∀xQ(x)
Explanation
Suppose ∀x[P (x) ∧ Q(x)] is T, that means for all values of x in domain P(x), and Q(x) are T. Therefore,
∀xP (x) and ∀xQ(x) are true, that is, ∀xP (x) ∧ ∀xQ(x) is T. If ∀x[P (x) ∧ Q(x)] is F, means there is at
least one x in the domain such that at least one of P(x) or Q(x) is F. Then at least one of ∀xP (x) or
∀xQ(x) is F. Hence,∀xP (x) ∧ ∀xQ(x) is F.
Conversely, if ∀xP (x) ∧ ∀xQ(x) is T, then both ∀xP (x) and ∀xQ(x) are T, that is, P(x) and Q(x) are
both true for all elements in the domain. Hence, ∀x[P (x) ∧ Q(x)] is T. If ∀xP (x) ∧ ∀xQ(x) is F, then
at least one of ∀xP (x) or ∀xQ(x) is F, that is, at least one of P(x) or Q(x) is F for at least one x in the
2
domain. Thus, at least for one value of x in domain of P (x) ∧ Q(x) will be F, so ∀x[P (x) ∧ Q(x)] is F.
Therefore, ∀x[P (x) ∧ Q(x)] ≡ ∀xP (x) ∧ ∀xQ(x).
Example 4.2
∀x[P (x) ∨ Q(x)] 6≡ ∀xP (x) ∨ ∀xQ(x)
Explanation: Consider the following counterexample
• P(x): x > 0.
• Q(x): x <= 0.
where the domain of x is the set of integers Z.
∀x[P (x) ∨ Q(x)] will be true since every integer is either greater than zero or less than or equal to zero.
However, for any positive integer, Q(x) will be F, so ∀xQ(x) is F, and for any negative integer, P(x) will
be F, so ∀xP (x) is F. Therefore, ∀xP (x) ∨ ∀xQ(x) is F.
Reading Summary
In this reading, you have learned the following:
• Basic definitions of predicates and quantifiers
• When two predicates are equivalent
• Some additional examples to master the concepts