Let p = “The battery is charged”, q = “The device turns on”, and r = “The device is faulty.”
p → q (equivalently ¬q → ¬p)“p is sufficient for q” means p → q: whenever the battery is charged, the device turns on.
¬p ∧ ¬q (equivalently ¬(p ∨ q))“Neither A nor B” means “not A and not B”.
q → p (direction reversed, which would be “necessary”). Full marks for any equivalent form.¬p ∨ ¬q or ¬(p ∧ q); 0 pts for other connectives.¬ should apply only to single variables.(p ∧ ¬q) → r¬r → ¬(p ∧ ¬q) ≡ ¬r → (¬p ∨ q)Swap and negate both sides, then apply De Morgan’s law and double negation so that ¬ sits on single variables.
¬((p ∧ ¬q) → r) ≡ (p ∧ ¬q) ∧ ¬r ≡ p ∧ ¬q ∧ ¬rThe negation of A → B is A ∧ ¬B: the hypothesis holds and the conclusion fails. It is not a conditional.
¬r → ¬(p ∧ ¬q), 2 for applying De Morgan’s law and double negation to reach ¬p ∨ q. 0 pts for the converse or inverse.¬((p ∧ ¬q) → r) without expansion; full marks for p ∧ ¬q ∧ ¬r. 0 pts if the negation is written as a conditional.In Q2, p, q, r, s are statement variables; they do not carry the battery meanings from Q1.
p → (q ∨ r) and (p ∧ ¬q) → r are logically equivalent. Explain your conclusion.Three variables give 2³ = 8 rows. The two columns being compared are shaded.
| p | q | r | q ∨ r | p → (q ∨ r) | ¬q | p ∧ ¬q | (p ∧ ¬q) → r |
|---|---|---|---|---|---|---|---|
| T | T | T | T | T | F | F | T |
| T | T | F | T | T | F | F | T |
| T | F | T | T | T | T | T | T |
| T | F | F | F | F | T | T | F |
| F | T | T | T | T | F | F | T |
| F | T | F | T | T | F | F | T |
| F | F | T | T | T | T | F | T |
| F | F | F | F | T | T | F | T |
Conclusion. The columns for p → (q ∨ r) and (p ∧ ¬q) → r agree in every row. Both are F only in the row p = T, q = F, r = F (outlined) and T elsewhere, so the two statement forms are logically equivalent.
q ∨ r and p → (q ∨ r).¬q and p ∧ ¬q.(p ∧ ¬q) → r.(p → q) ∧ (p → ¬q) using logical equivalences. Name the law used at each step. Do not use a truth table.Final answer: (p → q) ∧ (p → ¬q) ≡ ¬p.
p → q, q → r, ¬r, and p ∨ s, derive s using rules of inference. Give the rule and the supporting premises or steps for each derived line.One valid derivation (others are acceptable):
Alternative route. 5. p → r by transitivity (hypothetical syllogism) from 1 and 2; 6. ¬p by modus tollens from 5 and 3; 7. s by elimination from 4 and 6.
¬q (or p → r).¬p.s.s without steps.
M(x) = “x is a manager,” T(x) = “x has completed the security training,” and K(x) = “x holds a key card.” Consider:
“Every manager who has completed the security training holds a key card.”Write in symbols: (i) the statement, (ii) its contrapositive, (iii) its negation, and also give the negation as an English sentence.
¬ should apply only to predicates.
∀x, (M(x) ∧ T(x)) → K(x)∀x, ¬K(x) → ¬(M(x) ∧ T(x)) ≡ ∀x, ¬K(x) → (¬M(x) ∨ ¬T(x))∃x, M(x) ∧ T(x) ∧ ¬K(x)In English: “There is a manager who has completed the security training but does not hold a key card.” (Equivalently: some manager who completed the training has no key card.)
The negation of ∀x, A(x) → B(x) is ∃x, A(x) ∧ ¬B(x): the quantifier flips and the conditional becomes a conjunction.
∧ is used instead of → (∀x, M(x) ∧ T(x) ∧ K(x)); 3 pts if the hypothesis omits one of M(x), T(x).¬M(x) ∨ ¬T(x). 0 pts for the converse or inverse.∃ with a conjunction; 1 pt if written ¬∀x, … without moving the negation inside), 2 for a correct English sentence. 0 pts for the symbolic part if it contains →.For parts (b)–(d), let S be a set of students and C a set of courses, and let T(x, y) mean “student x has taken course y.”
Note: T(x, y) is a new two-place predicate, unrelated to T(x) in part (a).
∀y ∈ C, ∃x ∈ S, T(x, y)∃x ∈ S, ∀y ∈ C, T(x, y)Read each formula from the left: in (i) the course is chosen first and the student may depend on it; in (ii) one student is fixed first and must work for every course.
x ranging over C): deduct 1 pt. Both answers identical: at most 5 pts for the pair.
¬ moved inside so that it applies only to T(x, y). Then state the negation as an English sentence.In English: “For every student there is at least one course that the student has not taken.” (Equivalently: no student has taken every course.)
¬ on T(x, y) only). 2 pts if written as ¬∃x ∈ S, ∀y ∈ C, T(x, y) without moving ¬ inside; 3 pts if one quantifier is not flipped.S = {Ali, Dana, Noor} and C = {Logic, Algebra}. The only courses taken are: Ali took Logic, Dana took Algebra, and Noor took Logic. Determine the truth value of statements (i) and (ii) from part (b), and justify each. What does this example show about whether (i) implies (ii)?| Has x taken y? | Logic | Algebra |
|---|---|---|
| Ali | T | F |
| Dana | F | T |
| Noor | T | F |
(i) True. Each course has at least one student: Logic was taken by Ali (and Noor); Algebra was taken by Dana. In the table, every column contains a T.
(ii) False. No student has taken both courses: Ali and Noor have not taken Algebra, and Dana has not taken Logic. In the table, no row is all T. Equivalently, the negation from part (c) holds: for every student there is a course not taken.
Conclusion. This example makes (i) true and (ii) false, so (i) does not imply (ii). The order of ∀ and ∃ matters: ∃x ∀y is stronger than ∀y ∃x.