SlideShare a Scribd company logo
‫آے‬ ‫وہ‬‫ہے‬ ‫قدرت‬ ‫کی‬ ‫خدا‬ ‫ہمارے‬ ‫میں‬ ‫گھر‬
‫ہ‬ ‫دیکھتے‬ ‫کو‬ ‫گھر‬ ‫اپنے‬ ‫کبھی‬ ‫انکو‬ ‫ہم‬ ‫کبھی‬‫یں‬
Slides-4
• It means at any time either I see my home or
my friend.
• It also concludes that I do not see somewhere
else and I do not see both at a time.
• Suppose I have many homes and many
friends but at least one friend is special one.
• Set of homes and friends are denoted by H
and F, respectively.
• Look(x) = Having a look at x
• ∃ℎ ∈ 𝐻∃𝑓 ∈ 𝐹: 𝐿𝑜𝑜𝑘 ℎ ⊕ 𝐿𝑜𝑜𝑘(𝑓)
Exercise
• How to modify the formula in previous slide if
I say we are talking about the home in which
friend is there?
• Write a logical expression for “All the time if
door is closed then I am not inside my cabin”.
Where the propositions p and q are “Door is
closed” and “I am inside my cabin”.
• “All the time if door is closed then I am not
inside my cabin otherwise I am inside”.
Excecise
Translate these statements into English, where
C(x) is “x
is a comedian” and F(x) is “x is funny” and the
domain
consists of all people.
a) ∀x(C(x) → F(x)) b) ∀x(C(x) ∧ F(x))
c) ∃x(C(x) → F(x)) d) ∃x(C(x) ∧ F(x))
Exercise
• P(x): “x is a professor”
• I(x): “x is ignorant”
• V(x): “x is vain”
• Express the following statements using
quantifiers, logical connectives and P(x), I(x), and
V(x), where the universe is the set of all people.
• a) No professors are ignorant.
• b) All ignorant people are vain.
• c) No professors are vain
Nested Quantifiers
 xy P(x, y)
 “For all x, there exists a y such that P(x,y)”.
 Example: xy (x+y == 0) where x and y are integers
 xy P(x,y)
 There exists an x such that for all y P(x,y) is true”
 xy (x*y == 0)
Meanings of multiple quantifiers
 xy P(x,y)
 xy P(x,y)
 xy P(x,y)
 xy P(x,y)
P(x,y) true for all x, y pairs.
For every value of x we can find a (possibly different)
y so that P(x,y) is true.
P(x,y) true for at least one x, y pair.
There is at least one x for which P(x,y)
is always true.
quantification order is not
commutative.
Suppose P(x,y) = “x’s favorite class is y.”
Example
• Let S be the set of students, i.e., {s1, s2, s3, …}
and P be the set of sports {hockey, cricket,
badminton, tennis, chess}
• Let Q (x,y):= “x plays y”
be a predicate which is true if x plays y
otherwise false.
• Then
xy Q(x,y) means every student plays each
game
• xy Q(x,y) There is at least one student from
S who plays at least one game from the set P.
• xy Q(x,y) All students play at least one
game.
• xy Q(x,y) There is at least one student who
plays all games.
Exercise
• Let M(x), F(x), E(x) and S(x,y) be the
statements for “x is a male”, “x is a female”, “x
is employee of COMSATS” and “x and y are
spouse”, respectively.
• Write a logical formula for “There is at least
one couple in employees of COMSATS and one
of them is male and other is female”.
Bound and free variables
A variable is bound if it is known or
quantified. Otherwise, it is free.
Examples:
P(x) x is free
P(5) x is bound to 5
x P(x) x is bound by quantifier
Reminder: in a
proposition, all
variables must
be bound.

More Related Content

PDF
Theory of Mechanics 2 (TOM) Mechanical Engineering Handwritten classes Notes...
PDF
1997 AFTA Commendation
PPTX
Quantification
PPT
Relational calculas
PPT
Nested loop
PPTX
Nested quantifiers
PPT
Graphs
PPT
Predicate calculus
Theory of Mechanics 2 (TOM) Mechanical Engineering Handwritten classes Notes...
1997 AFTA Commendation
Quantification
Relational calculas
Nested loop
Nested quantifiers
Graphs
Predicate calculus

Viewers also liked (6)

PDF
Lecture 2 predicates quantifiers and rules of inference
PPT
Discrete Math Lecture 03: Methods of Proof
PPT
Relational algebra in dbms
PPT
Predicate Logic
PPT
Presentation on dbms(relational calculus)
PPT
Lecture 06 relational algebra and calculus
Lecture 2 predicates quantifiers and rules of inference
Discrete Math Lecture 03: Methods of Proof
Relational algebra in dbms
Predicate Logic
Presentation on dbms(relational calculus)
Lecture 06 relational algebra and calculus
Ad

Similar to Nested quantifiers (20)

PPTX
Quantifiers and its Types
PPTX
Nested Quantifiers.pptx
PPTX
Module_5_1.pptx
PPTX
Discrete Math Chapter 1 :The Foundations: Logic and Proofs
PPTX
Chapter 1.4.pptx Chapter 1.4.pptx DISCREATE MATH
PDF
Module - 2 Discrete Mathematics and Graph Theory
PPTX
Chapter1p2.pptx
PDF
Chapter 01 - p2.pdf
DOCX
Discrete mathematics
PPT
Predicate & quantifier
PPT
First order logic
PPTX
Unit 1 quantifiers
PPTX
SESSION-11 PPT.pptx
PDF
Predicate_Logic.pdf
PDF
Discrete Structure Lecture #5 & 6.pdf
PPT
Predicates and Quantifiers
PPTX
m.a.t.h.e.m.a.t.i.c.s.d.i.s.c.r.e.t.e.pptx
PPTX
Lecture_6_Chapter_1_Lesson_1.3-Lesson-1.4.pptx
PPTX
Lecture_6_Chapter_1_Lesson_1.3-Lesson-1.4.pptx
PPTX
Predicates and Quantifiers
Quantifiers and its Types
Nested Quantifiers.pptx
Module_5_1.pptx
Discrete Math Chapter 1 :The Foundations: Logic and Proofs
Chapter 1.4.pptx Chapter 1.4.pptx DISCREATE MATH
Module - 2 Discrete Mathematics and Graph Theory
Chapter1p2.pptx
Chapter 01 - p2.pdf
Discrete mathematics
Predicate & quantifier
First order logic
Unit 1 quantifiers
SESSION-11 PPT.pptx
Predicate_Logic.pdf
Discrete Structure Lecture #5 & 6.pdf
Predicates and Quantifiers
m.a.t.h.e.m.a.t.i.c.s.d.i.s.c.r.e.t.e.pptx
Lecture_6_Chapter_1_Lesson_1.3-Lesson-1.4.pptx
Lecture_6_Chapter_1_Lesson_1.3-Lesson-1.4.pptx
Predicates and Quantifiers
Ad

More from Ali Saleem (7)

PPT
Trees
PPT
Relations
PPTX
Sequences and summations
PPT
Writing a memo, letter, and e mail
PPTX
Challenges for the newborn state
PPT
Objectives or goals of technical communication
PPTX
17 using rules of inference to build arguments
Trees
Relations
Sequences and summations
Writing a memo, letter, and e mail
Challenges for the newborn state
Objectives or goals of technical communication
17 using rules of inference to build arguments

Recently uploaded (20)

PPTX
Cell Types and Its function , kingdom of life
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PDF
Sports Quiz easy sports quiz sports quiz
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PDF
01-Introduction-to-Information-Management.pdf
PDF
Microbial disease of the cardiovascular and lymphatic systems
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PDF
Anesthesia in Laparoscopic Surgery in India
PDF
Insiders guide to clinical Medicine.pdf
PDF
Basic Mud Logging Guide for educational purpose
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PDF
Complications of Minimal Access Surgery at WLH
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
Cell Types and Its function , kingdom of life
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
Sports Quiz easy sports quiz sports quiz
human mycosis Human fungal infections are called human mycosis..pptx
01-Introduction-to-Information-Management.pdf
Microbial disease of the cardiovascular and lymphatic systems
FourierSeries-QuestionsWithAnswers(Part-A).pdf
Module 4: Burden of Disease Tutorial Slides S2 2025
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
Anesthesia in Laparoscopic Surgery in India
Insiders guide to clinical Medicine.pdf
Basic Mud Logging Guide for educational purpose
102 student loan defaulters named and shamed – Is someone you know on the list?
Complications of Minimal Access Surgery at WLH
Microbial diseases, their pathogenesis and prophylaxis
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
Supply Chain Operations Speaking Notes -ICLT Program
Abdominal Access Techniques with Prof. Dr. R K Mishra
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...

Nested quantifiers

  • 1. ‫آے‬ ‫وہ‬‫ہے‬ ‫قدرت‬ ‫کی‬ ‫خدا‬ ‫ہمارے‬ ‫میں‬ ‫گھر‬ ‫ہ‬ ‫دیکھتے‬ ‫کو‬ ‫گھر‬ ‫اپنے‬ ‫کبھی‬ ‫انکو‬ ‫ہم‬ ‫کبھی‬‫یں‬ Slides-4
  • 2. • It means at any time either I see my home or my friend. • It also concludes that I do not see somewhere else and I do not see both at a time. • Suppose I have many homes and many friends but at least one friend is special one. • Set of homes and friends are denoted by H and F, respectively. • Look(x) = Having a look at x • ∃ℎ ∈ 𝐻∃𝑓 ∈ 𝐹: 𝐿𝑜𝑜𝑘 ℎ ⊕ 𝐿𝑜𝑜𝑘(𝑓)
  • 3. Exercise • How to modify the formula in previous slide if I say we are talking about the home in which friend is there? • Write a logical expression for “All the time if door is closed then I am not inside my cabin”. Where the propositions p and q are “Door is closed” and “I am inside my cabin”. • “All the time if door is closed then I am not inside my cabin otherwise I am inside”.
  • 4. Excecise Translate these statements into English, where C(x) is “x is a comedian” and F(x) is “x is funny” and the domain consists of all people. a) ∀x(C(x) → F(x)) b) ∀x(C(x) ∧ F(x)) c) ∃x(C(x) → F(x)) d) ∃x(C(x) ∧ F(x))
  • 5. Exercise • P(x): “x is a professor” • I(x): “x is ignorant” • V(x): “x is vain” • Express the following statements using quantifiers, logical connectives and P(x), I(x), and V(x), where the universe is the set of all people. • a) No professors are ignorant. • b) All ignorant people are vain. • c) No professors are vain
  • 6. Nested Quantifiers  xy P(x, y)  “For all x, there exists a y such that P(x,y)”.  Example: xy (x+y == 0) where x and y are integers  xy P(x,y)  There exists an x such that for all y P(x,y) is true”  xy (x*y == 0)
  • 7. Meanings of multiple quantifiers  xy P(x,y)  xy P(x,y)  xy P(x,y)  xy P(x,y) P(x,y) true for all x, y pairs. For every value of x we can find a (possibly different) y so that P(x,y) is true. P(x,y) true for at least one x, y pair. There is at least one x for which P(x,y) is always true. quantification order is not commutative. Suppose P(x,y) = “x’s favorite class is y.”
  • 8. Example • Let S be the set of students, i.e., {s1, s2, s3, …} and P be the set of sports {hockey, cricket, badminton, tennis, chess} • Let Q (x,y):= “x plays y” be a predicate which is true if x plays y otherwise false. • Then xy Q(x,y) means every student plays each game
  • 9. • xy Q(x,y) There is at least one student from S who plays at least one game from the set P. • xy Q(x,y) All students play at least one game. • xy Q(x,y) There is at least one student who plays all games.
  • 10. Exercise • Let M(x), F(x), E(x) and S(x,y) be the statements for “x is a male”, “x is a female”, “x is employee of COMSATS” and “x and y are spouse”, respectively. • Write a logical formula for “There is at least one couple in employees of COMSATS and one of them is male and other is female”.
  • 11. Bound and free variables A variable is bound if it is known or quantified. Otherwise, it is free. Examples: P(x) x is free P(5) x is bound to 5 x P(x) x is bound by quantifier Reminder: in a proposition, all variables must be bound.