SlideShare a Scribd company logo
z
FORMAL LOGIC
Discrete Structures I
FOR-IAN V. SANDOVAL
z
Lesson 8
PREDICATES AND QUANTIFIERS
z
LEARNING OBJECTIVES
❑ Use the formal symbols of predicate logic
❑ Determine the truth value in some interpretation of an
expression in predicate logic
❑ Use predicate logic to represent English language
sentences
z
PREDICATE
❑ A predicate (or open statements) is a statement whose truth
depends on the value of one or more variables.
❑ Predicate become propositions once very variable is bound
by assigning a universe of discourse.
❑ Most of the propositions are define in terms of predicates.
❑ Predicates: statements involving variables, e.g., “x > 3”,
“x=y+3”, “x+y=z”, “computer x is under attack by an
intruder”, “computer x is functioning property”
z
PREDICATE
❑ Example: x > 3
- The variable x is the subject of the statement
- Predicate “is greater than 3” refers to a property that the
subject of the statement can have
- Can denote the statement by P(x) where P denotes the
predicate “is greater than 3” and x is the variable
- P(x): also called the value of the propositional function
P at x
- Once a value is assigned to the variable x, P(x) becomes
a proposition and has a truth value
z
PREDICATE
❑ Example
“If x is an odd number, then x is not multiple of 2.”
- Logical form P(x) → Q(x)
❑ Example
“There exists an x such that x is odd number and 2x is
even number.”
“For all x, if x is a positive integer, then 2x + 1 is and odd
number”
- Cannot be represented using logical connectives
z
Take Note:
❑ Binding variable
- used on the variable x; the occurrence of the variable is
bound
- a variable is said to be free; if the occurrence of a
variable is not free
❑ To convert a propositional function into a proposition
- all variable must be bound or a particular value must be
designated to it
- it is done by applying a combination of quantifiers
(universal, existential) and the value assignments
❑ Scope of a quantifier
- the part of an assertion in which variables are bound by
the quantifiers.
z
QUANTIFIERS
❑ Express the extent to which a predicate is true
❑ In English, all, some, many, none, few
❑ Focus on two types:
- Existential Quantifiers
- Universal Quantifiers
❑ Predicate Calculus
- the area of logic that deals with predicates and quantifiers
z
Existential Quantifiers
❑ a predicate is true for there is one or more elements under
consideration
❑ “There exists an element x in the domain such that P(x) (is
true)”
❑ Denote that as ∃x P(x) where ∃ is the existential quantifier
❑ In English, “for some”, “for at least one”, or “there is”
❑ Read as “There is an x such that P(x)”, “There is at least
one x such that P(x)”, or “For some x, P(x)”
z
Existential Quantifiers
❑ Example
Let P(x) be the statement “x > 3”. Is ∃x P(x) true for the
domain of all real numbers?;
Let Q(x) be the statement “x=x+1”. Is ∃x P(x) true for the
domain of all real numbers?
- When all elements of the domain can be listed, , e.g.,
x1, x2, …, xn,
- it follows that the existential quantification is the same
as disjunction P(x1) v P(x2) … v P(xn)
z
Existential Quantifiers
❑ Example
What is the truth value of ∃x P(x) where P(x) is the
statement “x2 >10” and the domain consists of positive
integers not exceeding 4?
- ∃x P(x) is the same as P(1) v P(2) v P(3) v P(4)
z
Universal Quantifiers
❑ “P(x) for all values of x in the domain”
❑ Denote that as ∀x P(x) where ∀ is the universal quantifier
❑ The statement “∀x P(x)” is true of every value of x
❑ Read it as “for all x P(x)” or “for every x P(x)”
❑ A statement ∀x P(x) is false if and only if P(x) is not always
true
❑ An element for which p(x) is false is called a
counterexample of ∀x P(x)
z
Existential Quantifiers
❑ Example
Let p(x) be “x2>0”. To show that the statement ∀x P(x) is
false where the domain consists of all integers. Show a
counterexample with x=0
- When all the elements can be listed, e.g., x1, x2, …, xn
- it follows that the universal quantification ∀x P(x) is the
same as the conjunction P(x1) ˄ P(x2) … ˄ P(xn)
z
Existential Quantifiers
❑ Example
What is the truth value of ∀x P(x) where P(x) is the
statement “x2 < 10” and the domain consists of positive
integers not exceeding 4?
- ∀x P(x) is the same as P(1) ˄ P(2) ˄ P(3) ˄ P(4)
z
Unique Existential Quantifiers
❑ there exists a unique x such that P(x) is true ∃! P(x)
❑ denote that as ∃! P(x) where ∃! is called the Unique
Existential Quantifiers
❑ The statement ∃! P(x) is true for one and only x in the
universe discourse.
❑ The statement ∃! P(x) is true for one and only x in the
universe discourse.
z
❑ Common Words Associated with various Connectives
z
Quantifiers with Restricted Domains
❑ What do the following statements mean for the domain of
real numbers?
∀x < 0, x2 > 0 same as ∀x (x < 0 → x2 > 0)
∀y ≠ 0, y3 ≠ 0 same as ∀y (y ≠ 0 → y3 ≠ 0)
∃z > 0, z2 = 2 same as ∃z (z > 0 ˄ z2 = 2)
❑ Be careful about → and in these statements
z
Precedence of Quantifiers
❑ ∀ and ∃ have higher precedence than all logical operators
from propositional calculus
∀x P(x) v Q(x) ≅ (∀x P(x)) v q(x) rather than
∀x (P(x) v Q(x))
z
Truth Values of Quantifiers
❑ If the universe of discourse for P is P(p1, p2, ..., pn), then ∀x
P(x)↔P(p1)^P(p2)^…^P(pn) and ∃x P(x)↔ P(p1) P(p2) v
P(Pn).
z
Truth Values of Quantifiers
z
Negating Quantifiers
z
Negating Quantifiers
❑ Consider:
“All students in this class have red hair.”
❑ What is required to show the statement is false?
- There exists a student in this class that does NOT have
red hair.
❑ To negate a universal quantification:
- negate the propositional function
- AND change to an existential quantification
~∀x P(x) ≅ ∃x ~P(x)
z
Negating Quantifiers
❑ Consider:
“There is a student in this class with red hair.”
❑ What is required to show the statement is false?
- All students in this class do not have red hair
❑ To negate an existential quantification:
- negate the propositional function
- AND you change to a universal quantification
~∃x P(x) ≅ ∀x ~P(x)
z
Quantification and Conjunction
❑ Predicates can be joined by the logical operations
z
Example 1:
Write the following statements as a logical expression.
a. Every child has biological parents.
Solution:
Let P(x , y)= “x is biological parent of y.”
Logical Expression:
∀y ∃x ∀z P(x, y) (P(x, y) [(z ≠ x) → ~ P(z, y)]
z
Examples:
b. There is a number x such that when if is added to any
number , the result is that number , and if it is multiplied in
any number, the result is x.
Solution:
Let P(x , y) = “x +y = y”
Let Q(x, y) = “xy = x”
Logical Expression:
∃x ∀y (P(x , y) ^ (P(x, y))
z
c. Not everybody can drive a car.
Solution:
Let P(x) = “x can drive a car.”
The statement “everybody can drive a car”, can be
expressed as ∀x P(x).
The negation ~ ∀x P(x), we can also say that “There is
somebody that cannot drive a car.” which can be expressed as
∃x ~P(x).
z
d. Nobody can swim.
Solution:
Let P(x) = “x can swim.”
The statement “somebody can swim”, can be expressed as
∃x P(x).
The negation ~∃x P(x), another way to state this is
“Everybody cannot swim”, which can be expressed as ∀x
~P(x).
z
Example 2:
Let P(x) = “x + y=9” where the universe of discourse for x
and y is the subset of integers. Write the logical expression of
the following statements and denote its truth values.
a. For every x and every y, x + y > 9
b. For every x, there is some value y such that x + y > 9
c. There is a value of y such that for every x, x + y >9
z
a. For every x and every y, x + y > 9
Solution:
The statement can be expressed as ∀x ∀y P(x , y).
If we let x = 1 and y = 1, P(1,1) is clearly false, it follows that
∀x ∀y P(x , y) is false.
z
b. For every x, there is some value y such that x + y > 9
Solution:
Statement can be expressed as ∀x ∃y P(x, y)
For any x, if we choose y = x + (-x+10) > 9 = “10>9”, which
is clearly true, so ∀x ∃y P(x, y) is also true.
z
c. There is a value of y such that for every x, x + y >9
Solution:
Statement can be expressed as ∃x ∀y P(x, y)
If x = -y, P(x , y) = “x+(-x)>9” = “0>9” which is false.
This means that we cannot find any y which works with all
x, so ∃x ∀y P(x, y) is also false.
z
Predicate Logic to Represent English Language Sentences
❑ Example 1
Consider “For every student in this class, that student has
studied Calculus.”
• Rephrased: For every student x in this class, x has
studied Calculus.
- Let C(x) be “x has studied Calculus”
- Let S(x) be “x is a student”
• ∀x C(x)
- True if the universe of discourse is all students in this
class
z
Predicate Logic to Represent English Language Sentences
❑ Example 1
Consider “For every student in this class, that student has
studied Calculus.”
• What about if the universe of discourse is all students (or
all people?)
- ∀x (S(x) → C(x))
• Another Option
- Let Q (x, y) be “x has studied y”
- ∀x (S(x) → C(x, calculus))
z
Predicate Logic to Represent English Language Sentences
❑ Example 2
“Some students have visited Mexico.”
• Rephrased: “There exists a student who has visited
Mexico.”
- Let S(x) be “x is a student”
- Let M(x) be “x has visited Mexico”
• ∃x M(x)
- True if the universe of discourse is all students
• ∃x (S(x) M(x))
- If the universe of discourse is all people
z
Predicate Logic to Represent English Language Sentences
❑ Example 3
“Every student in this class has visited Canada or Mexico.”
• Let
- S(x) be “x is a student”
- M(x) be “x has visited Mexico”
- C(x) be “x has visited Canada”
• ∀x (M(x)∨C(x))
- When the universe of discourse is all students
• ∀x (S(x)→(M(x)∨C(x))
- When the universe of discourse is all people
z
Predicate Logic to Represent English Language Sentences
❑ Example 3
“Every student in this class has visited Canada or Mexico.”
• Other option
- S(x) be “x is a student”
- Let V(x, y) as “x has visited y”
• ∀x (S(x)→(V(x,Mexico) ∨ V(x,Canada))
- When the universe of discourse is all people
z
GROUP ENRICHMENT ACTIVITY
1. Determine the universe of discourse in the statement “x
has fur”.
2. Express the statements “Everybody in this class is a
student in this school”, as logical expression.
3. If P(x) = “x < 0” what are the truth values of P(0) and P(1).
4. Given P(x) = “x must enroll in Discrete Structure”
Q(x) = “x is an IT student”
Write the logical expression of
a. Every IT students must take Discrete Structure
b. Everybody must take Discrete Structure
c. Not everybody must tale Discrete Structure
z
GROUP ENRICHMENT ACTIVITY
5. Consider
– “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
Translate the statements:
a. “All hummingbirds are richly colored”
b. “No large birds live on honey”
c. “Birds that do not live on honey are dull in color”
d. “Hummingbirds are small”
z
• Levin, O. (2019). Discrete Mathematics: An Open Introduction 3rd Edition. Colorado: School of Mathematics Science
University of Colorado.
• Aslam, A. (2016). Proposition in Discrete Mathematics retrieved from https://www.slideshare.net/AdilAslam4/chapter-1-
propositions-in-discrete-mathematics
• Blaircomp (2014). Predicates and Quantifiers. Retrieved from https://www.slideshare.net/blaircomp2003/predicates-
and-quantifiers
• Operator Precedence retrieved from http://intrologic.stanford.edu/glossary/operator_precedence.html
REFERENCES

More Related Content

PPTX
Group homomorphism
NaliniSPatil
 
PPTX
5.4 mathematical induction
math260
 
PPTX
Maths Symbols
janobearn
 
PPTX
Proof by contradiction
GC University Fsd
 
PPT
Predicates and Quantifiers
blaircomp2003
 
PPTX
System of linear equations
Diler4
 
PDF
Lecture 2 predicates quantifiers and rules of inference
asimnawaz54
 
PPTX
Euler's Method
dmidgette
 
Group homomorphism
NaliniSPatil
 
5.4 mathematical induction
math260
 
Maths Symbols
janobearn
 
Proof by contradiction
GC University Fsd
 
Predicates and Quantifiers
blaircomp2003
 
System of linear equations
Diler4
 
Lecture 2 predicates quantifiers and rules of inference
asimnawaz54
 
Euler's Method
dmidgette
 

What's hot (20)

PPTX
partialderivatives
yash patel
 
PDF
Convex Optimization
adil raja
 
PPT
System Of Linear Equations
saahil kshatriya
 
PDF
Formal Logic: Teaching Practice
Ivan Ruchkin
 
PDF
Fundamentals of logic 1
Lakshmi R
 
PDF
9.1 Systems of Linear Equations
smiller5
 
PPT
MATHEMATICAL INDUCTION.ppt
Marjorie Malveda
 
PPTX
Mathematical Induction
Edelyn Cagas
 
PPTX
Quantifiers and its Types
HumayunNaseer4
 
PPT
Discrete Math Lecture 03: Methods of Proof
IT Engineering Department
 
PPTX
Arc Length, Curvature and Torsion
vaani pathak
 
PPT
mathematical induction
ankush_kumar
 
PPTX
Predicates and quantifiers
Istiak Ahmed
 
PPT
02 first order differential equations
vansi007
 
PPTX
Power Series - Legendre Polynomial - Bessel's Equation
ArijitDhali
 
PPTX
10.6 solving linear inequalities
GlenSchlee
 
PPTX
Polynomial congruence with prime moduli.pptx
JaniceBarnaha
 
PDF
Formal Logic - Lesson 5 - Logical Equivalence
Laguna State Polytechnic University
 
PPT
Number theory
manikanta361
 
PPT
Limits and derivatives
Laxmikant Deshmukh
 
partialderivatives
yash patel
 
Convex Optimization
adil raja
 
System Of Linear Equations
saahil kshatriya
 
Formal Logic: Teaching Practice
Ivan Ruchkin
 
Fundamentals of logic 1
Lakshmi R
 
9.1 Systems of Linear Equations
smiller5
 
MATHEMATICAL INDUCTION.ppt
Marjorie Malveda
 
Mathematical Induction
Edelyn Cagas
 
Quantifiers and its Types
HumayunNaseer4
 
Discrete Math Lecture 03: Methods of Proof
IT Engineering Department
 
Arc Length, Curvature and Torsion
vaani pathak
 
mathematical induction
ankush_kumar
 
Predicates and quantifiers
Istiak Ahmed
 
02 first order differential equations
vansi007
 
Power Series - Legendre Polynomial - Bessel's Equation
ArijitDhali
 
10.6 solving linear inequalities
GlenSchlee
 
Polynomial congruence with prime moduli.pptx
JaniceBarnaha
 
Formal Logic - Lesson 5 - Logical Equivalence
Laguna State Polytechnic University
 
Number theory
manikanta361
 
Limits and derivatives
Laxmikant Deshmukh
 
Ad

Similar to Formal Logic - Lesson 8 - Predicates and Quantifiers (20)

PDF
Discrete Structure Lecture #5 & 6.pdf
MuhammadUmerIhtisham
 
PPTX
m.a.t.h.e.m.a.t.i.c.s.d.i.s.c.r.e.t.e.pptx
ImeeCabactulan2
 
PPTX
Chapter1p2.pptx
sneha510051
 
PPTX
Chapter 1.4.pptx Chapter 1.4.pptx DISCREATE MATH
JessylyneSophia
 
PDF
Chapter 01 - p2.pdf
smarwaneid
 
PPTX
CMSC 56 | Lecture 3: Predicates & Quantifiers
allyn joy calcaben
 
PDF
02 Predicates and Quantifiers is about predicates
RazaAhmad49
 
PDF
Predicate Logic and Propositional Logic in Discrete Structure
raazdoss
 
PPT
Predicate &amp; quantifier
University of Potsdam
 
PPTX
Lecture in the predicates-quantifiers.pptx
Kamal El-Saady
 
PPTX
Predicates and Quantifiers
Istiak Ahmed
 
PDF
Course notes2summer2012
Von Adam Martinez
 
PPTX
Mathematics in the Modern World - Quantifiers
DanielaJaneArreza
 
PPTX
Slide subtopic 3
Eli Lilly and Company
 
PPT
PredicateLogic (1).ppt
keerthana592112
 
PPTX
PredicateLogic.pptx
santhosh sriprada
 
PPTX
Disc.Math-ppt.pptx it is very informative presentation for bachelor students ...
aligohark35
 
PPTX
Discreate structure presentation introduction
yashirraza123
 
PPT
1606751772-ds-lecture-6.ppt
TejasAditya2
 
PPT
Per3 logika
Evert Sandye Taasiringan
 
Discrete Structure Lecture #5 & 6.pdf
MuhammadUmerIhtisham
 
m.a.t.h.e.m.a.t.i.c.s.d.i.s.c.r.e.t.e.pptx
ImeeCabactulan2
 
Chapter1p2.pptx
sneha510051
 
Chapter 1.4.pptx Chapter 1.4.pptx DISCREATE MATH
JessylyneSophia
 
Chapter 01 - p2.pdf
smarwaneid
 
CMSC 56 | Lecture 3: Predicates & Quantifiers
allyn joy calcaben
 
02 Predicates and Quantifiers is about predicates
RazaAhmad49
 
Predicate Logic and Propositional Logic in Discrete Structure
raazdoss
 
Predicate &amp; quantifier
University of Potsdam
 
Lecture in the predicates-quantifiers.pptx
Kamal El-Saady
 
Predicates and Quantifiers
Istiak Ahmed
 
Course notes2summer2012
Von Adam Martinez
 
Mathematics in the Modern World - Quantifiers
DanielaJaneArreza
 
Slide subtopic 3
Eli Lilly and Company
 
PredicateLogic (1).ppt
keerthana592112
 
PredicateLogic.pptx
santhosh sriprada
 
Disc.Math-ppt.pptx it is very informative presentation for bachelor students ...
aligohark35
 
Discreate structure presentation introduction
yashirraza123
 
1606751772-ds-lecture-6.ppt
TejasAditya2
 
Ad

More from Laguna State Polytechnic University (20)

PDF
Number Theory - Lesson 1 - Introduction to Number Theory
Laguna State Polytechnic University
 
PDF
Machine Learning Algorithms (Part 1)
Laguna State Polytechnic University
 
PDF
Artificial Intelligence Algorithms
Laguna State Polytechnic University
 
PDF
Formal Logic - Lesson 7 - Rules of Inference
Laguna State Polytechnic University
 
PDF
Formal Logic - Lesson 6 - Switching Circuits
Laguna State Polytechnic University
 
PDF
Formal Logic - Lesson 4 - Tautology, Contradiction and Contingency
Laguna State Polytechnic University
 
PDF
Formal Logic - Lesson 3 - Truth Tables
Laguna State Polytechnic University
 
PDF
Formal Logic - Lesson 2 - Logical Connectives
Laguna State Polytechnic University
 
PDF
Formal Logic - Lesson 1 - Introduction to Logic
Laguna State Polytechnic University
 
PPTX
Ethical Issues and Relevant Laws on Computing
Laguna State Polytechnic University
 
PPTX
Number Systems Basic Concepts
Laguna State Polytechnic University
 
PDF
Number Systems Basic Concepts
Laguna State Polytechnic University
 
PPTX
Exploring the Difference Between Information Technology and Information System
Laguna State Polytechnic University
 
PPTX
Introduction to Data Science
Laguna State Polytechnic University
 
PPTX
Introduction to Computers
Laguna State Polytechnic University
 
PPTX
Introduction to Computing Logic Formulation
Laguna State Polytechnic University
 
PDF
Oasis of Sparkling and Refreshing Truisms
Laguna State Polytechnic University
 
PDF
My Teacher Got IT v2.0 - Software Installation Track
Laguna State Polytechnic University
 
PPTX
A Case Study on Issues and Violations on Information Technology
Laguna State Polytechnic University
 
PPTX
Centralized Learning and Assessment Tool
Laguna State Polytechnic University
 
Number Theory - Lesson 1 - Introduction to Number Theory
Laguna State Polytechnic University
 
Machine Learning Algorithms (Part 1)
Laguna State Polytechnic University
 
Artificial Intelligence Algorithms
Laguna State Polytechnic University
 
Formal Logic - Lesson 7 - Rules of Inference
Laguna State Polytechnic University
 
Formal Logic - Lesson 6 - Switching Circuits
Laguna State Polytechnic University
 
Formal Logic - Lesson 4 - Tautology, Contradiction and Contingency
Laguna State Polytechnic University
 
Formal Logic - Lesson 3 - Truth Tables
Laguna State Polytechnic University
 
Formal Logic - Lesson 2 - Logical Connectives
Laguna State Polytechnic University
 
Formal Logic - Lesson 1 - Introduction to Logic
Laguna State Polytechnic University
 
Ethical Issues and Relevant Laws on Computing
Laguna State Polytechnic University
 
Number Systems Basic Concepts
Laguna State Polytechnic University
 
Number Systems Basic Concepts
Laguna State Polytechnic University
 
Exploring the Difference Between Information Technology and Information System
Laguna State Polytechnic University
 
Introduction to Data Science
Laguna State Polytechnic University
 
Introduction to Computers
Laguna State Polytechnic University
 
Introduction to Computing Logic Formulation
Laguna State Polytechnic University
 
Oasis of Sparkling and Refreshing Truisms
Laguna State Polytechnic University
 
My Teacher Got IT v2.0 - Software Installation Track
Laguna State Polytechnic University
 
A Case Study on Issues and Violations on Information Technology
Laguna State Polytechnic University
 
Centralized Learning and Assessment Tool
Laguna State Polytechnic University
 

Recently uploaded (20)

PPTX
20250924 Navigating the Future: How to tell the difference between an emergen...
McGuinness Institute
 
PDF
Module 2: Public Health History [Tutorial Slides]
JonathanHallett4
 
PPTX
CONCEPT OF CHILD CARE. pptx
AneetaSharma15
 
PPTX
Dakar Framework Education For All- 2000(Act)
santoshmohalik1
 
PPTX
Virus sequence retrieval from NCBI database
yamunaK13
 
PPTX
Kanban Cards _ Mass Action in Odoo 18.2 - Odoo Slides
Celine George
 
PPTX
Gupta Art & Architecture Temple and Sculptures.pptx
Virag Sontakke
 
PPTX
family health care settings home visit - unit 6 - chn 1 - gnm 1st year.pptx
Priyanshu Anand
 
PPTX
An introduction to Prepositions for beginners.pptx
drsiddhantnagine
 
PPTX
How to Close Subscription in Odoo 18 - Odoo Slides
Celine George
 
PPTX
How to Apply for a Job From Odoo 18 Website
Celine George
 
PDF
What is CFA?? Complete Guide to the Chartered Financial Analyst Program
sp4989653
 
DOCX
pgdei-UNIT -V Neurological Disorders & developmental disabilities
JELLA VISHNU DURGA PRASAD
 
PPTX
A Smarter Way to Think About Choosing a College
Cyndy McDonald
 
DOCX
Unit 5: Speech-language and swallowing disorders
JELLA VISHNU DURGA PRASAD
 
PPTX
BASICS IN COMPUTER APPLICATIONS - UNIT I
suganthim28
 
PDF
Virat Kohli- the Pride of Indian cricket
kushpar147
 
PPTX
Information Texts_Infographic on Forgetting Curve.pptx
Tata Sevilla
 
PPTX
HEALTH CARE DELIVERY SYSTEM - UNIT 2 - GNM 3RD YEAR.pptx
Priyanshu Anand
 
PPTX
Sonnet 130_ My Mistress’ Eyes Are Nothing Like the Sun By William Shakespear...
DhatriParmar
 
20250924 Navigating the Future: How to tell the difference between an emergen...
McGuinness Institute
 
Module 2: Public Health History [Tutorial Slides]
JonathanHallett4
 
CONCEPT OF CHILD CARE. pptx
AneetaSharma15
 
Dakar Framework Education For All- 2000(Act)
santoshmohalik1
 
Virus sequence retrieval from NCBI database
yamunaK13
 
Kanban Cards _ Mass Action in Odoo 18.2 - Odoo Slides
Celine George
 
Gupta Art & Architecture Temple and Sculptures.pptx
Virag Sontakke
 
family health care settings home visit - unit 6 - chn 1 - gnm 1st year.pptx
Priyanshu Anand
 
An introduction to Prepositions for beginners.pptx
drsiddhantnagine
 
How to Close Subscription in Odoo 18 - Odoo Slides
Celine George
 
How to Apply for a Job From Odoo 18 Website
Celine George
 
What is CFA?? Complete Guide to the Chartered Financial Analyst Program
sp4989653
 
pgdei-UNIT -V Neurological Disorders & developmental disabilities
JELLA VISHNU DURGA PRASAD
 
A Smarter Way to Think About Choosing a College
Cyndy McDonald
 
Unit 5: Speech-language and swallowing disorders
JELLA VISHNU DURGA PRASAD
 
BASICS IN COMPUTER APPLICATIONS - UNIT I
suganthim28
 
Virat Kohli- the Pride of Indian cricket
kushpar147
 
Information Texts_Infographic on Forgetting Curve.pptx
Tata Sevilla
 
HEALTH CARE DELIVERY SYSTEM - UNIT 2 - GNM 3RD YEAR.pptx
Priyanshu Anand
 
Sonnet 130_ My Mistress’ Eyes Are Nothing Like the Sun By William Shakespear...
DhatriParmar
 

Formal Logic - Lesson 8 - Predicates and Quantifiers

  • 1. z FORMAL LOGIC Discrete Structures I FOR-IAN V. SANDOVAL
  • 3. z LEARNING OBJECTIVES ❑ Use the formal symbols of predicate logic ❑ Determine the truth value in some interpretation of an expression in predicate logic ❑ Use predicate logic to represent English language sentences
  • 4. z PREDICATE ❑ A predicate (or open statements) is a statement whose truth depends on the value of one or more variables. ❑ Predicate become propositions once very variable is bound by assigning a universe of discourse. ❑ Most of the propositions are define in terms of predicates. ❑ Predicates: statements involving variables, e.g., “x > 3”, “x=y+3”, “x+y=z”, “computer x is under attack by an intruder”, “computer x is functioning property”
  • 5. z PREDICATE ❑ Example: x > 3 - The variable x is the subject of the statement - Predicate “is greater than 3” refers to a property that the subject of the statement can have - Can denote the statement by P(x) where P denotes the predicate “is greater than 3” and x is the variable - P(x): also called the value of the propositional function P at x - Once a value is assigned to the variable x, P(x) becomes a proposition and has a truth value
  • 6. z PREDICATE ❑ Example “If x is an odd number, then x is not multiple of 2.” - Logical form P(x) → Q(x) ❑ Example “There exists an x such that x is odd number and 2x is even number.” “For all x, if x is a positive integer, then 2x + 1 is and odd number” - Cannot be represented using logical connectives
  • 7. z Take Note: ❑ Binding variable - used on the variable x; the occurrence of the variable is bound - a variable is said to be free; if the occurrence of a variable is not free ❑ To convert a propositional function into a proposition - all variable must be bound or a particular value must be designated to it - it is done by applying a combination of quantifiers (universal, existential) and the value assignments ❑ Scope of a quantifier - the part of an assertion in which variables are bound by the quantifiers.
  • 8. z QUANTIFIERS ❑ Express the extent to which a predicate is true ❑ In English, all, some, many, none, few ❑ Focus on two types: - Existential Quantifiers - Universal Quantifiers ❑ Predicate Calculus - the area of logic that deals with predicates and quantifiers
  • 9. z Existential Quantifiers ❑ a predicate is true for there is one or more elements under consideration ❑ “There exists an element x in the domain such that P(x) (is true)” ❑ Denote that as ∃x P(x) where ∃ is the existential quantifier ❑ In English, “for some”, “for at least one”, or “there is” ❑ Read as “There is an x such that P(x)”, “There is at least one x such that P(x)”, or “For some x, P(x)”
  • 10. z Existential Quantifiers ❑ Example Let P(x) be the statement “x > 3”. Is ∃x P(x) true for the domain of all real numbers?; Let Q(x) be the statement “x=x+1”. Is ∃x P(x) true for the domain of all real numbers? - When all elements of the domain can be listed, , e.g., x1, x2, …, xn, - it follows that the existential quantification is the same as disjunction P(x1) v P(x2) … v P(xn)
  • 11. z Existential Quantifiers ❑ Example What is the truth value of ∃x P(x) where P(x) is the statement “x2 >10” and the domain consists of positive integers not exceeding 4? - ∃x P(x) is the same as P(1) v P(2) v P(3) v P(4)
  • 12. z Universal Quantifiers ❑ “P(x) for all values of x in the domain” ❑ Denote that as ∀x P(x) where ∀ is the universal quantifier ❑ The statement “∀x P(x)” is true of every value of x ❑ Read it as “for all x P(x)” or “for every x P(x)” ❑ A statement ∀x P(x) is false if and only if P(x) is not always true ❑ An element for which p(x) is false is called a counterexample of ∀x P(x)
  • 13. z Existential Quantifiers ❑ Example Let p(x) be “x2>0”. To show that the statement ∀x P(x) is false where the domain consists of all integers. Show a counterexample with x=0 - When all the elements can be listed, e.g., x1, x2, …, xn - it follows that the universal quantification ∀x P(x) is the same as the conjunction P(x1) ˄ P(x2) … ˄ P(xn)
  • 14. z Existential Quantifiers ❑ Example What is the truth value of ∀x P(x) where P(x) is the statement “x2 < 10” and the domain consists of positive integers not exceeding 4? - ∀x P(x) is the same as P(1) ˄ P(2) ˄ P(3) ˄ P(4)
  • 15. z Unique Existential Quantifiers ❑ there exists a unique x such that P(x) is true ∃! P(x) ❑ denote that as ∃! P(x) where ∃! is called the Unique Existential Quantifiers ❑ The statement ∃! P(x) is true for one and only x in the universe discourse. ❑ The statement ∃! P(x) is true for one and only x in the universe discourse.
  • 16. z ❑ Common Words Associated with various Connectives
  • 17. z Quantifiers with Restricted Domains ❑ What do the following statements mean for the domain of real numbers? ∀x < 0, x2 > 0 same as ∀x (x < 0 → x2 > 0) ∀y ≠ 0, y3 ≠ 0 same as ∀y (y ≠ 0 → y3 ≠ 0) ∃z > 0, z2 = 2 same as ∃z (z > 0 ˄ z2 = 2) ❑ Be careful about → and in these statements
  • 18. z Precedence of Quantifiers ❑ ∀ and ∃ have higher precedence than all logical operators from propositional calculus ∀x P(x) v Q(x) ≅ (∀x P(x)) v q(x) rather than ∀x (P(x) v Q(x))
  • 19. z Truth Values of Quantifiers ❑ If the universe of discourse for P is P(p1, p2, ..., pn), then ∀x P(x)↔P(p1)^P(p2)^…^P(pn) and ∃x P(x)↔ P(p1) P(p2) v P(Pn).
  • 20. z Truth Values of Quantifiers
  • 22. z Negating Quantifiers ❑ Consider: “All students in this class have red hair.” ❑ What is required to show the statement is false? - There exists a student in this class that does NOT have red hair. ❑ To negate a universal quantification: - negate the propositional function - AND change to an existential quantification ~∀x P(x) ≅ ∃x ~P(x)
  • 23. z Negating Quantifiers ❑ Consider: “There is a student in this class with red hair.” ❑ What is required to show the statement is false? - All students in this class do not have red hair ❑ To negate an existential quantification: - negate the propositional function - AND you change to a universal quantification ~∃x P(x) ≅ ∀x ~P(x)
  • 24. z Quantification and Conjunction ❑ Predicates can be joined by the logical operations
  • 25. z Example 1: Write the following statements as a logical expression. a. Every child has biological parents. Solution: Let P(x , y)= “x is biological parent of y.” Logical Expression: ∀y ∃x ∀z P(x, y) (P(x, y) [(z ≠ x) → ~ P(z, y)]
  • 26. z Examples: b. There is a number x such that when if is added to any number , the result is that number , and if it is multiplied in any number, the result is x. Solution: Let P(x , y) = “x +y = y” Let Q(x, y) = “xy = x” Logical Expression: ∃x ∀y (P(x , y) ^ (P(x, y))
  • 27. z c. Not everybody can drive a car. Solution: Let P(x) = “x can drive a car.” The statement “everybody can drive a car”, can be expressed as ∀x P(x). The negation ~ ∀x P(x), we can also say that “There is somebody that cannot drive a car.” which can be expressed as ∃x ~P(x).
  • 28. z d. Nobody can swim. Solution: Let P(x) = “x can swim.” The statement “somebody can swim”, can be expressed as ∃x P(x). The negation ~∃x P(x), another way to state this is “Everybody cannot swim”, which can be expressed as ∀x ~P(x).
  • 29. z Example 2: Let P(x) = “x + y=9” where the universe of discourse for x and y is the subset of integers. Write the logical expression of the following statements and denote its truth values. a. For every x and every y, x + y > 9 b. For every x, there is some value y such that x + y > 9 c. There is a value of y such that for every x, x + y >9
  • 30. z a. For every x and every y, x + y > 9 Solution: The statement can be expressed as ∀x ∀y P(x , y). If we let x = 1 and y = 1, P(1,1) is clearly false, it follows that ∀x ∀y P(x , y) is false.
  • 31. z b. For every x, there is some value y such that x + y > 9 Solution: Statement can be expressed as ∀x ∃y P(x, y) For any x, if we choose y = x + (-x+10) > 9 = “10>9”, which is clearly true, so ∀x ∃y P(x, y) is also true.
  • 32. z c. There is a value of y such that for every x, x + y >9 Solution: Statement can be expressed as ∃x ∀y P(x, y) If x = -y, P(x , y) = “x+(-x)>9” = “0>9” which is false. This means that we cannot find any y which works with all x, so ∃x ∀y P(x, y) is also false.
  • 33. z Predicate Logic to Represent English Language Sentences ❑ Example 1 Consider “For every student in this class, that student has studied Calculus.” • Rephrased: For every student x in this class, x has studied Calculus. - Let C(x) be “x has studied Calculus” - Let S(x) be “x is a student” • ∀x C(x) - True if the universe of discourse is all students in this class
  • 34. z Predicate Logic to Represent English Language Sentences ❑ Example 1 Consider “For every student in this class, that student has studied Calculus.” • What about if the universe of discourse is all students (or all people?) - ∀x (S(x) → C(x)) • Another Option - Let Q (x, y) be “x has studied y” - ∀x (S(x) → C(x, calculus))
  • 35. z Predicate Logic to Represent English Language Sentences ❑ Example 2 “Some students have visited Mexico.” • Rephrased: “There exists a student who has visited Mexico.” - Let S(x) be “x is a student” - Let M(x) be “x has visited Mexico” • ∃x M(x) - True if the universe of discourse is all students • ∃x (S(x) M(x)) - If the universe of discourse is all people
  • 36. z Predicate Logic to Represent English Language Sentences ❑ Example 3 “Every student in this class has visited Canada or Mexico.” • Let - S(x) be “x is a student” - M(x) be “x has visited Mexico” - C(x) be “x has visited Canada” • ∀x (M(x)∨C(x)) - When the universe of discourse is all students • ∀x (S(x)→(M(x)∨C(x)) - When the universe of discourse is all people
  • 37. z Predicate Logic to Represent English Language Sentences ❑ Example 3 “Every student in this class has visited Canada or Mexico.” • Other option - S(x) be “x is a student” - Let V(x, y) as “x has visited y” • ∀x (S(x)→(V(x,Mexico) ∨ V(x,Canada)) - When the universe of discourse is all people
  • 38. z GROUP ENRICHMENT ACTIVITY 1. Determine the universe of discourse in the statement “x has fur”. 2. Express the statements “Everybody in this class is a student in this school”, as logical expression. 3. If P(x) = “x < 0” what are the truth values of P(0) and P(1). 4. Given P(x) = “x must enroll in Discrete Structure” Q(x) = “x is an IT student” Write the logical expression of a. Every IT students must take Discrete Structure b. Everybody must take Discrete Structure c. Not everybody must tale Discrete Structure
  • 39. z GROUP ENRICHMENT ACTIVITY 5. Consider – “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 Translate the statements: a. “All hummingbirds are richly colored” b. “No large birds live on honey” c. “Birds that do not live on honey are dull in color” d. “Hummingbirds are small”
  • 40. z • Levin, O. (2019). Discrete Mathematics: An Open Introduction 3rd Edition. Colorado: School of Mathematics Science University of Colorado. • Aslam, A. (2016). Proposition in Discrete Mathematics retrieved from https://www.slideshare.net/AdilAslam4/chapter-1- propositions-in-discrete-mathematics • Blaircomp (2014). Predicates and Quantifiers. Retrieved from https://www.slideshare.net/blaircomp2003/predicates- and-quantifiers • Operator Precedence retrieved from http://intrologic.stanford.edu/glossary/operator_precedence.html REFERENCES