Академический Документы
Профессиональный Документы
Культура Документы
Your submission must be created using Microsoft Word, Google Docs, or LaTeX.
Your submission must be saved as a "pdf" document and have the name "a1.pdf"
The due date for this assignment is January 21, 2017, by 11:30pm.
1. Let p be the proposition "It is January", q be the proposition "It is cold outside",
and r be the proposition "I am Canadian". Translate the following expressions
into English. 4 marks total
a. 𝑞 ∨ 𝑟
b. ¬𝑝 ⋀ ¬𝑞
c. 𝑟 ⋀ 𝑝 → ¬𝑞
d. 𝑞 ⊕ 𝑟
2. Translate the following English expressions into logical statements. You must
explicitly state what the atomic propositions are (e.g., "Let p be proposition ...")
and then show their logical relation. 4 marks total
a. I like computer science and I like teaching but I don't like email.
3. Determine which of the following are True and explain why or why not.
4 marks total
b. 1 = 2 or 2 > 1.
(1 = 2) (2 > 1)
False True
True
(or, alternatively: "Since 6 is not less than 2, at least one of the
propositions in this conjunction of three propositions will be false, and
since conjunctions are only true if all the component propositions are
true, this expression must evaluate to false.")
COMP1805 (Winter 2017) "Discrete Structures I"
Specification for Assignment 1 of 4
(9 = 8) Nyarlathotep
False Nyarlathotep
True
(or, alternatively: "Since 9 8 the antecedent of this implication
statement is false and so, regardless of whether or not the instructor is
Nyarlathotep this statement is true.")
(8 = 8) (8 = 23 8 = 22)
True (8 = 8 8 = 4)
True (True False)
True True
True
(or, alternatively: "Since 8 = 23 = 8 and since the consequent is a
disjunction with 8 = 23, this consequent must be true. Since the
consequent is true, the implication statement must also be true." )
COMP1805 (Winter 2017) "Discrete Structures I"
Specification for Assignment 1 of 4
4. Using only the , , and operators, find a logical expression that is equivalent
to (𝑝 ⋁ 𝑞) ↔ (𝑞 ⋁ 𝑟). 3 marks
5. Prove that the expression you found for question 4 above is equivalent to
(𝑝 ⋁ 𝑞) ↔ (𝑞 ⋁ 𝑟) by using logical equivalences. Show all your work.
4 marks
(p q) (q r)
( (p q) (q r)) ( (q r) (p q)) by Double Negation
( (p q) (q r)) ( (q r) (p q)) by Double Negation
COMP1805 (Winter 2017) "Discrete Structures I"
Specification for Assignment 1 of 4
6. Prove that the expression you found for question 4 above is equivalent to
(𝑝 ⋁ 𝑞) ↔ (𝑞 ⋁ 𝑟) by using truth tables. Show all your work. 8 marks
p q r p q r pq q r (p q) (q r)
T T T F F F T T T
T T F F F T T T T
T F T F T F T F F
T F F F T T T T T
F T T T F F T T T
F T F T F T T T T
F F T T T F F F T
F F F T T T F T F
p q p q q q (q q) p (q q) (p (q q)) p (p (q q)) p
T T F F F T T F T F
T F F T F T T F T F
F T T F F T F T F F
F F T T F T F T F F
(q ((p r) r)) (p p)
False by Domination
COMP1805 (Winter 2017) "Discrete Structures I"
Specification for Assignment 1 of 4
((p r) q (p r)) (r p)
(p q) (r p) by Identity
(p q) (p r) by Commutativity
p (q r) by Distributivity
COMP1805 (Winter 2017) "Discrete Structures I"
Specification for Assignment 1 of 4
9. Let P(x) be the predicate "x is a penguin", B(x) be the predicate "x is a bird", and
S(x) be the predicate "x eats squid". Translate the following expressions into
English. The universe of discourse is all animals. 3 marks total
a. ∃𝑎 (𝑃(𝑎) ↔ 𝑆(𝑎))
There is at least one animal that is a penguin if and only if it eats squid.
b. ∃𝑏 (𝑃(𝑏) ∧ ¬𝑆(𝑏))
There is at least one animal that is a penguin but does not eat squid.
10. Negate the following predicate logic statements using the quantifier negation
rules discussed in class. Show all your work and ensure that no negation
operations appear before any of the quantifiers in the expression you create.
b. There is at least one penguin who doesn't eat squid and can fly. 4 marks