Assignment 2¶
In addition to correct answers, please:
- Show how you derived your answer.
- Make all proofs, and longer-answer questions, beautifully organized and easy to read. This includes perfect spelling and grammar.
Please see Canvas for instructions on how and when to submit this assignment.
Question 1¶
Let \(p\), \(q\), \(r\), and \(s\) denote the following statements:
\(p\): I’ll do math homework before noon.
\(q\): I’ll go swimming in the afternoon.
\(r\): It’s raining.
\(s\): YouTube is down.
Translate each of the following statements into symbolic form:
- If it’s not raining, I won’t go swimming in the afternoon.
- For me to go swimming in the afternoon, it’s necessary for me to do my math homework before noon.
- It’s not raining, and YouTube is down, is sufficient for me to go swimming in the afternoon.
Question 2¶
For each of the following statements, say if they are true or false.
- If triangles have 4 corners, then \(1 + 1 = 3\).
- If squares have 4 corners, then \(2 + 7 = 10\).
- If triangles have 4 sides, or squares have 4 sides, then \(3 + 3 = 4\).
- If \(1 + 1 = 2\), then water is wet.
Question 3¶
In the following compound statements, \(p\), \(q\), and \(r\) are primitive statements. Do the following for each compound statement:
- create a truth table, and highlight the column showing all possible truth-values
- if the statement is a tautology, or a contradiction, then state which
- \(\neg (\neg p \land q) \to \neg p\)
- \((p \to q) \to r\)
- \(p \to (q \to r)\)
- \((p \to q) \to (q \to \neg p)\)
- \((p \lor (p \to q)) \to q\)
- \((p \land \neg q) \to p\)
- \(q \leftrightarrow (\neg p \land q)\)
- \(((p \to q) \to (q \to r)) \land (r \to p)\)
Question 4¶
Negate each of the following statements, and simplify them as much as possible.
- \([p \lor (q \lor r)] \land (\neg p \lor \neg q \lor r)\)
- \((p \land q) \to r\)
- \(p \to (\neg q \land r)\)
- \(p \lor q \lor (\neg p \land \neg q \land r)\)
Question 5¶
Re-write each of the following statements as a logically equivalent statement using just \(p\), \(q\), \(\neg\), and \(\to\) (you can use 0 or more occurrences of each).
- \(p \lor q\)
- \(p \land q\)
Question 6¶
Consider the following 10 statements:
- Exactly 1 statement on this list is false.
- Exactly 2 statements on this list are false.
- Exactly 3 statements on this list are false.
- Exactly 4 statements on this list are false.
- Exactly 5 statements on this list are false.
- Exactly 6 statements on this list are false.
- Exactly 7 statements on this list are false.
- Exactly 8 statements on this list are false.
- Exactly 9 statements on this list are false.
- Exactly 10 statements on this list are false.
- Describe all possible truth values for each statement that make all the statements accurate.
- Re-do the previous question, but with a list of statements that goes from 1 to 1000.
- Is the following statement true or false? Clearly explain your answer.
- Exactly 1 statement on this list is false.
Question 7¶
State each of the following laws of logic, and then use a truth table to prove that each is valid:
- Rule of contradiction
- Rule of disjunctive amplification
- Rule for proof by cases
Question 8¶
Suppose the universe of discourse is all fruits and vegetables, and consider the following open statements:
\(f(x):\) \(x\) is a fruit
\(v(x):\) \(x\) is a vegetable
\(a(x):\) \(x\) is an apple
\(b(x):\) \(x\) is broccoli
\(g(x):\) \(x\) is the color green
\(r(x):\) \(x\) is the color red
Translate each of the following statements into equivalent English, and state whether it’s true or false.
- \(\forall x . f(x) \lor v(x)\)
- \(\exists x . f(x) \land v(x)\)
- \(\forall x . g(x) \to b(x)\)
- \(\exists x . v(x) \land g(x)\)
- \(\forall x . (g(x) \lor r(x)) \leftrightarrow a(x)\)
- \(\exists x . a(x) \land \neg r(x)\)
- \(\exists x . \neg g(x) \land \neg f(x)\)
- \(\forall x . b(x) \to \neg r(x)\)
- \(\forall x . a(x) \to (g(x) \lor r(x))\)
- \(\forall x . v(x) \to [g(x) \to (a(x) \lor b(x))]\)
Question 9¶
Simplify each of the following:
- \(\neg [\exists x . p(x) \lor q(x)]\)
- \(\neg [\forall x . p(x) \land \neg q(x)]\)
- \(\neg [\forall x . q(x) \to p(x)]\)
- \(\neg [\exists x . (p(x) \lor q(x)) \to r(x)]\)
The following two questions, 10 and 11, have been moved to assignment 3, so you do not need to submit answers to these for assignment 2. If you’ve already answered them, that’s okay: re-submit your answers to them as part of assignment 3.
Question 10¶
Prove that if \(n\) is an integer, then \(n\) and \(n+1\) can’t both be odd.
Question 11¶
Prove that if \(n\) is an odd integer, then \(n^2 + 3\) is always even.