SlideShare a Scribd company logo
1 of 13
CREATED BY K. VICTOR BABU
DISCREETE STRUCTURES
XXXXXXX
Topic:
Proof as Quantified Statement and Nested
Quantifiers
Department of Mathematics
Session - 11
CREATED BY K. VICTOR BABU
AIM OF THE SESSION
To familiarize students with the basic concept of “Proof as Quantified Statement and Nested Quantifiers“
INSTRUCTIONAL OBJECTIVES
This Session is designed to:
To understand Proof as quantified Statement.
To understand Nested Quantifiers
LEARNING OUTCOMES
At the end of this session, you should be able to:
1. Able to understand Predicates and Quantifiers.
2. Able to solve problems on Nested Quantified Statements
CREATED BY K. VICTOR BABU
SESSION INTRODUCTION
We defined the existential and universal quantifiers and showed how they can be used to
represent mathematical statements. We also explained how they can be used to translate
English sentences into logical expressions. However, we avoided nested quantifiers, where one
quantifier is within the scope of another, such as
∀x ∃y(x + y = 0).
Note that everything within the scope of a quantifier can be thought of as a propositional
function.
For example,
∀x∃y(x + y = 0)
is the same thing as ∀xQ(x), where Q(x) is ∃yP(x, y), where P(x, y) is x + y = 0.
Nested quantifiers commonly occur in mathematics and computer science. Although nested
quantifiers can sometimes be difficult to understand.
In this session we will gain experience working with nested quantifiers. We will see how to use
nested quantifiers to express mathematical statements such as “The sum of two positive
integers is always positive.” We will show how nested quantifiers can be used to translate
English sentences such as “Everyone has exactly one best friend” into logical statements.
Moreover, we will gain experience working with the negations of statements involving nested
quantifiers.
CREATED BY K. VICTOR BABU
Proof as a quantified Statements
• Constructive proofs for existential statements
• Example: Show that there is a prime number that can be written as a sum of two
perfect squares
• Universal statements: method of exhaustion and generalized proof
• Direct Proof:
• – Express the statement in the form: ∀x ∈ D, P(x)→Q(x)
• – Take an arbitrary x from D so that P(x) is true
• – Show that Q(x) is true based on previous axioms,
• theorems,
• P(x) and rules of valid reasoning
.
CREATED BY K. VICTOR BABU
Understanding Statements Involving Nested Quantifiers
To understand statements involving nested quantifiers, we need to unravel what
the quantifiers
and predicates that appear mean. This is illustrated in Examples 1 and 2.
EXAMPLE 1 Assume that the domain for the variables x and y consists of all real
numbers. The statement
∀x ∀y(x + y = y + x) says that x + y = y + x for all real numbers x and y. This is the
commutative law for addition of real numbers. Likewise, the statement
∀x∃y(x + y = 0) says that for every real number x there is a real number y such that
x + y = 0. This states that
every real number has an additive inverse. Similarly, the statement
∀x∀y∀z(x + (y + z) = (x + y) + z)
is the associative law for addition of real numbers.
CREATED BY K. VICTOR BABU
EXAMPLE 2 Translate into English the statement
∀x∀y((x > 0) ∧ (y < 0) → (xy < 0)),
where the domain for both variables consists of all real numbers.
Solution: This statement says that for every real number x and for every
real number y, ifx > 0 and y < 0, then xy < 0. That is, this statement says
that for real numbers x and y, if x is positive
and y is negative, then xy is negative. This can be stated more succinctly
as “The product of a positive real number and a negative real number
is always a negative real number.”
CREATED BY K. VICTOR BABU
CREATED BY K. VICTOR BABU
THINKING OF QUANTIFICATION AS LOOPS
In working with quantifications of more than one variable, it is sometimes helpful to think in terms of nested
loops. (Of course, if there are infinitely many elements in the domain of some variable, we cannot actually loop
throughall values. Nevertheless, this way of thinking is helpful in understanding nested quantifiers.) For
example, to see whether ∀x∀yP(x, y) is true, we loop through the values for x, and for each x
we loop through the values for y. If we find that P(x, y) is true for all values for x and y, we have determined that
∀x∀yP(x, y) is true. If we ever hit a value x for which we hit a value y for which P(x, y) is false, we have shown
that ∀x∀yP(x, y) is false.
Similarly, to determine whether ∀x∃yP(x, y) is true, we loop through the values for x. For each x we loop
through the values for y until we find a y for which P(x, y) is true. If for every x we hit such a y, then ∀x∃yP(x, y)
is true; if for some x we never hit such a y, then ∀x∃yP(x, y) is false.
To see whether ∃x∀yP(x, y) is true, we loop through the values for x until we find an x for which P(x, y) is always
true when we loop through all values for y. Once we find such an x, we know that ∃x∀yP(x, y) is true. If we
never hit such an x, then we know that ∃x∀yP(x, y) is false.
Finally, to see whether ∃x∃yP(x, y) is true, we loop through the values for x, where for each x we loop through
the values for y until we hit an x for which we hit a y for which P(x, y) is true. The statement ∃x∃yP(x, y) is false
only if we never hit an x for which we hit a y such that P(x, y) is true.
CREATED BY K. VICTOR BABU
Classroom Delivery problems
1. Translate into English the statement
∀x∀y((x > 0) ∧ (y < 0) → (xy < 0)),
where the domain for both variables consists of all real numbers.
2. Translate the statement “The sum of two positive integers is always
positive” into a logical expression.
CREATED BY K. VICTOR BABU
• Self-Assessment Questions
1. Translate these statements into English, where the domain for each
variable consists of all real numbers.
a) ∀x∃y(x < y)
b) ∀x∀y(((x ≥ 0) ∧ (y ≥ 0)) → (xy ≥ 0))
c) ∀x∀y∃z(xy = z)
2. Translate these statements into English, where the domain for each
variable consists of all real numbers.
a) ∃x∀y(xy = y)
b) ∀x∀y(((x ≥ 0) ∧ (y < 0)) → (x −y > 0))
c) ∀x∀y∃z(x = y + z)
CREATED BY K. VICTOR BABU
3. Let Q(x, y) be the statement “x has sent an e-mail message to y,”
where the domain for both x and y consists of all students in your class.
Express each of these quantifications in English.
a) ∃x∃yQ(x, y) b) ∃x∀yQ(x, y)
c) ∀x∃yQ(x, y) d) ∃y∀xQ(x, y)
e) ∀y∃xQ(x, y) f ) ∀x∀yQ(x, y)
4. Let P(x, y) be the statement “Student x has taken class y,” where the
domain for x consists of all students in your class and for y consists of
all computer science courses at your school. Express each of these
quantifications inEnglish.
a) ∃x∃yP(x, y) b) ∃x∀yP(x, y)
c) ∀x∃yP(x, y) d) ∃y∀xP(x, y)
e) ∀y∃xP(x, y) f ) ∀x∀yP(x, y)
CREATED BY K. VICTOR BABU
Tutorial Problems
Let S(x) be the predicate “x is a student,” F(x) the predicate “x is a faculty member,” and A(x, y) the
predicate “x has asked y a question,” where the domain consists of all people associated with your
school. Use quantifiers to express each of these statements.
a) Lois has asked Professor Michaels a question.
b) Every student has asked Professor Gross a question.
c) Every faculty member has either asked Professor Miller a question or been asked a question by
Professor Miller.
d) Some student has not asked any faculty member a question.
e) There is a faculty member who has never been asked a question by a student.
f ) Some student has asked every faculty member a question.
g) There is a faculty member who has asked every other faculty member a question.
h) Some student has never been asked a question by a faculty member.
CREATED BY K. VICTOR BABU
THANK YOU
Team – Course Name

More Related Content

Similar to SESSION-11 PPT.pptx

Similar to SESSION-11 PPT.pptx (20)

PredicateLogic.pptx
PredicateLogic.pptxPredicateLogic.pptx
PredicateLogic.pptx
 
Discrete Math Lecture 02: First Order Logic
Discrete Math Lecture 02: First Order LogicDiscrete Math Lecture 02: First Order Logic
Discrete Math Lecture 02: First Order Logic
 
Per3 logika
Per3 logikaPer3 logika
Per3 logika
 
X02PredCalculus.ppt
X02PredCalculus.pptX02PredCalculus.ppt
X02PredCalculus.ppt
 
Nested Quantifiers.pptx
Nested Quantifiers.pptxNested Quantifiers.pptx
Nested Quantifiers.pptx
 
Math Assignment Help
Math Assignment HelpMath Assignment Help
Math Assignment Help
 
Chapter 01 - p2.pdf
Chapter 01 - p2.pdfChapter 01 - p2.pdf
Chapter 01 - p2.pdf
 
Predicates and Quantifiers
Predicates and Quantifiers Predicates and Quantifiers
Predicates and Quantifiers
 
Predicates and quantifiers
Predicates and quantifiersPredicates and quantifiers
Predicates and quantifiers
 
Quantification
QuantificationQuantification
Quantification
 
01bkb04p.ppt
01bkb04p.ppt01bkb04p.ppt
01bkb04p.ppt
 
CMSC 56 | Lecture 3: Predicates & Quantifiers
CMSC 56 | Lecture 3: Predicates & QuantifiersCMSC 56 | Lecture 3: Predicates & Quantifiers
CMSC 56 | Lecture 3: Predicates & Quantifiers
 
CSci102_Module 4.ppt
CSci102_Module 4.pptCSci102_Module 4.ppt
CSci102_Module 4.ppt
 
Logic
LogicLogic
Logic
 
dma_ppt.pdf
dma_ppt.pdfdma_ppt.pdf
dma_ppt.pdf
 
continuity of module 2.pptx
continuity of module 2.pptxcontinuity of module 2.pptx
continuity of module 2.pptx
 
Math 511 Problem Set 4, due September 21Note Problems 1 t
Math 511 Problem Set 4, due September 21Note Problems 1 tMath 511 Problem Set 4, due September 21Note Problems 1 t
Math 511 Problem Set 4, due September 21Note Problems 1 t
 
Mcs 013 solve assignment
Mcs 013 solve assignmentMcs 013 solve assignment
Mcs 013 solve assignment
 
_lecture_04_limits_partial_derivatives.pdf
_lecture_04_limits_partial_derivatives.pdf_lecture_04_limits_partial_derivatives.pdf
_lecture_04_limits_partial_derivatives.pdf
 
Natural Language Processing: L03 maths fornlp
Natural Language Processing: L03 maths fornlpNatural Language Processing: L03 maths fornlp
Natural Language Processing: L03 maths fornlp
 

Recently uploaded

Environmental Toxicology (environmental biology)
Environmental Toxicology (environmental biology)Environmental Toxicology (environmental biology)
Environmental Toxicology (environmental biology)RaviPrajapat11
 
Call Girls In Faridabad(Ballabgarh) Book ☎ 8168257667, @4999
Call Girls In Faridabad(Ballabgarh) Book ☎ 8168257667, @4999Call Girls In Faridabad(Ballabgarh) Book ☎ 8168257667, @4999
Call Girls In Faridabad(Ballabgarh) Book ☎ 8168257667, @4999Tina Ji
 
The Most Attractive Pune Call Girls Shirwal 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Shirwal 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Shirwal 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Shirwal 8250192130 Will You Miss This Cha...ranjana rawat
 
Call Girls Mumbai Gayatri 8617697112 Independent Escort Service Mumbai
Call Girls Mumbai Gayatri 8617697112 Independent Escort Service MumbaiCall Girls Mumbai Gayatri 8617697112 Independent Escort Service Mumbai
Call Girls Mumbai Gayatri 8617697112 Independent Escort Service MumbaiCall girls in Ahmedabad High profile
 
Hot Call Girls |Delhi |Preet Vihar ☎ 9711199171 Book Your One night Stand
Hot Call Girls |Delhi |Preet Vihar ☎ 9711199171 Book Your One night StandHot Call Girls |Delhi |Preet Vihar ☎ 9711199171 Book Your One night Stand
Hot Call Girls |Delhi |Preet Vihar ☎ 9711199171 Book Your One night Standkumarajju5765
 
Call Girl Nagpur Roshni Call 7001035870 Meet With Nagpur Escorts
Call Girl Nagpur Roshni Call 7001035870 Meet With Nagpur EscortsCall Girl Nagpur Roshni Call 7001035870 Meet With Nagpur Escorts
Call Girl Nagpur Roshni Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
VIP Call Girl Gorakhpur Aashi 8250192130 Independent Escort Service Gorakhpur
VIP Call Girl Gorakhpur Aashi 8250192130 Independent Escort Service GorakhpurVIP Call Girl Gorakhpur Aashi 8250192130 Independent Escort Service Gorakhpur
VIP Call Girl Gorakhpur Aashi 8250192130 Independent Escort Service GorakhpurSuhani Kapoor
 
Freegle User Survey as visual display - BH
Freegle User Survey as visual display - BHFreegle User Survey as visual display - BH
Freegle User Survey as visual display - BHbill846304
 
Call Girls Service Nagpur Aditi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Aditi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Aditi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Aditi Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Call Girls South Delhi Delhi reach out to us at ☎ 9711199012
Call Girls South Delhi Delhi reach out to us at ☎ 9711199012Call Girls South Delhi Delhi reach out to us at ☎ 9711199012
Call Girls South Delhi Delhi reach out to us at ☎ 9711199012sapnasaifi408
 
(ANIKA) Call Girls Wagholi ( 7001035870 ) HI-Fi Pune Escorts Service
(ANIKA) Call Girls Wagholi ( 7001035870 ) HI-Fi Pune Escorts Service(ANIKA) Call Girls Wagholi ( 7001035870 ) HI-Fi Pune Escorts Service
(ANIKA) Call Girls Wagholi ( 7001035870 ) HI-Fi Pune Escorts Serviceranjana rawat
 
(NANDITA) Hadapsar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune ...
(NANDITA) Hadapsar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune ...(NANDITA) Hadapsar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune ...
(NANDITA) Hadapsar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune ...ranjana rawat
 
Spiders by Slidesgo - an introduction to arachnids
Spiders by Slidesgo - an introduction to arachnidsSpiders by Slidesgo - an introduction to arachnids
Spiders by Slidesgo - an introduction to arachnidsprasan26
 
VIP Call Girls Ramanthapur ( Hyderabad ) Phone 8250192130 | ₹5k To 25k With R...
VIP Call Girls Ramanthapur ( Hyderabad ) Phone 8250192130 | ₹5k To 25k With R...VIP Call Girls Ramanthapur ( Hyderabad ) Phone 8250192130 | ₹5k To 25k With R...
VIP Call Girls Ramanthapur ( Hyderabad ) Phone 8250192130 | ₹5k To 25k With R...Suhani Kapoor
 

Recently uploaded (20)

Model Call Girl in Rajiv Chowk Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Rajiv Chowk Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Rajiv Chowk Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Rajiv Chowk Delhi reach out to us at 🔝9953056974🔝
 
Environmental Toxicology (environmental biology)
Environmental Toxicology (environmental biology)Environmental Toxicology (environmental biology)
Environmental Toxicology (environmental biology)
 
Call Girls In Faridabad(Ballabgarh) Book ☎ 8168257667, @4999
Call Girls In Faridabad(Ballabgarh) Book ☎ 8168257667, @4999Call Girls In Faridabad(Ballabgarh) Book ☎ 8168257667, @4999
Call Girls In Faridabad(Ballabgarh) Book ☎ 8168257667, @4999
 
The Most Attractive Pune Call Girls Shirwal 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Shirwal 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Shirwal 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Shirwal 8250192130 Will You Miss This Cha...
 
Call Girls Mumbai Gayatri 8617697112 Independent Escort Service Mumbai
Call Girls Mumbai Gayatri 8617697112 Independent Escort Service MumbaiCall Girls Mumbai Gayatri 8617697112 Independent Escort Service Mumbai
Call Girls Mumbai Gayatri 8617697112 Independent Escort Service Mumbai
 
9953056974 ,Low Rate Call Girls In Adarsh Nagar Delhi 24hrs Available
9953056974 ,Low Rate Call Girls In Adarsh Nagar  Delhi 24hrs Available9953056974 ,Low Rate Call Girls In Adarsh Nagar  Delhi 24hrs Available
9953056974 ,Low Rate Call Girls In Adarsh Nagar Delhi 24hrs Available
 
Hot Call Girls |Delhi |Preet Vihar ☎ 9711199171 Book Your One night Stand
Hot Call Girls |Delhi |Preet Vihar ☎ 9711199171 Book Your One night StandHot Call Girls |Delhi |Preet Vihar ☎ 9711199171 Book Your One night Stand
Hot Call Girls |Delhi |Preet Vihar ☎ 9711199171 Book Your One night Stand
 
Call Girl Nagpur Roshni Call 7001035870 Meet With Nagpur Escorts
Call Girl Nagpur Roshni Call 7001035870 Meet With Nagpur EscortsCall Girl Nagpur Roshni Call 7001035870 Meet With Nagpur Escorts
Call Girl Nagpur Roshni Call 7001035870 Meet With Nagpur Escorts
 
VIP Call Girl Gorakhpur Aashi 8250192130 Independent Escort Service Gorakhpur
VIP Call Girl Gorakhpur Aashi 8250192130 Independent Escort Service GorakhpurVIP Call Girl Gorakhpur Aashi 8250192130 Independent Escort Service Gorakhpur
VIP Call Girl Gorakhpur Aashi 8250192130 Independent Escort Service Gorakhpur
 
Freegle User Survey as visual display - BH
Freegle User Survey as visual display - BHFreegle User Survey as visual display - BH
Freegle User Survey as visual display - BH
 
Call Girls Service Nagpur Aditi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Aditi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Aditi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Aditi Call 7001035870 Meet With Nagpur Escorts
 
Call Girls South Delhi Delhi reach out to us at ☎ 9711199012
Call Girls South Delhi Delhi reach out to us at ☎ 9711199012Call Girls South Delhi Delhi reach out to us at ☎ 9711199012
Call Girls South Delhi Delhi reach out to us at ☎ 9711199012
 
E Waste Management
E Waste ManagementE Waste Management
E Waste Management
 
(ANIKA) Call Girls Wagholi ( 7001035870 ) HI-Fi Pune Escorts Service
(ANIKA) Call Girls Wagholi ( 7001035870 ) HI-Fi Pune Escorts Service(ANIKA) Call Girls Wagholi ( 7001035870 ) HI-Fi Pune Escorts Service
(ANIKA) Call Girls Wagholi ( 7001035870 ) HI-Fi Pune Escorts Service
 
(NANDITA) Hadapsar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune ...
(NANDITA) Hadapsar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune ...(NANDITA) Hadapsar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune ...
(NANDITA) Hadapsar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune ...
 
Green Marketing
Green MarketingGreen Marketing
Green Marketing
 
Call Girls In Yamuna Vihar꧁❤ 🔝 9953056974🔝❤꧂ Escort ServiCe
Call Girls In Yamuna Vihar꧁❤ 🔝 9953056974🔝❤꧂ Escort ServiCeCall Girls In Yamuna Vihar꧁❤ 🔝 9953056974🔝❤꧂ Escort ServiCe
Call Girls In Yamuna Vihar꧁❤ 🔝 9953056974🔝❤꧂ Escort ServiCe
 
Spiders by Slidesgo - an introduction to arachnids
Spiders by Slidesgo - an introduction to arachnidsSpiders by Slidesgo - an introduction to arachnids
Spiders by Slidesgo - an introduction to arachnids
 
Call Girls In Dhaula Kuan꧁❤ 🔝 9953056974🔝❤꧂ Escort ServiCe
Call Girls In Dhaula Kuan꧁❤ 🔝 9953056974🔝❤꧂ Escort ServiCeCall Girls In Dhaula Kuan꧁❤ 🔝 9953056974🔝❤꧂ Escort ServiCe
Call Girls In Dhaula Kuan꧁❤ 🔝 9953056974🔝❤꧂ Escort ServiCe
 
VIP Call Girls Ramanthapur ( Hyderabad ) Phone 8250192130 | ₹5k To 25k With R...
VIP Call Girls Ramanthapur ( Hyderabad ) Phone 8250192130 | ₹5k To 25k With R...VIP Call Girls Ramanthapur ( Hyderabad ) Phone 8250192130 | ₹5k To 25k With R...
VIP Call Girls Ramanthapur ( Hyderabad ) Phone 8250192130 | ₹5k To 25k With R...
 

SESSION-11 PPT.pptx

  • 1. CREATED BY K. VICTOR BABU DISCREETE STRUCTURES XXXXXXX Topic: Proof as Quantified Statement and Nested Quantifiers Department of Mathematics Session - 11
  • 2. CREATED BY K. VICTOR BABU AIM OF THE SESSION To familiarize students with the basic concept of “Proof as Quantified Statement and Nested Quantifiers“ INSTRUCTIONAL OBJECTIVES This Session is designed to: To understand Proof as quantified Statement. To understand Nested Quantifiers LEARNING OUTCOMES At the end of this session, you should be able to: 1. Able to understand Predicates and Quantifiers. 2. Able to solve problems on Nested Quantified Statements
  • 3. CREATED BY K. VICTOR BABU SESSION INTRODUCTION We defined the existential and universal quantifiers and showed how they can be used to represent mathematical statements. We also explained how they can be used to translate English sentences into logical expressions. However, we avoided nested quantifiers, where one quantifier is within the scope of another, such as ∀x ∃y(x + y = 0). Note that everything within the scope of a quantifier can be thought of as a propositional function. For example, ∀x∃y(x + y = 0) is the same thing as ∀xQ(x), where Q(x) is ∃yP(x, y), where P(x, y) is x + y = 0. Nested quantifiers commonly occur in mathematics and computer science. Although nested quantifiers can sometimes be difficult to understand. In this session we will gain experience working with nested quantifiers. We will see how to use nested quantifiers to express mathematical statements such as “The sum of two positive integers is always positive.” We will show how nested quantifiers can be used to translate English sentences such as “Everyone has exactly one best friend” into logical statements. Moreover, we will gain experience working with the negations of statements involving nested quantifiers.
  • 4. CREATED BY K. VICTOR BABU Proof as a quantified Statements • Constructive proofs for existential statements • Example: Show that there is a prime number that can be written as a sum of two perfect squares • Universal statements: method of exhaustion and generalized proof • Direct Proof: • – Express the statement in the form: ∀x ∈ D, P(x)→Q(x) • – Take an arbitrary x from D so that P(x) is true • – Show that Q(x) is true based on previous axioms, • theorems, • P(x) and rules of valid reasoning .
  • 5. CREATED BY K. VICTOR BABU Understanding Statements Involving Nested Quantifiers To understand statements involving nested quantifiers, we need to unravel what the quantifiers and predicates that appear mean. This is illustrated in Examples 1 and 2. EXAMPLE 1 Assume that the domain for the variables x and y consists of all real numbers. The statement ∀x ∀y(x + y = y + x) says that x + y = y + x for all real numbers x and y. This is the commutative law for addition of real numbers. Likewise, the statement ∀x∃y(x + y = 0) says that for every real number x there is a real number y such that x + y = 0. This states that every real number has an additive inverse. Similarly, the statement ∀x∀y∀z(x + (y + z) = (x + y) + z) is the associative law for addition of real numbers.
  • 6. CREATED BY K. VICTOR BABU EXAMPLE 2 Translate into English the statement ∀x∀y((x > 0) ∧ (y < 0) → (xy < 0)), where the domain for both variables consists of all real numbers. Solution: This statement says that for every real number x and for every real number y, ifx > 0 and y < 0, then xy < 0. That is, this statement says that for real numbers x and y, if x is positive and y is negative, then xy is negative. This can be stated more succinctly as “The product of a positive real number and a negative real number is always a negative real number.”
  • 7. CREATED BY K. VICTOR BABU
  • 8. CREATED BY K. VICTOR BABU THINKING OF QUANTIFICATION AS LOOPS In working with quantifications of more than one variable, it is sometimes helpful to think in terms of nested loops. (Of course, if there are infinitely many elements in the domain of some variable, we cannot actually loop throughall values. Nevertheless, this way of thinking is helpful in understanding nested quantifiers.) For example, to see whether ∀x∀yP(x, y) is true, we loop through the values for x, and for each x we loop through the values for y. If we find that P(x, y) is true for all values for x and y, we have determined that ∀x∀yP(x, y) is true. If we ever hit a value x for which we hit a value y for which P(x, y) is false, we have shown that ∀x∀yP(x, y) is false. Similarly, to determine whether ∀x∃yP(x, y) is true, we loop through the values for x. For each x we loop through the values for y until we find a y for which P(x, y) is true. If for every x we hit such a y, then ∀x∃yP(x, y) is true; if for some x we never hit such a y, then ∀x∃yP(x, y) is false. To see whether ∃x∀yP(x, y) is true, we loop through the values for x until we find an x for which P(x, y) is always true when we loop through all values for y. Once we find such an x, we know that ∃x∀yP(x, y) is true. If we never hit such an x, then we know that ∃x∀yP(x, y) is false. Finally, to see whether ∃x∃yP(x, y) is true, we loop through the values for x, where for each x we loop through the values for y until we hit an x for which we hit a y for which P(x, y) is true. The statement ∃x∃yP(x, y) is false only if we never hit an x for which we hit a y such that P(x, y) is true.
  • 9. CREATED BY K. VICTOR BABU Classroom Delivery problems 1. Translate into English the statement ∀x∀y((x > 0) ∧ (y < 0) → (xy < 0)), where the domain for both variables consists of all real numbers. 2. Translate the statement “The sum of two positive integers is always positive” into a logical expression.
  • 10. CREATED BY K. VICTOR BABU • Self-Assessment Questions 1. Translate these statements into English, where the domain for each variable consists of all real numbers. a) ∀x∃y(x < y) b) ∀x∀y(((x ≥ 0) ∧ (y ≥ 0)) → (xy ≥ 0)) c) ∀x∀y∃z(xy = z) 2. Translate these statements into English, where the domain for each variable consists of all real numbers. a) ∃x∀y(xy = y) b) ∀x∀y(((x ≥ 0) ∧ (y < 0)) → (x −y > 0)) c) ∀x∀y∃z(x = y + z)
  • 11. CREATED BY K. VICTOR BABU 3. Let Q(x, y) be the statement “x has sent an e-mail message to y,” where the domain for both x and y consists of all students in your class. Express each of these quantifications in English. a) ∃x∃yQ(x, y) b) ∃x∀yQ(x, y) c) ∀x∃yQ(x, y) d) ∃y∀xQ(x, y) e) ∀y∃xQ(x, y) f ) ∀x∀yQ(x, y) 4. Let P(x, y) be the statement “Student x has taken class y,” where the domain for x consists of all students in your class and for y consists of all computer science courses at your school. Express each of these quantifications inEnglish. a) ∃x∃yP(x, y) b) ∃x∀yP(x, y) c) ∀x∃yP(x, y) d) ∃y∀xP(x, y) e) ∀y∃xP(x, y) f ) ∀x∀yP(x, y)
  • 12. CREATED BY K. VICTOR BABU Tutorial Problems Let S(x) be the predicate “x is a student,” F(x) the predicate “x is a faculty member,” and A(x, y) the predicate “x has asked y a question,” where the domain consists of all people associated with your school. Use quantifiers to express each of these statements. a) Lois has asked Professor Michaels a question. b) Every student has asked Professor Gross a question. c) Every faculty member has either asked Professor Miller a question or been asked a question by Professor Miller. d) Some student has not asked any faculty member a question. e) There is a faculty member who has never been asked a question by a student. f ) Some student has asked every faculty member a question. g) There is a faculty member who has asked every other faculty member a question. h) Some student has never been asked a question by a faculty member.
  • 13. CREATED BY K. VICTOR BABU THANK YOU Team – Course Name