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

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

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

CS 2336 Discrete Mathematics

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

Rules of Inference. Arguments and Validity

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

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

Review: Potential stumbling blocks

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

Introduction Logic Inference. Discrete Mathematics Andrei Bulatov

Discrete Structures of Computer Science Propositional Logic III 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:

Discrete Structures for Computer Science

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

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

software design & management Gachon University Chulyun Kim

Predicate Logic. Andreas Klappenecker

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

Intro to Logic and Proofs

Readings: Conjecture. Theorem. Rosen Section 1.5

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

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

Discrete Mathematics. Propositional & Predicate Logic. Lecture Notes

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

Proofs Sec*ons 1.6, 1.7 and 1.8 of Rosen

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

Proposi'onal Logic Not Enough

ECOM Discrete Mathematics

Why Learning Logic? Logic. Propositional Logic. Compound Propositions

(Refer Slide Time: 02:20)

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

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

Propositional Logic Not Enough

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

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

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

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

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

ICS141: Discrete Mathematics for Computer Science I

DISCRETE MATHEMATICS BA202

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

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

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

Solutions to Exercises (Sections )

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

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

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

Math 3336: Discrete Mathematics Practice Problems for Exam I

CS0441 Discrete Structures Recitation 3. Xiang Xiao

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

Do not start until you are given the green signal

Chapter 3. The Logic of Quantified Statements

Anna University, Chennai, November/December 2012

Review for Midterm 1. Andreas Klappenecker

1 The Foundation: Logic and Proofs

Chapter 4, Logic using Propositional Calculus Handout

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

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

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

Full file at Chapter 1

1 The Foundation: Logic and Proofs

Predicate Logic & Quantification

Chapter 1, Part II: Predicate Logic

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


The Logic of Compound Statements cont.

Math 55 Homework 2 solutions

CHAPTER 1 - LOGIC OF COMPOUND STATEMENTS

SRI VENKATESWARA COLLEGE OF ENGINEERING AND TECHNOLOGY MA DISCRETE MATHEMATICS

Sample Problems for all sections of CMSC250, Midterm 1 Fall 2014

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

Reexam in Discrete Mathematics

Revisiting the Socrates Example

Knowledge Representation. Propositional logic

Logic and Proof. Aiichiro Nakano

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

COMP Intro to Logic for Computer Scientists. Lecture 6

Discrete Mathematics

Manual of Logical Style

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

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

Knowledge Representation. Propositional logic.

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

Natural Deduction is a method for deriving the conclusion of valid arguments expressed in the symbolism of propositional logic.

4 Quantifiers and Quantified Arguments 4.1 Quantifiers

CPSC 121: Models of Computation

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

Review 1. Andreas Klappenecker

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

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

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

CSE Discrete Structures

Logic. Logic is a discipline that studies the principles and methods used in correct reasoning. It includes:

COMP232 - Mathematics for Computer Science

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.

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