Saturday, 27 October 2012

Mathematical Induction

Content:
[ p(0) ∧ (∀  n ∈ N, p(n)  => p(n + 1)] => ∀ n ∈ N, p(n)

Example:
Claim:  Every set with n elements has exactly 2^n subsets.
Proof:
Base Case: If n = 0, the oly set of size 0 is {} with set of subset | {{}} | = 1 = 2^0, so p(0) is true.
Induction Step:
Assume n ∈ N, and that p(n) is ture. -> IH
If S is a genetic set with | S | = n + 1. Now there is some x ∈ S, since n + 1 > 0, and we partition the subsets of S in two sets: S- is the set of  subsets of S that do contain x. Since f: S- -> S+, f(S) = S U { x } is a bijection. we know | S- | = | S+ |, by IH, | S- | = 2^n, because S- is the set of subsets of S - { x }, and | S - { x } | = n + 1 - 1 = n. So S has | S- | + | S+ | = 2^n + 2^n = 2^(n + 1) subsets. Since S was arbitrary, this meas every set of size n + 1 has 2^(n + 1) subsets, i.e. p(n + 1).
Since, for genetic n, p(n) => p (n + 1), this shows ∀ n ∈ N, p(n)  =>  p(n + 1)
Conclude, ∀ n ∈ N, p(n), by mathematical induction.

No comments:

Post a Comment