SlideShare a Scribd company logo
1 of 40
Download to read offline
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

What's hot

Mathematical induction by Animesh Sarkar
Mathematical induction by Animesh SarkarMathematical induction by Animesh Sarkar
Mathematical induction by Animesh SarkarAnimesh Sarkar
 
Lesson 13: Exponential and Logarithmic Functions (slides)
Lesson 13: Exponential and Logarithmic Functions (slides)Lesson 13: Exponential and Logarithmic Functions (slides)
Lesson 13: Exponential and Logarithmic Functions (slides)Matthew Leingang
 
Grade 10_Math-Lesson 2-3 Graphs of Polynomial Functions .pptx
Grade 10_Math-Lesson 2-3 Graphs of Polynomial Functions .pptxGrade 10_Math-Lesson 2-3 Graphs of Polynomial Functions .pptx
Grade 10_Math-Lesson 2-3 Graphs of Polynomial Functions .pptxErlenaMirador1
 
5 complex numbers y
5 complex numbers y5 complex numbers y
5 complex numbers ymath260
 
Lesson 7: Limits at Infinity
Lesson 7: Limits at InfinityLesson 7: Limits at Infinity
Lesson 7: Limits at InfinityMatthew Leingang
 
Harmonic sequence and fibonacci 10
Harmonic sequence and fibonacci 10Harmonic sequence and fibonacci 10
Harmonic sequence and fibonacci 10AjayQuines
 
5 4 function notation
5 4 function notation5 4 function notation
5 4 function notationhisema01
 
Sequences and series
Sequences and seriesSequences and series
Sequences and seriesLeo Crisologo
 
7 sign charts of factorable formulas y
7 sign charts of factorable formulas y7 sign charts of factorable formulas y
7 sign charts of factorable formulas ymath260
 
Counting, mathematical induction and discrete probability
Counting, mathematical induction and discrete probabilityCounting, mathematical induction and discrete probability
Counting, mathematical induction and discrete probabilitySURBHI SAROHA
 
6 comparison statements, inequalities and intervals y
6 comparison statements, inequalities and intervals y6 comparison statements, inequalities and intervals y
6 comparison statements, inequalities and intervals ymath260
 
3.2 implicit equations and implicit differentiation
3.2 implicit equations and implicit differentiation3.2 implicit equations and implicit differentiation
3.2 implicit equations and implicit differentiationmath265
 
Mathematical induction
Mathematical inductionMathematical induction
Mathematical inductionrey castro
 
number theory
number theorynumber theory
number theoryklawdet
 
10.5 more on language of functions x
10.5 more on language of functions x10.5 more on language of functions x
10.5 more on language of functions xmath260
 
5.2 the substitution methods
5.2 the substitution methods5.2 the substitution methods
5.2 the substitution methodsmath265
 

What's hot (20)

Equation Of A Line
Equation Of A LineEquation Of A Line
Equation Of A Line
 
Mathematical induction by Animesh Sarkar
Mathematical induction by Animesh SarkarMathematical induction by Animesh Sarkar
Mathematical induction by Animesh Sarkar
 
Lesson 13: Exponential and Logarithmic Functions (slides)
Lesson 13: Exponential and Logarithmic Functions (slides)Lesson 13: Exponential and Logarithmic Functions (slides)
Lesson 13: Exponential and Logarithmic Functions (slides)
 
Grade 10_Math-Lesson 2-3 Graphs of Polynomial Functions .pptx
Grade 10_Math-Lesson 2-3 Graphs of Polynomial Functions .pptxGrade 10_Math-Lesson 2-3 Graphs of Polynomial Functions .pptx
Grade 10_Math-Lesson 2-3 Graphs of Polynomial Functions .pptx
 
Axiomatic system2
Axiomatic system2Axiomatic system2
Axiomatic system2
 
5 complex numbers y
5 complex numbers y5 complex numbers y
5 complex numbers y
 
Lesson 7: Limits at Infinity
Lesson 7: Limits at InfinityLesson 7: Limits at Infinity
Lesson 7: Limits at Infinity
 
Harmonic sequence and fibonacci 10
Harmonic sequence and fibonacci 10Harmonic sequence and fibonacci 10
Harmonic sequence and fibonacci 10
 
5 4 function notation
5 4 function notation5 4 function notation
5 4 function notation
 
Sequence And Series
Sequence And SeriesSequence And Series
Sequence And Series
 
Sequences and series
Sequences and seriesSequences and series
Sequences and series
 
7 sign charts of factorable formulas y
7 sign charts of factorable formulas y7 sign charts of factorable formulas y
7 sign charts of factorable formulas y
 
Counting, mathematical induction and discrete probability
Counting, mathematical induction and discrete probabilityCounting, mathematical induction and discrete probability
Counting, mathematical induction and discrete probability
 
6 comparison statements, inequalities and intervals y
6 comparison statements, inequalities and intervals y6 comparison statements, inequalities and intervals y
6 comparison statements, inequalities and intervals y
 
3.2 implicit equations and implicit differentiation
3.2 implicit equations and implicit differentiation3.2 implicit equations and implicit differentiation
3.2 implicit equations and implicit differentiation
 
Mathematical induction
Mathematical inductionMathematical induction
Mathematical induction
 
number theory
number theorynumber theory
number theory
 
10.5 more on language of functions x
10.5 more on language of functions x10.5 more on language of functions x
10.5 more on language of functions x
 
Line and its slope
Line and its slopeLine and its slope
Line and its slope
 
5.2 the substitution methods
5.2 the substitution methods5.2 the substitution methods
5.2 the substitution methods
 

Similar to Formal Logic - Lesson 8 - Predicates and Quantifiers

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

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
 
Discrete Structure Lecture #5 & 6.pdf
Discrete Structure Lecture #5 & 6.pdfDiscrete Structure Lecture #5 & 6.pdf
Discrete Structure Lecture #5 & 6.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
 
Quantifiers and its Types
Quantifiers and its TypesQuantifiers and its Types
Quantifiers and its Types
 
CMSC 56 | Lecture 3: Predicates & Quantifiers
CMSC 56 | Lecture 3: Predicates & QuantifiersCMSC 56 | Lecture 3: Predicates & Quantifiers
CMSC 56 | Lecture 3: Predicates & Quantifiers
 
Chapter 01 - p2.pdf
Chapter 01 - p2.pdfChapter 01 - p2.pdf
Chapter 01 - p2.pdf
 
Per3 logika
Per3 logikaPer3 logika
Per3 logika
 
Predicates and Quantifiers
Predicates and QuantifiersPredicates and Quantifiers
Predicates and Quantifiers
 
Quantification
QuantificationQuantification
Quantification
 
Unit 1 quantifiers
Unit 1  quantifiersUnit 1  quantifiers
Unit 1 quantifiers
 
Universal Quantification DM
Universal Quantification DMUniversal Quantification DM
Universal Quantification DM
 
PredicateLogic (1).ppt
PredicateLogic (1).pptPredicateLogic (1).ppt
PredicateLogic (1).ppt
 
PredicateLogic.pptx
PredicateLogic.pptxPredicateLogic.pptx
PredicateLogic.pptx
 
Nested Quantifiers.pptx
Nested Quantifiers.pptxNested Quantifiers.pptx
Nested Quantifiers.pptx
 
Quantifier
QuantifierQuantifier
Quantifier
 
X02PredCalculus.ppt
X02PredCalculus.pptX02PredCalculus.ppt
X02PredCalculus.ppt
 
Predicate &amp; quantifier
Predicate &amp; quantifierPredicate &amp; quantifier
Predicate &amp; quantifier
 
Slide subtopic 3
Slide subtopic 3Slide subtopic 3
Slide subtopic 3
 
Predicates Logic.pptx
Predicates Logic.pptxPredicates Logic.pptx
Predicates Logic.pptx
 

More from Laguna State Polytechnic University

Formal Logic - Lesson 4 - Tautology, Contradiction and Contingency
Formal Logic - Lesson 4 - Tautology, Contradiction and ContingencyFormal Logic - Lesson 4 - Tautology, Contradiction and Contingency
Formal Logic - Lesson 4 - Tautology, Contradiction and ContingencyLaguna State Polytechnic University
 
Exploring the Difference Between Information Technology and Information System
Exploring the Difference Between Information Technology and Information SystemExploring the Difference Between Information Technology and Information System
Exploring the Difference Between Information Technology and Information SystemLaguna State Polytechnic University
 

More from Laguna State Polytechnic University (20)

Number Theory - Lesson 1 - Introduction to Number Theory
Number Theory - Lesson 1 - Introduction to Number TheoryNumber Theory - Lesson 1 - Introduction to Number Theory
Number Theory - Lesson 1 - Introduction to Number Theory
 
Machine Learning Algorithms (Part 1)
Machine Learning Algorithms (Part 1)Machine Learning Algorithms (Part 1)
Machine Learning Algorithms (Part 1)
 
Artificial Intelligence Algorithms
Artificial Intelligence AlgorithmsArtificial Intelligence Algorithms
Artificial Intelligence Algorithms
 
Formal Logic - Lesson 7 - Rules of Inference
Formal Logic - Lesson 7 - Rules of InferenceFormal Logic - Lesson 7 - Rules of Inference
Formal Logic - Lesson 7 - Rules of Inference
 
Formal Logic - Lesson 6 - Switching Circuits
Formal Logic - Lesson 6 - Switching CircuitsFormal Logic - Lesson 6 - Switching Circuits
Formal Logic - Lesson 6 - Switching Circuits
 
Formal Logic - Lesson 5 - Logical Equivalence
Formal Logic - Lesson 5 - Logical EquivalenceFormal Logic - Lesson 5 - Logical Equivalence
Formal Logic - Lesson 5 - Logical Equivalence
 
Formal Logic - Lesson 4 - Tautology, Contradiction and Contingency
Formal Logic - Lesson 4 - Tautology, Contradiction and ContingencyFormal Logic - Lesson 4 - Tautology, Contradiction and Contingency
Formal Logic - Lesson 4 - Tautology, Contradiction and Contingency
 
Formal Logic - Lesson 3 - Truth Tables
Formal Logic - Lesson 3 - Truth TablesFormal Logic - Lesson 3 - Truth Tables
Formal Logic - Lesson 3 - Truth Tables
 
Formal Logic - Lesson 2 - Logical Connectives
Formal Logic - Lesson 2 - Logical ConnectivesFormal Logic - Lesson 2 - Logical Connectives
Formal Logic - Lesson 2 - Logical Connectives
 
Formal Logic - Lesson 1 - Introduction to Logic
Formal Logic - Lesson 1 - Introduction to LogicFormal Logic - Lesson 1 - Introduction to Logic
Formal Logic - Lesson 1 - Introduction to Logic
 
Ethical Issues and Relevant Laws on Computing
Ethical Issues and Relevant Laws on ComputingEthical Issues and Relevant Laws on Computing
Ethical Issues and Relevant Laws on Computing
 
Number Systems Basic Concepts
Number Systems Basic ConceptsNumber Systems Basic Concepts
Number Systems Basic Concepts
 
Number Systems Basic Concepts
Number Systems Basic ConceptsNumber Systems Basic Concepts
Number Systems Basic Concepts
 
Exploring the Difference Between Information Technology and Information System
Exploring the Difference Between Information Technology and Information SystemExploring the Difference Between Information Technology and Information System
Exploring the Difference Between Information Technology and Information System
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Introduction to Computers
Introduction to ComputersIntroduction to Computers
Introduction to Computers
 
Introduction to Computing Logic Formulation
Introduction to Computing Logic FormulationIntroduction to Computing Logic Formulation
Introduction to Computing Logic Formulation
 
Oasis of Sparkling and Refreshing Truisms
Oasis of Sparkling and Refreshing TruismsOasis of Sparkling and Refreshing Truisms
Oasis of Sparkling and Refreshing Truisms
 
My Teacher Got IT v2.0 - Software Installation Track
My Teacher Got IT v2.0 - Software Installation TrackMy Teacher Got IT v2.0 - Software Installation Track
My Teacher Got IT v2.0 - Software Installation Track
 
A Case Study on Issues and Violations on Information Technology
A Case Study on Issues and Violations on Information TechnologyA Case Study on Issues and Violations on Information Technology
A Case Study on Issues and Violations on Information Technology
 

Recently uploaded

ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYKayeClaireEstoconing
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONHumphrey A Beña
 
Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Seán Kennedy
 
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxBarangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxCarlos105
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Celine George
 
Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management systemChristalin Nelson
 
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...JojoEDelaCruz
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designMIPLM
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxQ4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxlancelewisportillo
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxAshokKarra1
 
Active Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdfActive Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdfPatidar M
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...Nguyen Thanh Tu Collection
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPCeline George
 
Activity 2-unit 2-update 2024. English translation
Activity 2-unit 2-update 2024. English translationActivity 2-unit 2-update 2024. English translation
Activity 2-unit 2-update 2024. English translationRosabel UA
 
4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptxmary850239
 
Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4JOYLYNSAMANIEGO
 

Recently uploaded (20)

ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
 
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptxYOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
 
Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...
 
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxBarangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
 
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptxFINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17
 
Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management system
 
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-design
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxQ4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptx
 
Active Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdfActive Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdf
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
 
Activity 2-unit 2-update 2024. English translation
Activity 2-unit 2-update 2024. English translationActivity 2-unit 2-update 2024. English translation
Activity 2-unit 2-update 2024. English translation
 
4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx
 
Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4
 

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