More Proofs. REVIEW The Rule of Assumption: A Assumption is the easiest rule to learn. It says at any stage in the derivation, we may write down any.

Slides:



Advertisements
Similar presentations
Copyright 2008, Scott Gray1 Propositional Logic 9) Or.
Advertisements

Methods of Proof. Methods of Proof The Vicky Pollard Proof Technique Prove that when n is even n2 is even. Assume n is 0, then n2 is 0, and that is.
With examples from Number Theory
Introduction to Proofs
Hypotheticals: The If/Then Form Hypothetical arguments are usually more obvious than categorical ones. A hypothetical argument has an “if/then” pattern.
PROOF BY CONTRADICTION
Sentential Logic. One of our main critical thinking questions was: Does the evidence support the conclusion? How do we evaluate whether specific evidence.
Deduction In addition to being able to represent facts, or real- world statements, as formulas, we want to be able to manipulate facts, e.g., derive new.
Semantic Paradoxes. THE BARBER The Barber Paradox Once upon a time there was a village, and in this village lived a barber named B.
F22H1 Logic and Proof Week 7 Clausal Form and Resolution.
1 Introduction to Computability Theory Lecture12: Reductions Prof. Amos Israeli.
Logic and Proof. Argument An argument is a sequence of statements. All statements but the first one are called assumptions or hypothesis. The final statement.
Reading: Chapter 4, section 4 Nongraded Homework: Problems at the end of section 4. Graded Homework #4 is due at the beginning of class on Friday. You.
No new reading for Wednesday. Exam #2 is Friday. Office hours today are cancelled. Rescheduled for tomorrow, 2-4 p.m. Talk today at 3:15 in HUM 1B50. Colin.
Proof by Deduction. Deductions and Formal Proofs A deduction is a sequence of logic statements, each of which is known or assumed to be true A formal.
EE1J2 – Discrete Maths Lecture 5 Analysis of arguments (continued) More example proofs Formalisation of arguments in natural language Proof by contradiction.
No new reading for Monday or Wednesday Exam #2 is next Friday, and we’ll review and work on proofs on Monday and Wed.
Solving Algebraic Equations
Discrete Mathematics and its Applications
Introduction to Proofs
Review I Rosen , 3.1 Know your definitions!
Introduction to Geometric Proof Logical Reasoning and Conditional Statements.
F22H1 Logic and Proof Week 6 Reasoning. How can we show that this is a tautology (section 11.2): The hard way: “logical calculation” The “easy” way: “reasoning”
Predicate Logic. TRUTH-TABLE REMINDERS The problem people had the most trouble with was 1e: construct a truth-table for: (P & (~Q & R)) Many of you only.
Reading and Writing Mathematical Proofs Spring 2015 Lecture 2: Basic Proving Techniques.
Logic Review. FORMAT Format Part I 30 questions 2.5 marks each Total 30 x 2.5 = 75 marks Part II 10 questions Answer only 5 of them! Total 5 x 5 marks.
9.4 Mathematical Induction
Course Overview and Road Map Computability and Logic.
Today’s Topics Review of Sample Test # 2 A Little Meta Logic.
INTRODUCTION TO LOGIC Jennifer Wang Fall 2009 Midterm Review Quiz Game.
Logical Reasoning:Proof Prove the theorem using the basic axioms of algebra.
Introductory Logic PHI 120 Presentation: "Natural Deduction – Introduction“ Bring this book to lecture.
Basic Inference Rules Kareem Khalifa Department of Philosophy Middlebury College.
Chapter Five Conditional and Indirect Proofs. 1. Conditional Proofs A conditional proof is a proof in which we assume the truth of one of the premises.
Natural Deduction System for First Order Logic Student: Wei Lei Instructor: W. M. Farmer Department of Computing and Software McMaster University, Hamilton,
assumption procedures
Introductory Logic PHI 120 Presentation: “Solving Proofs" Bring the Rules Handout to lecture.
1 Introduction to Abstract Mathematics Chapter 2: The Logic of Quantified Statements. Predicate Calculus Instructor: Hayk Melikya 2.3.
Methods of Proof for Boolean Logic Chapter 5 Language, Proof and Logic.
Formal Proofs and Boolean Logic Chapter 6 Language, Proof and Logic.
CS2013 Mathematics for Computing Science Adam Wyner University of Aberdeen Computing Science Slides adapted from Michael P. Frank ' s course based on the.
Copyright © Curt Hill Proofs An Introduction.
Of 38 lecture 13: propositional logic – part II. of 38 propositional logic Gentzen system PROP_G design to be simple syntax and vocabulary the same as.
2. 1. G > T 2. (T v S) > K / G > K (G v H) > (S. T) 2. (T v U) > (C. D) / G > C A > ~(A v E) / A > F H > (I > N) 2. (H > ~I) > (M v N)
Metalogic. TWO CONCEPTIONS OF LOGICAL CONSEQUENCE.
1+2+3+…+n = n(n+1)/2 We want to prove the above statement by mathematical Induction for all natural numbers (n=1,2,3,…) Next SlideSlide 1.
Sentential Logic.
2.3 Methods of Proof.
CS104:Discrete Structures Chapter 2: Proof Techniques.
CSE 311 Foundations of Computing I Lecture 8 Proofs Autumn 2011 CSE 3111.
1 Introduction to Abstract Mathematics Proof Methods , , ~, ,  Instructor: Hayk Melikya Purpose of Section:Most theorems in mathematics.
Completeness and Consistency So far we have 11 rules. PA, and an In and an Out rule for each of 5 connectives. Call this system of 11 rules: P.
The Logic of Conditionals Chapter 8 Language, Proof and Logic.
Metalogic Soundness and Completeness. Two Notions of Logical Consequence Validity: If the premises are true, then the conclusion must be true. Provability:
Section 1.7. Section Summary Mathematical Proofs Forms of Theorems Direct Proofs Indirect Proofs Proof of the Contrapositive Proof by Contradiction.
Foundations of Computing I CSE 311 Fall Announcements Homework #2 due today – Solutions available (paper format) in front – HW #3 will be posted.
March 23 rd. Four Additional Rules of Inference  Constructive Dilemma (CD): (p  q) (r  s) p v r q v s.
{P} ⊦ Q if and only if {P} ╞ Q
For Friday, read Chapter 4, section 4.
Introductory Logic PHI 120
Information Technology Department
No new reading for Monday. Exam #2 is Wednesday.
Semantic Paradoxes.
Natural Deduction.
Midterm Discussion.
Computer Security: Art and Science, 2nd Edition
For Wednesday, read Chapter 4, section 3 (pp )
The Main Connective (Again)
More Derived Rules.
Subderivations.
Presentation transcript:

More Proofs

REVIEW

The Rule of Assumption: A Assumption is the easiest rule to learn. It says at any stage in the derivation, we may write down any WFF we want to. That WFF only depends on itself.

&-Elimination: &E &E is also a very easy-to-learn rule. If we have proved (φ & ψ) on some line, then on any future line we may write down φ, and on any future line we may write down ψ. The result depends on everything (φ & ψ) depended on.

Arrow Elimination: →E The →E rule says that if on one line we have a conditional (φ → ψ) and on another line we have the antecedent of the conditional φ then on any future line, we may write down the consequent of the conditional ψ depending on everything (φ → ψ) and φ depended on.

Let’s look at an example proof using these rules. First lets show this: (P → (P → Q)), P ├ Q This means “From the assumptions (P → (P → Q)) and P, there is a proof of Q.”

(P → (P → Q)), P ├ Q 11. (P → (P → Q)) A The rule of assumption tells us we can write down anything we want. It seems reasonable to write down what we want to assume.

(P → (P → Q)), P ├ Q 11. (P → (P → Q)) A 22. PA A second application of assumption.

(P → (P → Q)), P ├ Q 11. (P → (P → Q)) A 22. PA 1,23. (P → Q)1,2 →E →E allows us to write down the consequent of a conditional, if we have the conditional + its antecedent.

(P → (P → Q)), P ├ Q 11. (P → (P → Q)) A 22. PA 1,23. (P → Q)1,2 →E We cite the lines used (1 and 2) as well as the rule used (→E) to the right.

(P → (P → Q)), P ├ Q 11. (P → (P → Q)) A 22. PA 1,23. (P → Q)1,2 →E Finally, we copy all the dependencies that are to the left of the lines used (1 and 2) to the right of 3. These are lines 1 and 2.

(P → (P → Q)), P ├ Q 11. (P → (P → Q)) A 22. PA 1,23. (P → Q)1,2 →E 1,24. Q3,2 →E Again, we have a conditional + its antecedent.

(P → (P → Q)), P ├ Q 11. (P → (P → Q)) A 22. PA 1,23. (P → Q)1,2 →E 1,24. Q3,2 →E We applied →E to lines 3 and 2.

(P → (P → Q)), P ├ Q 11. (P → (P → Q)) A 22. PA 1,23. (P → Q)1,2 →E 1,24. Q3,2 →E 4 depends on what 3 and 2 depended on.

MORE RULES

&I: &-Introduction Connectives have “introduction” rules that allow us to introduce them, and “elimination” rules that allow us to get rid of them. So in addition to &E, there is also a rule &I: If on some line you have proven φ and on some other line you have proven ψ, then on any future line you may write (φ & ψ), Depending on what φ and ψ depended on.

(P & (Q & R)) ├ ((P & Q) & R) 11. (P & (Q & R))A

(P & (Q & R)) ├ ((P & Q) & R) 11. (P & (Q & R))A 12. P1 &E

(P & (Q & R)) ├ ((P & Q) & R) 11. (P & (Q & R))A 12. P1 &E 13. (Q & R)1 &E

(P & (Q & R)) ├ ((P & Q) & R) 11. (P & (Q & R))A 12. P1 &E 13. (Q & R)1 &E 14. Q3 &E

(P & (Q & R)) ├ ((P & Q) & R) 11. (P & (Q & R))A 12. P1 &E 13. (Q & R)1 &E 14. Q3 &E 15. R3 &E

(P & (Q & R)) ├ ((P & Q) & R) 11. (P & (Q & R))A 12. P1 &E 13. (Q & R)1 &E 14. Q3 &E 15. R3 &E 16. (P & Q)2,4 &I

(P & (Q & R)) ├ ((P & Q) & R) 11. (P & (Q & R))A 12. P1 &E 13. (Q & R)1 &E 14. Q3 &E 15. R3 &E 16. (P & Q)2,4 &I 17. ((P & Q) & R)6,5 &I

(P & (Q & R)) ├ ((P & Q) & R) 11. (P & (Q & R))A 12. P1 &E 13. (Q & R)1 &E 14. Q3 &E 15. R3 &E 16. (P & Q)2,4 &I 17. ((P & Q) & R)6,5 &I

Important Importantly, the last line of the proof (line 7) only depends on line 1 (P & (Q & R)). Since we were trying to show that ((P & Q) & R) followed from this assumption, that’s OK. Our proof would not be done, however, if line 7 depended on something other than line 1.

P ├ (P & P) 11. PA

P ├ (P & P) 11. PA 12. (P & P)1,1 &I

As you should have expected, there’s a rule →I that allows us to introduce conditionals. This rule is noticeably more difficult to use than any of the previous rules we learned.

If on some line you have assumed φ, And on some other line you have proved ψ, And ψ depends on your assumption φ, Then on any future line you may write (φ→ψ), Depending on everything ψ depended on Except φ.

Strategies for Proving Conditionals If you want to prove a conditional statement (φ→ψ), the best way to go about it is (usually, but not always): 1.Assume the antecedent φ 2.Prove the consequent ψ 3.Use →I to conclude (φ→ψ)

(P → Q), (Q → R) ├ (P → R) 11. (P → Q)A 22. (Q → R)A 33. PA (for →I) 1,34. Q1,3 →E 1,2,35. R2,4 →E 1,26. (P → R)3,5 →I

Zero Dependencies →I, because it allows you to remove dependencies, allows you to prove formulas with no dependencies. These are called “theorems.”

├ ((P→(Q→R))→((P →Q)→(P →R))) 11. (P → (Q → R))A (for →I) 22. (P → Q)A (for →I) 33. PA (for →I) 1,34. (Q → R)1,3 →E 1,25. Q2,3 →E 1,2,36. R4,5 →E 1,27. (P → R)3,6 →I

├ ((P→(Q→R))→((P→Q)→(P→R))) 18. ((P → Q) → (P → R))2,7 →I 9. ((P → (Q → R)) → ((P → Q) → (P → R))) 1,8 →I

├ (P → P) 11. PA (for →I) 2. (P → P)1,1 →I

The Biconditional ↔ has an easy set of rules to learn: ↔I: If on some line you have proved ((φ→ψ) & (ψ→φ)) Then on any future line you may write (φ↔ψ) Depending on what ((φ→ψ) & (ψ→φ)) did.

The Biconditional ↔ has an easy set of rules to learn: ↔E: If on some line you have proved (φ↔ψ) Then on any future line you may write ((φ→ψ) & (ψ→φ)) Depending on what (φ↔ψ) depended on.

(P ↔ Q), (Q ↔ R) ├ (P ↔ R) 11. (P ↔ Q)A 22. (Q ↔ R)A 13. ((P → Q) & (Q → P))1 ↔E 24. ((Q → R) & (R → Q))2 ↔E 15. (P → Q)3 &E 26. (Q → R)4 &E 77. PA (for →I)

(P ↔ Q), (Q ↔ R) ├ (P ↔ R) 1,78. Q5,7 →E 1,2,79. R6,8 →E 1,210. (P → R)7,9 →I 211. (R → Q)4 &E 112. (Q → P)3 &E RA (for →I) 2,1314. Q11,13 →E

(P ↔ Q), (Q ↔ R) ├ (P ↔ R) 1,2, P12,14 →E 1,216. (R → P)13,15 →I 1,217. ((P → R) & (R → P))10,16 &I 1,218. (P ↔ R)17 ↔I

Rules for Wedge: vI vI: If on some line you have proved φ Then on any future line you may write (φ v ψ) And on any future line you may write (ψ v φ) The result depends on what φ depends on.

Rules for Wedge: vE vE: If you have proved (φ v ψ) And you have proved ~φ Then you may write ψ Depending on whatever (φ v ψ) depended on. If you have proved (φ v ψ) And you have proved ~ψ Then you may write φ Depending on whatever (φ v ψ) depended on.

Anything Provable from Contradiction In logic, anything is provable from a contradiction. So, for example: (P & ~P) ├ Q This might mean “Michael is happy AND Michael is not happy. Therefore, =17.” That’s a valid argument! One way to see why it’s valid is to look at the truth-tables. Q is never F when (P & ~P) is true, because (P & ~P) is never true!

(P & ~P) ├ Q 11. (P & ~P)A 12. P1 &E 13. (P v Q)2 vI 14. ~P1 &E 15. Q3 vE

Proof by Cases PC: First, you must have three formulas: (φ v ψ) (φ → α) (ψ → β) Then on any future line you may write (α v β) Depending on what the 3 formulas depended on

Proof by Cases: Example P1: Either I’ll have free time this weekend, or I’ll still have work to do. P2: If I have free time, I’ll go to the museum. P3: If I have work to do, I’ll grade papers. Therefore, C: Either I’ll go to the museum this weekend, or I’ll grade papers.

((P & P) v (Q & Q)) ├ (P v Q) 11. ((P & P) v (Q & Q)) A 22. (P & P)A (for →I) 23. P 2 &E 4. ((P & P) → P) 2,3 →I 55. (Q& Q)A (for →I) 56. Q5 &E 7. ((Q & Q) → Q)5,6 →I 18. (P v Q)1,4,7 PC

Negation Introduction Our two other rules have to do with ~, and they are (predictably) ~I and ~E. ~I (Negation Introduction) If you have assumed ψ, and you have derived (φ&~φ), then you can write down ~ψ, depending on everything (φ&~φ) depends on except ψ.

P ├ ~~P 11. PA 22. ~PA (for ~I) 1,23. (P & ~P) 1,2 &I 14. ~~P 2,3 ~I

(~P v Q) ├ (P → Q) 11. (~P v Q)A 22. PA 33. ~PA (for ~I) 2,34. (P & ~P) 2,3 &I 25. ~~P 3,4 ~I 1,26. Q1,5 vE 17. (P → Q)2,6 →I

(P → Q) ├ ~(P & ~Q) 11. (P → Q)A 22. (P & ~Q)A (for ~I) 23. P2 &E 24. ~Q2 &E 1,25. Q 1,3 →E 1,26. (Q & ~Q)5,4 &I 17. ~(P & ~Q)2,6 ~I

(P & ~Q) ├ ~(P → Q) 11. (P & ~Q)A 22. (P → Q)A (for ~I) 13. P1 &E 14. ~Q1 &E 1,25. Q 2,3 →E 1,26. (Q & ~Q)5,4 &I 17. ~(P → Q)2,6 ~I

(~P v ~Q) ├ ~(P & Q) 11. (~P v ~Q)A 22. (P & Q)A (for ~I) 23. P2 &E 44. ~PA (for ~I) 2,45. (P & ~P)3,4 &I 26. ~~P4,5 ~I 1,27. ~Q1,6 vE

(~P v ~Q) ├ ~(P & Q) 28. Q2 &E 1,29. (Q & ~Q)7,8 &I 110. ~(P & Q)2,9 ~I

Negation Elimination ~E (Negation Elimination) If you have assumed ~ψ, and you have derived (φ&~φ), then you can write down ψ, depending on everything (φ&~φ) depends on except ~ψ.

(P v P) ├ P 11. (P v P)A 22. ~PA (for ~E) 1,23. P1,2 vE 1,24. (P & ~P)2,3 &I 15. P2,4 ~E