Assignment02-LogicAndProofs II
Assignment02-LogicAndProofs II
Rules of Inference
1) (10 points) What rule of inference is used in each of these arguments?
a) Salem is a mathematics major. Therefore, Salem is either a mathematics major or a computer
science major.
b) Ahmad is a mathematics major and a computer science major. Therefore, Ahmad is a
mathematics major.
c) If it is rainy, then the pool will be closed. It is rainy. Therefore, the pool is closed.
d) If it snows today, the university will close. The university is not closed today. Therefore, it did not
snow today.
e) If I go swimming, then I will stay in the sun too long. If I stay in the sun too long, then I will
sunburn. Therefore, if I go swimming, then I will sunburn.
ICS 253 – Discrete Structure I (231)
Assignment 2: Logic and Proofs (II)
Page 2 of 2
2) (12 points) For each of these arguments, explain which rules of inference are used for each step.
a) “Hani, a student in this class, owns a red convertible. Everyone who owns a red convertible has
gotten at least one speeding ticket. Therefore, someone in this class has gotten a speeding
ticket.”
b) “Each of five roommates, Ali, Ahmad, Sami, Mazen, and Jamal, has taken a course in discrete
mathematics. Every student who has taken a course in discrete mathematics can take a course in
algorithms. Therefore, all five roommates can take a course in algorithms next year.”
c) “All books written by Abdullah Abdulrahman are wonderful. Abdullah Abdulrahman wrote a
book about Local Sports. Therefore, there is a wonderful book about Local Sports.”
d) “There is someone in this class who has been to France. Everyone who goes to France visits the
Louvre. Therefore, someone in this class has visited the Louvre.”
3) (10 points) Identify the error or errors in this argument that supposedly shows that if
∀𝑥 𝑃(𝑥) ∨ 𝑄(𝑥) true then ∀𝑥𝑃(𝑥) ∨ ∀𝑥𝑄(𝑥) is true.
1. ∀𝑥 𝑃(𝑥) ∨ 𝑄(𝑥) Premise
2. 𝑃(𝑐) ∨ 𝑄(𝑐) Universal instantiation from (1)
3. P(c) Simplification from (2)
4. ∀𝑥𝑃(𝑥) Universal generalization from (3)
5. Q(c) Simplification from (2)
6. ∀𝑥𝑄(𝑥) Universal generalization from (5)
7. ∀𝑥𝑃(𝑥) ∨ ∀𝑥𝑄(𝑥) Conjunction from (4) and (6)
Introduction to Proofs
1) (8 points) Use a direct proof to show that every odd integer is the difference of two squares.
2) (10 points) Prove that if n is a positive integer, then n is odd if and only if 5n + 6 is odd.
YE Au cuisines
CIS NCH
All students in your shot likes
some student On your school like Korea cuisine and Yuryc
There exist a
cuisine where either monique
AP 22J V P 3 1 NPC3,21
Ci Pll NNPC ITV 211
A fytx Peay
B Fx Hy P Xy
Ci Fy Q Y VIX Roxy
E Ay Fx Az T x y 2 A 4 72 U xig 2
A Addition rule P
N ato
B simplification rule p
4 Ahmadis es major
C modus Ponous p
ly a
D modus follows P R
g
g
i P snow today
Fiflypothitin syllossim P n
I_É
FF
A
x Xis student in this das
Rex X owns A Red convertible
1 hani hypothesis
2 RChani hypothesis
3 Fx Rex ta hypothesis
Universal instation 3
Y R Chani fChani
5 t hani using modus Pontus 2 4
Bi real x is one
of tho 5 roomatos costed
d x X has taken a
course in discant math
a x X has taken a
course in Algorthins
Given
conclude Fx Vex a ex
C
b X X is A Book Written By Abduh ABdulrahm
wax X is wonderful Book
II is a
book about local sports
Given
Ix WINK
stops
I bex h 10 4480
1
2 begot edy instantion l
3 b y simplification z
Y 1 y 1 1 Z 27
D
eco x is this class
f
fax X has boon france
Lex X has visited tho Louvre
Condado Fx Ca AL X
stops
1 Fx Ca Nfa hyp
2 y Nfa Exisentine instantiation l
3 f y Simplifiation 2
Y C y Simplifiation D
p g
first
l N 2kt I I KEZ
2 54 6 5 2k 11 6
to kill we can write it as loktiotl
odd
2 5k 5 0 5nt6 is
P will
second Provo A I use contrapositive
MILK KEI
512K t6
Lok 6
2 34 3
Dimon q men or mi n
prove poor 4 98
1 Peg
ME n
me n o at bi a b atb
o
m n mta
M N M n
if me n than me Eni
7 ME n which is true
9 ME cut
n which is true