Announcements For Methods of Proof for Boolean Logic Proof by Contradiction. Outline. The Big Picture Where is Today? William Starr

Similar documents
Announcements For The Logic of Atomic Sentences Counterexamples & Formal Proofs. Logical Consequence & Validity The Definitions.

Announcements For Formal Proofs & Boolean Logic I: Extending F with rules for and. Outline

Logik für Informatiker Proofs in propositional logic

Logik für Informatiker Logic for computer scientists

Lecture 2. Logic Compound Statements Conditional Statements Valid & Invalid Arguments Digital Logic Circuits. Reading (Epp s textbook)

Arguments and Proofs. 1. A set of sentences (the premises) 2. A sentence (the conclusion)

Propositional Logic: Part II - Syntax & Proofs 0-0

PHIL12A Section answers, 28 Feb 2011

Tautological equivalence. entence equivalence. Tautological vs logical equivalence

Manual of Logical Style (fresh version 2018)

Natural deduction for truth-functional logic

Intermediate Logic. Natural Deduction for TFL

Topic 1: Propositional logic

The Logic of Quantifiers

Phil 110, Spring 2007 / April 23, 2007 Practice Questions for the Final Exam on May 7, 2007 (9:00am 12:00noon)

PHIL12A Section answers, 16 February 2011

Manual of Logical Style

Introduction to Metalogic

Final Exam Theory Quiz Answer Page

Deduction by Daniel Bonevac. Chapter 3 Truth Trees

Today s Lecture 2/25/10. Truth Tables Continued Introduction to Proofs (the implicational rules of inference)

2. The Logic of Compound Statements Summary. Aaron Tan August 2017

Symbolic Logic 3. For an inference to be deductively valid it is impossible for the conclusion to be false if the premises are true.

Logic I - Session 10 Thursday, October 15,

Natural Deduction for Propositional Logic

2.2: Logical Equivalence: The Laws of Logic

8. Reductio ad absurdum

Logic and Inferences

Announcements. CS243: Discrete Structures. Propositional Logic II. Review. Operator Precedence. Operator Precedence, cont. Operator Precedence Example

CHAPTER 6 - THINKING ABOUT AND PRACTICING PROPOSITIONAL LOGIC

HW1 graded review form? HW2 released CSE 20 DISCRETE MATH. Fall

8. Reductio ad absurdum

Propositional Logic: Review

The statement calculus and logic

Phil Introductory Formal Logic

Warm-Up Problem. Is the following true or false? 1/35

PL: Truth Trees. Handout Truth Trees: The Setup

Logic and Truth Tables

Propositional Logic Review

COMP219: Artificial Intelligence. Lecture 19: Logic for KR

1.1 Statements and Compound Statements

3 The Semantics of the Propositional Calculus

5. And. 5.1 The conjunction

Derivations, part 2. Let s dive in to some derivations that require the use of the last four rules:

Propositional Logic. Jason Filippou UMCP. ason Filippou UMCP) Propositional Logic / 38

Propositional Logic. Spring Propositional Logic Spring / 32

(p == train arrives late) (q == there are taxis) (r == If p and not q, then r. Not r. p. Therefore, q. Propositional Logic

Propositional Logic Basics Propositional Equivalences Normal forms Boolean functions and digital circuits. Propositional Logic.

MACM 101 Discrete Mathematics I. Exercises on Propositional Logic. Due: Tuesday, September 29th (at the beginning of the class)

Truth-Functional Logic

Formal Logic. Critical Thinking

Inference in Propositional Logic

Announcements. CS311H: Discrete Mathematics. Propositional Logic II. Inverse of an Implication. Converse of a Implication

INTRODUCTION TO LOGIC. Propositional Logic. Examples of syntactic claims

Overview of Today s Lecture

CSCI.6962/4962 Software Verification Fundamental Proof Methods in Computer Science (Arkoudas and Musser) Chapter p. 1/33

Warm-Up Problem. Write a Resolution Proof for. Res 1/32

A Little Deductive Logic

4 Derivations in the Propositional Calculus

Overview of Today s Lecture

Propositional logic (revision) & semantic entailment. p. 1/34

A Little Deductive Logic

Mat 243 Exam 1 Review

Advanced Topics in LP and FP

PHIL12A Section answers, 14 February 2011

PUZZLE. You meet A, B, and C in the land of knights and knaves. A says Either B and I are both knights or we are both knaves.

Section 1.1: Logical Form and Logical Equivalence

Overview. I Review of natural deduction. I Soundness and completeness. I Semantics of propositional formulas. I Soundness proof. I Completeness proof.

1 Propositional Logic

The Logic of Compound Statements cont.

Truth Tables for Arguments

CHAPTER 1 - LOGIC OF COMPOUND STATEMENTS

Truth Tables for Propositions

Exercise 2. Prove that [ 1, 1] is the set of all the limit points of ( 1, 1] = {x R : 1 <

COMP219: Artificial Intelligence. Lecture 20: Propositional Reasoning

CS 2740 Knowledge Representation. Lecture 4. Propositional logic. CS 2740 Knowledge Representation. Administration

Propositions and Proofs

2-1. Inductive Reasoning and Conjecture. Lesson 2-1. What You ll Learn. Active Vocabulary

5. And. 5.1 The conjunction

Propositional Logic. Fall () Propositional Logic Fall / 30

Discrete Mathematics and Its Applications

PROPOSITIONAL CALCULUS

FORMAL PROOFS DONU ARAPURA

TRUTH TABLES LOGIC (CONTINUED) Philosophical Methods

PHIL 422 Advanced Logic Inductive Proof

Before you get started, make sure you ve read Chapter 1, which sets the tone for the work we will begin doing here.

The semantics of propositional logic

Box. Turn in your e xam to Kathy Stackhouse in Chem 303 by noon on Thursday, March 30.

Natural Deduction. Formal Methods in Verification of Computer Systems Jeremy Johnson

Logic: Propositional Logic (Part I)

CSE 20 DISCRETE MATH WINTER

Artificial Intelligence. Propositional logic

a. Introduction to metatheory

CSE 20 DISCRETE MATH WINTER

Logic for Computer Science - Week 5 Natural Deduction

Proof. Theorems. Theorems. Example. Example. Example. Part 4. The Big Bang Theory

Propositional Logic Arguments (5A) Young W. Lim 11/30/16

Formal (natural) deduction in propositional logic

Supplementary Logic Notes CSE 321 Winter 2009

1 Tautologies, contradictions and contingencies

Transcription:

Announcements For 09.22 Methods of for Boolean Logic William Starr 1 HW1 grades will be on Bb by end of week 2 HW4 is due on Tuesday This one is mostly written Feel free to type it out! 3 If you have problems with software bugs, try using version 2.7, which is available on Bb 09.22.11 William Starr Phil 2621: Minds & Machines Cornell University 1/31 William Starr Phil 2621: Minds & Machines Cornell University 2/31 Outline The Big Picture Where is Today? 1 Introduction 2 s in Review 3 4 Arguments With Inconsistent Premises Logic is mainly about logical consequence It s about conclusions following (or not following) from premises So far, we ve explored two methods for understanding logical consequence: 1 2 Tautological Consequence (Ch.4: truth tables) But we ve only considered informal proofs for and Today: we ll learn about informal proofs with William Starr Phil 2621: Minds & Machines Cornell University 3/31 William Starr Phil 2621: Minds & Machines Cornell University 5/31

The Plan For Today s Class The Big Picture But Wait... 1 Review the basics of proofs 2 Review informal proofs with and 3 Think about how to do informal proofs with 4 Do some informal proofs with 5 Try combining our strategies! We had to learn truth tables, why proofs too? Truth tables are useful for the Booleans, but have significant limitations: 1 Impractical: Truth tables get extremely large. An interesting argument could have well over 14 atomic sentences, the table would be over 16,000 rows! 2 Limited Applications: as we learned Thursday, there are logical consequences that aren t tautological consequences. Why? Truth tables are blind to the logic of expressions other than the Booleans. The methods of proof fill this gap admirably William Starr Phil 2621: Minds & Machines Cornell University 6/31 William Starr Phil 2621: Minds & Machines Cornell University 7/31 What is it? Steps, What? A proof is a step-by-step demonstration which shows that a conclusion C must be true in any circumstance where some premises, say P 1 and P 2 are true 1 The step-by-step demonstration of C can proceed through intermediate conclusions 2 It may not be obvious how to show C from P 1 and P 2, but it may be obvious how to show C from some other claim Q that is an obvious consequence of P 1 and P 2 3 Each step provides conclusive evidence for the next The Nature of Steps Each step of a proof appeals to certain facts about the meaning of the vocabulary involved. These facts are what we implicitly appeal to when we say a step is obvious. What kind of facts? Facts which guarantee that the step will never lead us from something true to something false Facts about the meaning of the words involved So for the Booleans we can use truth tables to guide us William Starr Phil 2621: Minds & Machines Cornell University 9/31 William Starr Phil 2621: Minds & Machines Cornell University 10/31

Conjunction From Meaning to Rules Disjunction From Meaning to Rules Truth Table for Conjunction Elimination P Q P Q true true true true false false false true false false false false 1 From P Q you can infer P 2 From P Q you can infer Q Conjunction Introduction 1 From P and Q you can infer P Q Truth Table for P Q P Q true true true true false true false true true false false false Disjunction Introduction 1 From P you can infer P Q William Starr Phil 2621: Minds & Machines Cornell University 11/31 William Starr Phil 2621: Minds & Machines Cornell University 12/31 The Basics The first method of proof we learned about was called proof by cases It allowed us to use disjunctions to prove things Let s first look at an example where a disjunction is used to prove something An Example Disjunctions in a On a dare last night, Frank the frat boy hit himself in the eye with a wrench or a golf club.if he hit himself with a wrench he won t be able to play beer pong tonight. If hit himself with a golf club he ll also be unable to play beer pong tonight. So either way he ll end up sitting out tonight s beer pong session. Our first premise was a disjunction We reasoned that if the first disjunct was true, Frank couldn t play We then reasoned that if the second was true, Frank couldn t play We concluded that Frank can t play tonight William Starr Phil 2621: Minds & Machines Cornell University 13/31 William Starr Phil 2621: Minds & Machines Cornell University 14/31

Official Version So, more abstractly our strategy was this: (Disjunction Elimination) To prove C from P 1... P n using this method, show C from each of P 1,... P n From our disjunctive premise we know at least one disjunct is true So showing that the truth of any one of them guarantees the truth of C, suffices to show that C follows from our disjunctive premise William Starr Phil 2621: Minds & Machines Cornell University 15/31 Another Example Claim: the following argument is valid Cube(a) Smaller(a, b) Cube(a) Smaller(a, c) Smaller(b, c) Smaller(a, c) : Given the first premise, we ll try a proof by cases: 1 Suppose Cube(a). By the second premise we know that either Cube(a) is false or Smaller(a, c). By assumption, Cube(a) is true. So, it must be the case that Smaller(a, c) 2 Suppose Smaller(a, b). We are given that Smaller(b, c) and Smaller(, ) is transitive, so Smaller(a, c) We ve shown that in either case Smaller(a, c) follows William Starr Phil 2621: Minds & Machines Cornell University 16/31 Proving a Negated Claim Proving Something False Okay, we ve done proofs for conjunction and disjunction, but what about negation? We know one way of eliminating negation: P P But, how would you go about proving a negated claim ( introduction), like Cube(a)? Well, Cube(a) is true if and only if Cube(a) is false So, prove Cube(a) by showing that Cube(a) is false! But how do we do that? There is a very important method for proving something false A.k.a Indirect, Reductio ad Absurdum The Basic Idea of To show that P is false, it suffices to show that something which cannot possible be true, i.e. a contradiction, follows from P William Starr Phil 2621: Minds & Machines Cornell University 18/31 William Starr Phil 2621: Minds & Machines Cornell University 19/31

What is a Contradiction? What is It? Contradiction Intuitively, a contradiction is any sentence that cannot possibly be true, or any group of sentences that cannot all be true simultaneously The symbol is often used as a short-hand way of saying that a contradiction has been obtained Examples: 1 Cube(a) Cube(a) 2 a = b, b = c, a c 3 SameCol(a, b), LeftOf(a, b) (Preliminary Version) To prove that P is false, show that a contradiction follows from P Proving a Negated Claim To prove P, assume P and prove a contradiction Contradictions are impossible, so false If you can show that P leads to a contradiction, then P must be false But if P is false, then P must be true William Starr Phil 2621: Minds & Machines Cornell University 20/31 William Starr Phil 2621: Minds & Machines Cornell University 21/31 A Simple Example Claim: This argument is valid SameShape(a, b) b = c a = c : We want to show a = c from the premises, so we will use a proof by contradiction 1 Suppose a = c 2 Then, from premise one SameShape(c, b) follows by Indiscernibility of Identicals 3 But by premise two, we know SameShape(c, b). This is a contradiction,! 4 So our supposition must have been false; that is, a = c must be true given the premises William Starr Phil 2621: Minds & Machines Cornell University 22/31 Official Version (Official Version) 1 To prove that P is false, show that a contradiction follows from P 2 To prove that P is true, show that a contradiction follows from P by contradiction can also be used for proving un-negated claims William Starr Phil 2621: Minds & Machines Cornell University 23/31

Another Example Claim: This argument is valid Tet(a) Large(a) Medium(a) Cube(a) : We want to show Cube(a) from the premises, so we will use a proof by contradiction 1 Suppose Cube(a) 2 Then, from premise one Large(a) follows since a can t be a cube and a tetrahedron. 3 But by premise two, we know Medium(a)). This is a contradiction,! 4 So our supposition must have been false; that is, Cube(a) must be true given the premises William Starr Phil 2621: Minds & Machines Cornell University 24/31 In Class Exercise Write an informal proof of this argument. Do a proof by contradiction. Cube(b) LeftOf(b, c) SameCol(b, c) Tet(b) William Starr Phil 2621: Minds & Machines Cornell University 25/31 Used to Prove an Un-negated Claim b = c SameShape(c, a) Cube(b) Cube(a) : We will use a proof by contradiction. First, suppose the conclusion is false, i.e. Cube(a). By premise 1 we know that SameShape(c, a), so it must be that Cube(c). But premise 1 tells us that b = c and together with premise 2 this entails that Cube(c), by the Indiscernibility of Identicals. This contradicts our early conclusion, so our supposition must have been false. Thus, the conclusion must be true when the premises are. William Starr Phil 2621: Minds & Machines Cornell University 26/31 In Class Exercise Write an informal proof of this argument, phrased in complete, well-formed English sentences. Hint: try a proof by contradiction. I encourage you to work in groups. 5.15 Tet(b) Cube(c) Larger(c, b) c = b Smaller(b, c) William Starr Phil 2621: Minds & Machines Cornell University 27/31

A More Advanced Example Valid Arguments What If The Premises are Inconsistent? We will do a proof by cases based on premise three: 1 Suppose Small(d). We want to show d = c d = b, let s do this by indirect proof. This requires deriving from the additional supposition that (d = c d = b). First, note that by DeMorgan s Laws this implies d c and d b. From this and our first supposition, premise two clearly requires that Dodec(d). But, from premise four and our original supposition, premise one clearly requires that Dodec(d). These requirements are contradictory,. 2 Now suppose d = b. Then d = c d = b follows immediately by disjunction intro In either case d = c d = b follows, so the argument is valid Argument 4 Dodec(d) Tet(d) Small(d) Dodec(d) (d = c) Small(d) Small(d) d = b Tet(d) d = c d = b We had a proof by contradiction inside a proof by cases! This is like exercise 5.17! Logical Consequence, Validity C is a logical consequence of P 1,..., P n if and only if it is impossible for P 1,..., P n to be true while C false Now think about an argument with inconsistent (contradictory) premises Is it valid? Yes! Why: it s impossible for the premises to be true So, it is impossible for the premises to be true while the conclusion is false! But, crucially, the argument is not sound William Starr Phil 2621: Minds & Machines Cornell University 28/31 William Starr Phil 2621: Minds & Machines Cornell University 30/31 Summary 09.22 1 We remembered what proof by cases was 2 We learned a powerful new proof method: by contradiction 3 We learned that our two proof methods can be mixed 4 We wrapped our head around the fact that any argument with contradictory premises is valid Importantly, though, such an argument is never sound William Starr Phil 2621: Minds & Machines Cornell University 31/31