Logic and ...
LogicΒΆ
Task 1ΒΆ
Let \(p\), \(q\), and \(r\) be the following statements:
- \(p\): "It is raining."
- \(q\): "The sun is shining."
- \(r\): "There are clouds in the sky."
Write the following statements using logical symbols with \(p\), \(q\), \(r\), and logical operators:
- It is raining, and the sun is shining.
- If it is raining, then there are clouds in the sky.
- If it is not raining, then the sun is not shining, and there are no clouds in the sky.
- The sun is shining if and only if it is not raining.
- If there are no clouds in the sky, then the sun is shining.
Task 2ΒΆ
Let \(p\), \(q\), and \(r\) be as defined in Task 1. Translate the following logical expressions into plain English:
- \(p \land q \rightarrow r\)
- \(\neg p \rightarrow q \lor r\)
- \(\neg (p \lor q \lor r)\)
- \((p \rightarrow r) \rightarrow q\)
Task 3ΒΆ
Provide the truth values of the statements in Tasks 1 and 2.
Task 4ΒΆ
Determine which of the following expressions are statements. Provide their truth values:
- \(x^2 = 2\quad \forall x \in \mathbb{R}\)
- \(x^2 = 2\) for some \(x \in \mathbb{R}\)
- \(x^2 = x\)
- \(x^2 = x\) for exactly one \(x \in \mathbb{R}\)
- \(xy = z\) implies \(y = z\) for all \(x, y, z \in \mathbb{R}\)
Task 5ΒΆ
Rewrite the ambiguous expression \(x^2 = y^2\) as:
- A precise statement whose logical value is true.
- A precise statement whose logical value is false.
Task 6ΒΆ
Provide the contrapositive of the following statements:
- "If I am smart, then I am rich."
- "If \(x^2 = x\), then \(x = 0\) or \(x = 1\)."
- "If \(2 + 2 = 4\), then \(2 + 4 = 8\)."
Task 7ΒΆ
Verify Goldbach's conjecture for small numbers, such as 6, 8, and 10. Check it for the number 98.