2_Lect_Assigment
2_Lect_Assigment
Cairo University
Homework Assignment #1
a. p ∨ (p ⇒ q)
unsatisfiable. (Quiz 1 Answers Hint by using truth table)
b. ¬p ∨ ¬q ⇒ p ∧ q
Valid f
e. (((p ∧ q) ⇒ r) ∧ (p ⇒ q)) ⇒ (p ⇒ r)
Unsatisfiable
f. (p ∨ q) ∧ (¬p ∨ ¬q)
Valid
g. (p ⇒ p) ⇒ p
Contingent
h. ((p ⇒ q) ⇒ p) ⇒ (q ⇒ p)
Contingent
i. (¬p ∧ q) ⇔ (p ⇒ q)
valid
j. (p ⇒ ¬q) ⇒ (q ⇒ ¬p)
contingent
valid
so, provide an example. If not, explain why it is impossible.
5) Prove that P A Q |= P V Q.
Answer:
P Q PA PV
Q Q
t t t t
t f f t
f t f t
f f f f
Since every interpretation that satisfies P A Q also satisfies P V Q, it holds that
P A Q |= P V Q.
6) Which of the following propositions are tautologies (valid)? Which are
contradictions (unsatisfied)? Why?
Homework Assignment #1
P P ∧ ¬P
t f
f f
a. p ∨ (p ⇒ q)
(Quiz 1 Answers Hint by using truth table)
b. ¬p ∨ ¬q ⇒ p ∧ q
Valid 10)
e. (((p ∧ q) ⇒ r) ∧ (p ⇒ q)) ⇒ (p ⇒ r)
Unsatisfiable
f. (p ∨ q) ∧ (¬p ∨ ¬q)
Valid
g. (p ⇒ p) ⇒ p
Contingent
h. ((p ⇒ q) ⇒ p) ⇒ (q ⇒ p)
Contingent
i. (¬p ∧ q) ⇔ (p ⇒ q)
valid
j. (p ⇒ ¬q) ⇒ (q ⇒ ¬p)
contingent
valid
provide an example. If not, explain why it is impossible.
11)Prove that P A Q |= P V Q.
Answer:
P Q PA PV
Q Q
t t t t
t f f t
f t f t
f f f f
Since every interpretation that satisfies P A Q also satisfies P V Q, it holds that
P A Q |= P V Q.