SlideShare a Scribd company logo
1 of 83
Predicates & Quantifiers
Lecture 3, CMSC 56
Allyn Joy D. Calcaben
Propositional logic cannot adequately express the
meaning of all statements in mathematics and in
natural language.
Predicate logic can be used to express the meaning of a
wide range of statements in mathematics and
computer science in ways that permit us to reason and
explore relationships between objects.
Predicate Logic
“x is greater than 10.”
Predicates
“x is greater than 10.”
Variable x is the subject of the statement.
Predicates
“x is greater than 10.”
Variable x is the subject of the statement.
“is greater than 10” is the predicate. It refers to a
property that the subject of the statement can have.
Predicates
“x is greater than 10.”
can be denoted by P(x), where P denotes the predicate
“is greater than 10” and x is the variable.
The statement P(x) is also said to be the value of the
propositional function P at x.
Predicates
Let P(x) denote the statement “x > 3.” What are the truth
values of P(4) and P(2)?
Example
Let P(x) denote the statement “x > 3.” What are the truth
values of P(4) and P(2)?
We obtain the statement P(4) by setting x = 4 in the
statement “x > 3.”
Solution
Let P(x) denote the statement “x > 3.” What are the truth
values of P(4) and P(2)?
We obtain the statement P(4) by setting x = 4 in the
statement “x > 3.”
Hence, P(4), which is the statement “4 > 3,” is true.
Solution
Let P(x) denote the statement “x > 3.” What are the truth
values of P(4) and P(2)?
We obtain the statement P(4) by setting x = 4 in the
statement “x > 3.”
Hence, P(4), which is the statement “4 > 3,” is true.
However, P(2), which is the statement “2 > 3,” is false.
Solution
Let A(x) denote the statement “Computer x is under
attack by an intruder.”
Example
Let A(x) denote the statement “Computer x is under
attack by an intruder.”
Suppose that of the computers on campus, only CS2 and
MATH1 are currently under attack by intruders. What are
truth values of A(CS1), A(CS2), and A(MATH1)?
Solution
Let A(x) denote the statement “Computer x is under
attack by an intruder.”
Suppose that of the computers on campus, only CS2 and
MATH1 are currently under attack by intruders. What are
truth values of A(CS1), A(CS2), and A(MATH1)?
Ans: A(CS1) is false.
A(CS2) is true.
A(MATH1) is true.
Solution
Let Q(x,y) denote the statement “x = y + 3.” What are
the truth values of the propositions Q(1,2) and Q(3,0)?
Example
Let Q(x,y) denote the statement “x = y + 3.” What are
the truth values of the propositions Q(1,2) and Q(3,0)?
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.
Solution
Preconditons and Postconditions
Preconditions
- statements that describe valid input
Postconditions
- the conditions that the output should satisfy when
the program has run
Preconditions and Postconditions
Consider the following program, designed to interchange
the values of two variables x and y:
temp := x
x := y
y := temp
Find predicates that we can use as the precondition and
the postcondition to verify the correctness of this program.
Example
temp := x
x := y
y := temp
Precondition:
P(x,y), where P(x,y) is the statement “x = a and y = b,”
where a and b are the values of x and y before we run the
program.
Solution
temp := x
x := y
y := temp
Postcondition:
Q(x,y), where Q(x,y) is the statement “x = b and y = a.”
Solution
Quantifiers
- 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.
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
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.
Two Types of Quantification
Definition 1
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).
The Universal Quantifier
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
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?
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?
∀xP(x) is true.
Solution
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?
Example
Q(x) is the statement “x < 2”.
Q(x) is not true for every real number x, because, for
instance, Q(3) is false.
That is, x = 3 is a counterexample for the statement
∀xQ(x). Thus ∀xQ(x) is false.
Solution
Suppose that P(x) is “x2 > 0.”
What is the truth value of the quantification ∀xP(x),
where the domain consists of all integers?
Example
Suppose that P(x) is “x2 > 0.”
∀xP(x) is false.
Counterexample: x2 = 0 when x = 0
Solution
What is the truth value of ∀xP(x), where P(x) is the
statement “x2 < 10” and the domain consists of the positive
integers not exceeding 4?
Example
P(x) is the statement “x2 < 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) =
P(2) =
P(3) =
P(4) =
Solution
P(x) is the statement “x2 < 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 =
P(2) = 22 < 10 =
P(3) = 32 < 10 =
P(4) = 42 < 10 =
Solution
P(x) is the statement “x2 < 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
Solution
Because P(4) is false, it
follows that ∀xP(x) is false.
Definition 2
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.
The Existential Quantifier
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?
Example
Let P(x) denote the statement “x > 3.”
P(4) = 4 > 3
Because “x > 3” is sometimes true, the existential
quantification of P(x), which is ∃xP(x), is true.
Solution
What is the truth value of the quantification ∃xP(x),
where P(x) is the statement “x2 > 10” and the universe of
discourse consists of positive integers not exceeding 4?
Example
P(x) is the statement “x2 > 10” and the domain consists
of positive integers not exceeding 4?
The statement ∃xP(x) is the same as the disjunction
P(1) ∨ P(2) ∨ P(3) ∨ P(4)
P(1) =
P(2) =
P(3) =
P(4) =
Solution
P(x) is the statement “x2 > 10” and the domain consists
of positive integers not exceeding 4?
The statement ∃xP(x) is the same as the disjunction
P(1) ∨ P(2) ∨ P(3) ∨ P(4)
P(1) = 12 > 10 =
P(2) = 22 > 10 =
P(3) = 32 > 10 =
P(4) = 42 > 10 =
Solution
P(x) is the statement “x2 > 10” and the domain consists
of positive integers not exceeding 4?
The statement ∃xP(x) is the same as the disjunction
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
Solution
Because P(4) is true, it
follows that ∃ xP(x) is true.
• Denoted by ∃! or ∃1
• The notation ∃!xP(x) or ∃1xP(x) states:
“There exists a unique x such that P(x) is true.”
• Other phrases:
“there is exactly one”
“there is one and only one.”
The Uniqueness Quantifier
For instance, ∃!x (x − 1 = 0), where the domain is the set
of real numbers, states that there is a unique real number x
such that x – 1 = 0.
Example
For instance, ∃!x (x − 1 = 0), where the domain is the set
of real numbers, states that there is a unique real number x
such that x – 1 = 0.
x = 1 is unique real number such that x – 1 = 0.
Solution
Truth values of Quantifiers
Table 1 Quantifiers.
Statement When True? When False?
∀xP(x)
∃xP(x)
P(x) is true for every x.
There is an x for which P(x) is true
There is an x for which P(x) is false.
P(x) is false for every x.
Quantifiers with Restricted Domains
What do the statements ∀x < 0 (x2 > 0), ∀y ≠ 0 (y3 ≠ 0),
and ∃z > 0 (z2 = 2) mean, where the domain in each case
consists of the real numbers?
Example
The statement ∀x < 0 (x2 > 0) states that for every real
number x with x < 0, x2 > 0.
That is, it states “The square of a negative real number is
positive.“
The statement is the same as ∀x(x < 0 → x2 > 0).
Solution
The statement ∀y ≠ 0 (y3 ≠ 0) states that for every real
number y with y ≠ 0, we have y3 ≠ 0.
That is, it states “The cube of every nonzero real number
is nonzero.”
The statement is equivalent to ∀y(y ≠ 0 → y3 ≠ 0).
Solution
Finally, the statement ∃z > 0 (z2 = 2) states thatthere
exists a real number z with z > 0 such that z2 = 2.
That is, it states “There is a positive square root of 2.”
The statement is equivalent to ∃z(z > 0 ∧ z2 = 2).
Solution
The quantifiers ∀ and ∃ have higher precedence than all
logical operators from propositional calculus.
For example,
∀xP(x) ∨ Q(x) = (∀xP(x)) ∨ Q(x)
rather than ∀x(P(x) ∨ Q(x)).
Precedence of Quantifiers
Definition 3
Statements involving predicates and quantifiers are
logically equivalent if and only if they have the same truth
value no matter which predicates are substituted into these
statements and which domain of discourse is used for the
variables in these propositional functions.
We use the notation S ≡ T to indicate that two statements S
and T involving predicates and quantifiers are logically
equivalent.
Logical Equivalences Involving
Quantifiers
Show that ∀x(P(x) ∧ Q(x)) and ∀xP(x) ∧ ∀xQ(x) are
logically equivalent.
Example
We can show that ∀x(P(x) ∧ Q(x)) and ∀xP(x) ∧ ∀xQ(x)
are logically equivalent by doing two things:
1. First, we show that if ∀x(P(x) ∧ Q(x)) is true,
then ∀xP(x) ∧ ∀xQ(x) is true.
2. Second, we show that if ∀xP(x) ∧ ∀xQ(x) is true,
then ∀x(P(x) ∧ Q(x)) is true.
Solution
1. First, we show that if ∀x(P(x) ∧ Q(x)) is true, then
∀xP(x) ∧ ∀xQ(x) is true.
Answer:
Suppose that ∀x(P(x) ∧ Q(x)) is true.
If a is in the domain, then P(a) ∧ Q(a) is true.
If P(a) is true and Q(a) is true, ∀xP(x) and ∀xQ(x) are
both true.
∀xP(x) ∧ ∀xQ(x) is true.
Solution
2. Second, we show that if ∀xP(x) ∧ ∀xQ(x) is true, then
∀x(P(x) ∧ Q(x)) is true.
Answer:
Suppose that ∀xP(x) ∧ ∀xQ(x) is true.
It follows that ∀xP(x) is true and ∀xQ(x) is true.
If a is in the domain, P(a) is true and Q(a) is true.
If P(a) ∧ Q(a) is true. It follows that ∀x(P(x) ∧ Q(x)) is true.
Solution
We can conclude that
∀x(P(x) ∧ Q(x)) ≡ ∀xP(x) ∧ ∀xQ(x).
Solution
Consider the negation of the statement
“Every student in your class has taken a course in calculus.”
This statement is a universal quantification, namely,
∀xP(x), where P(x) is the statement “x has taken a course in
calculus” and the domain consists of the students in your class.
Negating Quantified Expressions
“Every student in your class has taken a course in calculus.”
¬∀xP(x)
Negating Quantified Expressions
“Every student in your class has taken a course in calculus.”
¬∀xP(x)
“It is not the case that every student in your class has taken a
course in calculus.”
Negating Quantified Expressions
“Every student in your class has taken a course in calculus.”
¬∀xP(x) ≡ ∃x ¬P(x)
“It is not the case that every student in your class has taken a
course in calculus.”
Which is the same as
“There is a student in your class who has not taken a course in
calculus.”
Negating Quantified Expressions
Consider the negation of the statement
“There is a student in this class who has taken a course in
calculus.”
This is the existential quantification, namely, ∃xQ(x),
where Q(x) is the statement “x has taken a course in calculus.”
Negating Quantified Expressions
“There is a student in this class who has taken a course in
calculus.”
¬∃xQ(x)
Negating Quantified Expressions
“There is a student in this class who has taken a course in
calculus.”
¬∃xQ(x)
“It is not the case that there is a student in this class who has
taken a course in calculus.”
Negating Quantified Expressions
“There is a student in this class who has taken a course in
calculus.”
¬∃xQ(x) ≡ ∀x¬Q(x)
“It is not the case that there is a student in this class who has
taken a course in calculus.”
This is equivalent to
“Every student in this class has not taken calculus,”
Negating Quantified Expressions
Negating Quantified Expressions
Table 1 Quantifiers.
Statement When True? When False?
∀xP(x)
∃xP(x)
P(x) is true for every x.
There is an x for which P(x) is true
There is an x for which P(x) is false.
P(x) is false for every x.
Table 2 De Morgan’s Laws for Quantifiers.
Negation Equivalent Statement When is Negation True? When False?
¬∃xP(x)
¬∀xP(x)
∀x ¬P(x)
∃x ¬P(x)
For every x, P(x) is false.
There is an x for which
P(x) is false.
There is an x for which P(x)
is true.
P(x) is true for every x.
Negating Quantified Expressions
Table 1 Quantifiers.
Statement When True? When False?
∀xP(x)
∃xP(x)
P(x) is true for every x.
There is an x for which P(x) is true
There is an x for which P(x) is false.
P(x) is false for every x.
Table 2 De Morgan’s Laws for Quantifiers.
Negation Equivalent Statement When is Negation True? When False?
¬∃xP(x)
¬∀xP(x)
∀x ¬P(x)
∃x ¬P(x)
For every x, P(x) is false.
There is an x for which
P(x) is false.
There is an x for which P(x)
is true.
P(x) is true for every x.
Negating Quantified Expressions
Table 1 Quantifiers.
Statement When True? When False?
∀xP(x)
∃xP(x)
P(x) is true for every x.
There is an x for which P(x) is true
There is an x for which P(x) is false.
P(x) is false for every x.
Table 2 De Morgan’s Laws for Quantifiers.
Negation Equivalent Statement When is Negation True? When False?
¬∃xP(x)
¬∀xP(x)
∀x ¬P(x)
∃x ¬P(x)
For every x, P(x) is false.
There is an x for which
P(x) is false.
There is an x for which P(x)
is true.
P(x) is true for every x.
Negating Quantified Expressions
Table 1 Quantifiers.
Statement When True? When False?
∀xP(x)
∃xP(x)
P(x) is true for every x.
There is an x for which P(x) is true
There is an x for which P(x) is false.
P(x) is false for every x.
Table 2 De Morgan’s Laws for Quantifiers.
Negation Equivalent Statement When is Negation True? When False?
¬∃xP(x)
¬∀xP(x)
∀x ¬P(x)
∃x ¬P(x)
For every x, P(x) is false.
There is an x for which
P(x) is false.
There is an x for which P(x)
is true.
P(x) is true for every x.
Negating Quantified Expressions
Table 1 Quantifiers.
Statement When True? When False?
∀xP(x)
∃xP(x)
P(x) is true for every x.
There is an x for which P(x) is true
There is an x for which P(x) is false.
P(x) is false for every x.
Table 2 De Morgan’s Laws for Quantifiers.
Negation Equivalent Statement When is Negation True? When False?
¬∃xP(x)
¬∀xP(x)
∀x ¬P(x)
∃x ¬P(x)
For every x, P(x) is false.
There is an x for which
P(x) is false.
There is an x for which P(x)
is true.
P(x) is true for every x.
Translating from English into
Logical Expressions
Express the statement using predicates and quantifiers:
“Every student in class has studied calculus.”
Example
“Every student in class has studied calculus.”
First, rewrite the statement:
“For every student in this class, that student has studied
calculus.”
Solution
“Every student in class has studied calculus.”
First, rewrite the statement:
“For every student in this class, that student has studied
calculus.”
Next, introduce a variable x:
“For every student x in this class, x has studied calculus.”
Solution
“Every student in class has studied calculus.”
We introduce C(x), which is the statement “x has studied
calculus.”
Consequently, if the domain for x consists of the students
in the class, we can translate our statement as ∀xC(x).
Solution
“Every student in class has studied calculus.”
What if we change the domain to consist of all people?
Solution
“Every student in class has studied calculus.”
What if we change the domain to consist of all people?
“For every person x, if person x is a student in this class
then x has studied calculus.”
2nd Solution
“Every student in class has studied calculus.”
What if we change the domain to consist of all people?
“For every person x, if person x is a student in this class
then x has studied calculus.”
If S(x) represents the statement that person x is in this
class: ∀x(S(x) → C(x))
[Note: not ∀x(S(x) ∧ C(x)) because this statement says that all
people are students in this class and have studied calculus!]
2nd Solution
“Every student in class has studied calculus.”
Use the two-variable quantifier Q(x, y) for the statement
“student x has studied subject y.”
Then we would replace C(x) by Q(x, calculus) in both
approaches to obtain ∀xQ(x, calculus)
or ∀x(S(x) → Q(x, calculus)).
3rd Solution
Any Questions?
A. Let P(x) be the statement “x spends more than five hours every
weekday in class,” where the domain for x consists of all students.
Express each of these quantifications in English
1.) ∃xP(x) 3.) ∃x ¬P(x)
2.) ∀xP(x) 4.) ∀x ¬P(x)
B. Let P(x) be the statement “x = x2”. If the domain consists of the
integers, what are these truth values?
1.) P(0) 3.) P(2) 5.) ∃xP(x)
2.) P(1) 4.) P(-1) 6.) ∀xP(x)
Seatwork

More Related Content

What's hot

Discrete Math Presentation(Rules of Inference)
Discrete Math Presentation(Rules of Inference)Discrete Math Presentation(Rules of Inference)
Discrete Math Presentation(Rules of Inference)Ikhtiar Khan Sohan
 
Mathematical Logic - Part 1
Mathematical Logic - Part 1Mathematical Logic - Part 1
Mathematical Logic - Part 1blaircomp2003
 
CMSC 56 | Lecture 2: Propositional Equivalences
CMSC 56 | Lecture 2: Propositional EquivalencesCMSC 56 | Lecture 2: Propositional Equivalences
CMSC 56 | Lecture 2: Propositional Equivalencesallyn joy calcaben
 
Proofs by contraposition
Proofs by contrapositionProofs by contraposition
Proofs by contrapositionAbdur Rehman
 
Modular arithmetic
Modular arithmeticModular arithmetic
Modular arithmeticsangeetha s
 
Fundamentals of logic 1
Fundamentals of logic   1Fundamentals of logic   1
Fundamentals of logic 1Lakshmi R
 
Principle of mathematical induction
Principle of mathematical inductionPrinciple of mathematical induction
Principle of mathematical inductionKriti Varshney
 
Logical equivalence, laws of logic
Logical equivalence, laws of logicLogical equivalence, laws of logic
Logical equivalence, laws of logicLakshmi R
 
Truth tables
Truth tablesTruth tables
Truth tableswalkerlj
 
Formal Logic - Lesson 4 - Tautology, Contradiction and Contingency
Formal Logic - Lesson 4 - Tautology, Contradiction and ContingencyFormal Logic - Lesson 4 - Tautology, Contradiction and Contingency
Formal Logic - Lesson 4 - Tautology, Contradiction and ContingencyLaguna State Polytechnic University
 
Relation Hasse diagram
Relation Hasse diagramRelation Hasse diagram
Relation Hasse diagramRachana Pathak
 
Lesson3.1 The Derivative And The Tangent Line
Lesson3.1 The Derivative And The Tangent LineLesson3.1 The Derivative And The Tangent Line
Lesson3.1 The Derivative And The Tangent Lineseltzermath
 
Logic (PROPOSITIONS)
Logic (PROPOSITIONS)Logic (PROPOSITIONS)
Logic (PROPOSITIONS)D Nayanathara
 
Predicates and quantifiers
Predicates and quantifiersPredicates and quantifiers
Predicates and quantifiersIstiak Ahmed
 
Method of direct proof
Method of direct proofMethod of direct proof
Method of direct proofAbdur Rehman
 

What's hot (20)

Discrete Math Presentation(Rules of Inference)
Discrete Math Presentation(Rules of Inference)Discrete Math Presentation(Rules of Inference)
Discrete Math Presentation(Rules of Inference)
 
Discrete mathematics
Discrete mathematicsDiscrete mathematics
Discrete mathematics
 
Mathematical Logic - Part 1
Mathematical Logic - Part 1Mathematical Logic - Part 1
Mathematical Logic - Part 1
 
CMSC 56 | Lecture 2: Propositional Equivalences
CMSC 56 | Lecture 2: Propositional EquivalencesCMSC 56 | Lecture 2: Propositional Equivalences
CMSC 56 | Lecture 2: Propositional Equivalences
 
Proofs by contraposition
Proofs by contrapositionProofs by contraposition
Proofs by contraposition
 
Modular arithmetic
Modular arithmeticModular arithmetic
Modular arithmetic
 
Discrete Math Lecture 03: Methods of Proof
Discrete Math Lecture 03: Methods of ProofDiscrete Math Lecture 03: Methods of Proof
Discrete Math Lecture 03: Methods of Proof
 
Fundamentals of logic 1
Fundamentals of logic   1Fundamentals of logic   1
Fundamentals of logic 1
 
Principle of mathematical induction
Principle of mathematical inductionPrinciple of mathematical induction
Principle of mathematical induction
 
Sets, functions and groups
Sets, functions and groupsSets, functions and groups
Sets, functions and groups
 
Logical equivalence, laws of logic
Logical equivalence, laws of logicLogical equivalence, laws of logic
Logical equivalence, laws of logic
 
Formal Logic - Lesson 5 - Logical Equivalence
Formal Logic - Lesson 5 - Logical EquivalenceFormal Logic - Lesson 5 - Logical Equivalence
Formal Logic - Lesson 5 - Logical Equivalence
 
Truth tables
Truth tablesTruth tables
Truth tables
 
Formal Logic - Lesson 4 - Tautology, Contradiction and Contingency
Formal Logic - Lesson 4 - Tautology, Contradiction and ContingencyFormal Logic - Lesson 4 - Tautology, Contradiction and Contingency
Formal Logic - Lesson 4 - Tautology, Contradiction and Contingency
 
Relation Hasse diagram
Relation Hasse diagramRelation Hasse diagram
Relation Hasse diagram
 
Lesson3.1 The Derivative And The Tangent Line
Lesson3.1 The Derivative And The Tangent LineLesson3.1 The Derivative And The Tangent Line
Lesson3.1 The Derivative And The Tangent Line
 
Logic (PROPOSITIONS)
Logic (PROPOSITIONS)Logic (PROPOSITIONS)
Logic (PROPOSITIONS)
 
Graphs - Discrete Math
Graphs - Discrete MathGraphs - Discrete Math
Graphs - Discrete Math
 
Predicates and quantifiers
Predicates and quantifiersPredicates and quantifiers
Predicates and quantifiers
 
Method of direct proof
Method of direct proofMethod of direct proof
Method of direct proof
 

Similar to CMSC 56 | Lecture 3: Predicates & Quantifiers

Similar to CMSC 56 | Lecture 3: Predicates & Quantifiers (20)

Predicate &amp; quantifier
Predicate &amp; quantifierPredicate &amp; quantifier
Predicate &amp; quantifier
 
Quantifiers and its Types
Quantifiers and its TypesQuantifiers and its Types
Quantifiers and its Types
 
Lecture 2 predicates quantifiers and rules of inference
Lecture 2 predicates quantifiers and rules of inferenceLecture 2 predicates quantifiers and rules of inference
Lecture 2 predicates quantifiers and rules of inference
 
Formal Logic - Lesson 8 - Predicates and Quantifiers
Formal Logic - Lesson 8 - Predicates and QuantifiersFormal Logic - Lesson 8 - Predicates and Quantifiers
Formal Logic - Lesson 8 - Predicates and Quantifiers
 
1606751772-ds-lecture-6.ppt
1606751772-ds-lecture-6.ppt1606751772-ds-lecture-6.ppt
1606751772-ds-lecture-6.ppt
 
Discreate structure presentation introduction
Discreate structure presentation introductionDiscreate structure presentation introduction
Discreate structure presentation introduction
 
Unit 1 quantifiers
Unit 1  quantifiersUnit 1  quantifiers
Unit 1 quantifiers
 
Universal Quantification DM
Universal Quantification DMUniversal Quantification DM
Universal Quantification DM
 
Chapter 01 - p2.pdf
Chapter 01 - p2.pdfChapter 01 - p2.pdf
Chapter 01 - p2.pdf
 
Discrete Structure Lecture #5 & 6.pdf
Discrete Structure Lecture #5 & 6.pdfDiscrete Structure Lecture #5 & 6.pdf
Discrete Structure Lecture #5 & 6.pdf
 
Per3 logika
Per3 logikaPer3 logika
Per3 logika
 
Quantifier
QuantifierQuantifier
Quantifier
 
Chapter 3
Chapter 3Chapter 3
Chapter 3
 
Quantification
QuantificationQuantification
Quantification
 
Math Assignment Help
Math Assignment HelpMath Assignment Help
Math Assignment Help
 
Slide subtopic 3
Slide subtopic 3Slide subtopic 3
Slide subtopic 3
 
Algorithmic foundations.docx
Algorithmic foundations.docxAlgorithmic foundations.docx
Algorithmic foundations.docx
 
Probability and Statistics
Probability and StatisticsProbability and Statistics
Probability and Statistics
 
Random variables
Random variablesRandom variables
Random variables
 
Discrete Math Lecture 02: First Order Logic
Discrete Math Lecture 02: First Order LogicDiscrete Math Lecture 02: First Order Logic
Discrete Math Lecture 02: First Order Logic
 

More from allyn joy calcaben

CMSC 56 | Lecture 17: Matrices
CMSC 56 | Lecture 17: MatricesCMSC 56 | Lecture 17: Matrices
CMSC 56 | Lecture 17: Matricesallyn joy calcaben
 
CMSC 56 | Lecture 16: Equivalence of Relations & Partial Ordering
CMSC 56 | Lecture 16: Equivalence of Relations & Partial OrderingCMSC 56 | Lecture 16: Equivalence of Relations & Partial Ordering
CMSC 56 | Lecture 16: Equivalence of Relations & Partial Orderingallyn joy calcaben
 
CMSC 56 | Lecture 15: Closures of Relations
CMSC 56 | Lecture 15: Closures of RelationsCMSC 56 | Lecture 15: Closures of Relations
CMSC 56 | Lecture 15: Closures of Relationsallyn joy calcaben
 
CMSC 56 | Lecture 14: Representing Relations
CMSC 56 | Lecture 14: Representing RelationsCMSC 56 | Lecture 14: Representing Relations
CMSC 56 | Lecture 14: Representing Relationsallyn joy calcaben
 
CMSC 56 | Lecture 13: Relations and their Properties
CMSC 56 | Lecture 13: Relations and their PropertiesCMSC 56 | Lecture 13: Relations and their Properties
CMSC 56 | Lecture 13: Relations and their Propertiesallyn joy calcaben
 
CMSC 56 | Lecture 12: Recursive Definition & Algorithms, and Program Correctness
CMSC 56 | Lecture 12: Recursive Definition & Algorithms, and Program CorrectnessCMSC 56 | Lecture 12: Recursive Definition & Algorithms, and Program Correctness
CMSC 56 | Lecture 12: Recursive Definition & Algorithms, and Program Correctnessallyn joy calcaben
 
CMSC 56 | Lecture 11: Mathematical Induction
CMSC 56 | Lecture 11: Mathematical InductionCMSC 56 | Lecture 11: Mathematical Induction
CMSC 56 | Lecture 11: Mathematical Inductionallyn joy calcaben
 
CMSC 56 | Lecture 10: Integer Representations & Algorithms
CMSC 56 | Lecture 10: Integer Representations & AlgorithmsCMSC 56 | Lecture 10: Integer Representations & Algorithms
CMSC 56 | Lecture 10: Integer Representations & Algorithmsallyn joy calcaben
 
CMSC 56 | Lecture 9: Functions Representations
CMSC 56 | Lecture 9: Functions RepresentationsCMSC 56 | Lecture 9: Functions Representations
CMSC 56 | Lecture 9: Functions Representationsallyn joy calcaben
 
CMSC 56 | Lecture 8: Growth of Functions
CMSC 56 | Lecture 8: Growth of FunctionsCMSC 56 | Lecture 8: Growth of Functions
CMSC 56 | Lecture 8: Growth of Functionsallyn joy calcaben
 
CMSC 56 | Lecture 6: Sets & Set Operations
CMSC 56 | Lecture 6: Sets & Set OperationsCMSC 56 | Lecture 6: Sets & Set Operations
CMSC 56 | Lecture 6: Sets & Set Operationsallyn joy calcaben
 
CMSC 56 | Lecture 5: Proofs Methods and Strategy
CMSC 56 | Lecture 5: Proofs Methods and StrategyCMSC 56 | Lecture 5: Proofs Methods and Strategy
CMSC 56 | Lecture 5: Proofs Methods and Strategyallyn joy calcaben
 
CMSC 56 | Lecture 1: Propositional Logic
CMSC 56 | Lecture 1: Propositional LogicCMSC 56 | Lecture 1: Propositional Logic
CMSC 56 | Lecture 1: Propositional Logicallyn joy calcaben
 
La Solidaridad and the Propaganda Movement
La Solidaridad and the Propaganda MovementLa Solidaridad and the Propaganda Movement
La Solidaridad and the Propaganda Movementallyn joy calcaben
 
Computer Vision: Feature matching with RANSAC Algorithm
Computer Vision: Feature matching with RANSAC AlgorithmComputer Vision: Feature matching with RANSAC Algorithm
Computer Vision: Feature matching with RANSAC Algorithmallyn joy calcaben
 
Chapter 7 expressions and assignment statements ii
Chapter 7 expressions and assignment statements iiChapter 7 expressions and assignment statements ii
Chapter 7 expressions and assignment statements iiallyn joy calcaben
 

More from allyn joy calcaben (17)

CMSC 56 | Lecture 17: Matrices
CMSC 56 | Lecture 17: MatricesCMSC 56 | Lecture 17: Matrices
CMSC 56 | Lecture 17: Matrices
 
CMSC 56 | Lecture 16: Equivalence of Relations & Partial Ordering
CMSC 56 | Lecture 16: Equivalence of Relations & Partial OrderingCMSC 56 | Lecture 16: Equivalence of Relations & Partial Ordering
CMSC 56 | Lecture 16: Equivalence of Relations & Partial Ordering
 
CMSC 56 | Lecture 15: Closures of Relations
CMSC 56 | Lecture 15: Closures of RelationsCMSC 56 | Lecture 15: Closures of Relations
CMSC 56 | Lecture 15: Closures of Relations
 
CMSC 56 | Lecture 14: Representing Relations
CMSC 56 | Lecture 14: Representing RelationsCMSC 56 | Lecture 14: Representing Relations
CMSC 56 | Lecture 14: Representing Relations
 
CMSC 56 | Lecture 13: Relations and their Properties
CMSC 56 | Lecture 13: Relations and their PropertiesCMSC 56 | Lecture 13: Relations and their Properties
CMSC 56 | Lecture 13: Relations and their Properties
 
CMSC 56 | Lecture 12: Recursive Definition & Algorithms, and Program Correctness
CMSC 56 | Lecture 12: Recursive Definition & Algorithms, and Program CorrectnessCMSC 56 | Lecture 12: Recursive Definition & Algorithms, and Program Correctness
CMSC 56 | Lecture 12: Recursive Definition & Algorithms, and Program Correctness
 
CMSC 56 | Lecture 11: Mathematical Induction
CMSC 56 | Lecture 11: Mathematical InductionCMSC 56 | Lecture 11: Mathematical Induction
CMSC 56 | Lecture 11: Mathematical Induction
 
CMSC 56 | Lecture 10: Integer Representations & Algorithms
CMSC 56 | Lecture 10: Integer Representations & AlgorithmsCMSC 56 | Lecture 10: Integer Representations & Algorithms
CMSC 56 | Lecture 10: Integer Representations & Algorithms
 
CMSC 56 | Lecture 9: Functions Representations
CMSC 56 | Lecture 9: Functions RepresentationsCMSC 56 | Lecture 9: Functions Representations
CMSC 56 | Lecture 9: Functions Representations
 
CMSC 56 | Lecture 8: Growth of Functions
CMSC 56 | Lecture 8: Growth of FunctionsCMSC 56 | Lecture 8: Growth of Functions
CMSC 56 | Lecture 8: Growth of Functions
 
CMSC 56 | Lecture 6: Sets & Set Operations
CMSC 56 | Lecture 6: Sets & Set OperationsCMSC 56 | Lecture 6: Sets & Set Operations
CMSC 56 | Lecture 6: Sets & Set Operations
 
CMSC 56 | Lecture 5: Proofs Methods and Strategy
CMSC 56 | Lecture 5: Proofs Methods and StrategyCMSC 56 | Lecture 5: Proofs Methods and Strategy
CMSC 56 | Lecture 5: Proofs Methods and Strategy
 
CMSC 56 | Lecture 1: Propositional Logic
CMSC 56 | Lecture 1: Propositional LogicCMSC 56 | Lecture 1: Propositional Logic
CMSC 56 | Lecture 1: Propositional Logic
 
La Solidaridad and the Propaganda Movement
La Solidaridad and the Propaganda MovementLa Solidaridad and the Propaganda Movement
La Solidaridad and the Propaganda Movement
 
Computer Vision: Feature matching with RANSAC Algorithm
Computer Vision: Feature matching with RANSAC AlgorithmComputer Vision: Feature matching with RANSAC Algorithm
Computer Vision: Feature matching with RANSAC Algorithm
 
Chapter 7 expressions and assignment statements ii
Chapter 7 expressions and assignment statements iiChapter 7 expressions and assignment statements ii
Chapter 7 expressions and assignment statements ii
 
#11 osteoporosis
#11 osteoporosis#11 osteoporosis
#11 osteoporosis
 

Recently uploaded

Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsKarinaGenton
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docxPoojaSen20
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting DataJhengPantaleon
 

Recently uploaded (20)

Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its Characteristics
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docx
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
 

CMSC 56 | Lecture 3: Predicates & Quantifiers

  • 1. Predicates & Quantifiers Lecture 3, CMSC 56 Allyn Joy D. Calcaben
  • 2. Propositional logic cannot adequately express the meaning of all statements in mathematics and in natural language. Predicate logic can be used to express the meaning of a wide range of statements in mathematics and computer science in ways that permit us to reason and explore relationships between objects. Predicate Logic
  • 3. “x is greater than 10.” Predicates
  • 4. “x is greater than 10.” Variable x is the subject of the statement. Predicates
  • 5. “x is greater than 10.” Variable x is the subject of the statement. “is greater than 10” is the predicate. It refers to a property that the subject of the statement can have. Predicates
  • 6. “x is greater than 10.” can be denoted by P(x), where P denotes the predicate “is greater than 10” and x is the variable. The statement P(x) is also said to be the value of the propositional function P at x. Predicates
  • 7. Let P(x) denote the statement “x > 3.” What are the truth values of P(4) and P(2)? Example
  • 8. Let P(x) denote the statement “x > 3.” What are the truth values of P(4) and P(2)? We obtain the statement P(4) by setting x = 4 in the statement “x > 3.” Solution
  • 9. Let P(x) denote the statement “x > 3.” What are the truth values of P(4) and P(2)? We obtain the statement P(4) by setting x = 4 in the statement “x > 3.” Hence, P(4), which is the statement “4 > 3,” is true. Solution
  • 10. Let P(x) denote the statement “x > 3.” What are the truth values of P(4) and P(2)? We obtain the statement P(4) by setting x = 4 in the statement “x > 3.” Hence, P(4), which is the statement “4 > 3,” is true. However, P(2), which is the statement “2 > 3,” is false. Solution
  • 11. Let A(x) denote the statement “Computer x is under attack by an intruder.” Example
  • 12. Let A(x) denote the statement “Computer x is under attack by an intruder.” Suppose that of the computers on campus, only CS2 and MATH1 are currently under attack by intruders. What are truth values of A(CS1), A(CS2), and A(MATH1)? Solution
  • 13. Let A(x) denote the statement “Computer x is under attack by an intruder.” Suppose that of the computers on campus, only CS2 and MATH1 are currently under attack by intruders. What are truth values of A(CS1), A(CS2), and A(MATH1)? Ans: A(CS1) is false. A(CS2) is true. A(MATH1) is true. Solution
  • 14. Let Q(x,y) denote the statement “x = y + 3.” What are the truth values of the propositions Q(1,2) and Q(3,0)? Example
  • 15. Let Q(x,y) denote the statement “x = y + 3.” What are the truth values of the propositions Q(1,2) and Q(3,0)? 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. Solution
  • 17. Preconditions - statements that describe valid input Postconditions - the conditions that the output should satisfy when the program has run Preconditions and Postconditions
  • 18. Consider the following program, designed to interchange the values of two variables x and y: temp := x x := y y := temp Find predicates that we can use as the precondition and the postcondition to verify the correctness of this program. Example
  • 19. temp := x x := y y := temp Precondition: P(x,y), where P(x,y) is the statement “x = a and y = b,” where a and b are the values of x and y before we run the program. Solution
  • 20. temp := x x := y y := temp Postcondition: Q(x,y), where Q(x,y) is the statement “x = b and y = a.” Solution
  • 22. - 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. Quantification
  • 23. - 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 Quantification
  • 24. 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. Two Types of Quantification
  • 25. Definition 1 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). The Universal Quantifier
  • 26. 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
  • 27. 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? Example
  • 28. 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. Solution
  • 29. 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? Example
  • 30. Q(x) is the statement “x < 2”. Q(x) is not true for every real number x, because, for instance, Q(3) is false. That is, x = 3 is a counterexample for the statement ∀xQ(x). Thus ∀xQ(x) is false. Solution
  • 31. Suppose that P(x) is “x2 > 0.” What is the truth value of the quantification ∀xP(x), where the domain consists of all integers? Example
  • 32. Suppose that P(x) is “x2 > 0.” ∀xP(x) is false. Counterexample: x2 = 0 when x = 0 Solution
  • 33. What is the truth value of ∀xP(x), where P(x) is the statement “x2 < 10” and the domain consists of the positive integers not exceeding 4? Example
  • 34. P(x) is the statement “x2 < 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) = P(2) = P(3) = P(4) = Solution
  • 35. P(x) is the statement “x2 < 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 = P(2) = 22 < 10 = P(3) = 32 < 10 = P(4) = 42 < 10 = Solution
  • 36. P(x) is the statement “x2 < 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 Solution Because P(4) is false, it follows that ∀xP(x) is false.
  • 37. Definition 2 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. The Existential Quantifier
  • 38. 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? Example
  • 39. Let P(x) denote the statement “x > 3.” P(4) = 4 > 3 Because “x > 3” is sometimes true, the existential quantification of P(x), which is ∃xP(x), is true. Solution
  • 40. What is the truth value of the quantification ∃xP(x), where P(x) is the statement “x2 > 10” and the universe of discourse consists of positive integers not exceeding 4? Example
  • 41. P(x) is the statement “x2 > 10” and the domain consists of positive integers not exceeding 4? The statement ∃xP(x) is the same as the disjunction P(1) ∨ P(2) ∨ P(3) ∨ P(4) P(1) = P(2) = P(3) = P(4) = Solution
  • 42. P(x) is the statement “x2 > 10” and the domain consists of positive integers not exceeding 4? The statement ∃xP(x) is the same as the disjunction P(1) ∨ P(2) ∨ P(3) ∨ P(4) P(1) = 12 > 10 = P(2) = 22 > 10 = P(3) = 32 > 10 = P(4) = 42 > 10 = Solution
  • 43. P(x) is the statement “x2 > 10” and the domain consists of positive integers not exceeding 4? The statement ∃xP(x) is the same as the disjunction 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 Solution Because P(4) is true, it follows that ∃ xP(x) is true.
  • 44. • Denoted by ∃! or ∃1 • The notation ∃!xP(x) or ∃1xP(x) states: “There exists a unique x such that P(x) is true.” • Other phrases: “there is exactly one” “there is one and only one.” The Uniqueness Quantifier
  • 45. For instance, ∃!x (x − 1 = 0), where the domain is the set of real numbers, states that there is a unique real number x such that x – 1 = 0. Example
  • 46. For instance, ∃!x (x − 1 = 0), where the domain is the set of real numbers, states that there is a unique real number x such that x – 1 = 0. x = 1 is unique real number such that x – 1 = 0. Solution
  • 47. Truth values of Quantifiers Table 1 Quantifiers. Statement When True? When False? ∀xP(x) ∃xP(x) P(x) is true for every x. There is an x for which P(x) is true There is an x for which P(x) is false. P(x) is false for every x.
  • 49. What do the statements ∀x < 0 (x2 > 0), ∀y ≠ 0 (y3 ≠ 0), and ∃z > 0 (z2 = 2) mean, where the domain in each case consists of the real numbers? Example
  • 50. The statement ∀x < 0 (x2 > 0) states that for every real number x with x < 0, x2 > 0. That is, it states “The square of a negative real number is positive.“ The statement is the same as ∀x(x < 0 → x2 > 0). Solution
  • 51. The statement ∀y ≠ 0 (y3 ≠ 0) states that for every real number y with y ≠ 0, we have y3 ≠ 0. That is, it states “The cube of every nonzero real number is nonzero.” The statement is equivalent to ∀y(y ≠ 0 → y3 ≠ 0). Solution
  • 52. Finally, the statement ∃z > 0 (z2 = 2) states thatthere exists a real number z with z > 0 such that z2 = 2. That is, it states “There is a positive square root of 2.” The statement is equivalent to ∃z(z > 0 ∧ z2 = 2). Solution
  • 53. The quantifiers ∀ and ∃ have higher precedence than all logical operators from propositional calculus. For example, ∀xP(x) ∨ Q(x) = (∀xP(x)) ∨ Q(x) rather than ∀x(P(x) ∨ Q(x)). Precedence of Quantifiers
  • 54. Definition 3 Statements involving predicates and quantifiers are logically equivalent if and only if they have the same truth value no matter which predicates are substituted into these statements and which domain of discourse is used for the variables in these propositional functions. We use the notation S ≡ T to indicate that two statements S and T involving predicates and quantifiers are logically equivalent. Logical Equivalences Involving Quantifiers
  • 55. Show that ∀x(P(x) ∧ Q(x)) and ∀xP(x) ∧ ∀xQ(x) are logically equivalent. Example
  • 56. We can show that ∀x(P(x) ∧ Q(x)) and ∀xP(x) ∧ ∀xQ(x) are logically equivalent by doing two things: 1. First, we show that if ∀x(P(x) ∧ Q(x)) is true, then ∀xP(x) ∧ ∀xQ(x) is true. 2. Second, we show that if ∀xP(x) ∧ ∀xQ(x) is true, then ∀x(P(x) ∧ Q(x)) is true. Solution
  • 57. 1. First, we show that if ∀x(P(x) ∧ Q(x)) is true, then ∀xP(x) ∧ ∀xQ(x) is true. Answer: Suppose that ∀x(P(x) ∧ Q(x)) is true. If a is in the domain, then P(a) ∧ Q(a) is true. If P(a) is true and Q(a) is true, ∀xP(x) and ∀xQ(x) are both true. ∀xP(x) ∧ ∀xQ(x) is true. Solution
  • 58. 2. Second, we show that if ∀xP(x) ∧ ∀xQ(x) is true, then ∀x(P(x) ∧ Q(x)) is true. Answer: Suppose that ∀xP(x) ∧ ∀xQ(x) is true. It follows that ∀xP(x) is true and ∀xQ(x) is true. If a is in the domain, P(a) is true and Q(a) is true. If P(a) ∧ Q(a) is true. It follows that ∀x(P(x) ∧ Q(x)) is true. Solution
  • 59. We can conclude that ∀x(P(x) ∧ Q(x)) ≡ ∀xP(x) ∧ ∀xQ(x). Solution
  • 60. Consider the negation of the statement “Every student in your class has taken a course in calculus.” This statement is a universal quantification, namely, ∀xP(x), where P(x) is the statement “x has taken a course in calculus” and the domain consists of the students in your class. Negating Quantified Expressions
  • 61. “Every student in your class has taken a course in calculus.” ¬∀xP(x) Negating Quantified Expressions
  • 62. “Every student in your class has taken a course in calculus.” ¬∀xP(x) “It is not the case that every student in your class has taken a course in calculus.” Negating Quantified Expressions
  • 63. “Every student in your class has taken a course in calculus.” ¬∀xP(x) ≡ ∃x ¬P(x) “It is not the case that every student in your class has taken a course in calculus.” Which is the same as “There is a student in your class who has not taken a course in calculus.” Negating Quantified Expressions
  • 64. Consider the negation of the statement “There is a student in this class who has taken a course in calculus.” This is the existential quantification, namely, ∃xQ(x), where Q(x) is the statement “x has taken a course in calculus.” Negating Quantified Expressions
  • 65. “There is a student in this class who has taken a course in calculus.” ¬∃xQ(x) Negating Quantified Expressions
  • 66. “There is a student in this class who has taken a course in calculus.” ¬∃xQ(x) “It is not the case that there is a student in this class who has taken a course in calculus.” Negating Quantified Expressions
  • 67. “There is a student in this class who has taken a course in calculus.” ¬∃xQ(x) ≡ ∀x¬Q(x) “It is not the case that there is a student in this class who has taken a course in calculus.” This is equivalent to “Every student in this class has not taken calculus,” Negating Quantified Expressions
  • 68. Negating Quantified Expressions Table 1 Quantifiers. Statement When True? When False? ∀xP(x) ∃xP(x) P(x) is true for every x. There is an x for which P(x) is true There is an x for which P(x) is false. P(x) is false for every x. Table 2 De Morgan’s Laws for Quantifiers. Negation Equivalent Statement When is Negation True? When False? ¬∃xP(x) ¬∀xP(x) ∀x ¬P(x) ∃x ¬P(x) For every x, P(x) is false. There is an x for which P(x) is false. There is an x for which P(x) is true. P(x) is true for every x.
  • 69. Negating Quantified Expressions Table 1 Quantifiers. Statement When True? When False? ∀xP(x) ∃xP(x) P(x) is true for every x. There is an x for which P(x) is true There is an x for which P(x) is false. P(x) is false for every x. Table 2 De Morgan’s Laws for Quantifiers. Negation Equivalent Statement When is Negation True? When False? ¬∃xP(x) ¬∀xP(x) ∀x ¬P(x) ∃x ¬P(x) For every x, P(x) is false. There is an x for which P(x) is false. There is an x for which P(x) is true. P(x) is true for every x.
  • 70. Negating Quantified Expressions Table 1 Quantifiers. Statement When True? When False? ∀xP(x) ∃xP(x) P(x) is true for every x. There is an x for which P(x) is true There is an x for which P(x) is false. P(x) is false for every x. Table 2 De Morgan’s Laws for Quantifiers. Negation Equivalent Statement When is Negation True? When False? ¬∃xP(x) ¬∀xP(x) ∀x ¬P(x) ∃x ¬P(x) For every x, P(x) is false. There is an x for which P(x) is false. There is an x for which P(x) is true. P(x) is true for every x.
  • 71. Negating Quantified Expressions Table 1 Quantifiers. Statement When True? When False? ∀xP(x) ∃xP(x) P(x) is true for every x. There is an x for which P(x) is true There is an x for which P(x) is false. P(x) is false for every x. Table 2 De Morgan’s Laws for Quantifiers. Negation Equivalent Statement When is Negation True? When False? ¬∃xP(x) ¬∀xP(x) ∀x ¬P(x) ∃x ¬P(x) For every x, P(x) is false. There is an x for which P(x) is false. There is an x for which P(x) is true. P(x) is true for every x.
  • 72. Negating Quantified Expressions Table 1 Quantifiers. Statement When True? When False? ∀xP(x) ∃xP(x) P(x) is true for every x. There is an x for which P(x) is true There is an x for which P(x) is false. P(x) is false for every x. Table 2 De Morgan’s Laws for Quantifiers. Negation Equivalent Statement When is Negation True? When False? ¬∃xP(x) ¬∀xP(x) ∀x ¬P(x) ∃x ¬P(x) For every x, P(x) is false. There is an x for which P(x) is false. There is an x for which P(x) is true. P(x) is true for every x.
  • 73. Translating from English into Logical Expressions
  • 74. Express the statement using predicates and quantifiers: “Every student in class has studied calculus.” Example
  • 75. “Every student in class has studied calculus.” First, rewrite the statement: “For every student in this class, that student has studied calculus.” Solution
  • 76. “Every student in class has studied calculus.” First, rewrite the statement: “For every student in this class, that student has studied calculus.” Next, introduce a variable x: “For every student x in this class, x has studied calculus.” Solution
  • 77. “Every student in class has studied calculus.” We introduce C(x), which is the statement “x has studied calculus.” Consequently, if the domain for x consists of the students in the class, we can translate our statement as ∀xC(x). Solution
  • 78. “Every student in class has studied calculus.” What if we change the domain to consist of all people? Solution
  • 79. “Every student in class has studied calculus.” What if we change the domain to consist of all people? “For every person x, if person x is a student in this class then x has studied calculus.” 2nd Solution
  • 80. “Every student in class has studied calculus.” What if we change the domain to consist of all people? “For every person x, if person x is a student in this class then x has studied calculus.” If S(x) represents the statement that person x is in this class: ∀x(S(x) → C(x)) [Note: not ∀x(S(x) ∧ C(x)) because this statement says that all people are students in this class and have studied calculus!] 2nd Solution
  • 81. “Every student in class has studied calculus.” Use the two-variable quantifier Q(x, y) for the statement “student x has studied subject y.” Then we would replace C(x) by Q(x, calculus) in both approaches to obtain ∀xQ(x, calculus) or ∀x(S(x) → Q(x, calculus)). 3rd Solution
  • 83. A. Let P(x) be the statement “x spends more than five hours every weekday in class,” where the domain for x consists of all students. Express each of these quantifications in English 1.) ∃xP(x) 3.) ∃x ¬P(x) 2.) ∀xP(x) 4.) ∀x ¬P(x) B. Let P(x) be the statement “x = x2”. If the domain consists of the integers, what are these truth values? 1.) P(0) 3.) P(2) 5.) ∃xP(x) 2.) P(1) 4.) P(-1) 6.) ∀xP(x) Seatwork

Editor's Notes

  1. In English, what is predicate?
  2. 1. Let R(x,y,z) denote the statement “x + y = z”. What are the truth values of the propositions R(1,2,3) and R(0,0,1)? 2.
  3. For every real number x with x < 0, x2 > 0… For every real number y with y ≠ 0 (y3 ≠ 0)… There exists a real number z with z > 0 (z2 = 2)