3 Predicate Logic-1
3 Predicate Logic-1
Semester I 2020/2021
Tutorial 3 (Predicate Logic) number
all real
-
1. Let U be the real numbers, define P(x, y): x. y = 0. What is the truth value of the following:
'
a. x yP(x, y) False y =D
b. x⇥yP(x, y) True
c. ⇥x yP(x, y) True -0,9=0 ×
d. ⇥x⇥yP(x, y) False ✗
→
all
real number
true /
0
2. Let U be the real numbers, define P(x, y): x ⁄ y = 1. What is the truth value of the following:
a. x yP(x, y) False for some of
b. x⇥yP(x, y) true the number
c. ⇥x yP(x, y) False
d. ⇥x⇥yP(x, y) False✗ =yy=i ✗
true
3. Translate each of the following statements into logical expressions using predicates,
quantifiers, and logical connectives. 7th ) LCX ) F ✗ LCX )
=
A(x): x is an AI 95 student
L(x): x loves music
Universe of discourse for the variable x is all students.
a) Every student loves music. TXLCX ) /
→ all students don't Love music
b) No student loves music. th
-
L ( ×) -
d) The product of two negative real numbers is not negative. b-✗ ( NH ) → MIX ))
e) There is a man who has taken a flight on every airline in the world. 1- ✗ ty Play)
5. Express the statement “there is a number x such that when it is added to any number, the result
is that number, and if it is multiplied by any number, the result is x” as a logical expression.
GX PCX )
6. All people who are not poor and are smart are happy. Those people who read are smart. Adam
can read and is not poor. Happy people have exciting lives.
Write the sentences in predicate calculus, using appropriate predicates.
7. Identify the error or errors in this argument that supposedly shows that if ⇥x P(x) ⇤ ⇥x Q(x) is
true then ⇥x ( P(x)⇤Q(x) ) is true.
1. ⇥xP(x) ⇤ ⇥xQ(x) Premise
2. ⇥xP(x) Simplification from (1)
3. P(c) Existential instantiation from (2)
4. ⇥xQ(x) Simplification from (1)
5. Q(c) Existential instantiation from (4)
6. P(c) ⇤ Q(c) Conjunction from (3) and (5)
7. ⇥x(P(x) ⇤ Q(x)) Existential generalization
8. Use rules of inference to show that if x(P(x) → (Q(x)⇤S(x))) and x(P(x)⇤R(x)) are true,
then x(R(x) ⇤ S(x)) is true.
WIX1001 Mathematics for Computing I
Semester I 2020/2021
Tutorial 3 (Predicate Logic)
1. Let U be the real numbers, define P(x, y): x. y = 0. What is the truth value of the following:
a. x yP(x, y) False y
-9=10
n =L
0
: z
U
n
=D
b. x⇥yP(x, y) True
m = or
y= n -
y
y :O
c. ⇥x yP(x, y) True n :O
=/
✗
N=y
,
Either n=o or
y :O Tuen n .y=o is true y=n %#
2. Let U be the real numbers, define P(x, y): x ⁄ y = 1. What is the truth value of the following:
a. x yP(x, y) False Xly ✗ =
4 •
y=2 ,
=
2
↳ puny ] -
My -4 is true V- ✗ Ky when ✗
=3 except ✗
=o,y=0
3. Translate each of the following statements into logical expressions using predicates,
quantifiers, and logical connectives.
Predicates:
A(x): x is an AI 95 student
L(x): x loves music
Universe of discourse for the variable x is all students.
a) Every student loves music.
b) No student loves music.
c) Some students love music.
d) Every AI 95 student loves music.
e) Some AI 95 students love music.
V-xzytcx.gg loves
b) Everyone loves somebody. ,y C- Person Lcxiy y ✗
✗ ) =
Nox , : a
3- ✗
y)
:
,y ) y n
Mtg y : N
- -
N y × , 0.4=0
- -
y=¢
-
, , y :c, 0+4=0
6. All people who are not poor and are smart are happy. Those people who read are smart. Adam
can read and is not poor. Happy people have exciting lives.
Write the sentences in predicate calculus, using appropriate predicates.
7. Identify the error or errors in this argument that supposedly shows that if ⇥x P(x) ⇤ ⇥x Q(x) is
that true then ⇥x ( P(x)⇤Q(x) ) is true.
-1×+1-7×11 ]x× ① true
Given ) -
-
1. ⇥xP(x) ⇤ ⇥xQ(x) Premise
"
7×12×3 ③ must -
true ①
2.
Have to be true
⇥ xP(x) conjuration elimination
-
be
Simplification from (1)
FXQCX
i. ④ must) -
3. P(c) also be true Existential instantiation from (2)
4. ⇥xQ(x)
0 Simplification from (1)
5. Q(c) Existential instantiation from (4)
6. P(c) ⇤ Q(c) Conjunction from (3) and (5)
7. ⇥x(P(x) ⇤ Q(x)) Existential generalization
8. Use rules of inference to show that if x(P(x) → (Q(x)⇤S(x))) and x(P(x)⇤R(x)) are true,
then x(R(x) ⇤ S(x)) is true.③ ← ÷
=
Pcxiy )
: ✗ +
y
-
y 7. ✗ tyfpcx y
, ) n Q ix. y ) )
Mlx y )
,
:
✗
y :X
⑧÷¥÷;?%④-③%m①±ÉÉ×uni From
④
:p (c) → Q Cc )
PC → Q
A Scc )
(c) 1sec)
-
⑦
• Modus
ponens
iRCc③ from ⑤
⑧
⑧
Q÷?¥⑨I
From conj -
Elim
③
To prove
from ⑥ -
R (c) Rcc31Sc if RC A Sec,
from ④
is true for all
-
SCC )
V¥
"
in the domain
ugh:c
C ,
then can
generalize
.
we -
( 95 At student
a) V- ✗ LIX ) d) V- ✗ ( AA ) → LCX) )
b) V- ✗ 'Ll × ) e) Fx ( Ai) n L (X ) )
c) Fx L (X )
P ( x ) :
People who poor i. →
H ( X)
People who are happy 3
-
: .
R ( X) read ( HH ) Ecx ) )
People tix →
: who are a.
ECX) :
exciting lives
b- ✗ f- Pcx ) nscx ) →
Hex) )
tx Ra ) → scx )
Rt Adam ) n
7
PC Adam )
b- ✗ ( HH ) → Ead )
0
WIX ) : walks 3- ✗ ( WIX ) AT Cx)) 11×1love somebody
:
T CX ) : Talks YXLCX )
0
P lx ) :
Product of two negative real number
BCX ) N Cx)
: Brothers :
negative number
SIX) siblings ( Pex ) Next)
-
:
v. ✗ →
Fx ( Bk) → scx) )
✗ :
man who has taken a
Alight
y :
every airline in trewovld
7- ✗ Nix Pcx y ) ,
<
conjunction
elimination
.
Cr t
FxÉ -
①
i.
FXPCX ) -
②
: .
1- ☒ Q (X )
-
③ ( conjunction elimination )
from ② Fxpcx )
④ Pic) -
examples:
Fxpcx ) A 3- ✗ Qcx )
€11.1300k
PCX )
>
:
✗
Some
writes
✗
a
people writes
is
book
exciting
a
✗
book
f- Person
✗ C- book
P (c) QCC)
it
✗ ✗ is the
can be
different object same object
① ②
③
F T
-
② is true
- : ltxltdcx , nscx ) ) ③ -
is true
'
-
-
✗ (c) n R cc )
-
④
i. Rcc )
-
→
.
- -
i.
Qcc) nscc ) -
⑧
From ⑧ ,
Q (C) A SCC )
i. Q (c) - ⑨ congius . Elin
-
i. Scc) -
④
From ⑨ R (c)
n{¥scs
④
>
✗ ( Rce ) n Scc ] )
uni .
general
-