IS2 Problem Sheet I IS2 Problem Sheet I

Question 1
Translate the following compound propositions into symbols:
(i) Napoleon is dead and the world is rejoicing.
(ii) If all eggs are not square, then all eggs are oval.
(iii) If the barometer falls then either it will rain or it will snow.
(iv) If there is low humidity and the sun is shining, then I will play tennis this afternoon.
(v) The sum of two numbers is even if and only if either both numbers are even or both numbers are odd.

Question 2
Write out the truth tables for the following compound expressions:
(i) (Øp) Ú(Øq)
(ii) (p ® q) ® (Ø(q ® p))
(iii) (p Ùq) ® r
(iv) ( p « (Øq)) Úq
(v) (((Øp ) Ùq) ® (( Øq ) Ùr))

Question 3
Which of the following propositions are tautologies?
(i) p ® (q ® p )
(ii) (q Úr) ® ((Ør) ® q )
(iii) ( p Ù(Øq)) Ú(( q Ù(Ør)) Ú(r Ù(Øp)))
(iv) (p ®(q ® r)) ® ((p Ù(Øq)) Úr)

Question 4
Write the converse, inverse, contrapositive and negation of the following statement:
``If Sandra finishes her work, then she will go to the cinema''

Question 5
Show that the following pairs of statements are logically equivalent
(i) p ® q, ( Øq ) ® (Øp)
(ii) ((Øp) Ù(Øq)) ® (Ør), r ® q Úp
(iii) ((Øp) Úq) ® r, (p Ù(Øq))Úr

Question 6
Use De Morgan's laws to find and simplify the negation of:
(i) (Øa) Ùb
(ii) a Ú(Øb)
(iii) a Ú(b Ùc)
(iv) a Ú((Øb) Ùc)
(v) (Øa) Ú(b Ùc)
(vi) ((Øa) Ùb) Ú((Ød) Ùc)
(vii) (a Ùb) Ú(Ø( d Ùc))

Question 7
Test the validity of the following arguments:
(a) If the function f is not continuous then the function g is not differentiable. g is differentiable. Therefore f is continuous.
(b) If there is oil in Polygonia then either the experts are right or the government is lying. There is no oil in Polygonia, or else the experts are wrong. Therefore the government is not lying.
(c)If U is a subspace of V then U is a subset of V, U contains the zero vector and U is closed. U is a subset of V, and if U is closed then U contains the zero vector. Therefore if U is closed then U is a subspace of V.
(d) If Rachel gets the supervisor's position and works hard, then she'll get a raise. If she gets the raise, then she'll buy a new car. She has not purchased a new car. Therefore either Rachel did not get the supervisor's position or she did not work hard.

Question 8
In the following question take the domain of discourse to be the integers.
Let p(x), q(x), r(x), s(x)  and t(x) be the following predicates:

p(x)
:
x > 0
q(x)
:
x is even
r(x)
:
x is a perfect square
s(x)
:
x is (exactly) divisible by 4
t(x)
:
x is (exactly) divisible by 5
Write the following statements in symbolic form:
(i) There exists a positive integer that is even.
(ii) If x is even, then x is not divisible by 5.
(iii) Every even integer is not divisible by 5.
(iv) There exists an even integer divisible by 5
(v) If x is even and x is a perfect square, then x is divisble by 4.

Question 9 Negate and simplify each of the following:
(i) $x [p(c) Úq(x)]
(ii) "[p(x) ÙØq(x)]
(iii) "x [p(x) ® q(x)]
(iv) $x [(p(x) Úq(x)) ® r(x)]
(v) $x [p(x) ® (q(x) Ùr(x))]

Answers

Question 1
(i) p Ùq
(ii) (Øp) ® q
(iii) p ® (q Úr)
(iv) (p Ùq) ® r
(v) p « (q Úr)

Question 2

p q Øp Øq (Øp) Ú(Øq)
T T F F F
T F F T T
F T T F T
F F T T T

Table 1: Truth Table for (Øp ) Ú(Øq )

p q p ® q q ® p Ø(q ® p) (p ® q) ® (Ø(q ® p))
T T T T F F
T F F T F T
F T T F T T
F F T T F F

Table 2: Truth Table for (( p ® q) ® (Ø(q ® p)))

p q r p Ùq (p Ùq ) ® r
T T T T T
T T F T F
T F T F T
T F F F T
F T T F T
F T F F T
F F T F T
F F F F T

Table 3: Truth Table for ( p Ùq) ® r

p q Øq p « (Øq) (p « (Øq)) Úq
T T F F T
T F T T T
F T F T T
F F T F F

Table 4: Truth Table for ( (p «(Øq)) Úq)

p q r Øp (Øp) Ùq Øq (Øq) Ùr) (((Øp)Ùq) ® (( Øq) Ùr))
T T T F F F F T
T T F F F F F T
T F T F F T T T
T F F F F T F T
F T T T T F F F
F T F T T F F F
F F T T F T T T
F F F T F T F T

Table 5: Truth Table for (((Øp) Ùq ) ® ((Øq) Ùr))

Question 3

p q q® p p ® (q ® p)
TTT T
TFTT
FTFT
FFTT

Table 6: Truth Table for (p ® (q ® p )), this is a tautology.

q r q Úr Ør Ør ® q (q Úr) ® ((Ør) ® q)
TTTFTT
TFTTTT
FTTFTT
FFFTFT

Table 7: Truth Table for ((q Úr) ® ((Ør) ® q )), this is a tautology.

p q r Øq p Ù(Øq) Ør q Ù(Ør) Øp r Ù(Øp)
TTTFFFFFF
TTFFFTTFF
TFTTTFFFF
TFFTTTFFF
FTTFFFFTT
FTFFFTTTF
FFTTFFFTT
FFFTFTFTF

(q Ù(Ør)) Ú(r Ù(Øp)) (p Ù(Øq)) Ú((q Ù(Ør)) Ú(r Ù(Øp)))
F F
T T
F T
F T
T T
T T
T T
F F

Table 8: Truth Table for (( p Ù(Øq)) Ú(( q Ù(Ør)) Ú(r Ù(Øp)))), this is not a tautology.

p q r q ® r p®(q® r) Øq p Ù(Øq) (p Ù(Øq)) Úr (p ® (q ® r)) ® (p Ù(Øq) Úr)
TTTTTFFTT
TTFFFFFFT
TFTTTTTTT
TFFTTTTTT
FTTTTFFTT
FTFFTFFFF
FFTTTTFTT
FFFTTTFFF

Table 9: Truth Table for ((p ®(q ® r)) ® ((p Ù(Øq)) Úr)), this is not a tautology.

Question 4
p = `` Sandra finishes her work''
q =`` Sandra goes to the cinema''
Statement: p ® q
Converse (q® p): ``If Sandra goes to the cinema then she will finish her work''
Inverse: ((Øp)® (Øq)) = ``If Sandra does not finish her work then she will not go to the cinema''
Contrapositive: ((Øq)® (Øp)) = ``If Sandra does not go to the cinema then she will not finish her work''
Negation: (Ø(p® q) º Ø(Øp Úq) º p Ù(Øq)) = `` Sandra finishes her work and does not go to the cinema''

Question 5

(a)

p® q
º
Øp Úq
º
q ÚØp
º
(Øq) ® (Øp)

(b)

((Øp)Ú(Øq)) ® (Ør)
º
(Ø(p Ùq )) ® (Ør)
º
(Ø(Ø(p Ùq ))) Ú(Ør)
º
(p Ùq ) Ú(Ør)
º
(Ør) Ú(q Ùp )
º
r ® (q Ùp )

(c)

((Øp)Úq) ® r
º
(Ø((Øp) Úq )) Úr
º
(p Ú(Øq)) Úr

Question 6
(i) a Ú(Øb)
(ii) (Øa) Ùb
(iii) (Øa) Ù((Øb) Ú(Øc))
(iv) (Øa) Ù( b Ú(Øc))
(v) a Ù((Øb)Ú(Øc))
(vi) (a Ú(Øb)) Ù(d Ú(Øc))
(vii) ((Øa) Ú(Øb)) Ù(d Ùc)

Question 7
(a)
p = ``Function f is continuous.''
q = ``Function g is differentiable''.
(Øp) ® (Øq). q . Therefore p.
(((Øp) ® (Øq)) Úq) ® p is a tautology, therefore the argument is valid.

(b)
p = ``There is oil in Polygonia"
q=``The experts are right''
r=``The government is lying''
p ® (q Úr). (Øp) Ú(Øq). Therefore (Ør)
((p ® (q Úr)) Ù((Øp) Ú(Øq)))® (Ør) is not a tautology, therefore the argument is not valid.

(c)
p = ``U is a subspace of V.''
q = ``U is a subset of V.''
r = ``U contains the zero vector.''
s = ``U is closed.''
p ® (q Ùr Ùs). q. (s ® r) Therefore (s ® p).
((p ® (q Ùr Ùs)) Ù(q) Ù(s ® r))) ® (s ® p) is not a tautology, therefore the argument is not valid.

(d)
p= ``Rachel gets the supervisor's position''
q = ``Rachel works hard''
r = ``Rachel gets a raise''
s= ``Rachel buys a new car''
(p Ùq) ® r. r ® s. (Øs). Therefore (Øp) Ú(Øq).
(((p Ùq) ® r) Ù( r ® s) Ù(Øs)) ® ((Øp) Ú(Øq)) is a tautology, therefore the argument is valid.

Question 8
(i) $x  [ q(x)]
(ii) "x  [ q(x) ® (Øt(x))]
(iii) "x  [q(x) ® (Øt(x))]
(iv) $x  [q(x) Ùt(x)]
(v) "x  [(q(x) Ùr(x)) ® s(x)]

Question 9
(i) "x [(Øp(x)) Ù(Øq(x))]
(ii) $x  [(Øp(x)) Úq(x)]
(iii) $x [ p(x) Ù(Øq(x))]
(iv) "x  [(p(x) Úq(x)) Ù(Ør(x))]
(v) "x [p(x) Ù((Øq(x)) Ú(Ør(x)))]


File translated from TEX by TTH, version 2.10.
On 6 May 1999, 13:44.