Proof and Logic -- Diagnostic Tests
Proof and Logic — Diagnostic Tests
Section titled “Proof and Logic — Diagnostic Tests”flowchart TD
A[Diag Proof Logic] --> B[Key Concepts]
A --> C[Core Principles]
A --> D[Practical Applications]
B --> E[Fundamental definitions]
C --> F[Design patterns]
D --> G[Real-world usage]Intuition
Section titled “Intuition”Mathematical proof is like a legal argument — each step must be justified by axioms, definitions, or previously proven theorems: Logic provides the grammar of mathematics — it ensures that conclusions follow necessarily from premises, creating certainty in an uncertain world
Why it matters: Proof is what separates mathematics from computation — it establishes universal truth, not just empirical patterns
The key insight: Logic provides the grammar of mathematics — it ensures that conclusions follow necessarily from premises, creating certainty in an uncertain world
Unit Tests
Section titled “Unit Tests”Tests edge cases, boundary conditions, and common misconceptions for proof and logic.
UT-1: Necessary vs Sufficient Conditions
Section titled “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
Section titled “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
Section titled “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
Section titled “Integration Tests”Tests synthesis of proof and logic with other topics.
IT-1: Proof by Induction for a Divisibility Result (with Number and Algebra)
Section titled “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)
Section titled “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, p = 2r$$4r^2 = 6q^2$$2r^2 = 3q^2 So is even, contradicting lowest terms).
This contradiction means our assumption is false. Therefore is irrational.
Cross-References
Section titled “Cross-References”- Number and Algebra: Algebra is foundational
- Functions: Functions are central
- Calculus: Calculus is a major topic