SlideShare ist ein Scribd-Unternehmen logo
1 von 31
Uniqueness quantifier
 denoted by ∃! or ∃1
 The notation ∃!x P(x) [or ∃1xP(x)] states “There
exists a unique x such that P(x) is true.”
 There is exactly one
 There is one and only one
Quantifiers with restricted domain
 An abbreviated notation is used to restrict the domain of a
quantifier
 Example:
 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?
solution
 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 ∀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.”
 Finally, the statement ∃z > 0 (z2 = 2) states that there exists a
real number z with z > 0 such that z2 = 2.
That is, it states “There is a positive square root of 2.”
Precedence of qualifiers
 The quantifiers ∀ and ∃ have higher precedence
than all logical operators from propositional
calculus.
 Example, ∀xP(x) ∨ Q(x) is the disjunction of
∀xP(x) and Q(x).
 In other words, it means (∀xP(x)) ∨ Q(x) rather
than ∀x(P(x) ∨ Q(x)).
Binding variables
 When a quantifier is used on the variable x, we say
that this occurrence of the variable is bound.
 An occurrence of a variable that is not bound by a
quantifier or set equal to a particular value is said to
be free.
 All variables that occur in a propositional function
must be bound or set equal to a particular value to
turn it into a proposition
 The part of logical expression to which a quantifier is
applied is called the scope of this quantifier
example
 ∃x(x + y = 1), the variable x is bound by the
existential quantification , but variable y is free
because it is not bounded by any quantifier and
has no value assigned to it. Hence x is bounded
and y is free
 ∃x(P(x) ∧ Q(x)) ∨ ∀x R(x), here all variables are
bounded. Scope of x in the first quantifier is
different from the rest of the statement.
Logical equivalences using quantifiers
 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.
 Denoted by S ≡ T, where S and T are two
statements involving predicates and quantifiers
example
 Show that ∀x(P(x) ∧ Q(x)) and ∀x P(x) ∧ ∀x Q(x)
are logically equivalent.
Negating quantifier expression-
universal quantification
 ¬∀x P(x) ≡ ∃x ¬P(x)
 Example
 “Every student in your class has taken a course in
calculus
solution
 “It is not the case that every student in your class
has taken a course in calculus.” or
 “There is a student in your class who has not
taken a course in calculus
Existential quantification
 ¬∃x Q(x) ≡ ∀x ¬Q(x)
 “There is a student in this class who has taken a
course in calculus.”
solution
 It is not the case that there is a student in this
class who has taken a course in calculus
 Every student in this class has not taken calculus
 What are the negations of the statements “There
is an honest politician” and “All Americans eat
cheeseburgers”?
 What are the negations of the statements ∀ x(x2 > x)
and ∃x(x2 = 2)?
 Show that ¬∀x(P(x) → Q(x)) and ∃x(P(x)∧¬Q(x))
are logically equivalent.
Translating English into logical
expressions
 Express the statement “Every student in this class
has studied calculus” using predicates and
quantifiers.
 Express the statements “Some student in this
class has visited Mexico” and “Every student in
this class has visited either Canada or Mexico”
using predicates and quantifiers.
Using quantifiers in system
specifications
 Use predicates and quantifiers to express the
system specifications “Every mail message larger
than one megabyte will be compressed” and “If a
user is active, at least one network link will be
available.”
Examples from Lewis Carroll
 Consider these statements. The first two are
called premises and the third is called the
conclusion.The entire set is called an argument.
 “All lions are fierce.”
 “Some lions do not drink coffee.”
 “Some fierce creatures do not drink coffee.”
 Consider these statements, of which the first
three are premises and the fourth is a valid
conclusion.
 “All hummingbirds are richly colored.”
 “No large birds live on honey.”
 “Birds that do not live on honey are dull in color.”
 “Hummingbirds are small.”
Exercise problems
 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))
homework
 Translate these statements into English, where
R(x) is “x is a rabbit” and H(x) is “x hops” and the
domain consists of all animals.
a) ∀x(R(x) → H(x)) b) ∀x(R(x) ∧ H(x))
c) ∃x(R(x) → H(x)) d) ∃x(R(x) ∧ H(x))
Exercise problem
 Suppose that the domain of the propositional
function P(x) consists of the integers −2, −1, 0, 1,
and 2. Write out each of these propositions using
disjunctions, conjunctions, and negations.
 a) ∃xP(x) b) ∀xP(x) c) ∃x¬P(x)
 d) ∀x¬P(x) e) ¬∃xP(x) f ) ¬∀xP(x)
Home work
 Suppose that the domain of the propositional
function P(x) consists of the integers 1, 2, 3, 4,
and 5. Express these statements without using
quantifiers, instead using only negations,
disjunctions, and conjunctions.
 a) ∃xP(x) b) ∀xP(x)
 c) ¬∃xP(x) d) ¬∀xP(x)
 e) ∀x((x = 3) → P(x)) ∨ ∃x¬P(x)
Exercise problem
 For each of these statements find a domain for
which the statement is true and a domain for
which the statement is false.
a) Everyone is studying discrete mathematics.
b) Everyone is older than 21 years.
c) Every two people have the same mother.
d) No two different people have the same
grandmother.
Home work
 For each of these statements find a domain for
which the statement is true and a domain for
which the statement is false.
a) Everyone speaks Hindi.
b) There is someone older than 21 years.
c) Every two people have the same first name.
d) Someone knows more than two other people.
 Translate in two ways each of these statements into logical
expressions using predicates, quantifiers, and logical
connectives. First, let the domain consist of the students in
your class and second, let it consist of all people.
a) Someone in your class can speak Hindi.
b) Everyone in your class is friendly.
c) There is a person in your class who was not born in
California.
d) A student in your class has been in a movie.
e) No student in your class has taken a course in logic
programming.
 Translate each of these statements into logical
expressions using predicates, quantifiers, and logical
connectives.
a) No one is perfect.
b) Not everyone is perfect.
c) All your friends are perfect.
d) At least one of your friends is perfect
e) Everyone is your friend and is perfect.
f ) Not everybody is your friend or someone is not perfect.
 Translate each of these statements into logical expressions
using predicates, quantifiers, and logical connectives.
a) Something is not in the correct place.
b) All tools are in the correct place and are in excellent
condition.
c) Everything is in the correct place and in excellent condition.
d) Nothing is in the correct place and is in excellent condition.
e) One of your tools is not in the correct place, but it is in
excellent condition.
 Express each of these statements using logical
operators, predicates, and quantifiers.
a) Some propositions are tautologies.
b) The negation of a contradiction is a tautology.
c) The disjunction of two contingencies can be a
tautology.
d) The conjunction of two tautologies is a tautology.

Weitere ähnliche Inhalte

Was ist angesagt?

Mathematical Induction
Mathematical InductionMathematical Induction
Mathematical Induction
Edelyn Cagas
 
Counting, mathematical induction and discrete probability
Counting, mathematical induction and discrete probabilityCounting, mathematical induction and discrete probability
Counting, mathematical induction and discrete probability
SURBHI SAROHA
 
systems of linear equations & matrices
systems of linear equations & matricessystems of linear equations & matrices
systems of linear equations & matrices
Student
 
5.4 mathematical induction
5.4 mathematical induction5.4 mathematical induction
5.4 mathematical induction
math260
 
PPt on Functions
PPt on FunctionsPPt on Functions
PPt on Functions
coolhanddav
 
Exponential and logarithmic functions
Exponential and logarithmic functionsExponential and logarithmic functions
Exponential and logarithmic functions
Njabulo Nkabinde
 

Was ist angesagt? (20)

Mathematical Induction
Mathematical InductionMathematical Induction
Mathematical Induction
 
Recursion DM
Recursion DMRecursion DM
Recursion DM
 
Counting, mathematical induction and discrete probability
Counting, mathematical induction and discrete probabilityCounting, mathematical induction and discrete probability
Counting, mathematical induction and discrete probability
 
Functions in discrete mathematics
Functions in discrete mathematicsFunctions in discrete mathematics
Functions in discrete mathematics
 
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
 
Nested quantifiers
Nested quantifiersNested quantifiers
Nested quantifiers
 
Proof by contradiction
Proof by contradictionProof by contradiction
Proof by contradiction
 
Discrete Math Lecture 01: Propositional Logic
Discrete Math Lecture 01: Propositional LogicDiscrete Math Lecture 01: Propositional Logic
Discrete Math Lecture 01: Propositional Logic
 
Logical equivalence, laws of logic
Logical equivalence, laws of logicLogical equivalence, laws of logic
Logical equivalence, laws of logic
 
Partial Differentiation & Application
Partial Differentiation & Application Partial Differentiation & Application
Partial Differentiation & Application
 
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
 
Combinatorics
CombinatoricsCombinatorics
Combinatorics
 
systems of linear equations & matrices
systems of linear equations & matricessystems of linear equations & matrices
systems of linear equations & matrices
 
Pigeonhole Principle - Seminar In Problem Solving In Mathematics
Pigeonhole Principle - Seminar In Problem Solving In MathematicsPigeonhole Principle - Seminar In Problem Solving In Mathematics
Pigeonhole Principle - Seminar In Problem Solving In Mathematics
 
Poset in Relations(Discrete Mathematics)
Poset in Relations(Discrete Mathematics)Poset in Relations(Discrete Mathematics)
Poset in Relations(Discrete Mathematics)
 
5.4 mathematical induction
5.4 mathematical induction5.4 mathematical induction
5.4 mathematical induction
 
PPt on Functions
PPt on FunctionsPPt on Functions
PPt on Functions
 
Exponential and logarithmic functions
Exponential and logarithmic functionsExponential and logarithmic functions
Exponential and logarithmic functions
 
Interpolation with Finite differences
Interpolation with Finite differencesInterpolation with Finite differences
Interpolation with Finite differences
 
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
 

Ähnlich wie Unit 1 quantifiers

Nested Quantifiers.pptx
Nested Quantifiers.pptxNested Quantifiers.pptx
Nested Quantifiers.pptx
Jeevan225779
 

Ähnlich wie Unit 1 quantifiers (20)

Chapter 01 - p2.pdf
Chapter 01 - p2.pdfChapter 01 - p2.pdf
Chapter 01 - p2.pdf
 
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
 
Nested Quantifiers.pptx
Nested Quantifiers.pptxNested Quantifiers.pptx
Nested Quantifiers.pptx
 
Quantifiers and its Types
Quantifiers and its TypesQuantifiers and its Types
Quantifiers and its Types
 
Discrete Structure Lecture #5 & 6.pdf
Discrete Structure Lecture #5 & 6.pdfDiscrete Structure Lecture #5 & 6.pdf
Discrete Structure Lecture #5 & 6.pdf
 
Quantification
QuantificationQuantification
Quantification
 
Per3 logika
Per3 logikaPer3 logika
Per3 logika
 
Chapter1p2.pptx
Chapter1p2.pptxChapter1p2.pptx
Chapter1p2.pptx
 
Chapter1p2.pptx
Chapter1p2.pptxChapter1p2.pptx
Chapter1p2.pptx
 
SESSION-11 PPT.pptx
SESSION-11 PPT.pptxSESSION-11 PPT.pptx
SESSION-11 PPT.pptx
 
Nested loop
Nested loopNested loop
Nested loop
 
FOLBUKCFAIZ.pptx
FOLBUKCFAIZ.pptxFOLBUKCFAIZ.pptx
FOLBUKCFAIZ.pptx
 
Predicate_Logic.pdf
Predicate_Logic.pdfPredicate_Logic.pdf
Predicate_Logic.pdf
 
PredicateLogic (1).ppt
PredicateLogic (1).pptPredicateLogic (1).ppt
PredicateLogic (1).ppt
 
PredicateLogic.pptx
PredicateLogic.pptxPredicateLogic.pptx
PredicateLogic.pptx
 
IVR - Chapter 1 - Introduction
IVR - Chapter 1 - IntroductionIVR - Chapter 1 - Introduction
IVR - Chapter 1 - Introduction
 
Unit 1-logic
Unit 1-logicUnit 1-logic
Unit 1-logic
 
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
 
Predicate &amp; quantifier
Predicate &amp; quantifierPredicate &amp; quantifier
Predicate &amp; quantifier
 

Mehr von raksharao

Mehr von raksharao (20)

Unit 1 rules of inference
Unit 1  rules of inferenceUnit 1  rules of inference
Unit 1 rules of inference
 
Unit 1 introduction to proofs
Unit 1  introduction to proofsUnit 1  introduction to proofs
Unit 1 introduction to proofs
 
Unit 7 verification &amp; validation
Unit 7 verification &amp; validationUnit 7 verification &amp; validation
Unit 7 verification &amp; validation
 
Unit 6 input modeling problems
Unit 6 input modeling problemsUnit 6 input modeling problems
Unit 6 input modeling problems
 
Unit 6 input modeling
Unit 6 input modeling Unit 6 input modeling
Unit 6 input modeling
 
Unit 5 general principles, simulation software
Unit 5 general principles, simulation softwareUnit 5 general principles, simulation software
Unit 5 general principles, simulation software
 
Unit 5 general principles, simulation software problems
Unit 5  general principles, simulation software problemsUnit 5  general principles, simulation software problems
Unit 5 general principles, simulation software problems
 
Unit 4 queuing models
Unit 4 queuing modelsUnit 4 queuing models
Unit 4 queuing models
 
Unit 4 queuing models problems
Unit 4 queuing models problemsUnit 4 queuing models problems
Unit 4 queuing models problems
 
Unit 3 random number generation, random-variate generation
Unit 3 random number generation, random-variate generationUnit 3 random number generation, random-variate generation
Unit 3 random number generation, random-variate generation
 
Unit 1 introduction contd
Unit 1 introduction contdUnit 1 introduction contd
Unit 1 introduction contd
 
Unit 1 introduction
Unit 1 introductionUnit 1 introduction
Unit 1 introduction
 
Module1 part2
Module1 part2Module1 part2
Module1 part2
 
Module1 Mobile Computing Architecture
Module1 Mobile Computing ArchitectureModule1 Mobile Computing Architecture
Module1 Mobile Computing Architecture
 
java-Unit4 chap2- awt controls and layout managers of applet
java-Unit4 chap2- awt controls and layout managers of appletjava-Unit4 chap2- awt controls and layout managers of applet
java-Unit4 chap2- awt controls and layout managers of applet
 
java Unit4 chapter1 applets
java Unit4 chapter1 appletsjava Unit4 chapter1 applets
java Unit4 chapter1 applets
 
Chap3 multi threaded programming
Chap3 multi threaded programmingChap3 multi threaded programming
Chap3 multi threaded programming
 
Java-Unit 3- Chap2 exception handling
Java-Unit 3- Chap2 exception handlingJava-Unit 3- Chap2 exception handling
Java-Unit 3- Chap2 exception handling
 
FIT-Unit3 chapter2- Computer Languages
FIT-Unit3 chapter2- Computer LanguagesFIT-Unit3 chapter2- Computer Languages
FIT-Unit3 chapter2- Computer Languages
 
FIT-Unit3 chapter 1 -computer program
FIT-Unit3 chapter 1 -computer programFIT-Unit3 chapter 1 -computer program
FIT-Unit3 chapter 1 -computer program
 

Kürzlich hochgeladen

Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
kauryashika82
 
Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.
MateoGardella
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
heathfieldcps1
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
QucHHunhnh
 
An Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfAn Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdf
SanaAli374401
 

Kürzlich hochgeladen (20)

Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 
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 ...
 
Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
An Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfAn Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdf
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 

Unit 1 quantifiers

  • 1. Uniqueness quantifier  denoted by ∃! or ∃1  The notation ∃!x P(x) [or ∃1xP(x)] states “There exists a unique x such that P(x) is true.”  There is exactly one  There is one and only one
  • 2. Quantifiers with restricted domain  An abbreviated notation is used to restrict the domain of a quantifier  Example:  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?
  • 3. solution  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 ∀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.”  Finally, the statement ∃z > 0 (z2 = 2) states that there exists a real number z with z > 0 such that z2 = 2. That is, it states “There is a positive square root of 2.”
  • 4. Precedence of qualifiers  The quantifiers ∀ and ∃ have higher precedence than all logical operators from propositional calculus.  Example, ∀xP(x) ∨ Q(x) is the disjunction of ∀xP(x) and Q(x).  In other words, it means (∀xP(x)) ∨ Q(x) rather than ∀x(P(x) ∨ Q(x)).
  • 5. Binding variables  When a quantifier is used on the variable x, we say that this occurrence of the variable is bound.  An occurrence of a variable that is not bound by a quantifier or set equal to a particular value is said to be free.  All variables that occur in a propositional function must be bound or set equal to a particular value to turn it into a proposition  The part of logical expression to which a quantifier is applied is called the scope of this quantifier
  • 6. example  ∃x(x + y = 1), the variable x is bound by the existential quantification , but variable y is free because it is not bounded by any quantifier and has no value assigned to it. Hence x is bounded and y is free  ∃x(P(x) ∧ Q(x)) ∨ ∀x R(x), here all variables are bounded. Scope of x in the first quantifier is different from the rest of the statement.
  • 7. Logical equivalences using quantifiers  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.  Denoted by S ≡ T, where S and T are two statements involving predicates and quantifiers
  • 8. example  Show that ∀x(P(x) ∧ Q(x)) and ∀x P(x) ∧ ∀x Q(x) are logically equivalent.
  • 9. Negating quantifier expression- universal quantification  ¬∀x P(x) ≡ ∃x ¬P(x)  Example  “Every student in your class has taken a course in calculus
  • 10. solution  “It is not the case that every student in your class has taken a course in calculus.” or  “There is a student in your class who has not taken a course in calculus
  • 11. Existential quantification  ¬∃x Q(x) ≡ ∀x ¬Q(x)  “There is a student in this class who has taken a course in calculus.”
  • 12. solution  It is not the case that there is a student in this class who has taken a course in calculus  Every student in this class has not taken calculus
  • 13.
  • 14.  What are the negations of the statements “There is an honest politician” and “All Americans eat cheeseburgers”?
  • 15.  What are the negations of the statements ∀ x(x2 > x) and ∃x(x2 = 2)?
  • 16.  Show that ¬∀x(P(x) → Q(x)) and ∃x(P(x)∧¬Q(x)) are logically equivalent.
  • 17. Translating English into logical expressions  Express the statement “Every student in this class has studied calculus” using predicates and quantifiers.
  • 18.  Express the statements “Some student in this class has visited Mexico” and “Every student in this class has visited either Canada or Mexico” using predicates and quantifiers.
  • 19. Using quantifiers in system specifications  Use predicates and quantifiers to express the system specifications “Every mail message larger than one megabyte will be compressed” and “If a user is active, at least one network link will be available.”
  • 20. Examples from Lewis Carroll  Consider these statements. The first two are called premises and the third is called the conclusion.The entire set is called an argument.  “All lions are fierce.”  “Some lions do not drink coffee.”  “Some fierce creatures do not drink coffee.”
  • 21.  Consider these statements, of which the first three are premises and the fourth is a valid conclusion.  “All hummingbirds are richly colored.”  “No large birds live on honey.”  “Birds that do not live on honey are dull in color.”  “Hummingbirds are small.”
  • 22. Exercise problems  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))
  • 23. homework  Translate these statements into English, where R(x) is “x is a rabbit” and H(x) is “x hops” and the domain consists of all animals. a) ∀x(R(x) → H(x)) b) ∀x(R(x) ∧ H(x)) c) ∃x(R(x) → H(x)) d) ∃x(R(x) ∧ H(x))
  • 24. Exercise problem  Suppose that the domain of the propositional function P(x) consists of the integers −2, −1, 0, 1, and 2. Write out each of these propositions using disjunctions, conjunctions, and negations.  a) ∃xP(x) b) ∀xP(x) c) ∃x¬P(x)  d) ∀x¬P(x) e) ¬∃xP(x) f ) ¬∀xP(x)
  • 25. Home work  Suppose that the domain of the propositional function P(x) consists of the integers 1, 2, 3, 4, and 5. Express these statements without using quantifiers, instead using only negations, disjunctions, and conjunctions.  a) ∃xP(x) b) ∀xP(x)  c) ¬∃xP(x) d) ¬∀xP(x)  e) ∀x((x = 3) → P(x)) ∨ ∃x¬P(x)
  • 26. Exercise problem  For each of these statements find a domain for which the statement is true and a domain for which the statement is false. a) Everyone is studying discrete mathematics. b) Everyone is older than 21 years. c) Every two people have the same mother. d) No two different people have the same grandmother.
  • 27. Home work  For each of these statements find a domain for which the statement is true and a domain for which the statement is false. a) Everyone speaks Hindi. b) There is someone older than 21 years. c) Every two people have the same first name. d) Someone knows more than two other people.
  • 28.  Translate in two ways each of these statements into logical expressions using predicates, quantifiers, and logical connectives. First, let the domain consist of the students in your class and second, let it consist of all people. a) Someone in your class can speak Hindi. b) Everyone in your class is friendly. c) There is a person in your class who was not born in California. d) A student in your class has been in a movie. e) No student in your class has taken a course in logic programming.
  • 29.  Translate each of these statements into logical expressions using predicates, quantifiers, and logical connectives. a) No one is perfect. b) Not everyone is perfect. c) All your friends are perfect. d) At least one of your friends is perfect e) Everyone is your friend and is perfect. f ) Not everybody is your friend or someone is not perfect.
  • 30.  Translate each of these statements into logical expressions using predicates, quantifiers, and logical connectives. a) Something is not in the correct place. b) All tools are in the correct place and are in excellent condition. c) Everything is in the correct place and in excellent condition. d) Nothing is in the correct place and is in excellent condition. e) One of your tools is not in the correct place, but it is in excellent condition.
  • 31.  Express each of these statements using logical operators, predicates, and quantifiers. a) Some propositions are tautologies. b) The negation of a contradiction is a tautology. c) The disjunction of two contingencies can be a tautology. d) The conjunction of two tautologies is a tautology.