1 Discrete Structures Lecture 12 Implication III Read: Ch 4.1.

Slides:



Advertisements
Similar presentations
8.2 Integration by parts.
Advertisements

With examples from Number Theory
In this episode of The Verification Corner, Rustan Leino talks about Loop Invariants. He gives a brief summary of the theoretical foundations and shows.
Mathematical Induction
Introduction to Proofs
Prof. Shachar Lovett Clicker frequency: CA CSE 20 Discrete math Prof. Shachar Lovett
Introduction to Theorem Proving
Solving Word Problems II
Disjunctive Normal Form CS 680: Formal Methods Jeremy Johnson.
(CSC 102) Lecture 12 Discrete Structures. Previous Lecture Summary Floor and Ceiling Functions Definition of Proof Methods of Proof Direct Proof Disproving.
1 Discrete Structures Lecture 29 Predicates and Programming Read Ch
Logic 3 Tautological Implications and Tautological Equivalences
CS5371 Theory of Computation
Induction Sections 41. and 4.2 of Rosen Fall 2008 CSCE 235 Introduction to Discrete Structures Course web-page: cse.unl.edu/~cse235 Questions:
Induction Sections 4.1 and 4.2 of Rosen Fall 2010
CSE115/ENGR160 Discrete Mathematics 01/31/12 Ming-Hsuan Yang UC Merced 1.
CSE115/ENGR160 Discrete Mathematics 02/01/11
Using Decision Procedures for Program Verification Christopher Lynch Clarkson University.
CS5371 Theory of Computation Lecture 8: Automata Theory VI (PDA, PDA = CFG)
Discrete Structures Lecture 11 Implication II 1.
CS5371 Theory of Computation Lecture 12: Computability III (Decidable Languages relating to DFA, NFA, and CFG)
1 Section 3.3 Mathematical Induction. 2 Technique used extensively to prove results about large variety of discrete objects Can only be used to prove.
1 MA 1128: Lecture 09 – 6/08/15 Solving Systems of Linear Equations.
1.3 – AXIOMS FOR THE REAL NUMBERS. Goals  SWBAT apply basic properties of real numbers  SWBAT simplify algebraic expressions.
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.
Adapted from Discrete Math
Methods of Proof & Proof Strategies
Big Ideas Ch 3 Expression and Equations
CSE 20 – Discrete Mathematics Dr. Cynthia Bailey Lee Dr. Shachar Lovett Peer Instruction in Discrete Mathematics by Cynthia Leeis licensed under a Creative.
MATH 224 – Discrete Mathematics
1 Methods of Proof CS/APMA 202 Epp, chapter 3 Aaron Bloomfield.
Proofs 1/25/12.
Conditional Statements CS 2312, Discrete Structures II Poorvi L. Vora, GW.
Dr. Naveed Riaz Design and Analysis of Algorithms 1 1 Formal Methods in Software Engineering Lecture # 24.
Module :MA0001NP Foundation Mathematics Lecture Week 3.
March 3, 2015Applied Discrete Mathematics Week 5: Mathematical Reasoning 1Arguments Just like a rule of inference, an argument consists of one or more.
1 CMSC 250 Chapter 4, con't., Inductive Proofs. 2 CMSC 250 Description l Inductive proofs must have: –Base case: where you prove that what it is you are.
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”
CSE 20: Discrete Mathematics for Computer Science Prof. Shachar Lovett.
1 Sections 1.5 & 3.1 Methods of Proof / Proof Strategy.
Slides for CISC 2315: Discrete Structures Chapters CISC 2315 Discrete Structures Professor William G. Tanner, Jr. SPRING 2010 Slides created by James.
CISC 2315 Discrete Structures Professor William G. Tanner, Jr. Spring 2011 Slides created by James L. Hein, author of Discrete Structures, Logic, and Computability,
Teacher's Notes Topic: Proof L7 Is the geometric mean (when it exists) always between the two numbers? When you have one positive and one negative number.
Lines Chapter 1.1. Increments 2 Example 1: Finding Increments 3.
Ch 1.4: Basic Proof Methods I A theorem is a proposition, often of special interest. A proof is a logically valid deduction of a theorem, using axioms,
Disjunctive Normal Form CS 270: Math Foundation of CS Jeremy Johnson.
1 Discrete Structures – CNS2300 Text Discrete Mathematics and Its Applications Kenneth H. Rosen (5 th Edition) Chapter 3 The Foundations: Logic and Proof,
CompSci 102 Discrete Math for Computer Science March 1, 2012 Prof. Rodger Slides modified from Rosen.
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.
Week 4 - Monday.  What did we talk about last time?  Divisibility  Quotient-remainder theorem  Proof by cases.
OR Simplex method (algebraic interpretation) Add slack variables( 여유변수 ) to each constraint to convert them to equations. (We may refer it as.
Inductive Proofs and Inductive Definitions Jim Skon.
Lecture 1.4: Rules of Inference, and Proof Techniques* CS 250, Discrete Structures, Fall 2011 Nitesh Saxena *Adopted from previous lectures by Cinda Heeren.
CS104:Discrete Structures Chapter 2: Proof Techniques.
Week 4 - Wednesday.  What did we talk about last time?  Divisibility  Proof by cases.
Lecture 1.5: Proof Techniques CS 250, Discrete Structures, Fall 2012 Nitesh Saxena Adopted from previous lectures by Cinda Heeren 1.
Prove that: odd + odd = even even + even = even odd + even = odd even + odd = odd.
1 Discrete Mathematical Mathematical Induction ( الاستقراء الرياضي )
Notions & Notations - 1ICOM 4075 (Fall 2010) UPRM Department of Electrical and Computer Engineering University of Puerto Rico at Mayagüez Fall 2010 ICOM.
CS 344 Artificial Intelligence By Prof: Pushpak Bhattacharya Class on 12/Feb/2007.
Loops Brent M. Dingle Texas A&M University Chapter 6 – Section 6.3 Multiway Branches (and some from Mastering Turbo Pascal 5.5, 3 rd Edition by Tom Swan)
Mathematical Induction. The Principle of Mathematical Induction Let S n be a statement involving the positive integer n. If 1.S 1 is true, and 2.the truth.
Chapter 1 Logic and Proof.
Direct Proof by Contraposition Direct Proof by Contradiction
Disjunctive Normal Form
Discrete Math for CS CMPSC 360 LECTURE 4 Last time and recitations:
Elementary Metamathematics
Indirect Proof by Contradiction Direct Proof by Cases
Disjunctive Normal Form
Lecture 5 Number Theory & Proof Methods
Presentation transcript:

1 Discrete Structures Lecture 12 Implication III Read: Ch 4.1

2 Additional Theorems re:  (4.1) p  (q  p) (4.2) Monotonicity of V: proof in text (p  q)  (p V r  q V r) (4.3) Monotonicity of  : proof in class (p  q)  (p  r  q  r)

3 Abbreviation for Proving  The transitivity of  allows us to use an abbreviation for proofs involving implication. (3.82) Transitivity: (a) (p  q)  (q  r)  (p  r) P  Q R By transitivity (3.82 a), this proves that P  R

4 Combining  and  The mutual transitivity of  and  allows us to use a combination of Leibniz steps and the abbreviation using . (3.82) Transitivity: (b) (p  q)  (q  r)  (p  r) P  Q  R By transitivity (3.82b), this proves that P  R.

5 Combining  and  The mutual transitivity of  and  allows us to use a combination of Leibniz steps and the abbreviation using . (3.82) Transitivity: (c) (p  q)  (q  r)  (p  r) P  Q  R By transitivity (3.82c), this proves that P  R.

6 Using the Correct Hints When using this abbreviation, one must be careful to use the correct hints. Example of an incorrect hint: Assuming P1  Q1 is a theorem, we have x  P1  x  Q1 The correct hint SHOULD be: x  P1  x  Q1 Incorrect!

7 Abbreviation for Proving  cont. However, before this can be used, R must first be proved. Here is one proof of R (assuming P1  Q1 is a theorem). (P1  Q1)  (x  P1  x  Q1) = true  (x  P1  x  Q1) = x  P1  x  Q1

8 Abbreviation for Proving  cont. This is tortuous, so we can abbreviate as follows. x  P1  <P1  Q1 and (4.3)Monotonicity of  > x  Q1

9 (4.3) Monotonicity of  : (p  q)  (p  r  q  r) Problem 4.2 says to prove (4.3) p  r  q  r = ¬(p  r) V (q  r) = ¬p V ¬r V (q  r) = (¬p V ¬r V q)  (¬p V ¬r V r) = ¬p V ¬r V q  ¬p V q = p  q

10 A Diversion on Abbreviation Mistakes There may be a tendency to try to write E[z:= P1]  E[z:= Q1]

11 Diversion  Continued The step on the previous slide is not always sound. Here is an unsound use of this technique. ¬P1  ¬Q1 Here is a sound use. ¬P1  ¬Q1

12 Metatheorem Parity This metatheorem explains exactly how a replacement of P by Q is to be made, where P  Q.

13 Metatheorem Parity Continued Metatheorem Parity. Consider a boolean expression E that: contains only operators ¬, V, and  and has a single occurrence of a variable z. Suppose P  Q is a theorem.

14 Metatheorem Parity If z occurs within the scope of an even number of ¬ operations, then E[z:= P]  E[z:= Q]. If z occurs within the scope of an odd number of ¬ operations, then E[z:= P]  E[z:= Q].

15 Metatheorem Parity For example, given P  Q, Metatheorem Parity implies the following. R  P  R  Q R  ¬P  R  ¬Q

16 Metatheorem Parity For example, given P  Q, Metatheorem Parity implies the following. ¬(R  P)  ¬(R  Q) ¬(R  ¬P)  ¬(R  ¬Q)

17 Metatheorem Parity For example, given P  Q, Metatheorem Parity implies the following. ¬(R  P)  ¬(R  Q) ¬R V ¬P  ¬R V ¬Q ¬(R  ¬P)  ¬(R  ¬Q) ¬R V ¬¬P  ¬R V ¬¬Q Still even for Q’s scope. In P/Q’s scope, only one negative.

18 Bonus Problem (4.4 in book) (p  q)  (r  s)  (p V r  q V s) Problem 4.4 says to prove the above theorem (p  q)  (r  s)