SlideShare a Scribd company logo
1 of 11
‫آے‬ ‫وہ‬‫ہے‬ ‫قدرت‬ ‫کی‬ ‫خدا‬ ‫ہمارے‬ ‫میں‬ ‫گھر‬
‫ہ‬ ‫دیکھتے‬ ‫کو‬ ‫گھر‬ ‫اپنے‬ ‫کبھی‬ ‫انکو‬ ‫ہم‬ ‫کبھی‬‫یں‬
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

What's hot

Integers and matrices (slides)
Integers and matrices (slides)Integers and matrices (slides)
Integers and matrices (slides)
IIUM
 
Lesson 7: Limits at Infinity
Lesson 7: Limits at InfinityLesson 7: Limits at Infinity
Lesson 7: Limits at Infinity
Matthew Leingang
 
Basics of Coding Theory
Basics of Coding TheoryBasics of Coding Theory
Basics of Coding Theory
Piyush Mittal
 

What's hot (20)

Turing machines
Turing machinesTuring machines
Turing machines
 
Linear Congruences, reduced residue systems.pptx
Linear Congruences, reduced residue systems.pptxLinear Congruences, reduced residue systems.pptx
Linear Congruences, reduced residue systems.pptx
 
Euclid's division algorithm
Euclid's division algorithmEuclid's division algorithm
Euclid's division algorithm
 
Discrete Math Presentation(Rules of Inference)
Discrete Math Presentation(Rules of Inference)Discrete Math Presentation(Rules of Inference)
Discrete Math Presentation(Rules of Inference)
 
Integers and matrices (slides)
Integers and matrices (slides)Integers and matrices (slides)
Integers and matrices (slides)
 
Chinese remainder theorem
Chinese remainder theoremChinese remainder theorem
Chinese remainder theorem
 
Sequence function
Sequence functionSequence function
Sequence function
 
Longest Common Subsequence
Longest Common SubsequenceLongest Common Subsequence
Longest Common Subsequence
 
Convolution and Residue Method in Inverse Z Transform
Convolution and Residue Method in Inverse Z TransformConvolution and Residue Method in Inverse Z Transform
Convolution and Residue Method in Inverse Z Transform
 
Regular Expression to Finite Automata
Regular Expression to Finite AutomataRegular Expression to Finite Automata
Regular Expression to Finite Automata
 
Turing Machine
Turing MachineTuring Machine
Turing Machine
 
Fourier series and transforms
Fourier series and transformsFourier series and transforms
Fourier series and transforms
 
Limits
LimitsLimits
Limits
 
calculus Ppt
calculus Pptcalculus Ppt
calculus Ppt
 
Lesson 7: Limits at Infinity
Lesson 7: Limits at InfinityLesson 7: Limits at Infinity
Lesson 7: Limits at Infinity
 
Mathematical Logic
Mathematical LogicMathematical Logic
Mathematical Logic
 
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
 
Lattices
LatticesLattices
Lattices
 
Basics of Coding Theory
Basics of Coding TheoryBasics of Coding Theory
Basics of Coding Theory
 
Formal Logic - Lesson 7 - Rules of Inference
Formal Logic - Lesson 7 - Rules of InferenceFormal Logic - Lesson 7 - Rules of Inference
Formal Logic - Lesson 7 - Rules of Inference
 

Viewers also liked (13)

1997 AFTA Commendation
1997 AFTA Commendation1997 AFTA Commendation
1997 AFTA Commendation
 
Quantification
QuantificationQuantification
Quantification
 
Relational calculas
Relational calculasRelational calculas
Relational calculas
 
Nested loop
Nested loopNested loop
Nested loop
 
Nested quantifiers
Nested quantifiersNested quantifiers
Nested quantifiers
 
Graphs
GraphsGraphs
Graphs
 
Predicate calculus
Predicate calculusPredicate calculus
Predicate calculus
 
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
 
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
 
Relational algebra in dbms
Relational algebra in dbmsRelational algebra in dbms
Relational algebra in dbms
 
Predicate Logic
Predicate LogicPredicate Logic
Predicate Logic
 
Presentation on dbms(relational calculus)
Presentation on dbms(relational calculus)Presentation on dbms(relational calculus)
Presentation on dbms(relational calculus)
 
Lecture 06 relational algebra and calculus
Lecture 06 relational algebra and calculusLecture 06 relational algebra and calculus
Lecture 06 relational algebra and calculus
 

Similar to Nested quantifiers

Nested Quantifiers.pptx
Nested Quantifiers.pptxNested Quantifiers.pptx
Nested Quantifiers.pptx
Jeevan225779
 
CPSC 125 Ch 1 sec 3
CPSC 125 Ch 1 sec 3CPSC 125 Ch 1 sec 3
CPSC 125 Ch 1 sec 3
David Wood
 
dfgsdfdsgdfgfdgdrgdfgffdhyrthfgnhgjhgdfs.ppt
dfgsdfdsgdfgfdgdrgdfgffdhyrthfgnhgjhgdfs.pptdfgsdfdsgdfgfdgdrgdfgffdhyrthfgnhgjhgdfs.ppt
dfgsdfdsgdfgfdgdrgdfgffdhyrthfgnhgjhgdfs.ppt
NobitaNobi489694
 

Similar to Nested quantifiers (20)

Discrete Structure Lecture #5 & 6.pdf
Discrete Structure Lecture #5 & 6.pdfDiscrete Structure Lecture #5 & 6.pdf
Discrete Structure Lecture #5 & 6.pdf
 
X02PredCalculus.ppt
X02PredCalculus.pptX02PredCalculus.ppt
X02PredCalculus.ppt
 
Quantifiers and its Types
Quantifiers and its TypesQuantifiers and its Types
Quantifiers and its Types
 
Module_5_1.pptx
Module_5_1.pptxModule_5_1.pptx
Module_5_1.pptx
 
Nested Quantifiers.pptx
Nested Quantifiers.pptxNested Quantifiers.pptx
Nested Quantifiers.pptx
 
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
 
Predicates and Quantifiers
Predicates and QuantifiersPredicates and Quantifiers
Predicates and Quantifiers
 
Per3 logika
Per3 logikaPer3 logika
Per3 logika
 
PredicateLogic (1).ppt
PredicateLogic (1).pptPredicateLogic (1).ppt
PredicateLogic (1).ppt
 
PredicateLogic.pptx
PredicateLogic.pptxPredicateLogic.pptx
PredicateLogic.pptx
 
3 fol examples v2
3 fol examples v23 fol examples v2
3 fol examples v2
 
Translation to QL Part 1
Translation to QL Part 1Translation to QL Part 1
Translation to QL Part 1
 
Predicate & quantifier
Predicate & quantifierPredicate & quantifier
Predicate & quantifier
 
Predicates and Quantifiers
Predicates and Quantifiers Predicates and Quantifiers
Predicates and Quantifiers
 
Predicates and quantifiers
Predicates and quantifiersPredicates and quantifiers
Predicates and quantifiers
 
CPSC 125 Ch 1 sec 3
CPSC 125 Ch 1 sec 3CPSC 125 Ch 1 sec 3
CPSC 125 Ch 1 sec 3
 
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
 
Lecture3
Lecture3Lecture3
Lecture3
 
dfgsdfdsgdfgfdgdrgdfgffdhyrthfgnhgjhgdfs.ppt
dfgsdfdsgdfgfdgdrgdfgffdhyrthfgnhgjhgdfs.pptdfgsdfdsgdfgfdgdrgdfgffdhyrthfgnhgjhgdfs.ppt
dfgsdfdsgdfgfdgdrgdfgffdhyrthfgnhgjhgdfs.ppt
 

More from Ali Saleem (6)

Trees
TreesTrees
Trees
 
Relations
RelationsRelations
Relations
 
Sequences and summations
Sequences and summationsSequences and summations
Sequences and summations
 
Writing a memo, letter, and e mail
Writing a memo, letter, and e mailWriting a memo, letter, and e mail
Writing a memo, letter, and e mail
 
Challenges for the newborn state
Challenges for the newborn  stateChallenges for the newborn  state
Challenges for the newborn state
 
Objectives or goals of technical communication
Objectives or goals of technical communicationObjectives or goals of technical communication
Objectives or goals of technical communication
 

Recently uploaded

Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
AnaAcapella
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
KarakKing
 

Recently uploaded (20)

This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 

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.