DOC PREVIEW
Berkeley COMPSCI 70 - Lecture Notes

This preview shows page 1-2-3-4-5-6-7-8-9-10-67-68-69-70-71-72-73-74-75-136-137-138-139-140-141-142-143-144-145 out of 145 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 145 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 145 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 145 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 145 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 145 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 145 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 145 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 145 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 145 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 145 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 145 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 145 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 145 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 145 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 145 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 145 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 145 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 145 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 145 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 145 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 145 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 145 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 145 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 145 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 145 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 145 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 145 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 145 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 145 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 145 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

AdministrationMidterm 1 is not early after all.We don’t think 3 weeks is enough material to merit a midterm.CS70: Lecture 3. Outline.1. Proofs2. Simple3. Direct4. by Contrapositive5. by Cases6. by ContradictionSimple theorem..Theorem: P =⇒ (P ∨ Q).Proof:IP is true.P ∨ Q is true“ ’anything’ =⇒ true” is trueso X =⇒ (P ∨ Q) is true for all X ,and in particular, P =⇒ (P ∨ Q) is trueIP is false.“false =⇒ ’anything’ ”, is trueso “P =⇒ ’anything’ ” is true.in particular P =⇒ (P ∨ Q) is true.More detailed but the “same” as truth table proof in somesense.Simple theorem..Theorem: P =⇒ (P ∨ Q).Proof:IP is true.P ∨ Q is true“ ’anything’ =⇒ true” is trueso X =⇒ (P ∨ Q) is true for all X ,and in particular, P =⇒ (P ∨ Q) is trueIP is false.“false =⇒ ’anything’ ”, is trueso “P =⇒ ’anything’ ” is true.in particular P =⇒ (P ∨ Q) is true.More detailed but the “same” as truth table proof in somesense.Simple theorem..Theorem: P =⇒ (P ∨ Q).Proof:IP is true.P ∨ Q is true“ ’anything’ =⇒ true” is trueso X =⇒ (P ∨ Q) is true for all X ,and in particular, P =⇒ (P ∨ Q) is trueIP is false.“false =⇒ ’anything’ ”, is trueso “P =⇒ ’anything’ ” is true.in particular P =⇒ (P ∨ Q) is true.More detailed but the “same” as truth table proof in somesense.Simple theorem..Theorem: P =⇒ (P ∨ Q).Proof:IP is true.P ∨ Q is true“ ’anything’ =⇒ true” is trueso X =⇒ (P ∨ Q) is true for all X ,and in particular, P =⇒ (P ∨ Q) is trueIP is false.“false =⇒ ’anything’ ”, is trueso “P =⇒ ’anything’ ” is true.in particular P =⇒ (P ∨ Q) is true.More detailed but the “same” as truth table proof in somesense.Simple theorem..Theorem: P =⇒ (P ∨ Q).Proof:IP is true.P ∨ Q is true“ ’anything’ =⇒ true” is trueso X =⇒ (P ∨ Q) is true for all X ,and in particular, P =⇒ (P ∨ Q) is trueIP is false.“false =⇒ ’anything’ ”, is trueso “P =⇒ ’anything’ ” is true.in particular P =⇒ (P ∨ Q) is true.More detailed but the “same” as truth table proof in somesense.Simple theorem..Theorem: P =⇒ (P ∨ Q).Proof:IP is true.P ∨ Q is true“ ’anything’ =⇒ true” is trueso X =⇒ (P ∨ Q) is true for all X ,and in particular, P =⇒ (P ∨ Q) is trueIP is false.“false =⇒ ’anything’ ”, is trueso “P =⇒ ’anything’ ” is true.in particular P =⇒ (P ∨ Q) is true.More detailed but the “same” as truth table proof in somesense.Simple theorem..Theorem: P =⇒ (P ∨ Q).Proof:IP is true.P ∨ Q is true“ ’anything’ =⇒ true” is trueso X =⇒ (P ∨ Q) is true for all X ,and in particular, P =⇒ (P ∨ Q) is trueIP is false.“false =⇒ ’anything’ ”, is trueso “P =⇒ ’anything’ ” is true.in particular P =⇒ (P ∨ Q) is true.More detailed but the “same” as truth table proof in somesense.Simple theorem..Theorem: P =⇒ (P ∨ Q).Proof:IP is true.P ∨ Q is true“ ’anything’ =⇒ true” is trueso X =⇒ (P ∨ Q) is true for all X ,and in particular, P =⇒ (P ∨ Q) is trueIP is false.“false =⇒ ’anything’ ”, is trueso “P =⇒ ’anything’ ” is true.in particular P =⇒ (P ∨ Q) is true.More detailed but the “same” as truth table proof in somesense.Simple theorem..Theorem: P =⇒ (P ∨ Q).Proof:IP is true.P ∨ Q is true“ ’anything’ =⇒ true” is trueso X =⇒ (P ∨ Q) is true for all X ,and in particular, P =⇒ (P ∨ Q) is trueIP is false.“false =⇒ ’anything’ ”, is trueso “P =⇒ ’anything’ ” is true.in particular P =⇒ (P ∨ Q) is true.More detailed but the “same” as truth table proof in somesense.Simple theorem..Theorem: P =⇒ (P ∨ Q).Proof:IP is true.P ∨ Q is true“ ’anything’ =⇒ true” is trueso X =⇒ (P ∨ Q) is true for all X ,and in particular, P =⇒ (P ∨ Q) is trueIP is false.“false =⇒ ’anything’ ”, is trueso “P =⇒ ’anything’ ” is true.in particular P =⇒ (P ∨ Q) is true.More detailed but the “same” as truth table proof in somesense.Proof by truth table.Theorem: P =⇒ (P ∨ Q).Proof:P Q P ∨ QT T TT F TF T TF F FLook only at appropriate rows. Where theorem condition is true.When P is true since we are proving an implication.Proof by truth table.Theorem: P =⇒ (P ∨ Q).Proof:P Q P ∨ QT T TT F TF T TF F FLook only at appropriate rows. Where theorem condition is true.When P is true since we are proving an implication.Proof by truth table.Theorem: P =⇒ (P ∨ Q).Proof:P Q P ∨ QT T TT F TF T TF F FLook only at appropriate rows. Where theorem condition is true.When P is true since we are proving an implication.Proof by truth table.Theorem: P =⇒ (P ∨ Q).Proof:P Q P ∨ QT T TT F TFTTFFFLook only at appropriate rows. Where theorem condition is true.When P is true since we are proving an implication.An aside from piazza question/answer.Theorem: ¬(P ⇐⇒ Q) =⇒ (P =⇒ ¬Q).Proof:P Q ¬(P ⇐⇒ Q) P =⇒ ¬QT T F FT F T TF T T TF F F TLook only at appropriate rows. Where theorem condition is T.When ¬(P ⇐⇒ Q) is true then P =⇒ ¬Q is true.An aside from piazza question/answer.Theorem: ¬(P ⇐⇒ Q) =⇒ (P =⇒ ¬Q).Proof:P Q ¬(P ⇐⇒ Q) P =⇒ ¬QT T F FT F T TF T T TF F F TLook only at appropriate rows. Where theorem condition is T.When ¬(P ⇐⇒ Q) is true then P =⇒ ¬Q is true.An aside from piazza question/answer.Theorem: ¬(P ⇐⇒ Q) =⇒ (P =⇒ ¬Q).Proof:P Q ¬(P ⇐⇒ Q) P =⇒ ¬QT T F FT F T TF T T TF F F TLook only at appropriate rows. Where theorem condition is T.When ¬(P ⇐⇒ Q) is true then P =⇒ ¬Q is true.Existential statement.How to prove existential statement?Give an example. (Sometimes called ”proof by example.”)Theorem: ∃x ∈ N.x = x2Pf: 0 = 02= 0Existential statement.How to prove existential statement?Give an example. (Sometimes called ”proof by example.”)Theorem: ∃x ∈ N.x = x2Pf: 0 = 02= 0Existential statement.How to prove existential statement?Give an example. (Sometimes called ”proof by example.”)Theorem: ∃x ∈ N.x = x2Pf: 0 = 02= 0Existential statement.How to prove existential statement?Give an example. (Sometimes called ”proof by example.”)Theorem: ∃x ∈ N.x = x2Pf: 0 = 02= 0Existential statement.How to prove existential statement?Give an example. (Sometimes called ”proof by example.”)Theorem: ∃x ∈ N.x = x2Pf: 0 = 02= 0Universal


View Full Document

Berkeley COMPSCI 70 - Lecture Notes

Documents in this Course
Notes 1

Notes 1

12 pages

Note 2

Note 2

6 pages

Notes

Notes

6 pages

Notes

Notes

7 pages

Note 10

Note 10

8 pages

n20

n20

10 pages

n19

n19

10 pages

n18

n18

10 pages

n17

n17

6 pages

n16

n16

9 pages

n15

n15

10 pages

n14

n14

9 pages

n13

n13

6 pages

n12

n12

7 pages

n11

n11

6 pages

n10

n10

8 pages

n9

n9

5 pages

n8

n8

7 pages

n7

n7

8 pages

n6

n6

5 pages

n5

n5

8 pages

n4

n4

7 pages

n3

n3

10 pages

n2

n2

7 pages

n1

n1

5 pages

Load more
Download Lecture Notes
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Lecture Notes and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Lecture Notes 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?