SlideShare a Scribd company logo
Lecture 6
Discrete Structures
Previous Lectures Summary
•Different forms of arguments
•Modus Ponens and Modus Tollens
•Additional Valid Arguments
•Valid Argument with False Conclusion
•Invalid argument with a true Conclusion
•Converse and Inverse error
•Contradictions and valid arguments
Predicates and Quantified statements I
Today’s Lecture
• Predicates
• Set Notation
• Universal and Existential Statement
• Translating between formal and informal language
• Universal conditional Statements
• Equivalent Form of Universal and Existential
statements
• Implicit Qualification
• Negations of Universal and Existential statements
Predicates
A predicate is a sentence which contains finite number of
variables and becomes a statement when specific values
are substituted for the variables.
The domain of a predicate variable is the set of all values that
may be substituted in place of the variable
Truth Set
If P(x) is a predicate and x has domain D, the truth set of
P(x) is the set of all elements of D that make P(x) true
when substituted for x. The truth set of P(x) is denoted by
read as “the set of all x in D such that P(x)”.
{ | ( )}
x D P x

For any two predicates P(x) and Q(x), the notation
means that every element in the truth set of
P(x) is in the truth set of Q(x). The notation
means that P and Q have identical truth sets.
Consider the predicate:
The truth set of the above predicate is
( ) ( )
P x Q x

Notation
( ) ( )
P x Q x

R
x
x 
 ,
0
 
0

 
x
R
x
Example
Let P(x) = x is a factor of 8, Q(x)= x is a factor of 4
and R(x)= x < 5 and . The domain of x is
assumed to be . Use symbols , to indicate
true relationships among P(x), Q(x) and R(x).
a. The truth set of P(x) is {1,2,4,8}, Q(x) is {1,2,4}.
Since every element in the truth set of Q(x) is in the
truth set of P(x), So
b. The truth Set of R(x) is {1,2,4}, which is identical to
the truth set of Q(x). Hence .
Cont…
( ) ( )
Q x P x

( ) ( )
Q x R x



3
x 

Z
Cont…
Let Q(x, y) be the statement
x + y = x − y
where the domain for x and y is the set of all real numbers.
Determine the truth value of:
(a) Q(5,−2).
(b) Q(4.7, 0).
(c) Determine the set of all pairs of numbers, x and y, such that
Q(x, y) is true.
Solution:
(a) Q(5,−2) says that 5 + (−2) = 5 − (−2), or 3= 7, which is false.
(b) Q(4.7, 0) says that 4.7+ 0 = 4.7 − 0, which is true.
(c) x + y = x − y if and only if x + 2y = x, which is true if and only if
y = 0. Therefore, x can be any real number and y must be zero.
Universal and Existential Statements
Let Q(x) be a predicate and D the domain of x. A
universal statement is of the form “ ”. It is
true if and only if Q(x) is true for all x in D and it is
false if and only if Q(x) is false for at least one x in D. A
value for x for which Q(x) is false is called a
counterexample to the universal statement.
Example: Let D={1,2,3,4,5} and consider the
statement Show that this statement is true.
Solution: Check that is true for each individual
x in D.
, ( )
x D Q x
 
2
, .
x D x x
  
2
" ".
x x

2
2
1 1
2 2


2
2
3 3
4 4


2
2
5 5
6 6


Cont…..
Hence is true.
The technique used in first statement while showing the
truthness of the universal statement is called method of
exhaustion.
Consider the statement Find the counter
example to show that this statement is not true.
Counter example . Take x=1/2, then x is in R and
Hence is false.
2
, .
x D x x
  
2
, .
x R x x
  
2
1 1
2 2
   

   
   
2
, .
x R x x
  
Existential Quantifier
Let Q(x) be a predicate and D the domain of
x. An existential statement is of the form.
such that
It is true if and only if Q(x) is true for at least
one x in D. It is false if and only if Q(x) is
false for all x in D.
The symbol denotes “there exist” and is
called the existential quantifier.

D
x
 )
(x
Q
Truth and falsity of Existential statements
Suppose P(x) is the predicate “x < |x|.” Determine the
truth value of ∃ x s.t. P(x) where the domain for x is:
(a) the three numbers 1, 2, 3.
(b) the six numbers −2,−1, 0, 1, 2, 3.
Solution
(a) P(1), P(2), and P(3) are all false because in each
case x = |x|. Therefore, ∃ x such that P(x) is false for
this domain.
(b) If we begin checking the six values of x, we find
P(−2) is true. It states that −2 < |−2|. We need to check
no further; having one case that makes the predicate
true is enough to guarantee that ∃ x s.t. P(x) is true.
Truth and falsity of Existential statements
Consider the statement . Show
that this statement is true.
Sol: observe that . Thus is true for at
least one integer m . Hence is
true.
Let E={5,6,7,8,9,10} and consider the statement
Show that this statement is false.
Sol: the statement is not true for every value of
the E. Thus is false.
2
1 1

2
m m

m
m
t
s
Z
m 

 2
.
.
m
m
t
s
Z
m 

 2
.
.
m
m
t
s
E
m 

 2
.
.
m
m
t
s
E
m 

 2
.
.
Translating from formal to informal language
Rewrite the following statements in a variety of
equivalent but more informal ways. Do not use the
symbol
a)
b)
c)
Solution: a) we can write the statement in many ways
like “ All real numbers have non negative squares”,
“No real number has a negative square”,
“ x has a non negative square, for each value of x”.
,
 
2
, 0.
x R x
  
2
, 1.
x R x
   
m
m
t
s
Z
m 

 2
.
.
Cont….
b). Similarly we can translate the second statement in
these ways.
“ All real numbers have squares not equal to -1”,
“No real number have square equal to -1”.
c). “There is an integer whose square is equal to itself”,
“we can find at least one integer equal to its own
square”
Cont…
Write the following statement in English, using the
predicates
F(x): “x is a Freshman”
T (x, y): “x is taking y”
where x represents students and y represents courses:
∃x (F(x) ∧ T (x, Discrete Math))
Solution
The statement ∃ x (F(x)∧T (x, Discrete)) says that there
is a student x with two properties: x is a freshman and x
is taking Discrete. In English, “Some Freshman is taking
Discrete Math.”
Translating from informal Language to Formal language
“Every freshman at the College is taking CSC 102.”
Solution: There are various ways to answer this question,
depending on the domain.
• If we take as our domain all freshmen at the College
and use the predicate T (x) : “x is taking CSC 102”,
then the statement can be written as ∀x, T(x).
• We are making a conditional statement:
“If the student is a freshman, then the student is taking
CSC 101;”
∀x, (F(x) → T (x)).
Note that we cannot say ∀ x (F(x) ∧ T (x)), because this
says that every student is a freshman, which is not
something we can assume here.
Cont…..
“Every freshman at the College is taking some Computer
Science course.”
Sol: If we take as our domain for people all freshmen at
the College and our domain for courses, all Computer
Science courses.
Then we can use the predicate
T (x, y): “x is taking y”
The statement can be written as
∀x ∃y T(x, y).
Universal Conditional Statements
A reasonable argument can be made that the most
important form of statement in mathematics is the
universal conditional statement:
∀ x, if P(x) then Q(x)
Example: “Everyone who visited France stayed in
Paris.”
Sol: However, if we take all people as the universe ,
then we need to introduce the predicate F(x) for “x
visited France.” and P(x) is the predicate “x stayed in
Paris.” In this case, the proposition can be written as
∀ x, (F(x) → P(x)).
• We can write the following statements in a
variety of informal ways.
if then
Sol:
• if a real number is greater then 2, then the
square is greater than 4.
• Whenever a real number is greater then 2,
its square is greater than 4.
• The squares of real number, greater than 2,
are greater than 4.
,
x R
  2
x  2
4
x 
Exercise
Rewrite the following statements in the form
∀ ,if then .
a) If a real number is an integer, then it is a rational
number.
a) All bytes have eight bits.
b) No fire trucks are green.
Sol: a).
b). ∀ x, if x is a byte, then x has eight bits.
c). ∀ x, if x is a fire truck, then x is not green.
, , .
x R ifx Z thenx Q
   
Equivalent Forms of Universal and Existential statements
Observe that the two statements “∀ real
numbers x, if x is an integer then x is
rational” and “∀ integers x, x is rational”
mean the same thing.
In fact, a statement of the form
if P(x) then Q(x).
Can always be rewritten in the form
Can be rewritten as
∀x, if x is in D then Q(x).
, ( )
x D Q x
 
,
U
x

Contd.
The following statements are equivalent
∀ polygons P, if P is square, then P is a rectangle.
And
∀ squares P, P is a rectangle
The existential statements
∃ x belongs to U such that P(x) and Q(x).
And
∃ x belongs to D such that Q(x)
Are also equivalent provided D is taken to consist of all elements in
U that make P(x) true.
Equivalence form for existential statement
The following statements are equivalent:
∃ a number n such that n is prime and n is even
And
∃ a prime number n such that n is even.
Implicit Quantifications
• Consider “ If a number is an integer, then it is a
rational number”
The clue to indicate its universal quantifications comes
from the presence of the indefinite article “a”.
Existential quantification can also be implicit.
for instance, “ the number 24 can be written as a sum of
sum of two integers”
“∃ even integers m and n such that 24=m + n.”
The negation of the statement of the form
∀ x in D, Q(x)
is logically equivalent to a statement of the
form
∃ x in D such that ~Q(x)
Symbolically:
Note: the negation of universal statement is
logically equivalent to existential statement.
Negations of Quantified Statement
~ ( , ( )) ~ ( ).
x D Q x x D Q x
     
The negation of the statement of the form
∃ x in D such that Q(x)
is logically equivalent to a statement of the
form
∀ x in D, ~Q(x)
Symbolically:
Note: the negation of existential statement is
logically equivalent to universal statement.
Cont….
~ ( ( )) ,~ ( ).
x D Q x x D Q x
     
Examples
Negate “Some integer x is positive and all integers
y are negative.”
Solution: Using all integers as the universe for x and y,
the statement is ∃ x s.t. (x > 0) ∧ ∀ y, (y < 0). The
negation is
~{∃x (x > 0) ∧ ∀ y (y < 0)}≡ ~∃x s.t. (x > 0) ∨ ~∀y, (y < 0):
by De Morgan’s law
≡ ∀ x, ~(x > 0) ∨ ∃ y s.t. ~(y < 0) properties of negation
≡ ∀ x, (x ≤ 0) ∨ ∃ y s.t. (y ≥ 0).
Therefore, the negation is “Every integer x is non
positive or there is an integer y that is nonnegative.”
Cont….
Negate “There is a student who came late to class
and there is a student who is absent from class.”
Solution: In symbols, if L(x) : “x came late to class” and
A(x) : “x is absent from class,” this statement can be
written as ∃ x st L(x) ∧ ∃ y st A(y).
Note that we must use a second variable y. By one of
De Morgan’s laws the negation can be written as
~(∃ x st L(x)) ∨ ~(∃ y st A(x)) ≡ ∀x, ~L(x) ∨ ∀ y, ~A(x).
In English this is “No student came late to class or no
student is absent from class.”
Lecture Summary
• Predicates
• Set Notation
• Universal and Existential Statement
• Translating between formal and informal language
• Universal conditional Statements
• Equivalent Form
• Implicit Qualification
• Negations

More Related Content

Similar to 1606751772-ds-lecture-6.ppt

Nested Quantifiers.pptx
Nested Quantifiers.pptxNested Quantifiers.pptx
Nested Quantifiers.pptx
Jeevan225779
 
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 inferenceasimnawaz54
 
DISCRTE STRUCTURES CSY1-QUANTIFIERS.pptx
DISCRTE STRUCTURES CSY1-QUANTIFIERS.pptxDISCRTE STRUCTURES CSY1-QUANTIFIERS.pptx
DISCRTE STRUCTURES CSY1-QUANTIFIERS.pptx
AzurineBlues
 
SESSION-11 PPT.pptx
SESSION-11 PPT.pptxSESSION-11 PPT.pptx
SESSION-11 PPT.pptx
NaniSarath
 
Lecture 3 qualtifed rules of inference
Lecture 3 qualtifed rules of inferenceLecture 3 qualtifed rules of inference
Lecture 3 qualtifed rules of inferenceasimnawaz54
 
Math Assignment Help
Math Assignment HelpMath Assignment Help
Math Assignment Help
Math Homework Solver
 
CSci102_Module 4.ppt
CSci102_Module 4.pptCSci102_Module 4.ppt
CSci102_Module 4.ppt
HarleyGotardo
 
Predicate &amp; quantifier
Predicate &amp; quantifierPredicate &amp; quantifier
Predicate &amp; quantifier
University of Potsdam
 
Predicates and Quantifiers
Predicates and QuantifiersPredicates and Quantifiers
Predicates and Quantifiers
blaircomp2003
 
Ch5
Ch5Ch5
20220818151924_PPT01 - The Logic of Compound and Quantitative Statement.pptx
20220818151924_PPT01 - The Logic of Compound and Quantitative Statement.pptx20220818151924_PPT01 - The Logic of Compound and Quantitative Statement.pptx
20220818151924_PPT01 - The Logic of Compound and Quantitative Statement.pptx
ssuser92109d
 
Stochastic Processes Homework Help
Stochastic Processes Homework HelpStochastic Processes Homework Help
Stochastic Processes Homework Help
Excel Homework Help
 
Discrete Mathematics - All chapters
Discrete Mathematics - All chapters Discrete Mathematics - All chapters
Discrete Mathematics - All chapters Omnia A. Abdullah
 
L03 ai - knowledge representation using logic
L03 ai - knowledge representation using logicL03 ai - knowledge representation using logic
L03 ai - knowledge representation using logic
Manjula V
 
random variables-descriptive and contincuous
random variables-descriptive and contincuousrandom variables-descriptive and contincuous
random variables-descriptive and contincuous
ar9530
 
Per3 logika
Per3 logikaPer3 logika

Similar to 1606751772-ds-lecture-6.ppt (20)

Nested Quantifiers.pptx
Nested Quantifiers.pptxNested Quantifiers.pptx
Nested Quantifiers.pptx
 
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
 
DISCRTE STRUCTURES CSY1-QUANTIFIERS.pptx
DISCRTE STRUCTURES CSY1-QUANTIFIERS.pptxDISCRTE STRUCTURES CSY1-QUANTIFIERS.pptx
DISCRTE STRUCTURES CSY1-QUANTIFIERS.pptx
 
SESSION-11 PPT.pptx
SESSION-11 PPT.pptxSESSION-11 PPT.pptx
SESSION-11 PPT.pptx
 
Lecture 3 qualtifed rules of inference
Lecture 3 qualtifed rules of inferenceLecture 3 qualtifed rules of inference
Lecture 3 qualtifed rules of inference
 
Math Assignment Help
Math Assignment HelpMath Assignment Help
Math Assignment Help
 
CSci102_Module 4.ppt
CSci102_Module 4.pptCSci102_Module 4.ppt
CSci102_Module 4.ppt
 
Slide subtopic 3
Slide subtopic 3Slide subtopic 3
Slide subtopic 3
 
Predicate &amp; quantifier
Predicate &amp; quantifierPredicate &amp; quantifier
Predicate &amp; quantifier
 
Predicates and Quantifiers
Predicates and QuantifiersPredicates and Quantifiers
Predicates and Quantifiers
 
Predicates
PredicatesPredicates
Predicates
 
Ch5
Ch5Ch5
Ch5
 
Course notes2summer2012
Course notes2summer2012Course notes2summer2012
Course notes2summer2012
 
DISMATH_Part1
DISMATH_Part1DISMATH_Part1
DISMATH_Part1
 
20220818151924_PPT01 - The Logic of Compound and Quantitative Statement.pptx
20220818151924_PPT01 - The Logic of Compound and Quantitative Statement.pptx20220818151924_PPT01 - The Logic of Compound and Quantitative Statement.pptx
20220818151924_PPT01 - The Logic of Compound and Quantitative Statement.pptx
 
Stochastic Processes Homework Help
Stochastic Processes Homework HelpStochastic Processes Homework Help
Stochastic Processes Homework Help
 
Discrete Mathematics - All chapters
Discrete Mathematics - All chapters Discrete Mathematics - All chapters
Discrete Mathematics - All chapters
 
L03 ai - knowledge representation using logic
L03 ai - knowledge representation using logicL03 ai - knowledge representation using logic
L03 ai - knowledge representation using logic
 
random variables-descriptive and contincuous
random variables-descriptive and contincuousrandom variables-descriptive and contincuous
random variables-descriptive and contincuous
 
Per3 logika
Per3 logikaPer3 logika
Per3 logika
 

Recently uploaded

RMD24 | Debunking the non-endemic revenue myth Marvin Vacquier Droop | First ...
RMD24 | Debunking the non-endemic revenue myth Marvin Vacquier Droop | First ...RMD24 | Debunking the non-endemic revenue myth Marvin Vacquier Droop | First ...
RMD24 | Debunking the non-endemic revenue myth Marvin Vacquier Droop | First ...
BBPMedia1
 
CADAVER AS OUR FIRST TEACHER anatomt in your.pptx
CADAVER AS OUR FIRST TEACHER anatomt in your.pptxCADAVER AS OUR FIRST TEACHER anatomt in your.pptx
CADAVER AS OUR FIRST TEACHER anatomt in your.pptx
fakeloginn69
 
The Parable of the Pipeline a book every new businessman or business student ...
The Parable of the Pipeline a book every new businessman or business student ...The Parable of the Pipeline a book every new businessman or business student ...
The Parable of the Pipeline a book every new businessman or business student ...
awaisafdar
 
Memorandum Of Association Constitution of Company.ppt
Memorandum Of Association Constitution of Company.pptMemorandum Of Association Constitution of Company.ppt
Memorandum Of Association Constitution of Company.ppt
seri bangash
 
What are the main advantages of using HR recruiter services.pdf
What are the main advantages of using HR recruiter services.pdfWhat are the main advantages of using HR recruiter services.pdf
What are the main advantages of using HR recruiter services.pdf
HumanResourceDimensi1
 
Business Valuation Principles for Entrepreneurs
Business Valuation Principles for EntrepreneursBusiness Valuation Principles for Entrepreneurs
Business Valuation Principles for Entrepreneurs
Ben Wann
 
April 2024 Nostalgia Products Newsletter
April 2024 Nostalgia Products NewsletterApril 2024 Nostalgia Products Newsletter
April 2024 Nostalgia Products Newsletter
NathanBaughman3
 
5 Things You Need To Know Before Hiring a Videographer
5 Things You Need To Know Before Hiring a Videographer5 Things You Need To Know Before Hiring a Videographer
5 Things You Need To Know Before Hiring a Videographer
ofm712785
 
Cree_Rey_BrandIdentityKit.PDF_PersonalBd
Cree_Rey_BrandIdentityKit.PDF_PersonalBdCree_Rey_BrandIdentityKit.PDF_PersonalBd
Cree_Rey_BrandIdentityKit.PDF_PersonalBd
creerey
 
Taurus Zodiac Sign_ Personality Traits and Sign Dates.pptx
Taurus Zodiac Sign_ Personality Traits and Sign Dates.pptxTaurus Zodiac Sign_ Personality Traits and Sign Dates.pptx
Taurus Zodiac Sign_ Personality Traits and Sign Dates.pptx
my Pandit
 
Skye Residences | Extended Stay Residences Near Toronto Airport
Skye Residences | Extended Stay Residences Near Toronto AirportSkye Residences | Extended Stay Residences Near Toronto Airport
Skye Residences | Extended Stay Residences Near Toronto Airport
marketingjdass
 
Improving profitability for small business
Improving profitability for small businessImproving profitability for small business
Improving profitability for small business
Ben Wann
 
Set off and carry forward of losses and assessment of individuals.pptx
Set off and carry forward of losses and assessment of individuals.pptxSet off and carry forward of losses and assessment of individuals.pptx
Set off and carry forward of losses and assessment of individuals.pptx
HARSHITHV26
 
3.0 Project 2_ Developing My Brand Identity Kit.pptx
3.0 Project 2_ Developing My Brand Identity Kit.pptx3.0 Project 2_ Developing My Brand Identity Kit.pptx
3.0 Project 2_ Developing My Brand Identity Kit.pptx
tanyjahb
 
What is the TDS Return Filing Due Date for FY 2024-25.pdf
What is the TDS Return Filing Due Date for FY 2024-25.pdfWhat is the TDS Return Filing Due Date for FY 2024-25.pdf
What is the TDS Return Filing Due Date for FY 2024-25.pdf
seoforlegalpillers
 
Buy Verified PayPal Account | Buy Google 5 Star Reviews
Buy Verified PayPal Account | Buy Google 5 Star ReviewsBuy Verified PayPal Account | Buy Google 5 Star Reviews
Buy Verified PayPal Account | Buy Google 5 Star Reviews
usawebmarket
 
anas about venice for grade 6f about venice
anas about venice for grade 6f about veniceanas about venice for grade 6f about venice
anas about venice for grade 6f about venice
anasabutalha2013
 
20240425_ TJ Communications Credentials_compressed.pdf
20240425_ TJ Communications Credentials_compressed.pdf20240425_ TJ Communications Credentials_compressed.pdf
20240425_ TJ Communications Credentials_compressed.pdf
tjcomstrang
 
Pitch Deck Teardown: RAW Dating App's $3M Angel deck
Pitch Deck Teardown: RAW Dating App's $3M Angel deckPitch Deck Teardown: RAW Dating App's $3M Angel deck
Pitch Deck Teardown: RAW Dating App's $3M Angel deck
HajeJanKamps
 
Exploring Patterns of Connection with Social Dreaming
Exploring Patterns of Connection with Social DreamingExploring Patterns of Connection with Social Dreaming
Exploring Patterns of Connection with Social Dreaming
Nicola Wreford-Howard
 

Recently uploaded (20)

RMD24 | Debunking the non-endemic revenue myth Marvin Vacquier Droop | First ...
RMD24 | Debunking the non-endemic revenue myth Marvin Vacquier Droop | First ...RMD24 | Debunking the non-endemic revenue myth Marvin Vacquier Droop | First ...
RMD24 | Debunking the non-endemic revenue myth Marvin Vacquier Droop | First ...
 
CADAVER AS OUR FIRST TEACHER anatomt in your.pptx
CADAVER AS OUR FIRST TEACHER anatomt in your.pptxCADAVER AS OUR FIRST TEACHER anatomt in your.pptx
CADAVER AS OUR FIRST TEACHER anatomt in your.pptx
 
The Parable of the Pipeline a book every new businessman or business student ...
The Parable of the Pipeline a book every new businessman or business student ...The Parable of the Pipeline a book every new businessman or business student ...
The Parable of the Pipeline a book every new businessman or business student ...
 
Memorandum Of Association Constitution of Company.ppt
Memorandum Of Association Constitution of Company.pptMemorandum Of Association Constitution of Company.ppt
Memorandum Of Association Constitution of Company.ppt
 
What are the main advantages of using HR recruiter services.pdf
What are the main advantages of using HR recruiter services.pdfWhat are the main advantages of using HR recruiter services.pdf
What are the main advantages of using HR recruiter services.pdf
 
Business Valuation Principles for Entrepreneurs
Business Valuation Principles for EntrepreneursBusiness Valuation Principles for Entrepreneurs
Business Valuation Principles for Entrepreneurs
 
April 2024 Nostalgia Products Newsletter
April 2024 Nostalgia Products NewsletterApril 2024 Nostalgia Products Newsletter
April 2024 Nostalgia Products Newsletter
 
5 Things You Need To Know Before Hiring a Videographer
5 Things You Need To Know Before Hiring a Videographer5 Things You Need To Know Before Hiring a Videographer
5 Things You Need To Know Before Hiring a Videographer
 
Cree_Rey_BrandIdentityKit.PDF_PersonalBd
Cree_Rey_BrandIdentityKit.PDF_PersonalBdCree_Rey_BrandIdentityKit.PDF_PersonalBd
Cree_Rey_BrandIdentityKit.PDF_PersonalBd
 
Taurus Zodiac Sign_ Personality Traits and Sign Dates.pptx
Taurus Zodiac Sign_ Personality Traits and Sign Dates.pptxTaurus Zodiac Sign_ Personality Traits and Sign Dates.pptx
Taurus Zodiac Sign_ Personality Traits and Sign Dates.pptx
 
Skye Residences | Extended Stay Residences Near Toronto Airport
Skye Residences | Extended Stay Residences Near Toronto AirportSkye Residences | Extended Stay Residences Near Toronto Airport
Skye Residences | Extended Stay Residences Near Toronto Airport
 
Improving profitability for small business
Improving profitability for small businessImproving profitability for small business
Improving profitability for small business
 
Set off and carry forward of losses and assessment of individuals.pptx
Set off and carry forward of losses and assessment of individuals.pptxSet off and carry forward of losses and assessment of individuals.pptx
Set off and carry forward of losses and assessment of individuals.pptx
 
3.0 Project 2_ Developing My Brand Identity Kit.pptx
3.0 Project 2_ Developing My Brand Identity Kit.pptx3.0 Project 2_ Developing My Brand Identity Kit.pptx
3.0 Project 2_ Developing My Brand Identity Kit.pptx
 
What is the TDS Return Filing Due Date for FY 2024-25.pdf
What is the TDS Return Filing Due Date for FY 2024-25.pdfWhat is the TDS Return Filing Due Date for FY 2024-25.pdf
What is the TDS Return Filing Due Date for FY 2024-25.pdf
 
Buy Verified PayPal Account | Buy Google 5 Star Reviews
Buy Verified PayPal Account | Buy Google 5 Star ReviewsBuy Verified PayPal Account | Buy Google 5 Star Reviews
Buy Verified PayPal Account | Buy Google 5 Star Reviews
 
anas about venice for grade 6f about venice
anas about venice for grade 6f about veniceanas about venice for grade 6f about venice
anas about venice for grade 6f about venice
 
20240425_ TJ Communications Credentials_compressed.pdf
20240425_ TJ Communications Credentials_compressed.pdf20240425_ TJ Communications Credentials_compressed.pdf
20240425_ TJ Communications Credentials_compressed.pdf
 
Pitch Deck Teardown: RAW Dating App's $3M Angel deck
Pitch Deck Teardown: RAW Dating App's $3M Angel deckPitch Deck Teardown: RAW Dating App's $3M Angel deck
Pitch Deck Teardown: RAW Dating App's $3M Angel deck
 
Exploring Patterns of Connection with Social Dreaming
Exploring Patterns of Connection with Social DreamingExploring Patterns of Connection with Social Dreaming
Exploring Patterns of Connection with Social Dreaming
 

1606751772-ds-lecture-6.ppt

  • 2. Previous Lectures Summary •Different forms of arguments •Modus Ponens and Modus Tollens •Additional Valid Arguments •Valid Argument with False Conclusion •Invalid argument with a true Conclusion •Converse and Inverse error •Contradictions and valid arguments
  • 4. Today’s Lecture • Predicates • Set Notation • Universal and Existential Statement • Translating between formal and informal language • Universal conditional Statements • Equivalent Form of Universal and Existential statements • Implicit Qualification • Negations of Universal and Existential statements
  • 5. Predicates A predicate is a sentence which contains finite number of variables and becomes a statement when specific values are substituted for the variables. The domain of a predicate variable is the set of all values that may be substituted in place of the variable Truth Set If P(x) is a predicate and x has domain D, the truth set of P(x) is the set of all elements of D that make P(x) true when substituted for x. The truth set of P(x) is denoted by read as “the set of all x in D such that P(x)”. { | ( )} x D P x 
  • 6. For any two predicates P(x) and Q(x), the notation means that every element in the truth set of P(x) is in the truth set of Q(x). The notation means that P and Q have identical truth sets. Consider the predicate: The truth set of the above predicate is ( ) ( ) P x Q x  Notation ( ) ( ) P x Q x  R x x   , 0   0    x R x
  • 7. Example Let P(x) = x is a factor of 8, Q(x)= x is a factor of 4 and R(x)= x < 5 and . The domain of x is assumed to be . Use symbols , to indicate true relationships among P(x), Q(x) and R(x). a. The truth set of P(x) is {1,2,4,8}, Q(x) is {1,2,4}. Since every element in the truth set of Q(x) is in the truth set of P(x), So b. The truth Set of R(x) is {1,2,4}, which is identical to the truth set of Q(x). Hence . Cont… ( ) ( ) Q x P x  ( ) ( ) Q x R x    3 x   Z
  • 8. Cont… Let Q(x, y) be the statement x + y = x − y where the domain for x and y is the set of all real numbers. Determine the truth value of: (a) Q(5,−2). (b) Q(4.7, 0). (c) Determine the set of all pairs of numbers, x and y, such that Q(x, y) is true. Solution: (a) Q(5,−2) says that 5 + (−2) = 5 − (−2), or 3= 7, which is false. (b) Q(4.7, 0) says that 4.7+ 0 = 4.7 − 0, which is true. (c) x + y = x − y if and only if x + 2y = x, which is true if and only if y = 0. Therefore, x can be any real number and y must be zero.
  • 9. Universal and Existential Statements Let Q(x) be a predicate and D the domain of x. A universal statement is of the form “ ”. It is true if and only if Q(x) is true for all x in D and it is false if and only if Q(x) is false for at least one x in D. A value for x for which Q(x) is false is called a counterexample to the universal statement. Example: Let D={1,2,3,4,5} and consider the statement Show that this statement is true. Solution: Check that is true for each individual x in D. , ( ) x D Q x   2 , . x D x x    2 " ". x x  2 2 1 1 2 2   2 2 3 3 4 4   2 2 5 5 6 6  
  • 10. Cont….. Hence is true. The technique used in first statement while showing the truthness of the universal statement is called method of exhaustion. Consider the statement Find the counter example to show that this statement is not true. Counter example . Take x=1/2, then x is in R and Hence is false. 2 , . x D x x    2 , . x R x x    2 1 1 2 2              2 , . x R x x   
  • 11. Existential Quantifier Let Q(x) be a predicate and D the domain of x. An existential statement is of the form. such that It is true if and only if Q(x) is true for at least one x in D. It is false if and only if Q(x) is false for all x in D. The symbol denotes “there exist” and is called the existential quantifier.  D x  ) (x Q
  • 12. Truth and falsity of Existential statements Suppose P(x) is the predicate “x < |x|.” Determine the truth value of ∃ x s.t. P(x) where the domain for x is: (a) the three numbers 1, 2, 3. (b) the six numbers −2,−1, 0, 1, 2, 3. Solution (a) P(1), P(2), and P(3) are all false because in each case x = |x|. Therefore, ∃ x such that P(x) is false for this domain. (b) If we begin checking the six values of x, we find P(−2) is true. It states that −2 < |−2|. We need to check no further; having one case that makes the predicate true is enough to guarantee that ∃ x s.t. P(x) is true.
  • 13. Truth and falsity of Existential statements Consider the statement . Show that this statement is true. Sol: observe that . Thus is true for at least one integer m . Hence is true. Let E={5,6,7,8,9,10} and consider the statement Show that this statement is false. Sol: the statement is not true for every value of the E. Thus is false. 2 1 1  2 m m  m m t s Z m    2 . . m m t s Z m    2 . . m m t s E m    2 . . m m t s E m    2 . .
  • 14. Translating from formal to informal language Rewrite the following statements in a variety of equivalent but more informal ways. Do not use the symbol a) b) c) Solution: a) we can write the statement in many ways like “ All real numbers have non negative squares”, “No real number has a negative square”, “ x has a non negative square, for each value of x”. ,   2 , 0. x R x    2 , 1. x R x     m m t s Z m    2 . .
  • 15. Cont…. b). Similarly we can translate the second statement in these ways. “ All real numbers have squares not equal to -1”, “No real number have square equal to -1”. c). “There is an integer whose square is equal to itself”, “we can find at least one integer equal to its own square”
  • 16. Cont… Write the following statement in English, using the predicates F(x): “x is a Freshman” T (x, y): “x is taking y” where x represents students and y represents courses: ∃x (F(x) ∧ T (x, Discrete Math)) Solution The statement ∃ x (F(x)∧T (x, Discrete)) says that there is a student x with two properties: x is a freshman and x is taking Discrete. In English, “Some Freshman is taking Discrete Math.”
  • 17. Translating from informal Language to Formal language “Every freshman at the College is taking CSC 102.” Solution: There are various ways to answer this question, depending on the domain. • If we take as our domain all freshmen at the College and use the predicate T (x) : “x is taking CSC 102”, then the statement can be written as ∀x, T(x). • We are making a conditional statement: “If the student is a freshman, then the student is taking CSC 101;” ∀x, (F(x) → T (x)). Note that we cannot say ∀ x (F(x) ∧ T (x)), because this says that every student is a freshman, which is not something we can assume here.
  • 18. Cont….. “Every freshman at the College is taking some Computer Science course.” Sol: If we take as our domain for people all freshmen at the College and our domain for courses, all Computer Science courses. Then we can use the predicate T (x, y): “x is taking y” The statement can be written as ∀x ∃y T(x, y).
  • 19. Universal Conditional Statements A reasonable argument can be made that the most important form of statement in mathematics is the universal conditional statement: ∀ x, if P(x) then Q(x) Example: “Everyone who visited France stayed in Paris.” Sol: However, if we take all people as the universe , then we need to introduce the predicate F(x) for “x visited France.” and P(x) is the predicate “x stayed in Paris.” In this case, the proposition can be written as ∀ x, (F(x) → P(x)).
  • 20. • We can write the following statements in a variety of informal ways. if then Sol: • if a real number is greater then 2, then the square is greater than 4. • Whenever a real number is greater then 2, its square is greater than 4. • The squares of real number, greater than 2, are greater than 4. , x R   2 x  2 4 x 
  • 21. Exercise Rewrite the following statements in the form ∀ ,if then . a) If a real number is an integer, then it is a rational number. a) All bytes have eight bits. b) No fire trucks are green. Sol: a). b). ∀ x, if x is a byte, then x has eight bits. c). ∀ x, if x is a fire truck, then x is not green. , , . x R ifx Z thenx Q    
  • 22. Equivalent Forms of Universal and Existential statements Observe that the two statements “∀ real numbers x, if x is an integer then x is rational” and “∀ integers x, x is rational” mean the same thing. In fact, a statement of the form if P(x) then Q(x). Can always be rewritten in the form Can be rewritten as ∀x, if x is in D then Q(x). , ( ) x D Q x   , U x 
  • 23. Contd. The following statements are equivalent ∀ polygons P, if P is square, then P is a rectangle. And ∀ squares P, P is a rectangle The existential statements ∃ x belongs to U such that P(x) and Q(x). And ∃ x belongs to D such that Q(x) Are also equivalent provided D is taken to consist of all elements in U that make P(x) true.
  • 24. Equivalence form for existential statement The following statements are equivalent: ∃ a number n such that n is prime and n is even And ∃ a prime number n such that n is even.
  • 25. Implicit Quantifications • Consider “ If a number is an integer, then it is a rational number” The clue to indicate its universal quantifications comes from the presence of the indefinite article “a”. Existential quantification can also be implicit. for instance, “ the number 24 can be written as a sum of sum of two integers” “∃ even integers m and n such that 24=m + n.”
  • 26. The negation of the statement of the form ∀ x in D, Q(x) is logically equivalent to a statement of the form ∃ x in D such that ~Q(x) Symbolically: Note: the negation of universal statement is logically equivalent to existential statement. Negations of Quantified Statement ~ ( , ( )) ~ ( ). x D Q x x D Q x      
  • 27. The negation of the statement of the form ∃ x in D such that Q(x) is logically equivalent to a statement of the form ∀ x in D, ~Q(x) Symbolically: Note: the negation of existential statement is logically equivalent to universal statement. Cont…. ~ ( ( )) ,~ ( ). x D Q x x D Q x      
  • 28. Examples Negate “Some integer x is positive and all integers y are negative.” Solution: Using all integers as the universe for x and y, the statement is ∃ x s.t. (x > 0) ∧ ∀ y, (y < 0). The negation is ~{∃x (x > 0) ∧ ∀ y (y < 0)}≡ ~∃x s.t. (x > 0) ∨ ~∀y, (y < 0): by De Morgan’s law ≡ ∀ x, ~(x > 0) ∨ ∃ y s.t. ~(y < 0) properties of negation ≡ ∀ x, (x ≤ 0) ∨ ∃ y s.t. (y ≥ 0). Therefore, the negation is “Every integer x is non positive or there is an integer y that is nonnegative.”
  • 29. Cont…. Negate “There is a student who came late to class and there is a student who is absent from class.” Solution: In symbols, if L(x) : “x came late to class” and A(x) : “x is absent from class,” this statement can be written as ∃ x st L(x) ∧ ∃ y st A(y). Note that we must use a second variable y. By one of De Morgan’s laws the negation can be written as ~(∃ x st L(x)) ∨ ~(∃ y st A(x)) ≡ ∀x, ~L(x) ∨ ∀ y, ~A(x). In English this is “No student came late to class or no student is absent from class.”
  • 30. Lecture Summary • Predicates • Set Notation • Universal and Existential Statement • Translating between formal and informal language • Universal conditional Statements • Equivalent Form • Implicit Qualification • Negations