Login

Concepts

Read through concept notes with worked explanations and diagrams, chapter by chapter.

Concept 04 / 04Mathematical Reasoning

Quantifiers, Validity of Statements and Methods of Proof

Open sentences and the quantifiers 'for all' and 'there exists', negating quantified statements, checking validity of statements with and, or, if-then and iff, and the methods of proof: direct proof, contrapositive, contradiction, and disproof by counterexample.

Figure 1
Quantifiers. An open sentence such as 'x2≥0x^{2} \ge 0' becomes a statement when its variable is quantified. The universal quantifier ∀\forall ('for all', 'for every'): '∀x∈R\forall x \in \mathbb{R}, x2≥0x^{2} \ge 0' is true. The existential quantifier ∃\exists ('there exists', 'for some', 'at least one'): '∃x∈R\exists x \in \mathbb{R} with x2=2x^{2} = 2' is true. The domain matters: '∃x∈Q\exists x \in \mathbb{Q} with x2=2x^{2} = 2' is false. Order matters when quantifiers are mixed: '∀x ∃y\forall x\,\exists y with y>xy > x' (for every number there is a bigger one) is true in R\mathbb{R}, while '∃y ∀x\exists y\,\forall x, y>xy > x' (a number bigger than all numbers) is false. Negating quantified statements. Swap ∀\forall with ∃\exists and negate the inner part: ∼(∀x,P(x))≡∃x,∼P(x)\sim(\forall x, P(x)) \equiv \exists x, \sim P(x) and ∼(∃x,P(x))≡∀x,∼P(x)\sim(\exists x, P(x)) \equiv \forall x, \sim P(x). The figure summarises the common forms. So the negation of 'Every prime is odd' is 'Some prime is not odd' (true, since 22 is prime and even), and the negation of 'There is a real number whose square is negative' is 'Every real number has a non-negative square'. Validity of statements. To check whether a compound statement is true: 'pp and qq': show both are true. 'pp or qq': show one is true; or assume ∼p\sim p and prove qq. 'If pp then qq': assume pp and deduce qq (direct); or assume ∼q\sim q and deduce ∼p\sim p (contrapositive); or assume pp and ∼q\sim q and derive a contradiction. 'pp iff qq': prove both p→qp \rightarrow q and q→pq \rightarrow p. 'For all xx, P(x)P(x)': prove it for an arbitrary xx; a single counterexample disproves it. 'There exists xx with P(x)P(x)': exhibit one example; disproving it requires showing P(x)P(x) fails for every xx. Methods of proof. Direct proof: start from the hypothesis and deduce the conclusion step by step. Example: if nn is odd, n=2k+1n = 2k + 1, then n2=4k2+4k+1=2(2k2+2k)+1n^{2} = 4k^{2} + 4k + 1 = 2(2k^{2} + 2k) + 1 is odd. Proof by contrapositive: to prove p→qp \rightarrow q, prove ∼q→∼p\sim q \rightarrow \sim p, which is equivalent and sometimes easier. Example: 'If n2n^{2} is even then nn is even' follows from 'If nn is odd then n2n^{2} is odd', just proved. Proof by contradiction: assume the statement is false and derive something impossible. The classic example: 2\sqrt{2} is irrational. Suppose 2=ab\sqrt{2} = \frac{a}{b} in lowest terms; then a2=2b2a^{2} = 2b^{2}, so a2a^{2} is even, so aa is even (by the contrapositive result above), say a=2ca = 2c; then 4c2=2b24c^{2} = 2b^{2}, so b2=2c2b^{2} = 2c^{2} and bb is even too, contradicting 'lowest terms'. Counterexample: to show a universal statement is false, one instance where it fails is enough. 'Every number of the form n2+n+41n^{2} + n + 41 is prime' fails at n=40n = 40, where the value is 41241^{2}. Key Takeaways: - ∀\forall: for all; ∃\exists: there exists; the domain and the order of quantifiers matter. - ∼∀x P(x)≡∃x ∼P(x)\sim\forall x\,P(x) \equiv \exists x\,\sim P(x); ∼∃x P(x)≡∀x ∼P(x)\sim\exists x\,P(x) \equiv \forall x\,\sim P(x). - A universal statement is disproved by one counterexample; an existential one is proved by one example. - Prove p→qp \rightarrow q directly, by contrapositive, or by contradiction. - Prove an iff by proving both directions. - Pitfall: 'proving' a universal statement by checking a few examples. Brain-Teaser 1: Write the negation of 'For every real xx, there is an integer nn with n>xn > x'. Which is true? Solution: Negation: 'There is a real xx such that for every integer nn, n≤xn \le x'. The original is true (the Archimedean property: take n=⌊x⌋+1n = \lfloor x \rfloor + 1), so the negation is false. Negating a statement with two quantifiers swaps both and negates the innermost condition. Brain-Teaser 2: Check the validity of 'If xx and yy are integers such that xyxy is odd, then both xx and yy are odd' by the contrapositive method. Solution: Contrapositive: 'If xx or yy is even, then xyxy is even.' If, say, x=2kx = 2k, then xy=2(ky)xy = 2(ky) is even. So the contrapositive is true, and hence the original statement is valid. Proving the contrapositive avoids having to 'factor' an odd product, which is awkward to argue directly. Brain-Teaser 3: Show by counterexample that the statement 'If nn is a prime, then 2n−12^{n} - 1 is prime' is false. Is its converse true? Solution: n=11n = 11 is prime, but 211−1=2047=23×892^{11} - 1 = 2047 = 23 \times 89 is not prime. So the statement is false. The converse, 'If 2n−12^{n} - 1 is prime, then nn is prime', is true: if n=abn = ab with a,b>1a, b > 1, then 2a−12^{a} - 1 divides 2ab−12^{ab} - 1 (since x−1x - 1 divides xb−1x^{b} - 1 with x=2ax = 2^{a}), giving a proper factor. This example shows that a statement and its converse can have different truth values, and that proving a statement true needs an argument while proving it false needs only one counterexample.