5.3 KiB
type |
---|
theoretical |
Proving Equivalences
To prove that two statements P
and Q
are equivalent (P \iff Q
):
-
Chain of Equivalences: Show that
P(x_1, \ldots, x_n) \iff \ldots \iff Q(x_1, \ldots, x_n)
, transformingP
intoQ
step by step. -
Bi-conditional1 Decomposition2: Use the fact that:
(P \iff Q) \iff ((P \implies Q) \land (Q \implies P)).
- Prove
P \implies Q
(first direction). - Prove
Q \implies P
(second direction).
- Prove
Proving Universal Statements
To prove a statement of the form \forall x\, P(x)
:
-
Proof by Exhaustion3:
- If the domain of
x
is finite, verifyP(x)
for each possible value.
- If the domain of
-
Proof by Universal Generalization4:
- Let
c
be an arbitrary element of the domain. - Prove
P(c)
. - Conclude that
\forall x\, P(x)
holds.
- Let
Example:
- For all integers
n
, ifn
is even, thenn^2
is even. - Proof:
- Let
n
be an arbitrary integer. - Assume
n
is even. Thenn = 2k
for some integerk
. - Compute
n^2 = (2k)^2 = 4k^2 = 2(2k^2)
, which is even.
- Let
Proving Existential Statements
To prove a statement of the form \exists x\, P(x)
:
-
Constructive Proof5: Find a specific
c
such thatP(c)
is true. -
Non-constructive Proof6:
- Assume
\forall x\, \neg P(x)
(negation of existence). - Derive a contradiction.
- Conclude that
\exists x\, P(x)
must be true.
- Assume
Proof by Contraposition
Instead of proving P \implies Q
, prove its contrapositive7:
\neg Q \implies \neg P
Example:
- For all
n \in \mathbb{N}
, ifn^2
is odd, thenn
is odd. - Proof:
- Prove the contrapositive: If
n
is even, thenn^2
is even. - Assume
n = 2k
. Thenn^2 = (2k)^2 = 4k^2 = 2(2k^2)
, which is even.
- Prove the contrapositive: If
Proof by Contradiction
To prove P
:
- Assume
\neg P
. - Derive a contradiction8.
- Conclude that
P
must be true.
Example:
\sqrt{2}
is irrational.- Proof:
- Assume
\sqrt{2}
is rational, so\sqrt{2} = \frac{p}{q}
, wherep, q \in \mathbb{Z}
,q \neq 0
, and\frac{p}{q}
is in lowest terms. - Square both sides:
2 = \frac{p^2}{q^2}
, so2q^2 = p^2
. p^2
is even, sop
is even (p = 2k
).- Substitute
p = 2k
:2q^2 = (2k)^2 = 4k^2
, soq^2 = 2k^2
. q^2
is even, soq
is even.- Contradiction:
p
andq
cannot both be even since\frac{p}{q}
is in lowest terms. - Conclude
\sqrt{2}
is irrational.
- Assume
Mathematical Induction
9 Generalized in Proofs (FP)
To prove a statement of the form \forall n \geq n_0, P(n)
:
-
Base Case: Prove
P(n_0)
is true. -
Inductive Hypothesis -
IH
: AssumeP(k)
is true for somek \geq n_0
. -
Inductive Step: Prove
P(k + 1)
is true usingP(k)
.
Example:
1 + 2 + \dots + n = \frac{n(n + 1)}{2}
for alln \geq 1
.- Proof:
- Base Case: For
n = 1
, LHS =1
, RHS =\frac{1(1 + 1)}{2} = 1
. Holds true. IH
: Assume1 + 2 + \dots + k = \frac{k(k + 1)}{2}
.- Inductive Step: Show
1 + 2 + \dots + (k + 1) = \frac{(k + 1)(k + 2)}{2}
.
Simplify:\text{LHS} = (1 + 2 + \dots + k) + (k + 1) = \frac{k(k + 1)}{2} + (k + 1).
Matches RHS.\frac{k(k + 1)}{2} + (k + 1) = \frac{k(k + 1) + 2(k + 1)}{2} = \frac{(k + 1)(k + 2)}{2}.
- Base Case: For
Strong10 Mathematical Induction
To prove \forall n \geq n_0, P(n)
:
-
Base Cases: Prove
P(n_0), P(n_0 + 1), \ldots, P(n_0 + m)
are true. -
Inductive Hypothesis: Assume
P(i)
is true for alln_0 \leq i \leq k
. -
Inductive Step: Prove
P(k + 1)
is true using the assumptionP(i)
for alli \leq k
.
Example:
- Every
n \geq 2
can be factored into primes. - Proof:
- Base Case:
n = 2
is a prime. IH
: Assume everyn \leq k
can be factored into primes.- Inductive Step: For
n = k + 1
:- If
k + 1
is prime, done. - If composite,
k + 1 = a \cdot b
, where2 \leq a, b \leq k
. - By hypothesis,
a
andb
can be factored into primes. - Combine the prime factors of
a
andb
to get $k + 1$'s factorization.
- If
- Base Case:
-
A statement where both directions are true, like "A if and only if B," meaning A leads to B, and B leads to A. ↩︎
-
Breaking a complex problem into smaller, simpler parts to solve each one step by step ↩︎
-
Checking every possible case individually to prove something is true for all of them. ↩︎
-
Showing something is true for all cases by proving it for an arbitrary or random example. Similar to formal proof for introducing the
\forall
quantifier ↩︎ -
Directly finding an example to show something exists or is true. ↩︎
-
Proving something exists or is true without giving a specific example, usually by ruling out the possibility of it not being true. ↩︎
-
Instead of directly proving "If A, then B," you prove "If not B, then not A," which means the same thing logically. ↩︎
-
A way of proving something is true by assuming it is false and showing this leads to a logical impossibility, which, as we know, really messes with everything. ↩︎
-
Proof that works by showing it works for the smallest case, then assuming it works for one number and proving it works for the next ↩︎
-
Like induction, but you assume everything is true up to a certain point to prove the next case ↩︎