SlideShare una empresa de Scribd logo
1 de 15
Predicates and Quantifiers
Discrete Mathematics
Page 1 1
Slide Owner
• Istiak Ahmed
• Email- istiakahmed271@gmail.com
Page 2
2
Propositional Logic
• Atomic propositions: p, q, r, …
• Boolean operators:      
• Compound propositions: (p  q)  r
• Equivalences: pq ≡ (p  q)
• Proving equivalences using:
• Truth tables.
• Symbolic derivations (Laws).
Page 3
3
Predicate Logic
•Predicate logic is an extension of propositional
logic
•It permits concisely reasoning about whole
classes of entities.
•Examples of a class is an integer class, a student
in CSE Dept, etc.
Page 4 4
Applications of Predicate Logic
• It is the formal notation for writing perfectly clear,
concise, and unambiguous mathematical definitions,
axioms, and theorems for any branch of mathematics.
• Statements like x > 5 are neither true nor false when
the value of x is not specified.
• Predicate logic can be used to make propositions from
such statements.
Page 5 5
Subjects and Predicates
• Example “The dog is sleeping”:
• In predicate logic, a predicate is modeled as a function P(
) from objects to propositions.
• P(x) = “x is sleeping” (where x is any object).
Page 6 6
More About Predicates
• Convention: Lowercase variables x, y, z... denote
objects/entities; uppercase variables P, Q, R… denote
propositional functions (predicates).
• The result of applying a predicate P to an object x is the
proposition P(x).
• The predicate P itself (e.g. P =“is sleeping”) is not a
proposition (not a complete sentence).
Page 7 7
Propositional Functions
• Predicate logic can also involve statements with more
than one variable or argument.
• E.g. let P(x,y,z) = “x gave y the grade z”, then if
x=“Mike”, y=“Mary”, z=“A”, then P(x,y,z) = “Mike gave
Mary the grade A.”
• E.g. let Q(x,y,z) = “x + y > z”, then what is the truth value of
Q(1,2,3)? – False
• Q(3,2,1)? -True
Page 8 8
Universes of Discourse
• A mathematical function may be valid for all values of
a variable in a particular domain, called the universe
of discourse.
• E.g., let P(x)=“x+1>x”. We can then say,
“For any number x, P(x) is true” instead of
(0+1>0)  (1+1>1)  (2+1>2)  ...
Page 9 9
Quantifier Expressions
• “” is the FOR LL or universal quantifier.
x P(x) means “P(x) is true for all values of x in the universe
of discourse”.
• “” is the XISTS or existential quantifier.
x P(x) means “there exists an x in the u.d. (that is, 1 or
more) such that P(x) is true”.
Page 10 10
The Universal Quantifier 
• Example:
Let the u.d. of x be parking spaces at BU.
Let P(x) be the predicate “x is full.”
• Then the universal quantification of P(x),
• x P(x), is the proposition:
• “All parking spaces at BU are full.”
• “Every parking space at BU is full.”
• “For each parking space at BU, that space is full.”
Page 11 11
The Existential Quantifier 
• Example:
Let the u.d. of x be parking spaces at BU.
Let P(x) be the predicate “x is full.”
• Then the existential quantification of P(x),
x P(x), is the proposition:
• “There is a parking space at BU that is full.”
• “At least one parking space at BU is full.”
• “Some parking spaces at BU is full.”
Page 12 12
Quantifier Equivalence Laws
• Definitions of quantifiers: If u.d.=a,b,c,…
x P(x) ≡ P(a)  P(b)  P(c)  …
x P(x) ≡ P(a)  P(b)  P(c)  …
• x y P(x,y) ≡ y x P(x,y)
x y P(x,y) ≡ y x P(x,y)
• x (P(x)  Q(x)) ≡ (x P(x))  (x Q(x))
x (P(x)  Q(x)) ≡ (x P(x))  (x Q(x))
Page 13 13
Negation Example
• x P(x) ≡ x P(x)
• P(x)=“x is a student of cse” where u.d. is the students of this
class
• So, x P(x) = “All students in this class is a student of cse”
• The negation of this x P(x) = “Not every student in this
class is a student of cse”
• This is the same as x P(x) = “There is a student x who is
not a student of cse”
Page 14 14
Thanks To All
Page 15 15

Más contenido relacionado

La actualidad más candente

Second order homogeneous linear differential equations
Second order homogeneous linear differential equations Second order homogeneous linear differential equations
Second order homogeneous linear differential equations
Viraj Patel
 
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
 
Discrete Mathematics Lecture
Discrete Mathematics LectureDiscrete Mathematics Lecture
Discrete Mathematics Lecture
Genie Rose Santos
 

La actualidad más candente (20)

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
 
First Order Predicate Logic Examples| Different Examples
First Order Predicate Logic Examples| Different ExamplesFirst Order Predicate Logic Examples| Different Examples
First Order Predicate Logic Examples| Different Examples
 
Propositional logic
Propositional logicPropositional logic
Propositional logic
 
Predicate Logic
Predicate LogicPredicate Logic
Predicate Logic
 
Multiple Choice Questions - Numerical Methods
Multiple Choice Questions - Numerical MethodsMultiple Choice Questions - Numerical Methods
Multiple Choice Questions - Numerical Methods
 
Theory of computing
Theory of computingTheory of computing
Theory of computing
 
lattice
 lattice lattice
lattice
 
Differential equations
Differential equationsDifferential equations
Differential equations
 
Discrete Math Lecture 01: Propositional Logic
Discrete Math Lecture 01: Propositional LogicDiscrete Math Lecture 01: Propositional Logic
Discrete Math Lecture 01: Propositional Logic
 
Recursion DM
Recursion DMRecursion DM
Recursion DM
 
Rules of inference
Rules of inferenceRules of inference
Rules of inference
 
Applications of linear algebra in computer science
Applications of linear algebra in computer scienceApplications of linear algebra in computer science
Applications of linear algebra in computer science
 
Second order homogeneous linear differential equations
Second order homogeneous linear differential equations Second order homogeneous linear differential equations
Second order homogeneous linear differential equations
 
Vector Spaces,subspaces,Span,Basis
Vector Spaces,subspaces,Span,BasisVector Spaces,subspaces,Span,Basis
Vector Spaces,subspaces,Span,Basis
 
Counting, mathematical induction and discrete probability
Counting, mathematical induction and discrete probabilityCounting, mathematical induction and discrete probability
Counting, mathematical induction and discrete probability
 
13 Boolean Algebra
13 Boolean Algebra13 Boolean Algebra
13 Boolean Algebra
 
Partial differential equations
Partial differential equationsPartial differential equations
Partial differential equations
 
Boolean Algebra
Boolean AlgebraBoolean Algebra
Boolean Algebra
 
Discrete Mathematics Lecture
Discrete Mathematics LectureDiscrete Mathematics Lecture
Discrete Mathematics Lecture
 
CMSC 56 | Lecture 4: Rules of Inference
CMSC 56 | Lecture 4: Rules of InferenceCMSC 56 | Lecture 4: Rules of Inference
CMSC 56 | Lecture 4: Rules of Inference
 

Destacado (12)

Quantifiers
QuantifiersQuantifiers
Quantifiers
 
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
 
Predicate Calculus
Predicate CalculusPredicate Calculus
Predicate Calculus
 
Mathematical Logic - Part 1
Mathematical Logic - Part 1Mathematical Logic - Part 1
Mathematical Logic - Part 1
 
Quantifiers
QuantifiersQuantifiers
Quantifiers
 
Quantifiers
QuantifiersQuantifiers
Quantifiers
 
Quantifiers
QuantifiersQuantifiers
Quantifiers
 
Quantifiers
QuantifiersQuantifiers
Quantifiers
 
Quantifiers
QuantifiersQuantifiers
Quantifiers
 
QUANTIFIERS
QUANTIFIERSQUANTIFIERS
QUANTIFIERS
 
Quantifiers
QuantifiersQuantifiers
Quantifiers
 
Quantifiers
QuantifiersQuantifiers
Quantifiers
 

Similar a Predicates and Quantifiers

Probability_Review HELPFUL IN STATISTICS.ppt
Probability_Review HELPFUL IN STATISTICS.pptProbability_Review HELPFUL IN STATISTICS.ppt
Probability_Review HELPFUL IN STATISTICS.ppt
ShamshadAli58
 

Similar a Predicates and 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
 
PredicateLogic (1).ppt
PredicateLogic (1).pptPredicateLogic (1).ppt
PredicateLogic (1).ppt
 
PredicateLogic.pptx
PredicateLogic.pptxPredicateLogic.pptx
PredicateLogic.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
 
Predicate & quantifier
Predicate & quantifierPredicate & quantifier
Predicate & quantifier
 
Quantifiers and its Types
Quantifiers and its TypesQuantifiers and its Types
Quantifiers and its Types
 
Probability_Review.ppt
Probability_Review.pptProbability_Review.ppt
Probability_Review.ppt
 
Probability_Review.ppt
Probability_Review.pptProbability_Review.ppt
Probability_Review.ppt
 
Probability_Review.ppt
Probability_Review.pptProbability_Review.ppt
Probability_Review.ppt
 
Probability_Review.ppt
Probability_Review.pptProbability_Review.ppt
Probability_Review.ppt
 
Probability_Review.ppt
Probability_Review.pptProbability_Review.ppt
Probability_Review.ppt
 
Probability_Review.ppt
Probability_Review.pptProbability_Review.ppt
Probability_Review.ppt
 
Probability_Review.ppt for your knowledg
Probability_Review.ppt for your knowledgProbability_Review.ppt for your knowledg
Probability_Review.ppt for your knowledg
 
Probability_Review.ppt
Probability_Review.pptProbability_Review.ppt
Probability_Review.ppt
 
Probability_Review HELPFUL IN STATISTICS.ppt
Probability_Review HELPFUL IN STATISTICS.pptProbability_Review HELPFUL IN STATISTICS.ppt
Probability_Review HELPFUL IN STATISTICS.ppt
 
Module_5_1.pptx
Module_5_1.pptxModule_5_1.pptx
Module_5_1.pptx
 
Probability statistics assignment help
Probability statistics assignment helpProbability statistics assignment help
Probability statistics assignment help
 
Chapter 01 - p2.pdf
Chapter 01 - p2.pdfChapter 01 - p2.pdf
Chapter 01 - p2.pdf
 
Per3 logika
Per3 logikaPer3 logika
Per3 logika
 
dma_ppt.pdf
dma_ppt.pdfdma_ppt.pdf
dma_ppt.pdf
 

Último

FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
dollysharma2066
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
ssuser89054b
 

Último (20)

Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torque
 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdf
 
Unit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdfUnit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdf
 
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced LoadsFEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
 
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
 
Block diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptBlock diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.ppt
 
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
 
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
 
Work-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxWork-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptx
 

Predicates and Quantifiers

  • 1. Predicates and Quantifiers Discrete Mathematics Page 1 1
  • 2. Slide Owner • Istiak Ahmed • Email- istiakahmed271@gmail.com Page 2 2
  • 3. Propositional Logic • Atomic propositions: p, q, r, … • Boolean operators:       • Compound propositions: (p  q)  r • Equivalences: pq ≡ (p  q) • Proving equivalences using: • Truth tables. • Symbolic derivations (Laws). Page 3 3
  • 4. Predicate Logic •Predicate logic is an extension of propositional logic •It permits concisely reasoning about whole classes of entities. •Examples of a class is an integer class, a student in CSE Dept, etc. Page 4 4
  • 5. Applications of Predicate Logic • It is the formal notation for writing perfectly clear, concise, and unambiguous mathematical definitions, axioms, and theorems for any branch of mathematics. • Statements like x > 5 are neither true nor false when the value of x is not specified. • Predicate logic can be used to make propositions from such statements. Page 5 5
  • 6. Subjects and Predicates • Example “The dog is sleeping”: • In predicate logic, a predicate is modeled as a function P( ) from objects to propositions. • P(x) = “x is sleeping” (where x is any object). Page 6 6
  • 7. More About Predicates • Convention: Lowercase variables x, y, z... denote objects/entities; uppercase variables P, Q, R… denote propositional functions (predicates). • The result of applying a predicate P to an object x is the proposition P(x). • The predicate P itself (e.g. P =“is sleeping”) is not a proposition (not a complete sentence). Page 7 7
  • 8. Propositional Functions • Predicate logic can also involve statements with more than one variable or argument. • E.g. let P(x,y,z) = “x gave y the grade z”, then if x=“Mike”, y=“Mary”, z=“A”, then P(x,y,z) = “Mike gave Mary the grade A.” • E.g. let Q(x,y,z) = “x + y > z”, then what is the truth value of Q(1,2,3)? – False • Q(3,2,1)? -True Page 8 8
  • 9. Universes of Discourse • A mathematical function may be valid for all values of a variable in a particular domain, called the universe of discourse. • E.g., let P(x)=“x+1>x”. We can then say, “For any number x, P(x) is true” instead of (0+1>0)  (1+1>1)  (2+1>2)  ... Page 9 9
  • 10. Quantifier Expressions • “” is the FOR LL or universal quantifier. x P(x) means “P(x) is true for all values of x in the universe of discourse”. • “” is the XISTS or existential quantifier. x P(x) means “there exists an x in the u.d. (that is, 1 or more) such that P(x) is true”. Page 10 10
  • 11. The Universal Quantifier  • Example: Let the u.d. of x be parking spaces at BU. Let P(x) be the predicate “x is full.” • Then the universal quantification of P(x), • x P(x), is the proposition: • “All parking spaces at BU are full.” • “Every parking space at BU is full.” • “For each parking space at BU, that space is full.” Page 11 11
  • 12. The Existential Quantifier  • Example: Let the u.d. of x be parking spaces at BU. Let P(x) be the predicate “x is full.” • Then the existential quantification of P(x), x P(x), is the proposition: • “There is a parking space at BU that is full.” • “At least one parking space at BU is full.” • “Some parking spaces at BU is full.” Page 12 12
  • 13. Quantifier Equivalence Laws • Definitions of quantifiers: If u.d.=a,b,c,… x P(x) ≡ P(a)  P(b)  P(c)  … x P(x) ≡ P(a)  P(b)  P(c)  … • x y P(x,y) ≡ y x P(x,y) x y P(x,y) ≡ y x P(x,y) • x (P(x)  Q(x)) ≡ (x P(x))  (x Q(x)) x (P(x)  Q(x)) ≡ (x P(x))  (x Q(x)) Page 13 13
  • 14. Negation Example • x P(x) ≡ x P(x) • P(x)=“x is a student of cse” where u.d. is the students of this class • So, x P(x) = “All students in this class is a student of cse” • The negation of this x P(x) = “Not every student in this class is a student of cse” • This is the same as x P(x) = “There is a student x who is not a student of cse” Page 14 14