Proof and Logic — Diagnostic Tests
Unit Tests
Tests edge cases, boundary conditions, and common misconceptions for proof and logic.
UT-1: Necessary vs Sufficient Conditions
Question:
For each of the following statements, state whether the condition is necessary, sufficient, both, or neither for :
(a) : " is divisible by " and : " is divisible by "
(b) : " for all " and : " is injective"
(c) : "" and : "The quadratic equation has exactly one real root"
(d) A student argues: "Since is true, and is true, therefore is true." Identify the logical fallacy.
[Difficulty: hard. Tests the distinction between necessary and sufficient conditions, which IB exams test extensively.]
Solution:
(a) Both necessary and sufficient. If is divisible by , then , so , which is divisible by (sufficient). Conversely, if is divisible by , then has at least factors of , so has at least factors of , meaning is divisible by (necessary).
(b) Sufficient but not necessary. If everywhere, then is strictly increasing. If for some , then for and for , making strictly convex with a unique global minimum. This means is injective (sufficient). However, is injective but (not necessary).
(c) Both necessary and sufficient. gives exactly one real root (sufficient). If the quadratic has exactly one real root, then (necessary, since gives two distinct roots and gives none).
(d) This is the fallacy of affirming the consequent. and does not imply . The correct inference from and is nothing — we cannot deduce . The valid inference is modus ponens: from and , we deduce .
UT-2: Quantifier Negation with Nested Quantifiers
Question:
(a) Negate the following statement:
(b) A student writes the negation as "". Identify the errors.
[Difficulty: hard. Tests correct negation of nested quantifiers and the implication.]
Solution:
(a) To negate, flip each quantifier and negate the predicate. The negation of an implication is .
So:
(b) The student made two errors:
- The existential quantifier on should be universal (), not existential.
- The negation of the implication was written incorrectly. The student wrote the "converse implication" with a negated conclusion, rather than the correct negation which is . The student kept the implication structure , which is wrong.
UT-3: Contrapositive vs Converse vs Contradiction
Question:
Prove that if is even for some integer , then is even.
A student writes:
We prove the contrapositive: if is odd, then is odd. If , then , which is even.
(a) Explain why the student's answer is self-contradictory.
(b) Write a correct proof of the original statement.
[Difficulty: hard. Tests confusion between contrapositive and converse, and algebraic errors in divisibility proofs.]
Solution:
(a) The student set out to prove "if is odd, then is odd" (the contrapositive), but the algebra showed that is even when is odd. This contradicts what the student was trying to prove. The conclusion should be that is even, which means the contrapositive is false, implying the original statement is false.
In fact, the original statement "if is even, then is even" is false: when is odd, is always even. So is even for ALL integers , not just even ones. The original statement is false, and the student's work inadvertently proves this.
(b) The correct approach: since is even for all (as shown above), the statement "if is even, then is even" is false. A counterexample is : is even, but is odd.
Integration Tests
Tests synthesis of proof and logic with other topics.
IT-1: Proof by Induction for a Divisibility Result (with Number and Algebra)
Question:
Prove by mathematical induction that is divisible by for all .
[Difficulty: hard. Combines proof by induction with number-theoretic divisibility.]
Solution:
Base case (): . This is not divisible by . The stated formula does not produce a multiple of for .
The correct statement should be . Verification: .
Corrected problem: Prove that is divisible by for all .
Base case (): , divisible by . True.
Inductive hypothesis: Assume for some integer .
Inductive step: Consider :
Since is an integer, is divisible by .
Conclusion: By induction, is divisible by for all .
IT-2: Proof by Contradiction for Irrationality (with Number and Algebra)
Question:
Prove that is irrational.
[Difficulty: hard. Combines proof by contradiction with algebraic manipulation and the Fundamental Theorem of Arithmetic.]
Solution:
Assume is rational. Then for some coprime positive integers .
Squaring: , so:
Since are integers, the RHS is rational. So is rational. But is irrational (proved by the standard contradiction proof: if in lowest terms, then , so is even, , , , so is even, contradicting lowest terms).
This contradiction means our assumption is false. Therefore is irrational.