Top Banner
EDAA40 EDAA40 Discrete Structures in Computer Science Discrete Structures in Computer Science 5: A few words on proofs 5: A few words on proofs Jörn W. Janneck, Dept. of Computer Science, Lund University
9

EDAA40 Discrete Structures in Computer Science 5: A …cs.lth.se/.../Slides_2017/EDAA40_-_05_-_A_few_words_on_proofs.pdf · 2 This lecture is based on parts II and III of Richard

May 19, 2018

Download

Documents

vannga
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: EDAA40 Discrete Structures in Computer Science 5: A …cs.lth.se/.../Slides_2017/EDAA40_-_05_-_A_few_words_on_proofs.pdf · 2 This lecture is based on parts II and III of Richard

EDAA40EDAA40

Discrete Structures in Computer ScienceDiscrete Structures in Computer Science

5: A few words on proofs5: A few words on proofs

Jörn W. Janneck, Dept. of Computer Science, Lund University

Page 2: EDAA40 Discrete Structures in Computer Science 5: A …cs.lth.se/.../Slides_2017/EDAA40_-_05_-_A_few_words_on_proofs.pdf · 2 This lecture is based on parts II and III of Richard

2

This lecture is based on parts II and III of Richard Hammack’s “Book of Proof”.

Page 3: EDAA40 Discrete Structures in Computer Science 5: A …cs.lth.se/.../Slides_2017/EDAA40_-_05_-_A_few_words_on_proofs.pdf · 2 This lecture is based on parts II and III of Richard

3

definitions, theorems, proofs

A definition is a statement that gives a precise meaning to a term or a symbol.

A theorem is a statement that needs to be proven based on definitions (and axioms).

A proof is a is a chain of logical reasoning showing the truth of a theorem.

Other words for theorem: proposition, lemma, corollary.

Page 4: EDAA40 Discrete Structures in Computer Science 5: A …cs.lth.se/.../Slides_2017/EDAA40_-_05_-_A_few_words_on_proofs.pdf · 2 This lecture is based on parts II and III of Richard

4

kinds of proofs

Proofs come in different flavors, which depend on the form of the theorem, and the chain of reasoning best suited to prove it.

Many theorems are conditional statements, i.e. they have the form“premise implies conclusion, or

T T T

T F F

F T T

F F T

Page 5: EDAA40 Discrete Structures in Computer Science 5: A …cs.lth.se/.../Slides_2017/EDAA40_-_05_-_A_few_words_on_proofs.pdf · 2 This lecture is based on parts II and III of Richard

5

direct proof

Theorem: If P, then C.

Proof: Suppose P.

Therefore C.

Theorem:

Proof:

Page 6: EDAA40 Discrete Structures in Computer Science 5: A …cs.lth.se/.../Slides_2017/EDAA40_-_05_-_A_few_words_on_proofs.pdf · 2 This lecture is based on parts II and III of Richard

6

direct proof with cases

Sometimes, the premise consist of several cases, and it becomes easier to study each case by itself.

1 0

2 4

3 -4

4 8

5 -8

6 12

Theorem:

Proof:

Case 1:

Case 2:

Page 7: EDAA40 Discrete Structures in Computer Science 5: A …cs.lth.se/.../Slides_2017/EDAA40_-_05_-_A_few_words_on_proofs.pdf · 2 This lecture is based on parts II and III of Richard

7

contrapositive proof

In some cases, it is easier to reason about a theorem in contrapositive form.

Theorem:

Proof:

Theorem: If P, then C.

Proof: Suppose P.

Therefore C.

...direct proof:

Page 8: EDAA40 Discrete Structures in Computer Science 5: A …cs.lth.se/.../Slides_2017/EDAA40_-_05_-_A_few_words_on_proofs.pdf · 2 This lecture is based on parts II and III of Richard

8

contrapositive proof

T T T

T F F

F T T

F F T

F F T

T F F

F T T

T T T

Contrapositive form:

Theorem: If P, then C.

Proof: Suppose not C.

Therefore not P.

Theorem:

Proof:

Page 9: EDAA40 Discrete Structures in Computer Science 5: A …cs.lth.se/.../Slides_2017/EDAA40_-_05_-_A_few_words_on_proofs.pdf · 2 This lecture is based on parts II and III of Richard

9

proof by contradiction

Suppose we want to prove a proposition P, not necessarily in conditional form.Proof by contradiction uses the fact that if we can show that not P results in a logical contradiction, e.g. it implies some conclusion C as well as its opposite, not C, then not P cannot be true, and so P must be true.

F F T

F F T

T F F

T F F

T T

T F

F T

F F

Theorem: P.

Proof: Suppose not P.

Therefore C and not C.

Theorem:

Proof:

Or any other false proposition!