Sec$on Summary. Valid Arguments Inference Rules for Propositional Logic. Inference Rules for Quantified Statements. Building Arguments

Similar documents
Sec$on Summary. Valid Arguments Inference Rules for Propositional Logic. Inference Rules for Quantified Statements. Building Arguments

Rules Build Arguments Rules Building Arguments

Review. Propositions, propositional operators, truth tables. Logical Equivalences. Tautologies & contradictions

CSCI-2200 FOUNDATIONS OF COMPUTER SCIENCE

KS MATEMATIKA DISKRIT (DISCRETE MATHEMATICS ) RULES OF INFERENCE. Discrete Math Team

Rules of Inference. Arguments and Validity

With Question/Answer Animations. Chapter 1, Part III: Proofs

The Foundations: Logic and Proofs. Chapter 1, Part III: Proofs

3/29/2017. Logic. Propositions and logical operations. Main concepts: propositions truth values propositional variables logical operations

CS 2336 Discrete Mathematics

Methods of Proof. 1.6 Rules of Inference. Argument and inference 12/8/2015. CSE2023 Discrete Computational Structures

CS0441 Discrete Structures Recitation 3. Xiang Xiao

Review: Potential stumbling blocks

Mathacle. PSet ---- Algebra, Logic. Level Number Name: Date: I. BASICS OF PROPOSITIONAL LOGIC

Introduction Logic Inference. Discrete Mathematics Andrei Bulatov

Review. p q ~p v q Contrapositive: ~q ~p Inverse: ~p ~q Converse: q p

Discrete Structures of Computer Science Propositional Logic III Rules of Inference

Outline. Rules of Inferences Discrete Mathematics I MATH/COSC 1056E. Example: Existence of Superman. Outline

Intro to Logic and Proofs

Discrete Structures for Computer Science

software design & management Gachon University Chulyun Kim

Predicate Logic. Andreas Klappenecker

Solutions to Exercises (Sections )

Chapter 1, Logic and Proofs (3) 1.6. Rules of Inference

10/13/15. Proofs: what and why. Proposi<onal Logic Proofs. 1 st Proof Method: Truth Table. A sequence of logical arguments such that:

CSCE 222 Discrete Structures for Computing. Predicate Logic. Dr. Hyunyoung Lee. !!!!! Based on slides by Andreas Klappenecker

Logic Overview, I. and T T T T F F F T F F F F

CS100: DISCRETE STRUCTURES. Lecture 5: Logic (Ch1)

Discrete Mathematics Logics and Proofs. Liangfeng Zhang School of Information Science and Technology ShanghaiTech University

Predicate Logic. Example. Statements in Predicate Logic. Some statements cannot be expressed in propositional logic, such as: Predicate Logic

Readings: Conjecture. Theorem. Rosen Section 1.5

ECOM Discrete Mathematics

Why Learning Logic? Logic. Propositional Logic. Compound Propositions

Discrete Mathematics Recitation Course 張玟翔

Math.3336: Discrete Mathematics. Nested Quantifiers/Rules of Inference

Proofs Sec*ons 1.6, 1.7 and 1.8 of Rosen

THE ISLAMIC UNIVERSITY OF GAZA ENGINEERING FACULTY DEPARTMENT OF COMPUTER ENGINEERING DISCRETE MATHMATICS DISCUSSION ECOM Eng. Huda M.

Agenda. Introduction to Proofs Dr Patrick Chan School of Computer Science and Engineering South China University of Technology

Discrete Mathematics. Propositional & Predicate Logic. Lecture Notes

ICS141: Discrete Mathematics for Computer Science I

Proposi'onal Logic Not Enough

2/18/14. What is logic? Proposi0onal Logic. Logic? Propositional Logic, Truth Tables, and Predicate Logic (Rosen, Sections 1.1, 1.2, 1.

(Refer Slide Time: 02:20)

DISCRETE MATHEMATICS BA202

Test 1 Solutions(COT3100) (1) Prove that the following Absorption Law is correct. I.e, prove this is a tautology:

Propositional Logic Not Enough

Proofs. Example of an axiom in this system: Given two distinct points, there is exactly one line that contains them.

W3203 Discrete Mathema1cs. Logic and Proofs. Spring 2015 Instructor: Ilia Vovsha. hcp://

For a horseshoe statement, having the matching p (left side) gives you the q (right side) by itself. It does NOT work with matching q s.

! Predicates! Variables! Quantifiers. ! Universal Quantifier! Existential Quantifier. ! Negating Quantifiers. ! De Morgan s Laws for Quantifiers

Boolean Algebra and Proof. Notes. Proving Propositions. Propositional Equivalences. Notes. Notes. Notes. Notes. March 5, 2012

Math 3336: Discrete Mathematics Practice Problems for Exam I

Math 55 Homework 2 solutions

CS 2740 Knowledge Representation. Lecture 4. Propositional logic. CS 2740 Knowledge Representation. Administration

2/2/2018. CS 103 Discrete Structures. Chapter 1. Propositional Logic. Chapter 1.1. Propositional Logic

Predicate Logic & Quantification

CHAPTER 1 - LOGIC OF COMPOUND STATEMENTS

Rules of Inference. Agenda. Rules of Inference Dr Patrick Chan. p r. p q. q r. Rules of Inference for Quantifiers. Hypothetical Syllogism

Do not start until you are given the green signal

3. The Logic of Quantified Statements Summary. Aaron Tan August 2017

Review for Midterm 1. Andreas Klappenecker

1 The Foundation: Logic and Proofs

THE LOGIC OF COMPOUND STATEMENTS

2. Use quantifiers to express the associative law for multiplication of real numbers.

COMP 182 Algorithmic Thinking. Proofs. Luay Nakhleh Computer Science Rice University

CSCE 222 Discrete Structures for Computing. Review for Exam 1. Dr. Hyunyoung Lee !!!

Mathematical Reasoning Rules of Inference & Mathematical Induction. 1. Assign propositional variables to the component propositional argument.

Anna University, Chennai, November/December 2012

1 The Foundation: Logic and Proofs

Chapter 4, Logic using Propositional Calculus Handout

Full file at Chapter 1

Discrete Mathematics. Sec

Mat2345 Week 2. Chap 1.5, 1.6. Fall Mat2345 Week 2. Chap 1.5, 1.6. Week2. Negation. 1.5 Inference. Modus Ponens. Modus Tollens. Rules.

Formal Logic: Quantifiers, Predicates, and Validity. CS 130 Discrete Structures

Chapter 3. The Logic of Quantified Statements

Propositional Logic. Jason Filippou UMCP. ason Filippou UMCP) Propositional Logic / 38

n logical not (negation) n logical or (disjunction) n logical and (conjunction) n logical exclusive or n logical implication (conditional)

CSE Discrete Structures

Logic and Proof. Aiichiro Nakano

DISCRETE MATH: LECTURE Chapter 3.3 Statements with Multiple Quantifiers If you want to establish the truth of a statement of the form

The Logic of Compound Statements cont.

Review 1. Andreas Klappenecker

SRI VENKATESWARA COLLEGE OF ENGINEERING AND TECHNOLOGY MA DISCRETE MATHEMATICS

CPSC 121: Models of Computation. Module 6: Rewriting predicate logic statements

Chapter 1, Part II: Predicate Logic

Logic - recap. So far, we have seen that: Logic is a language which can be used to describe:

Propositional Logic. Argument Forms. Ioan Despi. University of New England. July 19, 2013

Supplementary Logic Notes CSE 321 Winter 2009

Logic. Definition [1] A logic is a formal language that comes with rules for deducing the truth of one proposition from the truth of another.

University of Ottawa CSI 2101 Midterm Test Instructor: Lucia Moura. February 9, :30 pm Duration: 1:50 hs. Closed book, no calculators

Discrete Mathematics

Knowledge Representation. Propositional logic

University of Ottawa CSI 2101 Midterm Test Instructor: Lucia Moura. March 1, :00 pm Duration: 1:15 hs

2. The Logic of Compound Statements Summary. Aaron Tan August 2017

It rains now. (true) The followings are not propositions.

COMP232 - Mathematics for Computer Science

Predicate Logic. 1 Predicate Logic Symbolization

Tutorial Obtain the principal disjunctive normal form and principal conjunction form of the statement

CPSC 121: Models of Computation

[Ch 3, 4] Logic and Proofs (2) 1. Valid and Invalid Arguments ( 2.3, 3.4) 400 lecture note #2. 1) Basics

Transcription:

Section 1.6

Sec$on Summary Valid Arguments Inference Rules for Propositional Logic Building Arguments Inference Rules for Quantified Statements Building Arguments 2

Revisi$ng the Socrates Example We have the two premises: All men are mortal. Socrates is a man. And the conclusion: Socrates is mortal. How do we get the conclusion from the premises? 3

The Argument We can express the premises (above the line) and the conclusion (below the line) in predicate logic as an argument: premise premise conclusion We will see shortly that this is a valid argument. 4

Arguments in Proposi$onal Logic A argument in propositional logic is a sequence of propositions. All but the final proposition are called premises. The last statement is the conclusion. The argument is valid if the premises imply the conclusion. If the premises are p 1,p 2,,p n and the conclusion is q then (p 1 p 2 p n ) q is a tautology. An argument form is an argument that is valid no matter what propositions are substituted into its propositional variables. Inference rules are all simple argument forms that will be used to construct more complex argument forms. 5

Rules of Inference for Proposi$onal 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. 6

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. 7

Hypothe$cal 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. 8

Disjunc$ve 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. 9

Addi$on 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. 10

Simplifica$on Corresponding Tautology: (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 and English literature Therefore, I will study discrete math. 11

Conjunc$on 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. 12

Resolution plays an important role in AI and is used in Prolog. Resolu$on 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. 13

Using the Rules of Inference to Build Valid Arguments A valid argument is a sequence of statements. Each statement is either a premise or follows from previous statements by rules of inference. The last statement is called conclusion. A valid argument takes the following form: S 1 S 2... S n C 14

Valid Arguments: Example 1 Example: From the single proposition Show that q is a conclusion. Solution: Step Reason 1. p (p q) Premise 2. p Simplification using (1) 3. p q Simplification using (1) 4. q Modus Ponens using (2) and (3) 15

Valid Arguments: Example 2 Example: With these hypotheses: p q It is not sunny this afternoon and it is colder than yesterday. We will go swimming only if it is sunny. r p If we do not go swimming, then we will take a canoe trip. r s If we take a canoe trip, then we will be home by sunset. s t Using the inference rules, construct a valid argument for the conclusion: We will be home by sunset. t Solution: p : It is sunny this afternoon. r : We will go swimming. q : It is colder than yesterday. s : We will take a canoe trip. t : We will be home by sunset. Continued on next slide à 16

Valid Arguments: Example 2 17

Handling Quan$fied Statements Valid arguments for quantified statements are a sequence of statements. Each statement is either a premise or follows from previous statements by rules of inference which include: Rules of Inference for Propositional Logic Rules of Inference for Quantified Statements The rules of inference for quantified statements are introduced in the next several slides. 18

Rules of Inference for Quan$fied Statements: Universal Instan$a$on (UI) Example: Our domain consists of all dogs and Fido is a dog. All dogs are cuddly. Therefore, Fido is cuddly. 19

Rules of Inference for Quan$fied Statements: Universal Generaliza$on (UG) Used often implicitly in Mathematical Proofs. Example: If x > y, where x and y are positive real numbers, then x 2 > y 2 For all positive real numbers x and y, if x > y, then x 2 > y 2 20

Rules of Inference for Quan$fied Statements: Existen$al Instan$a$on (EI) Example: There is someone who got an A in the course. Let s call her a and say that a got an A 21

Rules of Inference for Quan$fied Statements: Existen$al Generaliza$on (EG) Example: Michelle got an A in the class. Therefore, someone got an A in the class. 22

Using Rules of Inference: Example 1 Ex: Using the rules of inference, construct a valid argument to show that John Smith has two legs is a consequence of the premises: Every man has two legs. and John Smith is a man. Solution: Let M(x) denote x is a man and L(x) x has two legs and let John Smith be a member of the domain. 23

Using Rules of Inference: Example 2 Ex: 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. Continued on next slide à 24

Using Rules of Inference: Example 2 Valid Argument: 25

Returning to the Socrates Example Valid Argument 26

Universal Modus Ponens Universal Modus Ponens combines universal instantiation and modus ponens into one rule. This rule could be used in the Socrates example. 27

Addi$onal Examples 28

Determine whether the argument is correct or incorrect. Everyone majoring in computer science has Linux installed. x(c(x) L(x)) George doesn t have Linux installed. Therefore, George isn t majoring in computer science. C(George) Correct! Universal Modus Tollens L(George) x(c(x) L(x)) L(George) C(George) 29

Determine whether the argument is correct or incorrect. A Dvorak keyboard is efficient to use. x(d(x) E(x)) Jake s keyboard is not a Dvorak keyboard. D(Jake) Therefore, Jake s keyboard is not efficient. E(Jake) Incorrect! We can t conclude E(j) with this information x(d(x) E(x)) D(j) E(j) 30

Prove the following hypothesis implies the conclusion It rained r If it does not rain or if it is not foggy, then the sailing race will be held and the lifesaving demonstration will go on. ( r f) (s l) If the sailing race is held, then the trophy will awarded. s t The trophy was not awarded. t f= It s foggy. s= The sailing race is held. r= It rains. t= The trophy is awarded. l= The life saving demonstrations will go on. 31

Step ( r f) (s l) s t t r Reason 1. t Premise 2. s t Premise 3. s Modus Tollens using (1) and (2) 4. ( r f) (s l) Premise 5. s l Addi$on using (3) 6. (s l) De Morgan s law using (5) 7. ( r f) Modus Tollens using (4) and (6) 8. r f De Morgan s law using (7) 9. r Simplifica$on using (8) 32