SlideShare a Scribd company logo
Propositional Logic - II
[Universal and Existential Quantifiers]
Maham Noor
Propositional Logic Vs Predicate Logic
•Propositional Logic deals with statements that are true or false but does not involve
variables or quantifiers. For example, "It is raining" (true/false).
•Predicate Logic introduces variables, predicates, and quantifiers to express more complex
statements about objects and their properties, like "Some stones are precious."
English-to-Symbolic Form
• Some stones are precious.
• All grapes are red.
• There is an honest politician
• Some celebrities are invited.
• Few students are present.
English-to-Symbolic Form
Some stones are precious.
This is a logical assertation about a set of objects (stones) and a property (being precious)
In predicate logic we represent such statements using quantifiers and predicates
x: set of stones (universe of discourse)
x: represents the set of stones. This is the domain of the discourse (all objects we are talking about)
Precious (x) : A predicate that means x is precious
Representation in Predicate Logic:
Some stones are precious is represented as
: existential quantifier which means “there exists”
x refers to an element in the set of stones
Precious (x): asserts that x has the property of being precious
Together, x Precious(x) means "There exists at least one stone x such that x is precious."
∃
English-to-Symbolic Form
• All grapes are red.
x: set of grapes (universe of discourse)
Red (x) : x is a red grape
all grapes are red:
English-to-Symbolic Form
• All students are hungry.
x: set of students (universe of discourse)
Hungry (x) : x is a hungry student
all students are hungry:
Propositional Function - Predicate
Propositional Function
Quantifiers
Universal Quantifiers
Example
Let P(x) be “x must take Discrete Mathematics course”,
And let Q(x) be “x is a Computer Science student”.
The Universe of discourse is all UCP students.
• Express the statement mathematically: “Every computer science student
must take discrete mathematics course”
Example
• Let be “x must take Discrete Mathematics course”,
And let be “x is a Computer Science student”.
The Universe of discourse is all UCP students ().
• Express the statement: “Every computer science student must take discrete
mathematics course”
Example
• Let P(x) be “x must take Discrete Mathematics course”,
And let Q(x) be “x is a Computer Science student”.
The Universe of discourse is all UCP students.
• Express the statement: “Every computer science student must take discrete
mathematics course”
• Express the statement: “Everybody must take a discrete mathematics course
or be a computer science student”
Example
• Let P(x) be “x must take Discrete Mathematics course”,
And let Q(x) be “x is a Computer Science student”.
The Universe of discourse is all UCP students.
• Express the statement: “Every computer science student must take discrete
mathematics course”
• Express the statement: “Everybody must take a discrete mathematics course
or be a computer science student”
• ∀x(P(x) Q(x))
∨
Example
• Let P(x) be “x must take Discrete Mathematics course”,
And let Q(x) be “x is a Computer Science student”.
The Universe of discourse is all UCP students.
• Express the statement: “Every computer science student must take discrete
mathematics course”
• Express the statement: “Everybody must take a discrete mathematics course or
be a computer science student”.
• ∀x(P(x) Q(x))
∨
• Are these statements True or False?
Existential Quantifier
Truth Values of Quantifiers
Examples – Express in Mathematical Notation
• Product of two negative integers is positive.
Examples – Express in Mathematical Notation
• Product of two negative integers is positive.
Examples – Express in Mathematical Notation
• Product of two negative integers is positive.
• Average of two positive integers in positive.
Examples – Express in Mathematical Notation
• Product of two negative integers is positive.
• Average of two positive integers is positive.
Examples – Express in Mathematical Notation
• Product of two negative integers is positive.
• Average of two positive integers in positive.
• The difference of two negative integers is not necessarily negative.
Examples – Express in Mathematical Notation
• Product of two negative integers is positive.
• Average of two positive integers in positive.
• The difference of two negative integers is not necessarily negative.
Or we may write
Examples – Express in Mathematical Notation
• Product of two negative integers is positive.
• Average of two positive integers in positive.
• The difference of two negative integers is not necessarily negative.
• Absolute value of sum of two integers does not exceed the sum of the
absolute values of these integers.
Quantifiers – Negation
Quantifiers – Negation
Use De Morgan’s Law
Quantifiers – Negation
Use De Morgan’s Law
Quantifiers – Negation – Truth Values
Example – 1
Example – 1
• Negation
All politicians are dishonest
Writing in mathematical notation:
: set of all politicians
is honest
There is an honest politician:
Negation: All politicians are dishonest:
Example – 1
• Negation
There is an American who does not eat cheeseburger
: set of Americans
: eats Cheeseburger
Negation:
Example – 2
• 2nd
statement
Mixing Quantifiers – Nested Quantifiers
Mixing Quantifiers
Everybody loves everyone
Everybody loves somebody
Somebody loves somebody
Mixing Quantifiers
is a person
is a country
National: is national of
: National
Everyone belongs to some country
: National
There is a country, everybody
belongs to this country.
Nested Quantifiers – Truth Values
• Negation
Example – 3
Implication is equivalent to NOT P(x) or Q(x)
Use De Morgan’s Law
Example – 4
Example – 4
: Students in the class
has visited Mexico
==================
==
has visited Mexico
has visited Canada
: Students
is student in this class
has visited Mexico
====================
has visited Mexico
has visited Canada
Example – 5
Example – 5
• 1st
statement
mail message
is compressed
-----------------------------
Example – 5
• 1st
statement
mail message
is compressed
--------------------
• 2nd
statement
user, network link
is an active user
is available to user
Exercises – Lewis Carroll (Alice in Wonderland)
Exercises – Lewis Carroll (Alice in Wonderland)
creatures
is a lion
is fierce
drinks coffee
A)
• No doctors are enthusiastic;
• You are enthusiastic.
• Therefore, you are not a doctor
a person
is a Doctor
is enthusiastic
a) For all real numbers, there is a real number, which is greater than these numbers.
(not beautiful statement)
There are infinite real numbers.
b) Product of two non-negative real numbers is non-negative.
c) For any two real numbers, their product is a real number.
(more beautiful way)
Real number are closed with respect to multiplication. (closure property)
a)
b) .
c) .

More Related Content

PPT
1019Lec1.ppt
PDF
PPTX
Chapter 1.4.pptx Chapter 1.4.pptx DISCREATE MATH
PDF
Discrete Structure Lecture #5 & 6.pdf
PPTX
Natural language processing: word senses and relations
PPTX
Mathematical Language Presentationn.pptx
PPT
Predicates and Quantifiers
PPTX
1019Lec1.ppt
Chapter 1.4.pptx Chapter 1.4.pptx DISCREATE MATH
Discrete Structure Lecture #5 & 6.pdf
Natural language processing: word senses and relations
Mathematical Language Presentationn.pptx
Predicates and Quantifiers

Similar to Propositional Logic.pptx discrete mathmatics (20)

PPT
IDCB-IntroductionIDCB-IntroductionIDCB-IntroductionIDCB-IntroductionIDCB-Intr...
PPT
aiaiaiaiaiaiaiaiaiaiaiaiaiaiaiaiaiaiaiai
PPTX
PPTX
Module_5_1.pptx
PPTX
MODULE-2-PPT-MATH-LANGUAGE-AND-SYMBOLS-GC.pptx
PDF
Core Micro Lecture Preferences Utility and Choice
PDF
02 Predicates and Quantifiers is about predicates
PDF
Logic programming (1)
PDF
this is the presentation on Discrete Structures
PDF
DM_Lecturefgggfggggfrfcfggggghh_1(1).pdf
PPTX
predicate and appliedmathemeticsfour.pptx
PPTX
Basic Knowledge Representation and Reasonong
PPT
Lecture in predecate logical propostions
PPTX
MODULE 1: Random Variables and Probability Distributions Quarter 3 Statistics...
PPT
predicate logic proposition logic FirstOrderLogic.ppt
PPT
Knowledge Representation with predicate knoledgeFirstOrderLogic.ppt
PPTX
pengenalan matematika komputasi dan matematika diskrit
PDF
1-Discrete Mathematics - 1 - Unit - 1.pdf
KEY
Fundamental Principle of Counting
PPTX
Lecture in the predicates-quantifiers.pptx
IDCB-IntroductionIDCB-IntroductionIDCB-IntroductionIDCB-IntroductionIDCB-Intr...
aiaiaiaiaiaiaiaiaiaiaiaiaiaiaiaiaiaiaiai
Module_5_1.pptx
MODULE-2-PPT-MATH-LANGUAGE-AND-SYMBOLS-GC.pptx
Core Micro Lecture Preferences Utility and Choice
02 Predicates and Quantifiers is about predicates
Logic programming (1)
this is the presentation on Discrete Structures
DM_Lecturefgggfggggfrfcfggggghh_1(1).pdf
predicate and appliedmathemeticsfour.pptx
Basic Knowledge Representation and Reasonong
Lecture in predecate logical propostions
MODULE 1: Random Variables and Probability Distributions Quarter 3 Statistics...
predicate logic proposition logic FirstOrderLogic.ppt
Knowledge Representation with predicate knoledgeFirstOrderLogic.ppt
pengenalan matematika komputasi dan matematika diskrit
1-Discrete Mathematics - 1 - Unit - 1.pdf
Fundamental Principle of Counting
Lecture in the predicates-quantifiers.pptx
Ad

Recently uploaded (20)

PPTX
Pharma ospi slides which help in ospi learning
PDF
O7-L3 Supply Chain Operations - ICLT Program
PDF
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PDF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
PDF
Pre independence Education in Inndia.pdf
PDF
VCE English Exam - Section C Student Revision Booklet
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PPTX
Cell Structure & Organelles in detailed.
PPTX
Cell Types and Its function , kingdom of life
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PDF
RMMM.pdf make it easy to upload and study
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PPTX
Lesson notes of climatology university.
Pharma ospi slides which help in ospi learning
O7-L3 Supply Chain Operations - ICLT Program
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
Pharmacology of Heart Failure /Pharmacotherapy of CHF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
Pre independence Education in Inndia.pdf
VCE English Exam - Section C Student Revision Booklet
2.FourierTransform-ShortQuestionswithAnswers.pdf
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
Cell Structure & Organelles in detailed.
Cell Types and Its function , kingdom of life
O5-L3 Freight Transport Ops (International) V1.pdf
RMMM.pdf make it easy to upload and study
Supply Chain Operations Speaking Notes -ICLT Program
Lesson notes of climatology university.
Ad

Propositional Logic.pptx discrete mathmatics

  • 1. Propositional Logic - II [Universal and Existential Quantifiers] Maham Noor
  • 2. Propositional Logic Vs Predicate Logic •Propositional Logic deals with statements that are true or false but does not involve variables or quantifiers. For example, "It is raining" (true/false). •Predicate Logic introduces variables, predicates, and quantifiers to express more complex statements about objects and their properties, like "Some stones are precious."
  • 3. English-to-Symbolic Form • Some stones are precious. • All grapes are red. • There is an honest politician • Some celebrities are invited. • Few students are present.
  • 4. English-to-Symbolic Form Some stones are precious. This is a logical assertation about a set of objects (stones) and a property (being precious) In predicate logic we represent such statements using quantifiers and predicates x: set of stones (universe of discourse) x: represents the set of stones. This is the domain of the discourse (all objects we are talking about) Precious (x) : A predicate that means x is precious Representation in Predicate Logic: Some stones are precious is represented as : existential quantifier which means “there exists” x refers to an element in the set of stones Precious (x): asserts that x has the property of being precious Together, x Precious(x) means "There exists at least one stone x such that x is precious." ∃
  • 5. English-to-Symbolic Form • All grapes are red. x: set of grapes (universe of discourse) Red (x) : x is a red grape all grapes are red:
  • 6. English-to-Symbolic Form • All students are hungry. x: set of students (universe of discourse) Hungry (x) : x is a hungry student all students are hungry:
  • 11. Example Let P(x) be “x must take Discrete Mathematics course”, And let Q(x) be “x is a Computer Science student”. The Universe of discourse is all UCP students. • Express the statement mathematically: “Every computer science student must take discrete mathematics course”
  • 12. Example • Let be “x must take Discrete Mathematics course”, And let be “x is a Computer Science student”. The Universe of discourse is all UCP students (). • Express the statement: “Every computer science student must take discrete mathematics course”
  • 13. Example • Let P(x) be “x must take Discrete Mathematics course”, And let Q(x) be “x is a Computer Science student”. The Universe of discourse is all UCP students. • Express the statement: “Every computer science student must take discrete mathematics course” • Express the statement: “Everybody must take a discrete mathematics course or be a computer science student”
  • 14. Example • Let P(x) be “x must take Discrete Mathematics course”, And let Q(x) be “x is a Computer Science student”. The Universe of discourse is all UCP students. • Express the statement: “Every computer science student must take discrete mathematics course” • Express the statement: “Everybody must take a discrete mathematics course or be a computer science student” • ∀x(P(x) Q(x)) ∨
  • 15. Example • Let P(x) be “x must take Discrete Mathematics course”, And let Q(x) be “x is a Computer Science student”. The Universe of discourse is all UCP students. • Express the statement: “Every computer science student must take discrete mathematics course” • Express the statement: “Everybody must take a discrete mathematics course or be a computer science student”. • ∀x(P(x) Q(x)) ∨ • Are these statements True or False?
  • 17. Truth Values of Quantifiers
  • 18. Examples – Express in Mathematical Notation • Product of two negative integers is positive.
  • 19. Examples – Express in Mathematical Notation • Product of two negative integers is positive.
  • 20. Examples – Express in Mathematical Notation • Product of two negative integers is positive. • Average of two positive integers in positive.
  • 21. Examples – Express in Mathematical Notation • Product of two negative integers is positive. • Average of two positive integers is positive.
  • 22. Examples – Express in Mathematical Notation • Product of two negative integers is positive. • Average of two positive integers in positive. • The difference of two negative integers is not necessarily negative.
  • 23. Examples – Express in Mathematical Notation • Product of two negative integers is positive. • Average of two positive integers in positive. • The difference of two negative integers is not necessarily negative. Or we may write
  • 24. Examples – Express in Mathematical Notation • Product of two negative integers is positive. • Average of two positive integers in positive. • The difference of two negative integers is not necessarily negative. • Absolute value of sum of two integers does not exceed the sum of the absolute values of these integers.
  • 26. Quantifiers – Negation Use De Morgan’s Law
  • 27. Quantifiers – Negation Use De Morgan’s Law
  • 28. Quantifiers – Negation – Truth Values
  • 30. Example – 1 • Negation All politicians are dishonest Writing in mathematical notation: : set of all politicians is honest There is an honest politician: Negation: All politicians are dishonest:
  • 31. Example – 1 • Negation There is an American who does not eat cheeseburger : set of Americans : eats Cheeseburger Negation:
  • 32. Example – 2 • 2nd statement
  • 33. Mixing Quantifiers – Nested Quantifiers
  • 34. Mixing Quantifiers Everybody loves everyone Everybody loves somebody Somebody loves somebody
  • 35. Mixing Quantifiers is a person is a country National: is national of : National Everyone belongs to some country : National There is a country, everybody belongs to this country.
  • 36. Nested Quantifiers – Truth Values • Negation
  • 37. Example – 3 Implication is equivalent to NOT P(x) or Q(x) Use De Morgan’s Law
  • 39. Example – 4 : Students in the class has visited Mexico ================== == has visited Mexico has visited Canada : Students is student in this class has visited Mexico ==================== has visited Mexico has visited Canada
  • 41. Example – 5 • 1st statement mail message is compressed -----------------------------
  • 42. Example – 5 • 1st statement mail message is compressed -------------------- • 2nd statement user, network link is an active user is available to user
  • 43. Exercises – Lewis Carroll (Alice in Wonderland)
  • 44. Exercises – Lewis Carroll (Alice in Wonderland) creatures is a lion is fierce drinks coffee
  • 45. A)
  • 46. • No doctors are enthusiastic; • You are enthusiastic. • Therefore, you are not a doctor a person is a Doctor is enthusiastic
  • 47. a) For all real numbers, there is a real number, which is greater than these numbers. (not beautiful statement) There are infinite real numbers. b) Product of two non-negative real numbers is non-negative. c) For any two real numbers, their product is a real number. (more beautiful way) Real number are closed with respect to multiplication. (closure property)