直接、逆否、反证
多数定理是蕴含 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|三角不等式]]的估计中。