CSE15 Discrete Mathematics 01/30/17

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.
Rules of Inferences Section 1.5. Definitions Argument: is a sequence of propositions (premises) that end with a proposition called conclusion. Valid Argument:
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
1 Valid and Invalid Arguments CS 202 Epp Section 1.3 Aaron Bloomfield.
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.
The Foundations: Logic and Proofs
Discrete Maths 4. Proofs Objectives
CS128 – Discrete Mathematics for Computer Science
Fall 2002CMSC Discrete Structures1 Let’s proceed to… Mathematical Reasoning.
Chapter 3 Section 4 – Slide 1 Copyright © 2009 Pearson Education, Inc. AND.
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.
Section 1.5. Section Summary Nested Quantifiers Order of Quantifiers Translating from Nested Quantifiers into English Translating Mathematical Statements.
Discrete Structures (DS)
Fallacies The proposition [(p  q)  q]  p is not a tautology, because it is false when p is false and q is true. This type of incorrect reasoning is.
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.
Chapter 1, Part III: Proofs With Question/Answer Animations 1.
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.
Module #1 - Logic Based on Rosen, Discrete Mathematics & Its Applications. Prepared by (c) , Michael P. Frank. Modified By Mingwu Chen 1 Module.
Fall 2008/2009 I. Arwa Linjawi & I. Asma’a Ashenkity 11 The Foundations: Logic and Proofs Rules of inference.
Chapter 1, Part III: Proofs With Question/Answer Animations 1.
CSci 2011 Discrete Mathematics Lecture 4 CSci 2011.
Foundations of Discrete Mathematics Chapter 1 By Dr. Dalia M. Gil, Ph.D.
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.
Uniqueness Quantifier ROI for Quantified Statement.
Chapter 1 Logic and proofs
2. The Logic of Compound Statements Summary
Applied Discrete Mathematics Week 5: Mathematical Reasoning
The Foundations: Logic and Proofs
CSE15 Discrete Mathematics 01/23/17
In this slide set… Rules of inference for propositions
Discrete Mathematics Logic.
Discrete Mathematics.
Chapter 1 Logic and Proofs Homework 1 Two merchants publish new marketing campaign to attract more customers. The first merchant launches a motto “Good.
Methods of proof Section 1.6 & 1.7 Wednesday, June 20, 2018
Proof Techniques.
Rules of Inference Section 1.6.
Principles of Computing – UFCFA3-30-1
Module #10: Proof Strategies
CS100: Discrete structures
CS201: Data Structures and Discrete Mathematics I
Mathematical Reasoning
3.5 Symbolic Arguments.
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
Applied Discrete Mathematics Week 1: Logic
First Order Logic Rosen Lecture 3: Sept 11, 12.
CS 103 Discrete Structures
Inference Rules: Tautologies
Mathematics as a language
CSE 321 Discrete Structures
Discrete Mathematics Logic.
Information Technology Department SKN-SITS,Lonavala.
Module #10: Proof Strategies
Foundations of Discrete Mathematics
Valid and Invalid Arguments
Mathematical Reasoning
The Foundations: Logic and Proofs
CS201: Data Structures and Discrete Mathematics I
The Foundations: Logic and Proofs
Rules of inference Section 1.5 Monday, December 02, 2019
Presentation transcript:

CSE15 Discrete Mathematics 01/30/17 Ming-Hsuan Yang UC Merced

1.6 Rules of Inference Proof: valid arguments that establish the truth of a mathematical statement Argument: a sequence of statements that end with a conclusion Valid: the conclusion or final statement of the argument must follow the truth of proceeding statements or premise of the argument

Argument and inference An argument is valid if and only if it is impossible for all the premises to be true and the conclusion to be false Rules of inference: use them to deduce (construct) new statements from statements that we already have Basic tools for establishing the truth of statements

Valid arguments in propositional logic Consider the following arguments involving propositions “If you have a correct password, then you can log onto the network” “You have a correct password” therefore, “You can log onto the network” premises conclusion

Valid arguments is tautology When ((p→q)˄p) is true, both p→q and p are ture, and thus q must be also be true This form of argument is true because when the premises are true, the conclusion must be true

Example “If you have access to the network, then you can change your grade” “You have access to the network” so “You can change your grade” Is this a valid argument? p: “You have access to the network” q: “You can change your grade” p→q: “If you have access to the network, then you can change your grade”

Example “If you have access to the network, then you can change your grade” (p→q) “You have access to the network” (p) so “You can change your grade” (q) Valid arguments But the conclusion is not true because one of the premises is false Argument form: a sequence of compound propositions involving propositional variables

Rules of inference for propositional logic Can always use truth table to show an argument form is valid For an argument form with 10 propositional variables, the truth table requires 210 rows The tautology is the rule of inference called modus ponens (mode that affirms), or the law of detachment

Example If both statements “If it snows today, then we will go skiing” and “It is snowing today” are true. By modus ponens, it follows the conclusion “We will go skinning” is true

Example The premises of the argument are p→q and p, and q is the conclusion This argument is valid by using modus ponens But one of the premises is false, consequently we cannot conclude the conclusion is true Furthermore, the conclusion is not true

Rules of inference for propositional logic: Modus ponens Corresponding Tautology: (p ∧ (p →q)) → q Example: Let p be “It is snowing.” Let q be “I will study discrete math.” “If it is snowing, then I will study discrete math.” “It is snowing.” “Therefore , I will study discrete math.”

Modus tollens Corresponding Tautology: (¬q∧(p →q))→¬p Example: Let p be “it is snowing.” Let q be “I will study discrete math.” “If it is snowing, then I will study discrete math.” “I will not study discrete math.” “Therefore , it is not snowing.”

Hypothetical syllogism Corresponding Tautology: ((p →q) ∧ (q→r))→(p→ r) Example: Let p be “it snows.” Let q be “I will study discrete math.” Let r be “I will get an A.” “If it snows, then I will study discrete math.” “If I study discrete math, I will get an A.” “Therefore , If it snows, I will get an A.”

Disjunctive syllogism Corresponding Tautology: (¬p∧(p ∨q))→q Example: Let p be “I will study discrete math.” Let q be “I will study English literature.” “I will study discrete math or I will study English literature.” “I will not study discrete math.” “Therefore , I will study English literature.”

Addition Corresponding Tautology: p →(p ∨q) Example: Let p be “I will study discrete math.” Let q be “I will visit Las Vegas.” “I will study discrete math.” “Therefore, I will study discrete math or I will visit Las Vegas.”

Simplification Corresponding Tautology: (p∧q) →p Example: Let p be “I will study discrete math.” Let q be “I will study English literature.” “I will study discrete math and English literature” “Therefore, I will study discrete math.”

Conjunction Corresponding Tautology: ((p) ∧ (q)) →(p ∧ q) Example: Let p be “I will study discrete math.” Let q be “I will study English literature.” “I will study discrete math.” “I will study English literature.” “Therefore, I will study discrete math and I will study English literature.”

Resolution Resolution plays an important role in AI and is used in Prolog. Corresponding Tautology: ((¬p ∨ r ) ∧ (p ∨ q)) →(q ∨ r) Example: Let p be “I will study discrete math.” Let r be “I will study English literature.” Let q be “I will study databases.” “I will not study discrete math or I will study English literature.” “I will study discrete math or I will study databases.” “Therefore, I will study databases or I will English literature.”

Valid Arguments Continued on next slide  Example: p->q, p is hypothesis or premise (or antecedent) if p then q p only if q Example: With these hypotheses: “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.” Using the inference rules, construct a valid argument for the conclusion: “We will be home by sunset.” Solution: Choose propositional variables: p : “It is sunny this afternoon.” r : “We will go swimming.” t : “We will be home by sunset.” q : “It is colder than yesterday.” s : “We will take a canoe trip.” Translation into propositional logic: Continued on next slide 

Example p->q, p is hypothesis or premise (or antecedent) if p then q p only if q “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 we conclude “We will be home by sunset”?

Example “If you send me an email message, then I will finish my program” “If you do not send me an email message, then I will go to sleep early” “If I go to sleep early, then I will wake up feeling refreshed” “If I do not finish writing the program, then I will wake up feeling refreshed”

Resolution Based on the tautology Resolvent: Let q=r, we have Let r=F, we have Important in logic programming, AI, etc.

Example “Jasmine is skiing or it is not snowing” “It is snowing or Bart is playing hockey” imply “Jasmine is skiing or Bart is playing hockey”

Example To construct proofs using resolution as the only rule of inference, the hypotheses and the conclusion must be expressed as clauses Clause: a disjunction of variables or negations of these variables Using resolution, we have p v s

Fallacies Inaccurate arguments is not a tautology as it is false when p is false and q is true If you do every problem in this book, then you will learn discrete mathematics. You learned discrete mathematics Therefore you did every problem in this book ?

Example is it correct to conclude ┐q? Fallacy: the incorrect argument is of the form as ┐p does not imply ┐q

Inference with quantified statements Instantiation: c is one particular member of the domain Generalization: for an arbitrary member c

Example “Everyone in this discrete mathematics has taken a course in computer science” and “Marla is a student in this class” imply “Marla has taken a course in computer science”

Using rules of inference Example: Use the rules of inference to construct a valid argument showing that the conclusion “Someone who passed the first exam has not read the book.” follows from the premises “A student in this class has not read the book.” “Everyone in this class passed the first exam.” Solution: Let C(x) denote “x is in this class,” B(x) denote “ x has read the book,” and P(x) denote “x passed the first exam.” First we translate the premises and conclusion into symbolic form. Continued on next slide 

Example “A student in this class has not read the book”, and “Everyone in this class passed the first exam” imply “Someone who passed the first exam has not read the book”

Universal modus ponens Use universal instantiation and modus ponens to derive new rule Assume “For all positive integers n, if n is greater than 4, then n2 is less than 2n” is true. Show 1002<2100

Universal modus tollens Combine universal modus tollens and universal instantiation