Rules of Inference Friday, January 18, 2013 Chittu Tripathy Lecture 05



Similar documents
CHAPTER 3. Methods of Proofs. 1. Logical Arguments and Formal Proofs

def: An axiom is a statement that is assumed to be true, or in the case of a mathematical system, is used to specify the system.

Predicate Logic. Example: All men are mortal. Socrates is a man. Socrates is mortal.

Propositional Logic. A proposition is a declarative sentence (a sentence that declares a fact) that is either true or false, but not both.

DISCRETE MATH: LECTURE 3

Handout #1: Mathematical Reasoning

Chapter 1. Use the following to answer questions 1-5: In the questions below determine whether the proposition is TRUE or FALSE

Likewise, we have contradictions: formulas that can only be false, e.g. (p p).

Hypothetical Syllogisms 1

Predicate logic Proofs Artificial intelligence. Predicate logic. SET07106 Mathematics for Software Engineering

Lecture Notes in Discrete Mathematics. Marcel B. Finan Arkansas Tech University c All Rights Reserved

Beyond Propositional Logic Lukasiewicz s System

1.2 Forms and Validity

3. Mathematical Induction

DEDUCTIVE & INDUCTIVE REASONING

WHAT ARE MATHEMATICAL PROOFS AND WHY THEY ARE IMPORTANT?

Development of a computer system to support knowledge acquisition of basic logical forms using fairy tale "Alice in Wonderland"

Predicate Logic. For example, consider the following argument:

CS510 Software Engineering

Invalidity in Predicate Logic

Math 3000 Section 003 Intro to Abstract Math Homework 2

Logic Appendix. Section 1 Truth Tables CONJUNCTION EXAMPLE 1

Mathematics for Computer Science/Software Engineering. Notes for the course MSM1F3 Dr. R. A. Wilson

Examination paper for MA0301 Elementær diskret matematikk

Lecture 8: Resolution theorem-proving

Course Outline Department of Computing Science Faculty of Science. COMP Applied Artificial Intelligence (3,1,0) Fall 2015

How To Understand The Logic Of Ibsen'S Play \"Ibsen\"

The Mathematics of GIS. Wolfgang Kainz

Discrete Mathematics and Probability Theory Fall 2009 Satish Rao, David Tse Note 2

INTRODUCTORY SET THEORY

10.4 Traditional Subject Predicate Propositions

Logic in general. Inference rules and theorem proving

WOLLONGONG COLLEGE AUSTRALIA. Diploma in Information Technology

Lecture 16 : Relations and Functions DRAFT

Predicate Logic Review

PHILOSOPHY 101: CRITICAL THINKING

Mathematical Induction

A Few Basics of Probability

Gödel s Ontological Proof of the Existence of God

Solutions Q1, Q3, Q4.(a), Q5, Q6 to INTLOGS16 Test 1

Formal Engineering for Industrial Software Development

If an English sentence is ambiguous, it may allow for more than one adequate transcription.

Practice with Proofs

COURSE DESCRIPTION FOR THE COMPUTER INFORMATION SYSTEMS CURRICULUM

One natural response would be to cite evidence of past mornings, and give something like the following argument:

WOLLONGONG COLLEGE AUSTRALIA. Diploma in Information Technology

Schedule. Logic (master program) Literature & Online Material. gic. Time and Place. Literature. Exercises & Exam. Online Material

Chapter 3. Cartesian Products and Relations. 3.1 Cartesian Products

CHAPTER 7 GENERAL PROOF SYSTEMS

Computational Logic and Cognitive Science: An Overview

Lecture 2: Moral Reasoning & Evaluating Ethical Theories

Deductive reasoning is the application of a general statement to a specific instance.

Inductive Reasoning Page 1 of 7. Inductive Reasoning

CSL105: Discrete Mathematical Structures. Ragesh Jaiswal, CSE, IIT Delhi

(LMCS, p. 317) V.1. First Order Logic. This is the most powerful, most expressive logic that we will examine.

CHAPTER 2. Logic. 1. Logic Definitions. Notation: Variables are used to represent propositions. The most common variables used are p, q, and r.

CATEGORICAL SYLLOGISMS AND DIAGRAMMING. Some lawyers are judges. Some judges are politicians. Therefore, some lawyers are politicians.

Logical Agents. Explorations in Artificial Intelligence. Knowledge-based Agents. Knowledge-base Agents. Outline. Knowledge bases

Rolle s Theorem. q( x) = 1

Math 55: Discrete Mathematics

Chapter 7. Functions and onto. 7.1 Functions

Jaakko Hintikka Boston University. and. Ilpo Halonen University of Helsinki INTERPOLATION AS EXPLANATION

6.080/6.089 GITCS Feb 12, Lecture 3

LOGIC AND SETS CLAST MATHEMATICS COMPETENCIES

We would like to state the following system of natural deduction rules preserving falsity:

Elementary Number Theory and Methods of Proof. CSE 215, Foundations of Computer Science Stony Brook University

Graphic Designing with Transformed Functions

COMPUTER SCIENCE TRIPOS

One More Decidable Class of Finitely Ground Programs

Logic and Reasoning Practice Final Exam Spring Section Number

Week 1: Functions and Equations

Quine on truth by convention

p: I am elected q: I will lower the taxes

ON LIMIT LAWS FOR CENTRAL ORDER STATISTICS UNDER POWER NORMALIZATION. E. I. Pancheva, A. Gacovska-Barandovska

The History of Logic. Aristotle ( BC) invented logic.

Lecture 13 of 41. More Propositional and Predicate Logic

The last three chapters introduced three major proof techniques: direct,

1 if 1 x 0 1 if 0 x 1

Incorporating Evidence in Bayesian networks with the Select Operator

Basic Properties of Rational Expressions

AUTOMATED REASONING SLIDES 3: RESOLUTION The resolution rule Unification Refutation by resolution Factoring Clausal Form and Skolemisation

1 Mathematical Models of Cost, Revenue and Profit

Sentence Semantics. General Linguistics Jennifer Spenader, February 2006 (Most slides: Petra Hendriks)

Deductive versus Inductive Reasoning

Introduction to Logic: Argumentation and Interpretation. Vysoká škola mezinárodních a veřejných vztahů PhDr. Peter Jan Kosmály, Ph.D

The Division Algorithm for Polynomials Handout Monday March 5, 2012

The Point-Slope Form

THE BANACH CONTRACTION PRINCIPLE. Contents

The Syntax of Predicate Logic

Principle of Data Reduction

Analyzing Piecewise Functions

Math 432 HW 2.5 Solutions

SECTION 10-2 Mathematical Induction

Computational Methods for Database Repair by Signed Formulae

Philosophical argument

UNCORRECTED PAGE PROOFS

Lecture 17 : Equivalence and Order Relations DRAFT

Mathematical Induction

3.3. The Factor Theorem. Investigate Determining the Factors of a Polynomial. Reflect and Respond

Nonlinear Programming Methods.S2 Quadratic Programming

Transcription:

Rules of Inference

Today s Menu Rules of Inference Quantifiers: Universal and Existential Nesting of Quantifiers Applications

Old Example Re-Revisited Our Old Example: Suppose we have: All human beings are mortal. Sachin is a human being. Does it follow that Sachin is mortal? Solution: Let H(x): x is a human being. Let M(x): x is mortal. The domain of discourse U is all human beings. All human beings are mortal. translates to x (H(x) M(x)) Sachin is a human being. translates to H(Sachin) Therefore, for H(Sachin) M(Sachin) to be true it must be the case that M(Sachin).

Arguments in Propositional 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. An argument form is an argument that is valid no matter what propositions are substituted into its propositional variables. 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. Inference rules are all argument simple argument forms that will be used to construct more complex argument forms. Next, we will discover some useful inference rules!

Modus Ponens or Law of Detachment (Modus Ponens = mode that affirms) p p q q Corresponding Tautology: (p (p q)) q Proof using Truth Table: Example: Let p be It is snowing. Let q be I will study discrete math. p q p q T T T T F F F T T F F T If it is snowing, then I will study discrete math. It is snowing. Therefore, I will study discrete math.

q p q p Modus Tollens aka Denying the Consequent Corresponding Tautology: ( q (p q)) p Proof using Truth Table: Example: Let p be it is snowing. Let q be I will study discrete math. p q p q T T T T F F F T T F F T If it is snowing, then I will study discrete math. I will not study discrete math. Therefore, it is not snowing.

Hypothetical Syllogism aka Transitivity of Implication or Chain Argument p q q r p r 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 aka Disjunction Elimination or OR Elimination p q p q 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 or I will study English literature. I will not study discrete math. Therefore, I will study English literature.

Addition aka Disjunction Introduction p (p q) 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 aka Conjunction Elimination p q p 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.

p q Conjunction aka Conjunction Introduction Corresponding Tautology: ((p) (q)) (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 p q p r q r Example: Let p be I will study discrete math. Let q be I will study databases. Let r be I will study English literature. Resolution plays an important role in Artificial Intelligence and is used in the programming language Prolog. Corresponding Tautology: ((p q) ( p r )) (q r) I will study discrete math or I will study databases. I will not study discrete math or I will study English literature. Therefore, I will study databases or I will English literature.

p q r q p r q Proof by Cases aka Disjunction Elimination Corresponding Tautology: ((p q) (r q) (p r )) q Example: Let p be I will study discrete math. Let q be I will study Computer Science. Let r be I will study databases. If I will study discrete math, then I will study Computer Science. If I will study databases, then I will study Computer Science. I will study discrete math or I will study databases. Therefore, I will study Computer Science.

p q r s p r q s Constructive Dilemma Disjunction of modus ponens Corresponding Tautology: ((p q) (r s) (p r )) (q s ) Example: Let p be I will study discrete math. Let q be I will study computer science. Let r be I will study protein structures. Let s be I will study biochemistry. If I will study discrete math, then I will study computer science. If I will study protein structures, then I will study biochemistry. I will study discrete math or I will study protein structures. Therefore, I will study computer science or biochemistry.

p q r s q s p r Destructive Dilemma Disjunction of modus tollens Corresponding Tautology: (p q) (r s) ( q s ) ( p r ) Example: Let p be I will study discrete math. Let q be I will study computer science. Let r be I will study protein structures. Let s be I will study biochemistry. If I will study discrete math, then I will study computer science. If I will study protein structures, then I will study biochemistry. I will not study computer science or I will not study biochemistry. Therefore, I will not study discrete math or I will not study protein structures.

p q p (p q) Absorption Example: Let p be I will study discrete math. Let q be I will study computer science. q is absorbed by p in the conclusion! Corresponding Tautology: (p q) (p (p q)) If I will study discrete math, then I will study computer science. Therefore, if I will study discrete math, then I will study discrete mathematics and I will study computer science.

Building Valid Arguments A valid argument is a sequence of statements where each statement is either a premise or follows from previous statements (called premises) by rules of inference. The last statement is called conclusion. A valid argument takes the following form: Premise 1 Premise 2 Premise n Conclusion

Valid Arguments Example: From the single proposition Show that q is a conclusion. Solution:

Valid Arguments 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: 1. Choose propositional variables: p : It is sunny this afternoon. q : It is colder than yesterday. r : We will go swimming. s : We will take a canoe trip. t : We will be home by sunset. 2. Translation into propositional logic:

Valid Arguments Remember you can also use truth table to show this albeit with 32 = 2 5 rows!

How do we use quantifiers with rules of inference?

Universal Instantiation (UI) Example: Our domain consists of all students and Sachin is a student. All students are smart Therefore, Sachin is smart.

Universal Generalization (UG) Used often implicitly in Mathematical Proofs.

Existential Instantiation (EI) Example: There is someone who got an A in COMPSCI 230. Let s call her Amelie and say that Amelie got an A

Existential Generalization (EG) Example: Amelie got an A in the class. Therefore, someone got an A in the class.

Old Example Re-Revisited Our Old Example: Suppose we have: All human beings are mortal. Sachin is a human being. Does it follow that Sachin is mortal? Solution: Let H(x): x is a human being. Let M(x): x is mortal. The domain of discourse U is all human beings. All human beings are mortal. translates to x H(x) M(x) Sachin is a human being. translates to H(Sachin) To show: x (H(x) M(x)) H(Sachin) M(Sachin)

Old Example Re-Revisited To show: x (H(x) M(x)) H(Sachin) M(Sachin) Step Valid Argument Reason (1) (2) (3) (4) x (H(x) M(x)) H(Sachin) M(Sachin) H(Sachin) M(Sachin) Premise Universal instantiation from (1) Premise Modus ponens from (2) and (3)

Universal Modus Ponens Universal modus ponens combines universal instantiation and modus ponens into one rule. x (P(x) Q(x)) P(a), where a is a particular element in the domain Q(a) This is what our previous example used!

The Lewis Carroll Example Revisited Premises: 1. All lions are fierce. 2. Some lions do not drink coffee. Conclusion: Can we conclude the following? 3. Some fierce creatures do not drink coffee. Let L(x): x is a lion. F(x): x is fierce. and C(x): x drinks coffee. Then the above three propositions can be written as: 1. x (L(x) F(x)) 2. x (L(x) C(x)) 3. x (F(x) C(x)) How to conclude 3 from 1 and 2?

The Lewis Carroll Example Revisited 1. x (L(x) F(x)) 2. x (L(x) C(x)) 3. x (F(x) C(x)) How to conclude 3 from 1 and 2? 1. x (L(x) C(x)) Premise 2. L(Foo) C(Foo) Existential Instantiation from (1) 3. L(Foo) Simplification from (2) 4. C(Foo) Simplification from (2) 5. x (L(x) F(x)) Premise 6. L(Foo) F(Foo) Universal instantiation from (5) 7. F(Foo) Modus ponens from (3) and (6) 8. F(Foo) C(Foo) Conjunction from (4) and (7) 9. x (F(x) C(x)) Existential generalization from (8)

Example: Is Moo Carnivorous? Premises: 1. If x is a lion, then x is carnivorous. 2. Moo is not carnivorous. Conclusion: Can we conclude the following? 3. Moo is not a lion. Let L(x): x is a lion. C(x): x is carnivorous. Then the above three propositions can be written as: 1. x (L(x) C(x)) 2. C(Moo) 3. L(Moo) How to conclude 3 from 1 and 2?

Example: Is Moo Carnivorous? 1. x (L(x) C(x)) 2. C(Moo) 3. L(Moo) How to conclude 3 from 1 and 2? 1. x (L(x) C(x)) Premise 2. L(Moo) C(Moo) Universal instantiation from (1) 3. C(Moo) Premise 4. L(Moo) Modus tollens from (1) and (2)

Universal Modus Tollens Universal modus tollens combines universal instantiation and modus ponens into one rule. x (P(x) Q(x)) Q(a), where a is a particular element in the domain P(a) This is what our previous example used!