Professional Documents
Culture Documents
Logical Proofs
Section 1.7
Proofs
• A proof is a valid argument that establishes the
truth of the mathematical statement
• Formal proofs:
– All steps were supplied
– Rules for each step in the argument were given
• Informal proofs:
– One or more rules can be used
– Steps can be skipped
– Rules are not explicitly stated
– Practical for humans
Understanding how theorems are stated
6
Methods of Proof
• To understand written mathematics, understand
what makes up a correct mathematical argument,
that is, a proof.
• Requires an understanding of the techniques used to
build proofs.
• The methods for building proofs are also used
throughout computer science, such as the rules
computers used to reason, the techniques used to
verify that programs are correct, making inferences
in artificial intelligence etc.
Terminologies
• Theorem: In mathematical writing, the term
theorem is usually an important
statement/fact/result that can be shown to be
true. Can be universal quantification of a
conditional statement with one or more premises
and a conclusion
• Proposition: Less important theorem
• We demonstrate that a theorem is true with a
proof
Other terminologies
• A proof is a valid argument that establishes the truth of a theorem.
• The statements (we assume to be true) used in a proof are axioms
(or postulates)
• A less important theorem that is helpful in the proof of other
results is called a lemma.
• A corollary is a theorem that can be established directly from a
theorem that has been proved.
• A conjecture is a statement that is being proposed to be a true
statement, usually on the basis of some partial evidence, a heuristic
argument, or the intuition of an expert. When a proof of a
conjecture is found, the conjecture becomes a theorem.
• Many theorems in mathematics are
implications, p→q. The techniques of proving
implications give rise to different methods of
proofs.
Types of proof
• Vacuous proof: when you show premises is
false, so implication pq is true
• Trivial proof: the implication is true if you prove
q is true
• Direct proof: when p is true and prove q is true
• Indirect Proof:
– proof of the contrapositive ¬q ¬ p
– Proof by contradiction (pꓥ~q) c
Proving Theorems
• A vacuous proof of an implication happens when the hypothesis of
the implication is always false.
• "if taj mahal is in France, then the Eiffel Tower is in Bolivia".
• Prove that if x is a positive integer and x = -x, then x 2 = x.
• "For any integer x, if x > 5 then x > 3.“
– – This statement is true non-vacuously (since some integers are greater
than 5), but some of its implications are only vacuously true: for example,
when x is the integer 2, the statement implies the vacuous truth that "if 2
> 5 then 2 > 3".
• vacuously true statements are not generally of interest by
computer scientists , but they frequently arise as the base case of
proofs by mathematical induction
Trivial proof
• Trivial proof:
• the implication is true if you prove q is true
• All Unicorns have 1 horn.
• Proof: By definition, Unicorns have only one horn.
• Vacuous proof:
• All Unicorns have 3 horns.
• Proof: There are no Unicorns which don’t have three
horns.
• Both are valid and correct proofs.
Methods of Informal Proofs
• Direct Proof
• Indirect Proof
– Proof by contraposition
– Proof by contradiction
Direct Proof
• In a (informal) direct proof, we assume that
– p is true, and use axioms, definitions and previous
theorems, together with rules of inference to show
that q must be true
• This proof shows that conditional statement is
true by showing that if p is true, then q must
also be true
Some definitions
Definitions
• An integer n is even if there exists an integer k such that n =
2k.
• An integer n is odd if there exists an integer k such that n = 2k
+ 1.
• An integer n is prime if, and only if, n > 1 and for all positive
integers r and s, if n = r·s, then r = 1 or s = 1.
• An integer n > 1 is composite if, and only if, n = r·s for some
positive integers r and s with r ≠ 1 and s≠1.
• A real number r is rational if, and only if, for some integers a
divides b with b ≠ 0.
• If n and d are integers and d ≠ 0, then d divides n, written d|n
if, and only if, n = d.k for some integers k.
• An integer n is called a perfect square if, and only if, n = k2 for
some integer k.
Example 1
• ∀ integers m and n, if m and n are even then m + n is
even.
Example 2
Tasks
• Prove that the product of an even integer and an odd integer
is even.
• Prove that if n is an odd integer, then n3 + n is even.
• Prove that, if the sum of any two integers is even, then so is
their difference.
• Prove that the sum of any two rational numbers is rational.
• Prove that for all integers a, b and c, if a|b and b|c then a|c.
• Prove that the sum of any three consecutive integers is
divisible by 3. Hint(n, n + 1 and n + 2 be three consecutive
integers.)
Exercise
• If n is odd integer, then n2 is odd.
Indirect Proof—Proof by Contraposition
• Proofs of theorem that do not start with hypothesis
and end with conclusion are indirect proofs
• Proof by contraposition--Based on logical equivalence
between a statement and its contrapositive
• To prove:
1. Take the contrapositive of the statement
• (P1ꓥ P2ꓥP3ꓥ…… ꓥ Pn ) q
• (P1 vP2vP3v…… v Pn ) q
Proof by cases
• Let n ∈ Z. Then n 2 + 3n + 5 is an odd integer.
• Proof: We proceed by cases, according to
whether n is even or odd.
Case 1. n is even. Then n = 2x, ∃x ∈ Z. So
n2 + 3n + 5 = 4x2 + 6x + 5 = 2(2x2 + 3x + 2) + 1.
Case 2. n is odd. Then n = 2x + 1, ∃x ∈ Z.
So n2 + 3n + 5 = 4x2 + 4x + 1 + 6x + 3 + 5
= 2(2x2 + 5x + 4) + 1.
Indirect Proof—Proof by Contradiction
• Example 1,2,3,4,7,8,10,11,12