CS1502 Formal Methods in Computer Science

Slides:



Advertisements
Similar presentations
Introduction to Proofs
Advertisements

Chapter 3 Elementary Number Theory and Methods of Proof.
Proofs, Recursion and Analysis of Algorithms Mathematical Structures for Computer Science Chapter 2 Copyright © 2006 W.H. Freeman & Co.MSCS SlidesProofs,
EXAMPLE 4 Prove the Converse of the Hinge Theorem
1 CS 1502 Formal Methods in Computer Science Lecture Notes 14 Translations Mixed Quantifiers.
Direct Proof and Counterexample II Lecture 12 Section 3.2 Thu, Feb 9, 2006.
Methods of Proof Leo Cheung. A Quick Review Direct proof Proof by contrapositive Proof by contradiction Proof by induction.
Introduction to Proofs ch. 1.6, pg. 87,93 Muhammad Arief download dari
Introduction to Proofs Goals 1.Introduce notion of proof & basic proof methods. 2.Distinguish between correct & incorrect arguments 3.Understand & construct.
Methods of Proof Lecture 4: Sep 16 (chapter 3 of the book)
CS 1502 Formal Methods in Computer Science
Introduction to Proofs
Mathematics Review Exponents Logarithms Series Modular arithmetic Proofs.
Methods of Proof. This Lecture Now we have learnt the basics in logic. We are going to apply the logical rules in proving mathematical theorems. Direct.
CSE 311: Foundations of Computing Fall 2013 Lecture 8: More Proofs.
Methods of Proofs PREDICATE LOGIC The “Quantifiers” and are known as predicate quantifiers. " means for all and means there exists. Example 1: If we.
The Binomial Theorem Lecture 29 Section 6.7 Mon, Apr 3, 2006.
Fall 2008/2009 I. Arwa Linjawi & I. Asma’a Ashenkity 11 The Foundations: Logic and Proofs Introduction to Proofs.
1 Discrete Structures – CNS2300 Text Discrete Mathematics and Its Applications Kenneth H. Rosen (5 th Edition) Chapter 3 The Foundations: Logic and Proof,
Methods of Proof for Boolean Logic Chapter 5 Language, Proof and Logic.
CS.462 Artificial Intelligence SOMCHAI THANGSATHITYANGKUL Lecture 05 : Knowledge Base & First Order Logic.
CSE 311: Foundations of Computing Fall 2013 Lecture 8: Proofs and Set theory.
1 CS1502 Formal Methods in Computer Science Notes 15 Problem Sessions.
1 Review for Quiz 1. 2 Summations 3 Binomial expansion.
Section 1.7. Definitions A theorem is a statement that can be shown to be true using: definitions other theorems axioms (statements which are given as.
CSE 311 Foundations of Computing I Lecture 8 Proofs Autumn 2011 CSE 3111.
CSE 311 Foundations of Computing I Lecture 8 Proofs Autumn 2012 CSE
5-5 Indirect Proof. Indirect Reasoning: all possibilities are considered and then all but one are proved false. The remaining possibility must be true.
1 Introduction to Abstract Mathematics Proof Methods , , ~, ,  Instructor: Hayk Melikya Purpose of Section:Most theorems in mathematics.
The Logic of Conditionals Chapter 8 Language, Proof and Logic.
EXAMPLE 3 Write an indirect proof Write an indirect proof that an odd number is not divisible by 4. GIVEN : x is an odd number. PROVE : x is not divisible.
Methods of Proof Lecture 4: Sep 20 (chapter 3 of the book, except 3.5 and 3.8)
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.
Lecture 34 Section 6.7 Wed, Mar 28, 2007
Proof Techniques CS160/CS122 Rosen: 1.5, 1.6, 1.7.
Lecture 2: Proofs and Recursion. Lecture 2-1: Proof Techniques Proof methods : –Inductive reasoning Lecture 2-2 –Deductive reasoning Using counterexample.
1 Proofs by Counterexample & Contradiction There are several ways to prove a theorem:  Counterexample: By providing an example of in which the theorem.
Introduction to Proofs Goals 1.Introduce notion of proof & basic proof methods. 2.Distinguish between correct & incorrect arguments 3.Understand & construct.
11.7 – Proof by Mathematical Induction
CSE15 Discrete Mathematics 02/01/17
CSE 311 Foundations of Computing I
Lecture Notes 8 CS1502.
Indirect Argument: Contradiction and Contraposition
Direct Proof by Contraposition Direct Proof by Contradiction
Predicate Calculus Validity
CSE 311: Foundations of Computing
Proof Techniques.
Methods of Proof A mathematical theorem is usually of the form pq
Lecture 4 CS 1813 – Discrete Mathematics
Indirect Argument: Contradiction and Contraposition
تصنيف التفاعلات الكيميائية
An indirect proof uses a temporary assumption that
Sets and Logic…. Chapter 3
CS 1502 Formal Methods in Computer Science
CSE 311: Foundations of Computing
CS 220: Discrete Structures and their Applications
Xuan Guo Lab 4 Xuan Guo
CS 220: Discrete Structures and their Applications
Section 2.1 Proof Techniques Introduce proof techniques:   o        Exhaustive Proof: to prove all possible cases, Only if it is about a.
Geometry Chapter 6 Review.
Methods of Proof Rosen 1.7, 1.8 Lecture 4: Sept 24, 25.
Indirect Argument: Contradiction and Contraposition
Dr. Halimah Alshehri MATH 151 Dr. Halimah Alshehri Dr. Halimah Alshehri.
Lecture 29 Section 6.7 Thu, Mar 3, 2005
5.6 Inequalities in Two Triangles and Indirect Proof
Introduction to Proofs
Methods of Proof Rosen 1.7, 1.8 Lecture 4: Sept, 2019.
Presentation transcript:

CS1502 Formal Methods in Computer Science Lecture Notes 9 Proofs Involving Conditionals

Methods of Proof Want to prove P  Q. Direct Method – assume P deduce Q Indirect Method – assume Q deduce P Proof by contradiction – Assume P and Q deduce a contradiction Proof by Induction – more about this later

Informal Conditional Proof Prove: Tet(a)  Tet(c) follows from Tet(a)  Tet(b) and Tet(b)  Tet(c). Assume Tet(a) is true. Applying modus ponens to the first premise gives us Tet(b). Using modus ponens again, this time with the second premise, gives us Tet(c). So, we have established Tet(c) from our assumption of Tet(a). Thus, Tet(a)  Tet(c)

In Fitch

Informal Indirect Proof Prove Even(n*n)  Even(n). Proving the contrapositive is easier: ~Even(n)  ~Even(n*n) Assume ~Even(n), i.e., Odd(n). Then we can express n as 2m + 1 for some m. But we see that n*n = 2(2m*m + 2m) + 1, showing that n*n is odd. Thus, we have shown ~Even(n)  ~Even(n*n)

 Elimination P  Q … P … Q  Elim

 Introduction P … Q P  Q  Intro

Fitch Festival A B  (AB) (AB)  C C  (AB) BC CD AD A(B A) AC BD D A  B A A  C BC A  B (CA)  (C B)

Fitch Festival ~Q  ~P P  Q ~P v Q P  Q

Taut Con: resolution step

Full Proof

 Introduction P … Q Q … P P  Q  Intro

 Elimination P  Q … P … Q  Elim