Discrete Mathematics.

Slides:



Advertisements
Similar presentations
1.3 Predicates and Quantifiers
Advertisements

Rules of Inference Rosen 1.5.
Discrete Mathematics University of Jazeera College of Information Technology & Design Khulood Ghazal Mathematical Reasoning Methods of Proof.
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.
The Foundations: Logic and Proofs
Lecture 1.4: Rules of Inference CS 250, Discrete Structures, Fall 2014 Nitesh Saxena Adopted from previous lectures by Cinda Heeren.
Chapter 3. Mathematical Reasoning 3.1 Methods of proof A theorem is a statement that can be shown to be true. A proof is to demonstrate that a theorem.
Muhammad Arief download dari
CSE115/ENGR160 Discrete Mathematics 01/26/12 Ming-Hsuan Yang UC Merced 1.
Valid Arguments An argument is a sequence of propositions. All but the final proposition are called premises. The last statement is the conclusion. The.
CS128 – Discrete Mathematics for Computer Science
Fall 2002CMSC Discrete Structures1 Let’s proceed to… Mathematical Reasoning.
CS 2210 (22C:019) Discrete Structures Logic and Proof Spring 2015 Sukumar Ghosh.
CSCI 115 Chapter 2 Logic. CSCI 115 §2.1 Propositions and Logical Operations.
1 Georgia Tech, IIC, GVU, 2006 MAGIC Lab Rossignac Lecture 03: PROOFS Section 1.5 Jarek Rossignac CS1050: Understanding.
Propositional Proofs 2.
CS 103 Discrete Structures Lecture 07b
Discrete Mathematics CS 2610 August 24, Agenda Last class Introduction to predicates and quantifiers This class Nested quantifiers Proofs.
1 Methods of Proof. 2 Consider (p  (p→q)) → q pqp→q p  (p→q)) (p  (p→q)) → q TTTTT TFFFT FTTFT FFTFT.
Section 1.5. Section Summary Nested Quantifiers Order of Quantifiers Translating from Nested Quantifiers into English Translating Mathematical Statements.
1 Sections 1.5 & 3.1 Methods of Proof / Proof Strategy.
Discrete Structures (DS)
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.
Hazırlayan DISCRETE COMPUTATIONAL STRUCTURES Propositional Logic PROF. DR. YUSUF OYSAL.
Discrete Mathematics. Predicates - the universal quantifier 11/28/2015 Suppose P(x) is a predicate on some universe of discourse. Ex. B(x) = “x is carrying.
CompSci 102 Discrete Math for Computer Science January 24, 2012 Prof. Rodger Slides modified from Rosen.
1 Discrete Structures – CNS2300 Text Discrete Mathematics and Its Applications Kenneth H. Rosen (5 th Edition) Chapter 3 The Foundations: Logic and Proof,
Lecture 1.3: Predicate Logic CS 250, Discrete Structures, Fall 2012 Nitesh Saxena Adopted from previous lectures by Cinda Heeren.
Discrete Structures Predicate Logic 1 Dr. Muhammad Humayoun Assistant Professor COMSATS Institute of Computer Science, Lahore.
Rules of Inference Section 1.6. Arguments in Propositional Logic A argument in propositional logic is a sequence of propositions. All but the final proposition.
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.
CSci 2011 Discrete Mathematics Lecture 4 CSci 2011.
321 Section, Week 2 Natalie Linnell. Extra Credit problem.
Lecture 1.3: Predicate Logic, and Rules of Inference* CS 250, Discrete Structures, Fall 2011 Nitesh Saxena *Adopted from previous lectures by Cinda Heeren.
CSci 2011 Discrete Mathematics Lecture 5 CSci 2011.
Chapter 1, Part III: Proofs With Question/Answer Animations Copyright © McGraw-Hill Education. All rights reserved. No reproduction or distribution without.
CS 2210:0001 Discrete Structures Logic and Proof
CSE15 Discrete Mathematics 01/23/17
CSE15 Discrete Mathematics 01/30/17
Lecture 1.4: Rules of Inference
In this slide set… Rules of inference for propositions
Discrete Mathematics Logic.
Applied Discrete Mathematics Week 5: Mathematical Reasoning
ece 627 intelligent web: ontology and beyond
Proof Techniques.
Module #10: Proof Strategies
CS100: Discrete structures
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.
CHAPTER 1: LOGICS AND PROOF
CS201: Data Structures and Discrete Mathematics I
Mathematical Reasoning
Methods of Proof. Methods of Proof Definitions A theorem is a valid logical assertion which can be proved using Axioms: statements which are given.
CS 220: Discrete Structures and their Applications
First Order Logic Rosen Lecture 3: Sept 11, 12.
CS 103 Discrete Structures
Inference Rules: Tautologies
Negations of quantifiers
Lecture 1.3: Predicate Logic
CSE 321 Discrete Structures
Discrete Mathematics Logic.
Information Technology Department SKN-SITS,Lonavala.
Module #10: Proof Strategies
Lecture 1.4: Rules of Inference
Valid and Invalid Arguments
Mathematical Reasoning
CS201: Data Structures and Discrete Mathematics I
The Foundations: Logic and Proofs
Lecture 1.3: Predicate Logic
Rules of inference Section 1.5 Monday, December 02, 2019
Presentation transcript:

Discrete Mathematics

Show that [(p  q)  (q  r)] (p  r) is a tautology

b) Not everyone is perfect. c) All your friends are perfect. Let P (x) be "x is perfect"; let F(x) be "x is your friend"; Translate each of these statements into logical expressions using predicates, quantifiers, and logical connectives. a) No one is perfect. b) Not everyone is perfect. c) All your friends are perfect. d) At least one of your friends is perfect. e) Not everybody is your friend or someone is not perfect. x P(x) x P (x) x(F(x)  P (x)) x(F(x)  P (x)) (x F(x)  (xP(x))

Predicates - quantifier negation x (L(x)  H(x)) Not all large birds live on honey. x P(x) means “P(x) is true for every x.” What about x P(x) ? Not [“P(x) is true for every x.”] “There is an x for which P(x) is not true.” x P(x) So, x P(x) is the same as x P(x). x (L(x)  H(x)) 6/12/2018

Predicates - quantifier negation x (L(x)  H(x)) No large birds live on honey. x P(x) means “P(x) is true for some x.” What about x P(x) ? Not [“P(x) is true for some x.”] “P(x) is not true for all x.” x P(x) So, x P(x) is the same as x P(x). x (L(x)  H(x)) 6/12/2018

Predicates - quantifier negation So, x P(x) is the same as x P(x). So, x P(x) is the same as x P(x). General rule: to negate a quantifier, move negation to the right, changing quantifiers as you go. 6/12/2018

Predicates - quantifier negation Negate each of the following statements: (a) ∃x ∀y P(x, y) (b) ∃x ∀y P(x, y) (c) ∃y ∃x ∀z P(x, y, z) Use ¬∀x p(x) ≡ ∃x¬p(x) and ¬∃x p(x) ≡ ∀x¬p(x): (a) ¬(∃x∀y, p(x, y)) ≡ ∀x∃y¬p(x, y) (b) ¬(∀x∀y, p(x, y)) ≡ ∃x∃y¬p(x, y) (c) ¬(∃y ∃x ∀z, p(x, y, z)) ≡ ∀y ∀x ∃z¬p(x, y, z) 6/12/2018

Predicates - free and bound variables A variable is bound if it is known or quantified. Otherwise, it is free. Examples: P(x) x is free P(5) x is bound to 5 x P(x) x is bound by quantifier Reminder: in a proposition, all variables must be bound. 6/12/2018

Predicates - multiple quantifiers To bind many variables, use many quantifiers! Example: P(x,y) = “x > y” x P(x,y) xy P(x,y) xy P(x,y) x P(x,3) c) b) True proposition False proposition Not a proposition No clue a) b) 6/12/2018

Predicates - the meaning of multiple quantifiers xy P(x,y) xy P(x,y) xy P(x,y) xy P(x,y) P(x,y) true for all x, y pairs. P(x,y) true for at least one x, y pair. For every value of x we can find a (possibly different) y so that P(x,y) is true. There is at least one x for which P(x,y) is always true. Suppose P(x,y) = “x’s favorite class is y.” quantification order is not commutative. 6/12/2018

Proofs - how do you know? The following statements are true: If I am Mila, then I am a great swimmer. I am Mila. What do we know to be true? I am a great swimmer! How do we know it? 6/12/2018

Axiom, postulates, hypotheses and previously proven theorems. Proofs - how do you know? A theorem is a statement that can be shown to be true. A proof is the means of doing so. Axiom, postulates, hypotheses and previously proven theorems. Rules of inference Proof 6/12/2018

What rule of inference can we use to justify it? Proofs - how do you know? The following statements are true: If I am Mila, then I am a great swimmer. I am Mila. What do we know to be true? I am a great swimmer! What rule of inference can we use to justify it? 6/12/2018

Proofs - Modus Ponens  q I am Mila. If I am Mila, then I am a great swimmer.  I am a great swimmer! p p  q  q Inference Rule: Modus Ponens Tautology: (p  (p  q))  q 6/12/2018

Proofs - Modus Tollens  p I am not a great skater. If I am Erik, then I am a great skater.  I am not Erik! q p  q  p Inference Rule: Modus Tollens Tautology: (q  (p  q))  p 6/12/2018

Proofs - Addition I am not a great skater.  I am not a great skater or I am tall. p  p  q Inference Rule: Addition Tautology: p  (p  q) 6/12/2018

Proofs - Simplification I am not a great skater and you are sleepy.  you are sleepy. p  q  p Inference Rule: Simplification Tautology: (p  q)  p 6/12/2018

Proofs - Disjunctive Syllogism I am a great eater or I am a great skater. I am not a great skater.  I am a great eater! p  q q  p Inference Rule: Disjunctive Syllogism Tautology: ((p  q)  q)  p 6/12/2018

Proofs - Hypothetical Syllogism If you are an athlete, you are always hungry. If you are always hungry, you have a snickers in your backpack.  If you are an athlete, you have a snickers in your backpack. Inference Rule: Hypothetical Syllogism Tautology: ((p  q)  (q  r))  (p  r) p  q q  r  p  r 6/12/2018

Proofs - A little quiz… Amy is a computer science major.  Amy is a math major or a computer science major. Addition If Ernie is a math major then Ernie is geeky. Ernie is not geeky!  Ernie is not a math major. Modus Tollens 6/12/2018

Proofs - A little proof… Here’s what you know: Ellen is a math major or a CS major. If Ellen does not like discrete math, she is not a CS major. If Ellen likes discrete math, she is smart. Ellen is not a math major. Can you conclude Ellen is smart? M  C D  C D  S M 6/12/2018

Proofs - A little proof… 1. M  C Given 2. D  C Given 3. D  S Given 4. M Given 5. C DS (1,4) 6. D MT (2,5) 7. S MP (3,6) Ellen is smart! 6/12/2018

Proofs - A little proof…(Another approach) 1. M  C Given 2. D  C Given 3. D  S Given 4. M Given 5. C Disjunctive Syllogism (1,4) 6. C  D Contrapositive of 2 7. C  S Hypothetical Syllogism (6,3) 8. S Modus Ponens (5,7) Ellen is smart! 6/12/2018

p be the proposition "It is sunny this afternoon," q the proposition "It is colder than yesterday," r the proposition "We will go swimming," s the proposition "We will take a canoe trip," and t the proposition "We will be home by sunset." Challenge.. Here’s what you know: "It is not sunny this afternoon and it is colder than yesterday" "We will go swimming only if it is sunny" "If we do not go swimming, then we will take a canoe trip" "If we take a canoe trip, then we will be home by sunset“ Can you conclude "We will be home by sunset." p  q r  p  r  s s  t t

p be the proposition "You send me an e-mail message," q the proposition "I will finish writing the program," r the proposition "I will go to sleep early," and s the proposition "I will wake up feeling refreshed." Challenge.. Here’s what you know: "If you send me an e-mail message, then I will finish writing the program," "If you do not send me an e-mail message, then I will go to sleep early," "If I go to sleep early, then I will wake up feeling refreshed" Can you conclude "If I do not finish writing the program, then I will wake up feeling refreshed." p  q  p  r r  s  q  s

THANK YOU