Predicate and Quantifiers
Predicate and Quantifiers
Proposintional logic is not enough to express the meaning of all statements in maths and natural
language.
Predicate:
Predicate p(x) is a sentence that contains a finite numbers of variables and becomes a proposition
when specific values are substituted for the variables.
Domain:
The domain of a predicate variable is the set of all possible values that may be substituted in
place variables.
Quantifier:
Quantifiers are word that refer to quantities such as “some” or “all” and indicate how frequently
a certain statement is true. There are two types:
1: Universal Quantifier
2: Existential Quantifier
Universal Quantifier:
The phrase “for all” denoted by ⩝ is called the universal quantifier.
Eg. Let “All students are smart”
Existential Quantifier.
The phrase “there exist “ denoted by ∃ is called the existential quantifier.
Exercise:
a) ( ⩝ x ϵD) , x+4<15
b) (∃ x ϵ D), x+4=10
c) ( ⩝x ϵ D), x+4>10
Answer:
Question: Let P(x) denote the statement “x ≤ 4.” What are these truth values?
Question: Let P(x) be the statement “the word x contains the letter a.” What are these
truth values?
a) P(orange) b) P(lemon)
c) P(true) d) P(false)
P(orange) states "the word 'orange' contains the letter 'a'", which is true.
P(lemon) states "the word 'lemon' contains the letter 'a'", which is false.
P(true) states "the word 'true' contains the letter 'a'", which is true.
P(false) states "the word 'false' contains the letter 'a'", which is true.
a) x = 0. b) x = 1.
c) x = 2.
Step 1: Evaluate x = 0
P(x) states "x > 1", which is false when x = 0. Since P(x) is false, the statement "x := 1" is not
executed, and x remains 0.
Step 2: Evaluate x = 1
P(x) states "x > 1", which is false when x = 1. Since P(x) is false, the statement "x := 1" is not
executed, and x remains 1.
Step 3: Evaluate x = 2
P(x) states "x > 1", which is true when x = 2. Since P(x) is true, the statement "x := 1" is
executed, and x becomes 1.
Question: Let P(x) be the statement “x = x2.” If the domain consists of the integers,
what are these truth values?
∃xP(x) states "there exists an integer x such that x = x^2". Since P(0) and P(1) are true,
∃xP(x) is true.
∀xP(x) states "for all integers x, x = x^2". Since P(2) and P(-1) are false, ∀xP(x) is false.
Question: Let Q(x) be the statement “x + 1 > 2x.” If the domain consists of all integers,
what are these truth values?
d) ∃xQ(x) e) ∀xQ(x)
Q(0) states "0 + 1 > 2(0)", which simplifies to "1 > 0". This is true.
Q(1) states "1 + 1 > 2(1)", which simplifies to "2 > 2". This is false.
∃xQ(x) states "there exists an integer x such that x + 1 > 2x". Since Q(0) and Q(-1) are true,
∃xQ(x) is true.
∀xQ(x) states "for all integers x, x + 1 > 2x". Since Q(1) is false, ∀xQ(x) is false.
There exists a real number x such that x^3 = -1. This is true, since x = -1 satisfies the
equation.
There exists a real number x such that x^4 < x^2. This is true, since x = 1/2 satisfies the
inequality.
Step 3: Evaluate ∀x((−x)^2 = x^2)
For all real numbers x, (−x)^2 = x^2. This is true, since the square of a negative number is
equal to the square of its positive counterpart.
For all real numbers x, 2x > x. This is false, since the statement is not true for x = 0 or x < 0.
Question: Show that ∀xP(x) ∨ ∀xQ(x) and ∀x(P(x) ∨ Q(x)) are not logically
equivalent.
Answer: To show that these two statements are not logically equivalent, we can provide a
counterexample.
Let's define P(x) as "x is even" and Q(x) as "x is odd". The domain consists of all integers.
1. ∀xP(x) ∨ ∀xQ(x)
This statement means "For all integers x, x is even, or for all integers x, x is odd". This
statement is false, since not all integers are even, and not all integers are odd.
2. ∀x(P(x) ∨ Q(x))
This statement means "For all integers x, x is even or x is odd". This statement is true, since
every integer is either even or odd.
Since the truth values of these two statements differ, they are not logically equivalent.
Question: Show that ∃xP(x) ∧ ∃xQ(x) and ∃x(P(x) ∧ Q(x)) are not logically equivalent.
Answer: To show that these two statements are not logically equivalent, we can provide a
counterexample.
Let's define P(x) as "x is even" and Q(x) as "x is odd". The domain consists of all integers.
1. ∃xP(x) ∧ ∃xQ(x)
This statement means "There exists an integer x such that x is even, and there exists an
integer x such that x is odd". This statement is true, since there are even integers (e.g., 2) and
odd integers (e.g., 1).
2. ∃x(P(x) ∧ Q(x))
This statement means "There exists an integer x such that x is both even and odd". This
statement is false, since an integer cannot be both even and odd simultaneously.
Since the truth values of these two statements differ, they are not logically equivalent.