SlideShare une entreprise Scribd logo
1  sur  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.

Contenu connexe

Tendances

Limits and its theorem In Calculus
Limits and its theorem  In CalculusLimits and its theorem  In Calculus
Limits and its theorem In CalculusUzair Ahmad
 
Predicates and quantifiers presentation topics
Predicates  and quantifiers  presentation topicsPredicates  and quantifiers  presentation topics
Predicates and quantifiers presentation topicsR.h. Himel
 
Ellipses drawing algo.
Ellipses drawing algo.Ellipses drawing algo.
Ellipses drawing algo.Mohd Arif
 
Theory of automata and formal language
Theory of automata and formal languageTheory of automata and formal language
Theory of automata and formal languageRabia Khalid
 
Quantifiers and its Types
Quantifiers and its TypesQuantifiers and its Types
Quantifiers and its TypesHumayunNaseer4
 
CPSC 125 Ch 1 sec 3
CPSC 125 Ch 1 sec 3CPSC 125 Ch 1 sec 3
CPSC 125 Ch 1 sec 3David Wood
 
Roots of polynomials
Roots of polynomialsRoots of polynomials
Roots of polynomialsDUBAN CASTRO
 
Group Theory and Its Application: Beamer Presentation (PPT)
Group Theory and Its Application:   Beamer Presentation (PPT)Group Theory and Its Application:   Beamer Presentation (PPT)
Group Theory and Its Application: Beamer Presentation (PPT)SIRAJAHMAD36
 
Propositional logic
Propositional logicPropositional logic
Propositional logicMamta Pandey
 
language , grammar and automata
language , grammar and automatalanguage , grammar and automata
language , grammar and automataElakkiyaS11
 
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 inferenceasimnawaz54
 
Theory of Automata and formal languages unit 2
Theory of Automata and formal languages unit 2Theory of Automata and formal languages unit 2
Theory of Automata and formal languages unit 2Abhimanyu Mishra
 
Syntax and semantics of propositional logic
Syntax and semantics of propositional logicSyntax and semantics of propositional logic
Syntax and semantics of propositional logicJanet Stemwedel
 

Tendances (20)

TOC 5 | Regular Expressions
TOC 5 | Regular ExpressionsTOC 5 | Regular Expressions
TOC 5 | Regular Expressions
 
Limits and its theorem In Calculus
Limits and its theorem  In CalculusLimits and its theorem  In Calculus
Limits and its theorem In Calculus
 
Predicates and quantifiers presentation topics
Predicates  and quantifiers  presentation topicsPredicates  and quantifiers  presentation topics
Predicates and quantifiers presentation topics
 
Ellipses drawing algo.
Ellipses drawing algo.Ellipses drawing algo.
Ellipses drawing algo.
 
Kleene's theorem
Kleene's theoremKleene's theorem
Kleene's theorem
 
Theory of automata and formal language
Theory of automata and formal languageTheory of automata and formal language
Theory of automata and formal language
 
Quantifiers and its Types
Quantifiers and its TypesQuantifiers and its Types
Quantifiers and its Types
 
CPSC 125 Ch 1 sec 3
CPSC 125 Ch 1 sec 3CPSC 125 Ch 1 sec 3
CPSC 125 Ch 1 sec 3
 
Roots of polynomials
Roots of polynomialsRoots of polynomials
Roots of polynomials
 
Group Theory and Its Application: Beamer Presentation (PPT)
Group Theory and Its Application:   Beamer Presentation (PPT)Group Theory and Its Application:   Beamer Presentation (PPT)
Group Theory and Its Application: Beamer Presentation (PPT)
 
Propositional logic
Propositional logicPropositional logic
Propositional logic
 
language , grammar and automata
language , grammar and automatalanguage , grammar and automata
language , grammar and automata
 
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
 
Theory of Automata and formal languages unit 2
Theory of Automata and formal languages unit 2Theory of Automata and formal languages unit 2
Theory of Automata and formal languages unit 2
 
Language
LanguageLanguage
Language
 
Maxima and minima
Maxima and minimaMaxima and minima
Maxima and minima
 
Syntax and semantics of propositional logic
Syntax and semantics of propositional logicSyntax and semantics of propositional logic
Syntax and semantics of propositional logic
 
Logic&proof
Logic&proofLogic&proof
Logic&proof
 
Calculus in real life (Differentiation and integration )
Calculus in real life (Differentiation and integration )Calculus in real life (Differentiation and integration )
Calculus in real life (Differentiation and integration )
 
Regular expressions
Regular expressionsRegular expressions
Regular expressions
 

En vedette

Relational calculas
Relational calculasRelational calculas
Relational calculasanuj24
 
Nested quantifiers
Nested quantifiersNested quantifiers
Nested quantifiersAli Saleem
 
Predicate calculus
Predicate calculusPredicate calculus
Predicate calculusRajendran
 
Relational algebra in dbms
Relational algebra in dbmsRelational algebra in dbms
Relational algebra in dbmsshekhar1991
 
Predicate Logic
Predicate LogicPredicate Logic
Predicate Logicgiki67
 
Lec 02 logical eq (Discrete Mathematics)
Lec 02   logical eq (Discrete Mathematics)Lec 02   logical eq (Discrete Mathematics)
Lec 02 logical eq (Discrete Mathematics)Naosher Md. Zakariyar
 
Presentation on dbms(relational calculus)
Presentation on dbms(relational calculus)Presentation on dbms(relational calculus)
Presentation on dbms(relational calculus)yourbookworldanil
 
Lecture 06 relational algebra and calculus
Lecture 06 relational algebra and calculusLecture 06 relational algebra and calculus
Lecture 06 relational algebra and calculusemailharmeet
 

En vedette (8)

Relational calculas
Relational calculasRelational calculas
Relational calculas
 
Nested quantifiers
Nested quantifiersNested quantifiers
Nested quantifiers
 
Predicate calculus
Predicate calculusPredicate calculus
Predicate calculus
 
Relational algebra in dbms
Relational algebra in dbmsRelational algebra in dbms
Relational algebra in dbms
 
Predicate Logic
Predicate LogicPredicate Logic
Predicate Logic
 
Lec 02 logical eq (Discrete Mathematics)
Lec 02   logical eq (Discrete Mathematics)Lec 02   logical eq (Discrete Mathematics)
Lec 02 logical eq (Discrete Mathematics)
 
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
 

Similaire à Nested quantifiers

Discrete Structure Lecture #5 & 6.pdf
Discrete Structure Lecture #5 & 6.pdfDiscrete Structure Lecture #5 & 6.pdf
Discrete Structure Lecture #5 & 6.pdfMuhammadUmerIhtisham
 
Nested Quantifiers.pptx
Nested Quantifiers.pptxNested Quantifiers.pptx
Nested Quantifiers.pptxJeevan225779
 
Translation to QL Part 1
Translation to QL Part 1Translation to QL Part 1
Translation to QL Part 1Nat Karablina
 
Predicates and quantifiers
Predicates and quantifiersPredicates and quantifiers
Predicates and quantifiersIstiak Ahmed
 
1606751772-ds-lecture-6.ppt
1606751772-ds-lecture-6.ppt1606751772-ds-lecture-6.ppt
1606751772-ds-lecture-6.pptTejasAditya2
 
Discreate structure presentation introduction
Discreate structure presentation introductionDiscreate structure presentation introduction
Discreate structure presentation introductionyashirraza123
 
dfgsdfdsgdfgfdgdrgdfgffdhyrthfgnhgjhgdfs.ppt
dfgsdfdsgdfgfdgdrgdfgffdhyrthfgnhgjhgdfs.pptdfgsdfdsgdfgfdgdrgdfgffdhyrthfgnhgjhgdfs.ppt
dfgsdfdsgdfgfdgdrgdfgffdhyrthfgnhgjhgdfs.pptNobitaNobi489694
 
Discrete Math Chapter 1 :The Foundations: Logic and Proofs
Discrete Math Chapter 1 :The Foundations: Logic and ProofsDiscrete Math Chapter 1 :The Foundations: Logic and Proofs
Discrete Math Chapter 1 :The Foundations: Logic and ProofsAmr Rashed
 
SESSION-11 PPT.pptx
SESSION-11 PPT.pptxSESSION-11 PPT.pptx
SESSION-11 PPT.pptxNaniSarath
 

Similaire à 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
 
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
 
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 quantifiersPredicates and quantifiers
Predicates and quantifiers
 
Quantification
QuantificationQuantification
Quantification
 
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
 
Universal Quantification DM
Universal Quantification DMUniversal Quantification DM
Universal Quantification DM
 
Discrete Math Chapter 1 :The Foundations: Logic and Proofs
Discrete Math Chapter 1 :The Foundations: Logic and ProofsDiscrete Math Chapter 1 :The Foundations: Logic and Proofs
Discrete Math Chapter 1 :The Foundations: Logic and Proofs
 
SESSION-11 PPT.pptx
SESSION-11 PPT.pptxSESSION-11 PPT.pptx
SESSION-11 PPT.pptx
 

Plus de Ali Saleem

Sequences and summations
Sequences and summationsSequences and summations
Sequences and summationsAli Saleem
 
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 mailAli Saleem
 
Challenges for the newborn state
Challenges for the newborn  stateChallenges for the newborn  state
Challenges for the newborn stateAli Saleem
 
Objectives or goals of technical communication
Objectives or goals of technical communicationObjectives or goals of technical communication
Objectives or goals of technical communicationAli Saleem
 
17 using rules of inference to build arguments
17   using rules of inference to build arguments17   using rules of inference to build arguments
17 using rules of inference to build argumentsAli Saleem
 

Plus de Ali Saleem (8)

Trees
TreesTrees
Trees
 
Graphs
GraphsGraphs
Graphs
 
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
 
17 using rules of inference to build arguments
17   using rules of inference to build arguments17   using rules of inference to build arguments
17 using rules of inference to build arguments
 

Dernier

Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...
Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...
Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...DhatriParmar
 
Q-Factor HISPOL Quiz-6th April 2024, Quiz Club NITW
Q-Factor HISPOL Quiz-6th April 2024, Quiz Club NITWQ-Factor HISPOL Quiz-6th April 2024, Quiz Club NITW
Q-Factor HISPOL Quiz-6th April 2024, Quiz Club NITWQuiz Club NITW
 
Grade Three -ELLNA-REVIEWER-ENGLISH.pptx
Grade Three -ELLNA-REVIEWER-ENGLISH.pptxGrade Three -ELLNA-REVIEWER-ENGLISH.pptx
Grade Three -ELLNA-REVIEWER-ENGLISH.pptxkarenfajardo43
 
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxQ4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxlancelewisportillo
 
Measures of Position DECILES for ungrouped data
Measures of Position DECILES for ungrouped dataMeasures of Position DECILES for ungrouped data
Measures of Position DECILES for ungrouped dataBabyAnnMotar
 
MS4 level being good citizen -imperative- (1) (1).pdf
MS4 level   being good citizen -imperative- (1) (1).pdfMS4 level   being good citizen -imperative- (1) (1).pdf
MS4 level being good citizen -imperative- (1) (1).pdfMr Bounab Samir
 
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptxDecoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptxDhatriParmar
 
Mythology Quiz-4th April 2024, Quiz Club NITW
Mythology Quiz-4th April 2024, Quiz Club NITWMythology Quiz-4th April 2024, Quiz Club NITW
Mythology Quiz-4th April 2024, Quiz Club NITWQuiz Club NITW
 
Scientific Writing :Research Discourse
Scientific  Writing :Research  DiscourseScientific  Writing :Research  Discourse
Scientific Writing :Research DiscourseAnita GoswamiGiri
 
Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management systemChristalin Nelson
 
Transaction Management in Database Management System
Transaction Management in Database Management SystemTransaction Management in Database Management System
Transaction Management in Database Management SystemChristalin Nelson
 
DIFFERENT BASKETRY IN THE PHILIPPINES PPT.pptx
DIFFERENT BASKETRY IN THE PHILIPPINES PPT.pptxDIFFERENT BASKETRY IN THE PHILIPPINES PPT.pptx
DIFFERENT BASKETRY IN THE PHILIPPINES PPT.pptxMichelleTuguinay1
 
Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...
Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...
Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...DhatriParmar
 
Mental Health Awareness - a toolkit for supporting young minds
Mental Health Awareness - a toolkit for supporting young mindsMental Health Awareness - a toolkit for supporting young minds
Mental Health Awareness - a toolkit for supporting young mindsPooky Knightsmith
 
Reading and Writing Skills 11 quarter 4 melc 1
Reading and Writing Skills 11 quarter 4 melc 1Reading and Writing Skills 11 quarter 4 melc 1
Reading and Writing Skills 11 quarter 4 melc 1GloryAnnCastre1
 
ClimART Action | eTwinning Project
ClimART Action    |    eTwinning ProjectClimART Action    |    eTwinning Project
ClimART Action | eTwinning Projectjordimapav
 
Active Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdfActive Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdfPatidar M
 
Q-Factor General Quiz-7th April 2024, Quiz Club NITW
Q-Factor General Quiz-7th April 2024, Quiz Club NITWQ-Factor General Quiz-7th April 2024, Quiz Club NITW
Q-Factor General Quiz-7th April 2024, Quiz Club NITWQuiz Club NITW
 

Dernier (20)

Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...
Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...
Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...
 
Mattingly "AI & Prompt Design: Large Language Models"
Mattingly "AI & Prompt Design: Large Language Models"Mattingly "AI & Prompt Design: Large Language Models"
Mattingly "AI & Prompt Design: Large Language Models"
 
Q-Factor HISPOL Quiz-6th April 2024, Quiz Club NITW
Q-Factor HISPOL Quiz-6th April 2024, Quiz Club NITWQ-Factor HISPOL Quiz-6th April 2024, Quiz Club NITW
Q-Factor HISPOL Quiz-6th April 2024, Quiz Club NITW
 
Grade Three -ELLNA-REVIEWER-ENGLISH.pptx
Grade Three -ELLNA-REVIEWER-ENGLISH.pptxGrade Three -ELLNA-REVIEWER-ENGLISH.pptx
Grade Three -ELLNA-REVIEWER-ENGLISH.pptx
 
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxQ4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
 
prashanth updated resume 2024 for Teaching Profession
prashanth updated resume 2024 for Teaching Professionprashanth updated resume 2024 for Teaching Profession
prashanth updated resume 2024 for Teaching Profession
 
Measures of Position DECILES for ungrouped data
Measures of Position DECILES for ungrouped dataMeasures of Position DECILES for ungrouped data
Measures of Position DECILES for ungrouped data
 
MS4 level being good citizen -imperative- (1) (1).pdf
MS4 level   being good citizen -imperative- (1) (1).pdfMS4 level   being good citizen -imperative- (1) (1).pdf
MS4 level being good citizen -imperative- (1) (1).pdf
 
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptxDecoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
 
Mythology Quiz-4th April 2024, Quiz Club NITW
Mythology Quiz-4th April 2024, Quiz Club NITWMythology Quiz-4th April 2024, Quiz Club NITW
Mythology Quiz-4th April 2024, Quiz Club NITW
 
Scientific Writing :Research Discourse
Scientific  Writing :Research  DiscourseScientific  Writing :Research  Discourse
Scientific Writing :Research Discourse
 
Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management system
 
Transaction Management in Database Management System
Transaction Management in Database Management SystemTransaction Management in Database Management System
Transaction Management in Database Management System
 
DIFFERENT BASKETRY IN THE PHILIPPINES PPT.pptx
DIFFERENT BASKETRY IN THE PHILIPPINES PPT.pptxDIFFERENT BASKETRY IN THE PHILIPPINES PPT.pptx
DIFFERENT BASKETRY IN THE PHILIPPINES PPT.pptx
 
Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...
Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...
Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...
 
Mental Health Awareness - a toolkit for supporting young minds
Mental Health Awareness - a toolkit for supporting young mindsMental Health Awareness - a toolkit for supporting young minds
Mental Health Awareness - a toolkit for supporting young minds
 
Reading and Writing Skills 11 quarter 4 melc 1
Reading and Writing Skills 11 quarter 4 melc 1Reading and Writing Skills 11 quarter 4 melc 1
Reading and Writing Skills 11 quarter 4 melc 1
 
ClimART Action | eTwinning Project
ClimART Action    |    eTwinning ProjectClimART Action    |    eTwinning Project
ClimART Action | eTwinning Project
 
Active Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdfActive Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdf
 
Q-Factor General Quiz-7th April 2024, Quiz Club NITW
Q-Factor General Quiz-7th April 2024, Quiz Club NITWQ-Factor General Quiz-7th April 2024, Quiz Club NITW
Q-Factor General Quiz-7th April 2024, Quiz Club NITW
 

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.