COMP 1000-Lab 3
COMP 1000-Lab 3
Instructions: This lab will not be graded. You do not need to submit.
1. Suppose you wish to prove a theorem of the form “if x has property A then it has property
B”.
(a) For a direct proof, what do you assume and what do you prove?
(b) For an indirect proof (by contraposition), what do you assume and what do you prove?
(c) For a proof by contradiction, what do you assume and what do you prove?
(a) ∃x P (x)
(b) ∀x ¬P (x)
(c) ∀x ∀y Q(x, y)
(d) ∃x ∀y Q(x, y)
6. Prove by using logical equivalences that ((a ∨ c) ∧ (b ∨ c)) ∨ ((c → ¬b) ∧ (c → a)) is a tautology.
(Do not forget to write the name of the rules that you apply.)
7. Let x and y be elements of {−7, −4, 2, 3}, and define P (x, y) : x − 2y > 1. What is the truth
value of the following statements?
8. Let P (x, y) be “x + 2y = xy”, where x and y are integers. Determine the truth value of the
following statements.
9. Express the following statement in predicate logic: “the absolute value of the sum of any two
integers is larger than or equal to zero.”
10. Use De Morgan’s laws to distribute negations inward (that is, all negations in the result-
ing equivalent expression should appear before a predicate). Show each step and give the
associated rule.