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

Similar to Propositional Logic.pptx discrete mathmatics (20)

PPTX
Slide subtopic 3
Eli Lilly and Company
 
PDF
Predicate Logic and Propositional Logic in Discrete Structure
raazdoss
 
PPTX
Chapter 1.4.pptx Chapter 1.4.pptx DISCREATE MATH
JessylyneSophia
 
PPTX
Predicates and Quantifiers
Istiak Ahmed
 
PPTX
Predicates and quantifiers
Istiak Ahmed
 
PPTX
Quantifiers and its Types
HumayunNaseer4
 
PDF
Chapter 01 - p2.pdf
smarwaneid
 
PPTX
Mathematics in the Modern World - Quantifiers
DanielaJaneArreza
 
PDF
Lecture 2 predicates quantifiers and rules of inference
asimnawaz54
 
PDF
Course notes2summer2012
Von Adam Martinez
 
PPT
Discrete Math Lecture 02: First Order Logic
IT Engineering Department
 
PPT
Per3 logika
Evert Sandye Taasiringan
 
PPTX
Disc.Math-ppt.pptx it is very informative presentation for bachelor students ...
aligohark35
 
DOCX
PredicatesQuantifiers.docx
WaqasSami6
 
PPTX
Predicates and quantifiers presentation topics
R.h. Himel
 
PPTX
Unit 1 quantifiers
raksharao
 
PPT
CSci102_Module 4.ppt
HarleyGotardo
 
PPTX
Discreate structure presentation introduction
yashirraza123
 
PPT
1606751772-ds-lecture-6.ppt
TejasAditya2
 
PPTX
Math
Hafiz Safwan
 
Slide subtopic 3
Eli Lilly and Company
 
Predicate Logic and Propositional Logic in Discrete Structure
raazdoss
 
Chapter 1.4.pptx Chapter 1.4.pptx DISCREATE MATH
JessylyneSophia
 
Predicates and Quantifiers
Istiak Ahmed
 
Predicates and quantifiers
Istiak Ahmed
 
Quantifiers and its Types
HumayunNaseer4
 
Chapter 01 - p2.pdf
smarwaneid
 
Mathematics in the Modern World - Quantifiers
DanielaJaneArreza
 
Lecture 2 predicates quantifiers and rules of inference
asimnawaz54
 
Course notes2summer2012
Von Adam Martinez
 
Discrete Math Lecture 02: First Order Logic
IT Engineering Department
 
Disc.Math-ppt.pptx it is very informative presentation for bachelor students ...
aligohark35
 
PredicatesQuantifiers.docx
WaqasSami6
 
Predicates and quantifiers presentation topics
R.h. Himel
 
Unit 1 quantifiers
raksharao
 
CSci102_Module 4.ppt
HarleyGotardo
 
Discreate structure presentation introduction
yashirraza123
 
1606751772-ds-lecture-6.ppt
TejasAditya2
 

Recently uploaded (20)

PPTX
HUMAN RESOURCE MANAGEMENT: RECRUITMENT, SELECTION, PLACEMENT, DEPLOYMENT, TRA...
PRADEEP ABOTHU
 
PPTX
grade 5 lesson matatag ENGLISH 5_Q1_PPT_WEEK4.pptx
SireQuinn
 
PDF
Week 2 - Irish Natural Heritage Powerpoint.pdf
swainealan
 
PPTX
Cultivation practice of Litchi in Nepal.pptx
UmeshTimilsina1
 
PPTX
Post Dated Cheque(PDC) Management in Odoo 18
Celine George
 
PDF
Mahidol_Change_Agent_Note_2025-06-27-29_MUSEF
Tassanee Lerksuthirat
 
PDF
Characteristics, Strengths and Weaknesses of Quantitative Research.pdf
Thelma Villaflores
 
PPTX
DIGITAL CITIZENSHIP TOPIC TLE 8 MATATAG CURRICULUM
ROBERTAUGUSTINEFRANC
 
PPTX
CATEGORIES OF NURSING PERSONNEL: HOSPITAL & COLLEGE
PRADEEP ABOTHU
 
PDF
Vani - The Voice of Excellence - Jul 2025 issue
Savipriya Raghavendra
 
PDF
Aprendendo Arquitetura Framework Salesforce - Dia 03
Mauricio Alexandre Silva
 
PPTX
How to Manage Allocation Report for Manufacturing Orders in Odoo 18
Celine George
 
PPTX
Difference between write and update in odoo 18
Celine George
 
PPTX
Controller Request and Response in Odoo18
Celine George
 
PPTX
Identifying elements in the story. Arrange the events in the story
geraldineamahido2
 
PDF
Reconstruct, Restore, Reimagine: New Perspectives on Stoke Newington’s Histor...
History of Stoke Newington
 
PPTX
How to Create a Customer From Website in Odoo 18.pptx
Celine George
 
PDF
Knee Extensor Mechanism Injuries - Orthopedic Radiologic Imaging
Sean M. Fox
 
PPTX
Introduction to Indian Writing in English
Trushali Dodiya
 
PDF
STATEMENT-BY-THE-HON.-MINISTER-FOR-HEALTH-ON-THE-COVID-19-OUTBREAK-AT-UG_revi...
nservice241
 
HUMAN RESOURCE MANAGEMENT: RECRUITMENT, SELECTION, PLACEMENT, DEPLOYMENT, TRA...
PRADEEP ABOTHU
 
grade 5 lesson matatag ENGLISH 5_Q1_PPT_WEEK4.pptx
SireQuinn
 
Week 2 - Irish Natural Heritage Powerpoint.pdf
swainealan
 
Cultivation practice of Litchi in Nepal.pptx
UmeshTimilsina1
 
Post Dated Cheque(PDC) Management in Odoo 18
Celine George
 
Mahidol_Change_Agent_Note_2025-06-27-29_MUSEF
Tassanee Lerksuthirat
 
Characteristics, Strengths and Weaknesses of Quantitative Research.pdf
Thelma Villaflores
 
DIGITAL CITIZENSHIP TOPIC TLE 8 MATATAG CURRICULUM
ROBERTAUGUSTINEFRANC
 
CATEGORIES OF NURSING PERSONNEL: HOSPITAL & COLLEGE
PRADEEP ABOTHU
 
Vani - The Voice of Excellence - Jul 2025 issue
Savipriya Raghavendra
 
Aprendendo Arquitetura Framework Salesforce - Dia 03
Mauricio Alexandre Silva
 
How to Manage Allocation Report for Manufacturing Orders in Odoo 18
Celine George
 
Difference between write and update in odoo 18
Celine George
 
Controller Request and Response in Odoo18
Celine George
 
Identifying elements in the story. Arrange the events in the story
geraldineamahido2
 
Reconstruct, Restore, Reimagine: New Perspectives on Stoke Newington’s Histor...
History of Stoke Newington
 
How to Create a Customer From Website in Odoo 18.pptx
Celine George
 
Knee Extensor Mechanism Injuries - Orthopedic Radiologic Imaging
Sean M. Fox
 
Introduction to Indian Writing in English
Trushali Dodiya
 
STATEMENT-BY-THE-HON.-MINISTER-FOR-HEALTH-ON-THE-COVID-19-OUTBREAK-AT-UG_revi...
nservice241
 
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)