Utilizing Predicates and Quantifiers in Discrete Math

undefined
D
D
i
i
s
s
c
c
r
r
e
e
t
t
e
e
 
 
M
M
a
a
t
t
h
h
:
:
P
r
e
d
i
c
a
t
e
s
 
a
n
d
 
Q
u
a
n
t
i
f
i
e
r
s
E
x
e
r
c
i
s
e
 
5
E
x
e
r
c
i
s
e
Let P (x) be the statement “x can speak Russian” and let Q(x) be the
statement “x knows the computer language C++.” Express each of these
sentences in terms of P (x), Q(x), quantifiers, and logical connectives.
The domain for quantifiers consists of all students at your school.
a)  
There is a student at your school who can speak Russian and who knows
C++.
b)  
There is a student at your school who can speak Russian but who doesn’t
know C++.
c)  
Every student at your school either can speak Russian or knows C++.
d)  
No student at your school can speak Russian or knows C++.
S
o
l
u
t
i
o
n
a) We assume that this sentence is asserting that the same person has
both talents. Therefore we can write 
x(P(x) 
 Q(x)). 
b) 
Since "but" really means the same thing as "and" logically, this is 
x (P(x) 
 ¬ 
Q(x))
c) This time we are making a universal statement: 
x(P(x) 
 
Q(x))
d) 
This sentence is asserting the nonexistence of anyone with either
talent, so we could write it as ¬
x(P(x) 
 Q(x)). 
Alternatively, we can think of this as asserting that everyone fails to have
either of these talents, and we obtain the logically equivalent answer 
'
'x 
¬
(P(x) 
Q(x)).
Failing to have either talent is equivalent to having neither talent (by De
Morgan's law), so we can also write this as 
x((
¬ 
P(x)) 
 
(
¬ 
Q(x)). 
Note
that it would 
not 
be correct to write 
x((
¬ 
P(x)) 
 
(
¬
Q(x)) 
nor to write
'
'x 
¬
(P(x) 
 
Q(x)).
References
D
i
s
c
r
e
t
e
 
M
a
t
h
e
m
a
t
i
c
s
 
a
n
d
 
I
t
s
 
A
p
p
l
i
c
a
t
i
o
n
s
,
 
M
c
G
r
a
w
-
H
i
l
l
;
 
7
t
h
 
e
d
i
t
i
o
n
(
J
u
n
e
 
2
6
,
 
2
0
0
6
)
.
 
K
e
n
n
e
t
h
 
R
o
s
e
n
D
i
s
c
r
e
t
e
 
M
a
t
h
e
m
a
t
i
c
s
 
A
n
 
O
p
e
n
 
I
n
t
r
o
d
u
c
t
i
o
n
,
 
2
n
d
 
e
d
i
t
i
o
n
.
 
O
s
c
a
r
 
L
e
i
n
A
 
S
h
o
r
t
 
C
o
u
r
s
e
 
i
n
 
D
i
s
c
r
e
t
e
 
M
a
t
h
e
m
a
t
i
c
s
,
 
0
1
 
D
e
c
 
2
0
0
4
,
 
E
d
w
a
r
d
 
B
e
n
d
e
r
 
&
S
.
 
G
i
l
l
 
W
i
l
l
i
a
m
s
o
n
Slide Note
Embed
Share

Expressing statements using predicates, quantifiers, and logical connectives in the context of language capabilities of students at a school. The sentences involve students speaking Russian and knowing C++. Solutions and explanations provided for each scenario, showcasing the application of universal and existential quantifiers, as well as logical equivalences.

  • Discrete Math
  • Predicates
  • Quantifiers
  • Logical Connectives
  • Language Capabilities

Uploaded on Oct 08, 2024 | 0 Views


Download Presentation

Please find below an Image/Link to download the presentation.

The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author.If you encounter any issues during the download, it is possible that the publisher has removed the file from their server.

You are allowed to download the files provided on this website for personal or commercial use, subject to the condition that they are used lawfully. All files are the property of their respective owners.

The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author.

E N D

Presentation Transcript


  1. Discrete Math: Predicates and Quantifiers Exercise 5

  2. Exercise Let P (x) be the statement x can speak Russian and let Q(x) be the statement x knows the computer language C++. Express each of these sentences in terms of P (x), Q(x), quantifiers, and logical connectives. The domain for quantifiers consists of all students at your school. a) There is a student at your school who can speak Russian and who knows C++. b) There is a student at your school who can speak Russian but who doesn t know C++. c) Every student at your school either can speak Russian or knows C++. d) No student at your school can speak Russian or knows C++.

  3. Solution a) We assume that this sentence is asserting that the same person has both talents. Therefore we can write x(P(x) Q(x)). b) Since "but" really means the same thing as "and" logically, this is x (P(x) Q(x)) c) This time we are making a universal statement: x(P(x) Q(x)) d) This sentence is asserting the nonexistence of anyone with either talent, so we could write it as x(P(x) Q(x)). Alternatively, we can think of this as asserting that everyone fails to have either of these talents, and we obtain the logically equivalent answer ' 'x (P(x) Q(x)). Failing to have either talent is equivalent to having neither talent (by De Morgan's law), so we can also write this as x(( P(x)) ( Q(x)). Note that it would not be correct to write x(( P(x)) ( Q(x)) nor to write ' 'x (P(x) Q(x)).

  4. References Discrete Mathematics and Its Applications, McGraw-Hill; 7th edition (June 26, 2006). Kenneth Rosen Discrete Mathematics An Open Introduction, 2nd edition. Oscar Le in A Short Course in Discrete Mathematics, 01 Dec 2004, Edward Bender & S. Gill Williamson

More Related Content

giItT1WQy@!-/#giItT1WQy@!-/#giItT1WQy@!-/#giItT1WQy@!-/#giItT1WQy@!-/#