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.

Slides:



Advertisements
Similar presentations
Discrete Mathematics University of Jazeera College of Information Technology & Design Khulood Ghazal Mathematical Reasoning Methods of Proof.
Advertisements

Introduction to Proofs
Introduction to Theorem Proving
Logic Use mathematical deduction to derive new knowledge.
1 Introduction to Abstract Mathematics Valid AND Invalid Arguments 2.3 Instructor: Hayk Melikya
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.
Proofs, Recursion and Analysis of Algorithms Mathematical Structures for Computer Science Chapter 2 Copyright © 2006 W.H. Freeman & Co.MSCS SlidesProofs,
Logic Concepts Lecture Module 11.
Copyright © Cengage Learning. All rights reserved.
© by Kenneth H. Rosen, Discrete Mathematics & its Applications, Sixth Edition, Mc Graw-Hill, 2007 Chapter 1: (Part 2): The Foundations: Logic and Proofs.
CS128 – Discrete Mathematics for Computer Science
Logic 3 Tautological Implications and Tautological Equivalences
Laws of , , and  Excluded middle law Contradiction law P   P  T P   P  F NameLaw Identity laws P  F  P P  T  P Domination laws P  T  T P.
Discussion #12 1/22 Discussion #12 Deduction, Proofs and Proof Techniques.
Discussion #131/18 Discussion #13 Induction (the process of deriving generalities from particulars) Mathematical Induction (deductive reasoning over the.
Syllabus Every Week: 2 Hourly Exams +Final - as noted on Syllabus
Knoweldge Representation & Reasoning
Introduction to Logic Logical Form: general rules
Discrete Mathematics and its Applications
Mathematical Induction Assume that we are given an infinite supply of stamps of two different denominations, 3 cents and and 5 cents. Prove using mathematical.
Copyright © Curt Hill Rules of Inference What is a valid argument?
Inductive Proof (the process of deriving generalities from particulars) Mathematical Induction (reasoning over the natural numbers)
Deduction, Proofs, and Inference Rules. Let’s Review What we Know Take a look at your handout and see if you have any questions You should know how to.
MATH 224 – Discrete Mathematics
Conditional Statements CS 2312, Discrete Structures II Poorvi L. Vora, GW.
Mathematical Structures for Computer Science Chapter 1.2 Copyright © 2006 W.H. Freeman & Co.MSCS SlidesFormal Logic.
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”
CSci 2011 Discrete Mathematics Lecture 6
10/17/2015 Prepared by Dr.Saad Alabbad1 CS100 : Discrete Structures Proof Techniques(1) Dr.Saad Alabbad Department of Computer Science
1 Sections 1.5 & 3.1 Methods of Proof / Proof Strategy.
Natural Deduction CS 270 Math Foundations of CS Jeremy Johnson.
INTRODUCTION TO LOGIC Jennifer Wang Fall 2009 Midterm Review Quiz Game.
1 CMSC 250 Discrete Structures CMSC 250 Lecture 1.
Chapter Four Proofs. 1. Argument Forms An argument form is a group of sentence forms such that all of its substitution instances are arguments.
Hazırlayan DISCRETE COMPUTATIONAL STRUCTURES Propositional Logic PROF. DR. YUSUF OYSAL.
Chapter 3: Introduction to Logic. Logic Main goal: use logic to analyze arguments (claims) to see if they are valid or invalid. This is useful for math.
Propositional Logic. Propositions Any statement that is either True (T) or False (F) is a proposition Propositional variables: a variable that can assume.
1 Introduction to Abstract Mathematics Expressions (Propositional formulas or forms) Instructor: Hayk Melikya
CS6133 Software Specification and Verification
Chapter 2 Logic 2.1 Statements 2.2 The Negation of a Statement 2.3 The Disjunction and Conjunction of Statements 2.4 The Implication 2.5 More on Implications.
CS2013 Mathematics for Computing Science Adam Wyner University of Aberdeen Computing Science Slides adapted from Michael P. Frank ' s course based on the.
What is Reasoning  Logical reasoning is the process of drawing conclusions from premises using rules of inference.  These inference rules are results.
1 Propositional Logic: Fundamental Elements for Computer Scientists 0. Motivation for Computer Scientists 1. Propositions and Propositional Variables 2.
CSci 2011 Discrete Mathematics Lecture 4 CSci 2011.
CS104:Discrete Structures Chapter 2: Proof Techniques.
CSE 311: Foundations of Computing Fall 2013 Lecture 8: Proofs and Set theory.
Week 4 - Friday.  What did we talk about last time?  Floor and ceiling  Proof by contradiction.
Outline Logic Propositional Logic Well formed formula Truth table
Mathematics for Comter I Lecture 3: Logic (2) Propositional Equivalences Predicates and Quantifiers.
Today’s Topics Argument forms and rules (review)
Foundations of Discrete Mathematics Chapter 1 By Dr. Dalia M. Gil, Ph.D.
1 Propositional Proofs 1. Problem 2 Deduction In deduction, the conclusion is true whenever the premises are true.  Premise: p Conclusion: (p ∨ q) 
Sound Arguments and Derivations. Topics Sound Arguments Derivations Proofs –Inference rules –Deduction.
Chapter 1 Logic and proofs
March 23 rd. Four Additional Rules of Inference  Constructive Dilemma (CD): (p  q) (r  s) p v r q v s.
Logic and Reasoning.
2. The Logic of Compound Statements Summary
Discrete Mathematics Logic.
Formal Logic CSC 333.
Proof by Deduction.
Proof Techniques.
7.1 Rules of Implication I Natural Deduction is a method for deriving the conclusion of valid arguments expressed in the symbolism of propositional logic.
CS201: Data Structures and Discrete Mathematics I
CS 270 Math Foundations of CS
CS 220: Discrete Structures and their Applications
The Method of Deduction
Discrete Mathematics Logic.
Foundations of Discrete Mathematics
CS201: Data Structures and Discrete Mathematics I
Chapter 8 Natural Deduction
Presentation transcript:

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 proof of a conclusion C is a deduction that ends with C What is known or assumed to be true comes in three variations: –Premises that are assumed to be true –Any statement known to be true (e.g., 1+1 = 2) –Sound rules of inference that introduce logic statements that are true (assuming the statements they are based on are also true)

Careful Again… A formal proof guarantees that the original statement is a tautology –If any premise is false, the statement is true (P  Q is true when P is false) –If all premises are true, we are able to guarantee that the conclusion is true (by the proof derivation) –Thus, the statement is always true (i.e., is a tautology) HOWEVER: –A proof does NOT guarantee that the conclusion is true!

Valid Proof vs. Valid Conclusion Consider the following proof: If 2 > 3, 2 > 3  3 < 2, then 3 < > 3premise 2.2 > 3  3 < 2premise 3.3 < 21&2, modus ponens Is the proof valid? Is the conclusion valid? Yes! Sound argument No! Hence, a valid proof does not guarantee a valid conclusion. What a valid proof does guarantee is that IF the premises are all true, then the conclusion is too.

Main Rules of Inference A, B |= A  B Combination A  B |= B Simplification A  B |= A Variant of simplification A |= A  B Addition B |= A  B Variant of addition A, A  B |= B Modus ponens  B, A  B |=  A Modus tollens A  B, B  C |= A  C Hypothetical syllogism A  B,  A |= B Disjunctive syllogism A  B,  B |= A Variant of disjunctive syllogism A  B,  A  B |= B Cases A  B |= A  B Equivalence elimination A  B |= B  A Variant of equivalence elimination A  B, B  A |= A  B Equivalence introduction A,  A |= B Inconsistency law

Reduction of Rules of Inference Using laws, we can also reduce the number of rules of inference –Too many to remember –Too many to program! (Project) Example: modus tollens  B A  B  A  B   A contrapositive  B  A modus ponens Easy to show validity of rules with truth tables It turns out that modus ponens plus some simple laws are usually enough, and it can get even simpler…

1. Exhaustive Truth Proof Show true for all cases –e.g.Prove x < 20 for integers 0  x  = 5< 20T = 6< 20T = 9< 20T = 14< 20T –Thus, all cases are exhausted and true –Same as using truth tables  when all combinations yield a tautology

2. Equivalence to Truth 2a.Transform logical expression to T Prove: R  S   (  R   S) R  S   (  R   S)  R  S   R   S de Morgan’s law  R  S  R  S double negation   (R  S)  (R  S) implication (P  Q   P  Q)  T law of excl. middle (P   P)  T Use laws only!

2. Equivalence to Truth (cont’d) 2b.Transform lhs to rhs or vice versa Prove: P  Q   P  Q  Q P  Q   P  Q  (P   P)  Q distributive law (factoring)  T  Q law of excluded middle  Q identity Use laws only!

3. If and only if Proof Also called necessary and sufficient Since P  Q  (P  Q)  (Q  P), we can create two standard deductive proofs: –P  Q –Q  P Transforms proof to a standard deductive proof  actually two of them

3. If and only if Proof: Example Prove: 2x – 4 > 0 iff x > 2. Thus, we can do two proofs: (1) If 2x – 4 > 0 then x > 2. (2) If x > 2 then 2x – 4 > 0. Proof: (1) (2) Similarly, suppose x > 2. Then 2x > 4 and thus 2x – 4 > 0. Note that we could have also converted the lhs to the rhs Proof: 2x – 4 > 0  2x > 4  x > x – 4 > 0premise 2. 2x > 41, algebraic equiv. 3. x > 22, algebraic equiv.

Since P  Q   Q   P (by the law of contrapositive), we can prove either side of the equivalence, whichever is EASIER E.g., prove: if s is not a multiple of 3, then s is not a solution of x 2 + 3x – 18 = 0 –Infinitely many non-multiples of 3 and non- solutions to the quadratic equation – HARD! –Let: P = s is a multiple of 3 Q = s is a solution of x 2 + 3x – 18 = 0 –Instead of  P   Q, we can prove Q  P 4. Contrapositive Proof

Prove: if s is a solution of x 2 + 3x – 18 = 0, then s is a multiple of 3 Proof: The solutions of x 2 + 3x – 18 = 0 are 3 and – 6. Both 3 and – 6 are multiples of 3. Thus, every solution s is a multiple of 3. Note: Using a contrapositive proof helps get rid of the not’s and makes the problem easier to understand  indeed, the contrapositive turns this into a simple proof we can do exhaustively. 4. Contrapositive Proof (cont’d)

Note: P P   P  F TT F T FT T F Thus, P   P  F Substituting R  S for P, we have R  S   (R  S)  F And finally  (R  S)  F   (  R  S)  F implication   R   S  F de Morgan’s  R   S  F double negation 5. Proof by Contradiction

Thus, we have –R  S  R   S  F Hence, to prove R  S, we can –Negate the conclusion –Add it as a premise (to R) –Derive a contradiction (i.e. derive F) Any contradiction (e.g., P   P) is equivalent to F, so deriving any contradiction is enough 5. Proof by Contradiction (cont’d) Note: in our project we will implement the semantics of our language by programming the computer to do a proof by contradiction

Prove: the empty set is unique Since P  (  P  F), we can prove  P  F instead i.e. We can prove: if the empty set is not unique, then there is a contradiction, or, in other words, assuming the empty set is not unique leads (deductively) to a contradiction. Proof: –Assume the empty set is not unique –Then, there are at least two empty sets  1 and  2 such that  1   2 –Since an empty set is a set and an empty set is a subset of every set,  1   2 and  2   1 and thus  1 =  2 –But now we have  1   2 and  1 =  2  a contradiction! –Hence, the empty set is unique 5. Proof by Contradiction: Example