直接、逆否、反證
多數定理是蘊涵 P ⇒ Q,攻克它有三種標準方式。直接[[ana-proof|證明]]假設 P,向前推理到 Q。[[contrapositive|逆否]]證明改證 ¬Q ⇒ ¬P,它邏輯等價——當 ¬Q 比 P 更易把握時選它。反證法同時假設 P 與 ¬Q,導出不可能,從而迫使 Q 成立。三者都依託第 1 篇的邏輯;選得好,是[[rigor|嚴格性]]這門手藝的一半。
Three proofs of three small claims. DIRECT -- "if a and b are even, then a+b is even." a even => a = 2m, b even => b = 2n (the hypothesis P). a + b = 2m + 2n = 2(m+n), which is 2 times an integer. Hence a+b is even = Q. Done. CONTRAPOSITIVE -- "if n^2 is even, then n is even." Direct is awkward; prove the contrapositive: n odd => n^2 odd. n odd => n = 2k+1 => n^2 = 4k^2+4k+1 = 2(2k^2+2k)+1, odd. So (n^2 even) => (n even). Done. CONTRADICTION -- "sqrt(2) is irrational." Suppose sqrt(2) = p/q in lowest terms (P and not-Q). Then 2q^2 = p^2, so p^2 is even, so p is even (claim above), p = 2r. Then 2q^2 = 4r^2, so q^2 = 2r^2, so q is even too. But p and q both even contradicts "lowest terms." Contradiction => sqrt(2) is irrational. Done.
數學歸納法
[[ana-mathematical-induction|數學歸納法]]一次性證明命題 P(n) 對每個自然數 n 成立。你驗證兩件事:基礎情形 P(0)(或 P(1)),以及歸納步驟 P(k) ⇒ P(k+1)。二者合成一條不斷裂的鏈——基礎給出 P(0),步驟把它帶到 P(1),再到 P(2),如此直到每個 n。你在步驟中使用的假設 P(k) 叫歸納假設;它被允許,正因為步驟本身是一個蘊涵。
Induction proof: 1 + 2 + ... + n = n(n+1)/2 for all n >= 1.
BASE n = 1: left side = 1, right side = 1*2/2 = 1. Holds.
STEP assume P(k): 1 + 2 + ... + k = k(k+1)/2. (inductive hypothesis)
Add the next term k+1 to both sides:
1 + ... + k + (k+1) = k(k+1)/2 + (k+1)
= (k+1) * [ k/2 + 1 ]
= (k+1)(k+2)/2.
That is exactly P(k+1). So P(k) => P(k+1).
Base + step => P(n) holds for every n >= 1. Done.
When the plain hypothesis is too weak: STRENGTHEN it.
Claim P(n): 1 + 1/4 + 1/9 + ... + 1/n^2 < 2.
The step stalls -- assuming sum < 2 does not control the new term.
Prove the STRONGER Q(n): sum_{j=1}^n 1/j^2 <= 2 - 1/n.
Base n=1: 1 <= 2 - 1 = 1. OK.
Step: sum to k+1 <= (2 - 1/k) + 1/(k+1)^2.
Since 1/(k+1)^2 < 1/(k(k+1)) = 1/k - 1/(k+1),
the right side < 2 - 1/k + 1/k - 1/(k+1) = 2 - 1/(k+1).
So Q(k) => Q(k+1). The bound 2 - 1/n < 2 gives the original P(n).第二個例子是一條值得記住的教訓:有時一個命題太弱而無法用歸納證明,解藥是去證明更強的命題,因為更強的歸納假設給步驟提供了更多可用之物。這個反直覺的招數——加強斷言以使它可證——在分析學中反覆出現,尤其在依賴[[role-of-inequalities|不等式的作用]]與[[triangle-inequality|三角不等式]]的估計中。