Lecture 10 Methods of Proof CSCI – 1900 Mathematics for Computer Science Fall 2014 Bill Pine.

Slides:



Advertisements
Similar presentations
Rules of Inference Rosen 1.5.
Advertisements

Discrete Mathematics University of Jazeera College of Information Technology & Design Khulood Ghazal Mathematical Reasoning Methods of Proof.
Introduction to Proofs
Lecture 11 Mathematical Induction CSCI – 1900 Mathematics for Computer Science Fall 2014 Bill Pine.
1 Section 1.5 Rules of Inference. 2 Definitions Theorem: a statement that can be shown to be true Proof: demonstration of truth of theorem –consists of.
Chapter 2 Fundamentals of Logic Dept of Information management National Central University Yen-Liang Chen.
1 Logic Logic in general is a subfield of philosophy and its development is credited to ancient Greeks. Symbolic or mathematical logic is used in AI. In.
Chapter 1: The Foundations: Logic and Proofs 1.1 Propositional Logic 1.2 Propositional Equivalences 1.3 Predicates and Quantifiers 1.4 Nested Quantifiers.
1 Introduction to Abstract Mathematics Valid AND Invalid Arguments 2.3 Instructor: Hayk Melikya
IX Conjunctions of Premises & Conclusions Working with more than two premises.
1 Valid and Invalid Arguments CS 202 Epp Section 1.3 Aaron Bloomfield.
Chapter 1 The Logic of Compound Statements. Section 1.3 Valid & Invalid Arguments.
CS128 – Discrete Mathematics for Computer Science
Chapter 1 The Logic of Compound Statements. Section 1.2 – 1.3 (Modus Tollens) Conditional and Valid & Invalid Arguments.
Logic 3 Tautological Implications and Tautological Equivalences
Syllabus Every Week: 2 Hourly Exams +Final - as noted on Syllabus
CSE115/ENGR160 Discrete Mathematics 02/01/11
So far we have learned about:
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.
Propositional Logic Lecture 2: Sep 9. Conditional Statement If p then q p is called the hypothesis; q is called the conclusion “If your GPA is 4.0, then.
Chapter 1 Section 1.5 Analyzing Arguments. Syllogisms A syllogism is a type of deductive reasoning that draws a logical conclusion from two statements.
Discrete Mathematics and its Applications
Fall 2002CMSC Discrete Structures1 Let’s proceed to… Mathematical Reasoning.
Adapted from Discrete Math
Propositional Logic.
Methods of Proof & Proof Strategies
1.1 Sets and Logic Set – a collection of objects. Set brackets {} are used to enclose the elements of a set. Example: {1, 2, 5, 9} Elements – objects inside.
3.6 Analyzing Arguments with Truth Tables
Copyright © Curt Hill Rules of Inference What is a valid argument?
MATERI II PROPOSISI. 2 Tautology and Contradiction Definition A tautology is a statement form that is always true. A statement whose form is a tautology.
Introduction to Proofs
MATH 224 – Discrete Mathematics
Valid and Invalid Arguments
March 3, 2015Applied Discrete Mathematics Week 5: Mathematical Reasoning 1Arguments Just like a rule of inference, an argument consists of one or more.
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.
COS 150 Discrete Structures Assoc. Prof. Svetla Boytcheva Fall semester 2014.
Discrete Structures (DS)
2.3Logical Implication: Rules of Inference From the notion of a valid argument, we begin a formal study of what we shall mean by an argument and when such.
1 CMSC 250 Discrete Structures CMSC 250 Lecture 1.
Fundamentals of Logic 1. What is a valid argument or proof? 2. Study system of logic 3. In proving theorems or solving problems, creativity and insight.
1 Introduction to Abstract Mathematics Expressions (Propositional formulas or forms) Instructor: Hayk Melikya
Lecture 9 Conditional Statements CSCI – 1900 Mathematics for Computer Science Fall 2014 Bill Pine.
1 Discrete Structures – CNS2300 Text Discrete Mathematics and Its Applications Kenneth H. Rosen (5 th Edition) Chapter 3 The Foundations: Logic and Proof,
Conditional Statements – Page 1CSCI 1900 – Discrete Structures CSCI 1900 Discrete Structures Conditional Statements Reading: Kolman, Section 2.2.
Chapter 2 Fundamentals of Logic 1. What is a valid argument or proof?
Fall 2008/2009 I. Arwa Linjawi & I. Asma’a Ashenkity 11 The Foundations: Logic and Proofs Rules of inference.
Mathematics for Comter I Lecture 2: Logic (1) Basic definitions Logical operators Translating English sentences.
CSci 2011 Discrete Mathematics Lecture 4 CSci 2011.
2.3 Methods of Proof.
CS104:Discrete Structures Chapter 2: Proof Techniques.
Methods of Proof – Page 1CSCI 1900 – Discrete Structures CSCI 1900 Discrete Structures Methods of Proof Reading: Kolman, Section 2.3.
Foundations of Discrete Mathematics Chapter 1 By Dr. Dalia M. Gil, Ph.D.
Discrete Mathematical Structures: Theory and Applications 1 Logic: Learning Objectives  Learn about statements (propositions)  Learn how to use logical.
Discrete Math by R.S. Chang, Dept. CSIE, NDHU1 Fundamentals of Logic 1. What is a valid argument or proof? 2. Study system of logic 3. In proving theorems.
Chapter 1, Part III: Proofs With Question/Answer Animations Copyright © McGraw-Hill Education. All rights reserved. No reproduction or distribution without.
Section 1.7. Section Summary Mathematical Proofs Forms of Theorems Direct Proofs Indirect Proofs Proof of the Contrapositive Proof by Contradiction.
Sound Arguments and Derivations. Topics Sound Arguments Derivations Proofs –Inference rules –Deduction.
Chapter 1 Logic and proofs
2. The Logic of Compound Statements Summary
Discrete Mathematics Logic.
Proof Techniques.
Methods of Proof A mathematical theorem is usually of the form pq
The Foundations: Logic and Proofs
CS201: Data Structures and Discrete Mathematics I
Propositional Logic.
Discrete Mathematics Logic.
Mathematical Reasoning
CS201: Data Structures and Discrete Mathematics I
Presentation transcript:

Lecture 10 Methods of Proof CSCI – 1900 Mathematics for Computer Science Fall 2014 Bill Pine

CSCI 1900 Lecture Lecture Introduction Reading –Rosen - Section 1.7, 1.8 The Nature of Proofs Components of a Proof Rule of Inference and Tautology Proving equivalences modus ponens Indirect Method Proof by Contradiction

CSCI 1900 Lecture Past Experience Until now we’ve used the following methods to write proofs: –Direct proofs with generic elements, definitions, and given facts –Proof by enumeration of cases such as when we used truth tables

CSCI 1900 Lecture General Outline of a Proof p  q denotes "q logically follows from p“ Implication may take the form (p 1  p 2  p 3  …  p n )  q q logically follows from p 1, p 2, p 3, …, p n

CSCI 1900 Lecture General Outline (cont) The process is generally written as: p 1 p 2 p 3 : : p n  q

CSCI 1900 Lecture Components of a Proof The p i 's are called hypotheses or premises q is called the conclusion Proof shows that if all of the p i 's are true, then q has to be true If result is a tautology, then the implication p  q represents a universally correct method of reasoning and is called a rule of inference

CSCI 1900 Lecture Example of a Tautology based Proof If p implies q and q implies r, then p implies r p  q q  r  p  r By replacing the bar under q  r with the “  ”, the proof above becomes ((p  q)  (q  r))  (p  r) The next slide shows that this is a tautology and therefore is universally valid.

CSCI 1900 Lecture Tautology Example (cont) pqr p  qq  r(p  q)  (q  r) p  r((p  q)  (q  r))  (p  r) TTTTTTTT TTFTFFFT TFTFTFTT TFFFTFFT FTTTTTTT FTFTFFTT FFTTTTTT FFFTTTTT

CSCI 1900 Lecture Equivalences Some mathematical theorems are equivalences, i.e., p  q. –If and only if –Necessary and sufficient The proof of such a theorem requires two proofs: –Must prove p  q, and –Must prove q  p

CSCI 1900 Lecture Rule of Inference: modus ponens modus ponens – the method of asserting p p  q  q Example: –p: It is snowing today –p  q: If it is snowing, there is no school –q: There is no school today Supported by the tautology (p  (p  q))  q

CSCI 1900 Lecture Show modus ponens = Rule of Inference pq (p  q)p  (p  q)(p  (p  q))  q TTTTT TFFFT FTTFT FFTFT

CSCI 1900 Lecture Summary of Arguments An argument is a sequence of statements –All statement except the last are premises –The final statement is the conclusion –Normally place the symbol  in front of the conclusion To say that an argument is valid means only that its form is valid –If the premises are all true the conclusion is true

CSCI 1900 Lecture Summary of Arguments (cont) It is possible for a valid argument to lead to a false conclusion It is possible for an invalid argument to lead to a true conclusion Carefully distinguish between validity of the argument and truth of the conclusion A valid argument is one whose form, when supplied with true premises cannot have a false conclusion

CSCI 1900 Lecture Invalid Conclusions from Invalid Premises Just because the format of the argument is valid does not mean that the conclusion is true. A premise may be false. For example: Star Trek is real If Star Trek is real we can travel faster than light  We can travel faster than light Argument is valid since it is in modus ponens form Conclusion is false because a premise is false

CSCI 1900 Lecture Invalid Conclusion from Wrong Form Sometimes, an argument that looks like modus ponens is actually not in the correct form. For example: If I am watching Star Trek, then I am happy I am happy  I am watching Star Trek Argument is not valid since its form is: p  q q  p Which is not modus ponens

CSCI 1900 Lecture Invalid Argument (continued) Truth table shows that this is not a tautology: pq (p  q)(p  q)  q((p  q)  q)  p TTTTT TFFFT FTTTF FFTFT

CSCI 1900 Lecture Rule of Inference: Indirect Method Another method of proof is to use the tautology: (p  q)  (~q  ~p) The form of the proof is (modus ponens): ~q ~q  ~p  ~p

CSCI 1900 Lecture Indirect Method Example p: My address is available on a web site q: I am getting spam p  q: If my address is available on a web site, then I am getting spam ~q  ~p: If I am not getting spam, then my address must not be available on a web site This proof says that if I am not getting spam, then my address is not on a web site

CSCI 1900 Lecture Another Indirect Method Example Prove that if the square of an integer is odd, then the integer is odd too. p: n 2 is odd q: n is odd ~q  ~p: If n is even, then n 2 is even. If n is even, then there exists an integer m for which n = 2×m. n 2 therefore would equal (2×m) 2 = 4×m 2 which must be even.

CSCI 1900 Lecture Rule of Inference:modus tollens Another method of proof is to use the tautology (p  q)  (~q)  (~p) The form of the proof is: p  q ~q  ~p Also known as proof by contradiction

CSCI 1900 Lecture Proof by Contradiction (cont) pq (p  q) ~q (p  q)  ~q ~p (p  q)  (~q)  (~p) TTTFFFT TFFTFFT FTTFFTT FFTTTTT

CSCI 1900 Lecture Proof by Contradiction (cont) The best application for this is where you cannot possibly go through a large (potentially infinite) number of cases to prove that every one is true

CSCI 1900 Lecture Key Concepts Summary The Nature of Proofs Components of a Proof Rule of Inference and Tautology Proving equivalences modus ponens Indirect Method Proof by Contradiction