BIT152 · 2082 · 10 marks
Why do we need quantifiers? List any three rules of inferences. Prove that 2sqrt2 is irrational using proof by contradiction. [2+3+5]
Why do we need quantifiers? List any three rules of inferences. Prove that $2\sqrt{2}$ is irrational using proof by contradiction. [2+3+5]
Quick answer
In propositional logic, we can only deal with specific propositions (true or false statements). However, many mathematical and logical statements involve variables and express properties over a range of objects. Quantifiers allow us to express such statements precisely.
Answer
1. Why Do We Need Quantifiers? [2 marks]
Reasons we need quantifiers:
- To express statements like "For all integers n, n² ≥ 0" or "There exists a number x such that x + 2 = 5". These cannot be captured by propositional logic alone.
- To generalize propositions over a domain (universe of discourse) rather than stating each case individually.
- To formally reason about predicates (properties/relations) involving variables.
Two main quantifiers:
- Universal Quantifier (∀): "For all" - asserts a property holds for every element.
- Existential Quantifier (∃): "There exists" - asserts a property holds for at least one element.
2. Three Rules of Inference [3 marks]
| Rule | Form | Name |
|---|---|---|
| 1 | p, p → q ∴ q | Modus Ponens |
| 2 | ¬q, p → q ∴ ¬p | Modus Tollens |
| 3 | p → q, q → r ∴ p → r | Hypothetical Syllogism |
Explained:
- Modus Ponens: If p is true and p implies q, then q is true.
- Modus Tollens: If q is false and p implies q, then p must be false.
- Hypothetical Syllogism: If p implies q and q implies r, then p implies r (chain rule).
3. Prove that √2 is Irrational (Proof by Contradiction) [5 marks]
Setup
Claim: √2 is irrational.
Method: Proof by contradiction. We assume the negation of what we want to prove and derive a contradiction.
Proof
Step 1: Assume the opposite (negation).
Assume, for the sake of contradiction, that √2 is rational.
Step 2: Use the definition of rational numbers.
If √2 is rational, then it can be expressed as:
$$\sqrt{2} = \frac{p}{q}$$
where p, q are integers, q ≠ 0, and the fraction p/q is in lowest terms (i.e., gcd(p, q) = 1, so p and q share no common factors).
Step 3: Square both sides.
$$2 = \frac{p^2}{q^2}$$
$$p^2 = 2q^2 \quad \cdots (1)$$
Step 4: Conclude p is even.
From equation (1), p² is divisible by 2.
Since 2 is prime, if 2 | p², then 2 | p.
So we can write: p = 2k for some integer k.
Step 5: Substitute back.
Substituting p = 2k into equation (1):
$$(2k)^2 = 2q^2$$
$$4k^2 = 2q^2$$
$$q^2 = 2k^2 \quad \cdots (2)$$
Step 6: Conclude q is even.
From equation (2), q² is divisible by 2.
Since 2 is prime, if 2 | q², then 2 | q.
Step 7: Derive the contradiction.
We have shown that both p is even and q is even, meaning:
$$\gcd(p, q) \geq 2$$
But this contradicts our assumption that gcd(p, q) = 1 (the fraction was in lowest terms).
Step 8: Conclusion.
Our assumption that √2 is rational leads to a contradiction. Therefore, by proof by contradiction:
$$\boxed{\sqrt{2} \text{ is irrational.} \quad \blacksquare}$$
Short on time? The 1, 5 and 10 mark versions of this answer, flashcards and practice sets come with a program pass.