Null 2
Null 2
Null 2
Topics
• Predicates
• Quantifiers
• Universal Quantifier
• Existential Quantifier
• Translate to Logical expression
Predicate Logic
Propositional logic cannot adequately
express the meaning of all statements in
mathematics and in natural language.
Ans:
Q(1,2) is the statement “1 = 2 + 3,” which is
false.
Q(3,0) is the proposition “3 = 0 + 3,” which is
true.
Quantifiers
Quantification
- Create a proposition from a propositional
function
- Expresses the extent to which a predicate is
true over a range of elements
- In English we use the terms all, some, many,
none, and few.
Predicate Calculus
- area of logic that deals with predicates
and quantifiers
Two Types of Quantification
1. Universal Quantification
- tells us that a predicate is true for every
element under consideration.
2. Existential Quantification
- tells us that there is one or more element
under consideration for which the predicate is
true.
The Universal Quantifier
Definition
The universal quantification of P(x) is the
statement
“P(x) for all values of x in the domain.”
The notation ∀xP(x) denotes the universal
quantification of P(x).Here ∀ is called the universal
quantifier.
We read ∀xP(x) as “for all xP(x)” or “for every
xP(x).” An element for which P(x) is false is called a
counterexample of ∀xP(x).
Domain
• also called the domain of discourse (or the
universe of discourse)
• specifies the possible values of the variable x
in P(x)
• the truth value of ∀xP(x) depends on the
domain
Example
Let P(x) be the statement “x + 1 > x.”
What is the truth value of the
quantification ∀xP(x),where the domain consists
of all real numbers?
Solution
Let P(x) be the statement “x + 1 > x.”
What is the truth value of the
quantification ∀xP(x),where the domain consists
of all real numbers?
∀xP(x) is true.
Example
Let Q(x) be the statement “x < 2.”
What is the truth value of the
quantification ∀xQ(x),where the domain
consists of all real numbers?
Solution
Q(x) is the statement “x < 2”.
P(x) is the statement “𝒙𝟐 < 10” and the domain consists
of the positive integers not exceeding 4:
The statement ∀xP(x) is the same as the conjunction
P(1) ∧ P(2) ∧ P(3) ∧ P(4)
P(1) = 12 < 10 = 1 < 10
P(2) = 22 < 10 = 4 < 10
P(3) = 32 < 10 = 9 < 10
P(4) = 42 < 10 = 16 < 10
Because P(4) is false, it follows that ∀xP(x) is false.
The Existential Quantifier
Definition
The existential quantification of P(x) is the
statement
“There exists an element x in the domain such
that P(x).”
We use the notation ∃xP(x) for the
existential quantification of P(x). Here ∃ is called
the existential quantifier.
Example
Let P(x) denote the statement “x > 3.”
What is the truth value of the
quantification ∃xP(x),where the domain consists
of all real numbers?
Solution
Let P(x) denote the statement “x > 3.”
P(4) = 4 > 3
P(x) is the statement “𝒙𝟐 > 10” and the domain consists
of positive integers not exceeding 4?