Docsity

Proofs-Discrete Mathematics-Lecture Slides, Slides of Discrete Mathematics

Toggle sidebar
bg1
1
Proofs
Discrete Mathematics
Applications of Proofs
• In mathematics, a proof is:
– a correct (well-reasoned, logically valid) and complete
(clear, detailed) argument that rigorously & undeniably
establishes the truth of a mathematical statement.
• Why must the argument be correct & complete?
Ct t f fli l
–
C
orrec
t
ness
preven
t
s
us
f
rom
f
oo
li
ng
ourse
l
ves.
– Completeness allows anyone to verify the result.
Proof Terminology
• Theorem:
– A statement that has been proven to be true.
• Axioms, postulates, hypotheses, premises:
– Assumptions (often unproven) defining the structures
about which we are reasoning.
• Rules of inference:
– Patterns of logically valid deductions from hypotheses
to conclusions.
• Lemma:
– A minor theorem used as a stepping-stone to proving
a major theorem.
Proof Terminology
• Corollary:
– A minor theorem proved as an easy consequence of a
major theorem.
•Conjecture:
– A statement whose truth value has not been proven.
(A j t b idl bli d t b t
(A
con
j
ec
t
ure
may
b
e
w
id
e
l
y
b
e
li
eve
d t
o
b
e
t
rue,
regardless.)
•Theory:
– The set of all theorems that can be proven from a
given set of axioms.
Proof Techniques
• A theorem can be stated in one of three ways
–As Facts
– As Implications
– As Biimplications
Proof Methods for Implications
• For proving implications p→q, we have:
– Direct proof: Assume p is true, and prove q.
– Indirect proof: Assume ¬q, and prove ¬p.
– Proof by contradiction: Prove ¬p by itself.
docsity.com
pf3
pf4
pf5

Partial preview of the text

Download Proofs-Discrete Mathematics-Lecture Slides and more Slides Discrete Mathematics in PDF only on Docsity!

Proofs

Discrete Mathematics

Applications of Proofs

  • In mathematics, a proof is:
    • a correct (well-reasoned, logically valid) and complete (clear, detailed) argument that rigorously & undeniably establishes the truth of a mathematical statement.
  • Why must the argument be correct & complete?
    • Correctness prevents us from fooling ourselves.C t t f f li l
    • Completeness allows anyone to verify the result.

Proof Terminology

  • Theorem:
    • A statement that has been proven to be true.
  • Axioms, postulates, hypotheses, premises:
    • Assumptions (often unproven) defining the structures about which we are reasoning.
  • Rules of inference:
    • Patterns of logically valid deductions from hypotheses to conclusions.
  • Lemma:
    • A minor theorem used as a stepping-stone to proving a major theorem.

Proof Terminology

  • Corollary:
    • A minor theorem proved as an easy consequence of a major theorem.
  • Conjecture:
    • A statement whose truth value has not been proven. (A(A conjecture may be widely believed to be true, j t b id l b li d t b t regardless.)
  • Theory:
    • The set of all theorems that can be proven from a given set of axioms.

Proof Techniques

  • A theorem can be stated in one of three ways
    • As Facts
    • As Implications
    • As Biimplications

Proof Methods for Implications

  • For proving implications p→q, we have:
    • Direct proof: Assume p is true, and prove q.
    • Indirect proof: Assume ¬q, and prove ¬p.
    • Proof by contradiction: Prove ¬p by itself.

Proof Techniques

  • Direct Proof or Proof by Direct Method:
    • Theorems that can be expressed in the form ׊x (P(x) → Q(x)), D is the domain of discourse
    • Select a particular, but arbitrarily chosen, member c of the domain D
    • Show that the statement P(c)Sh th t th t t t P( ) → Q( ) iQ(a) is true. (Assume t (A that P(c) is true
    • Show that Q(c) is true
    • By the rule of Universal Generalization (UG),
    • ׊x (P(x) → Q(x)) is true

Direct Proof Example

  • Definition: An integer n is called odd iff n=2k+1 for some integer k; n is even iff n=2k for some k.
  • Theorem:
    • (For all numbers n) If n is an odd integer, then n^2 is an odd integer.
    • Proof: If n is odd, then n = 2k+1 for some integer k.P f If i dd th 2k+1 f i t k Thus, n^2 = (2k+1) 2 = 4k 2 + 4k + 1 = 2(2k 2 + 2k) + 1. Therefore n^2 is of the form 2j + 1 (with j the integer 2k 2 + 2k), thus n 2 is odd.

Proof Techniques

  • Indirect Proof:
    • The implication p → q is equivalent to the implication (¬q → ¬ p)
    • Therefore, in order to show that p → q is true, one can also show that the implication (¬q → ¬ p) is true
    • To show that (T h th t ( ¬q → ¬ p) is true, assume that the) i t th t th negation of q is true and prove that the negation of p is true.

Indirect Proof Example

  • Theorem:
    • (For all integers n) If 3n+2 is odd, then n is odd.
  • Proof:
    • Suppose that the conclusion is false, i.e., that n is even. Then n=2k for some integer k. Then 3n+2 = 3(2k)+ = 6k+2 = 2(3k+1). Thus 3n+2 is even, because it6k+2 2(3k+1) Th 3 +2 i b it equals 2j for integer j = 3k+1. So 3n+2 is not odd. We have shown that ¬(n is odd)→¬(3n+2 is odd), thus its contra-positive (3n+2 is odd) → (n is odd) is also true.

Proof Techniques

  • Proof by Contradiction:
    • Assume ¬p, and prove both q and ¬q for some proposition q. (Can be anything!)
    • Thus ¬p→ (q ∧ ¬q)
    • (q ∧ ¬q) is a trivial contradiction, equal to F
    • Thus ¬p→F, which is only true if ¬p = F
    • Thus p is true.

Proof by Contradiction Example

  • Theorem: is irrational.
  • Proof:
    • Assume 2 1/2^ were rational. This means there are integers I,j with no common divisors such that 21/2^ = i/j. Squaring both sides, 2 = i^2 /j 2 , so 2j 2 = i 2. So i 2 is even; thus i is even Let i=2k So 2j 2 = (2k) 2 = 4k 2

even; thus i is even. Let i=2k. So 2j = (2k) = 4k. Dividing both sides by 2, j 2 = 2k^2. Thus j 2 is even, so j is even. But then i and j have a common divisor, namely 2, so we have a contradiction.

Inference Rules

  • Rule of Simplification (Conjunctive Simplification): p∧q ∴ p p: I am a student; q: I am a cricket player I am a student and I am a cricket player. Therefore, I am a student.t d t p∧q ∴ q p: I am a student; q: I am a cricket player I am a student and I am a cricket player. Therefore, I am a cricket player.

Inference Rules

  • Hypothetical Syllogism: p → q q → r ∴ p → r
  • If I am a cricketer then I always play cricket. If I always play cricket then I always have a bat. Therefore, If I am a cricketer I always have a bat

Inference Rules

  • Disjunctive Syllogism: p ∨ q ¬ p ∴ q
  • If I am a cricketer then I always play cricket. If I always play cricket then I always have a bat. Therefore, If I aml i k t th I l h b t Th f If I a cricketer I always have a bat p ∨ q ¬ q ∴ p

Inference Rules

  • Modus Ponens (Method of Affirming): p → q p ∴ q

p q p→q p q T T F F

T

F

T

F

T

F

T

T

T

T

F

F

T

F

T

F

Example: I have a total score over

  1. If I have a total score over 80, then I get an A for the class. ∴ I get an A for this class

Inference Rules

  • Modus Tollens (Method of Denying): ¬ q p → q ∴¬ p
  • II am not a great cricketer. If I am Imran Khan, then I am t t i k t If I I Kh th I a great cricketer. Therefore, I am not Imran Khan
  • If the power supply fails then the lights go out. The lights are on. ∴ The power supply has not failed.

Inference Rules

  • Resolution: p∨q ¬ p∨r ∴q∨r
  • I will take Sandwich or I will take Pizza.
  • I will not take Sandwich or I will take Nuggets.
  • ∴ I will take Pizza or I will take Nuggets.

24

Inference Rules

  • Fallacy of Affirming the Conclusion: q p → q ∴p
  • If you have the flu then you’ll have a sore throat.
  • You have a sore throat.
  • ∴ You must have the flu.

25

Inference Rules

  • Fallacy of Denying the Conclusion: ¬ p p → q ∴ ¬ q
  • If you have the flu then you’ll have a sore throat.
  • You do not have the flu.
  • ∴ You do not have a sore throat.

26

Formal Proofs

  • A formal proof of a conclusion C, given premises p1, p2,…,pn consists of a sequence of steps, each of which applies some inference rule to premises or previously- proven statements (antecedents) to yield a new true statement (the consequent).
  • A proof demonstrates that if the premises are true, thenA proof demonstrates that if the premises are true, then the conclusion is true.

Formal Proof Example

  • Suppose we have the following premises: “It is not sunny and it is cold.” “We will swim if only if it is sunny.” “If we do not swim, then we will canoe.” “If we canoe, then we will be home early.”
  • Given these premises, prove the theoremGiven these premises, prove the theorem “We will be home early” using inference rules.

Formal Proof Example

  • Let us adopt the following abbreviations:
    • sunny = “It is sunny”;
    • cold = “It is cold”;
    • swim = “We will swim”;
    • canoe = “We will canoe”;
    • early = “We will be home early”.
  • Then, the premises can be written as:
    • (1) ¬sunny ∧ cold
    • (2) swim ↔ sunny
    • (3) ¬swim → canoe
    • (4) canoe → early

Formal Proof Example

  • Step: Proved by:
    1. ¬sunny ∧ cold Premise #1.
    2. ¬sunny Simplification of 1.
    3. swim ↔ sunny Premise #2.
    4. ¬swim IFF Truth table on 2,3.
    5. ¬swim→canoe Premise #3.
    6. canoe Modus ponens on 4,5.
    7. canoe→early Premise #4.
    8. early Modus ponens on 6,7.