Basic Inference Rules Kareem Khalifa Department of Philosophy Middlebury College.

Slides:



Advertisements
Similar presentations
Copyright 2008, Scott Gray1 Propositional Logic 4) If.
Advertisements

Artificial Intelligence
Discrete Mathematics University of Jazeera College of Information Technology & Design Khulood Ghazal Mathematical Reasoning Methods of Proof.
Logic & Critical Reasoning
Rules of Inferences Section 1.5. Definitions Argument: is a sequence of propositions (premises) that end with a proposition called conclusion. Valid Argument:
Introduction to Theorem Proving
CPSC 121: Models of Computation Unit 6 Rewriting Predicate Logic Statements Based on slides by Patrice Belleville and Steve Wolfman.
1 Logic Logic in general is a subfield of philosophy and its development is credited to ancient Greeks. Symbolic or mathematical logic is used in AI. In.
Logic Use mathematical deduction to derive new knowledge.
1 Introduction to Abstract Mathematics Valid AND Invalid Arguments 2.3 Instructor: Hayk Melikya
Deduction In addition to being able to represent facts, or real- world statements, as formulas, we want to be able to manipulate facts, e.g., derive new.
Logic.
Chapter 1 The Logic of Compound Statements. Section 1.3 Valid & Invalid Arguments.
Logic 3 Tautological Implications and Tautological Equivalences
Syllabus Every Week: 2 Hourly Exams +Final - as noted on Syllabus
Today’s Topics n Review Logical Implication & Truth Table Tests for Validity n Truth Value Analysis n Short Form Validity Tests n Consistency and validity.
Alpha: Symbolization and Inference Bram van Heuveln Minds and Machines Lab RPI.
Existential Introduction Kareem Khalifa Department of Philosophy Middlebury College.
Proof by Deduction. Deductions and Formal Proofs A deduction is a sequence of logic statements, each of which is known or assumed to be true A formal.
Methods of Proof & Proof Strategies
Inference is a process of building a proof of a sentence, or put it differently inference is an implementation of the entailment relation between sentences.
Deduction, Proofs, and Inference Rules. Let’s Review What we Know Take a look at your handout and see if you have any questions You should know how to.
Chapter Six Sentential Logic Truth Trees. 1. The Sentential Logic Truth Tree Method People who developed the truth tree method: J. Hintikka— “model sets”
Chap. 2 Fundamentals of Logic. Proposition Proposition (or statement): an declarative sentence that is either true or false, but not both. e.g. –Margret.
10/17/2015 Prepared by Dr.Saad Alabbad1 CS100 : Discrete Structures Proof Techniques(1) Dr.Saad Alabbad Department of Computer Science
1 Sections 1.5 & 3.1 Methods of Proof / Proof Strategy.
Symbolic Language and Basic Operators Kareem Khalifa Department of Philosophy Middlebury College.
Truth Tables and Validity Kareem Khalifa Department of Philosophy Middlebury College pqrSp v qr & s~(p v q)~p~q~p & ~q~(p v q) -> (r & s) (~p & ~q) ->
Natural Deduction CS 270 Math Foundations of CS Jeremy Johnson.
INTRODUCTION TO LOGIC Jennifer Wang Fall 2009 Midterm Review Quiz Game.
Chapter Four Proofs. 1. Argument Forms An argument form is a group of sentence forms such that all of its substitution instances are arguments.
Hazırlayan DISCRETE COMPUTATIONAL STRUCTURES Propositional Logic PROF. DR. YUSUF OYSAL.
Hypothetical Derivations Kareem Khalifa Department of Philosophy Middlebury College.
Introductory Logic PHI 120 Presentation: "Natural Deduction – Introduction“ Bring this book to lecture.
From Truth Tables to Rules of Inference Using the first four Rules of Inference Modus Ponens, Modus Tollens, Hypothetical Syllogism and Disjunctive Syllogism.
Today’s Topics Introduction to Proofs Rules of Inference Rules of Equivalence.
Introductory Logic PHI 120 Presentation: “Solving Proofs" Bring the Rules Handout to lecture.
1 Introduction to Abstract Mathematics Chapter 2: The Logic of Quantified Statements. Predicate Calculus Instructor: Hayk Melikya 2.3.
Proof of Invalidity Kareem Khalifa Department of Philosophy Middlebury College.
CS6133 Software Specification and Verification
Formal Proofs and Boolean Logic Chapter 6 Language, Proof and Logic.
Fall 2008/2009 I. Arwa Linjawi & I. Asma’a Ashenkity 11 The Foundations: Logic and Proofs Rules of inference.
Symbolic Logic ⊃ ≡ · v ~ ∴. What is a logical argument? Logic is the science of reasoning, proof, thinking, or inference. Logic allows us to analyze a.
Today’s Topics Argument forms and rules (review)
Foundations of Discrete Mathematics Chapter 1 By Dr. Dalia M. Gil, Ph.D.
More Proofs. REVIEW The Rule of Assumption: A Assumption is the easiest rule to learn. It says at any stage in the derivation, we may write down any.
1 Propositional Proofs 1. Problem 2 Deduction In deduction, the conclusion is true whenever the premises are true.  Premise: p Conclusion: (p ∨ q) 
Theorems and Shortcuts Kareem Khalifa Department of Philosophy Middlebury College.
Discrete Mathematical Structures: Theory and Applications 1 Logic: Learning Objectives  Learn about statements (propositions)  Learn how to use logical.
Sound Arguments and Derivations. Topics Sound Arguments Derivations Proofs –Inference rules –Deduction.
March 23 rd. Four Additional Rules of Inference  Constructive Dilemma (CD): (p  q) (r  s) p v r q v s.
{P} ⊦ Q if and only if {P} ╞ Q
Symbolic Language and Basic Operators
Proof Techniques.
Introductory Logic PHI 120
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.
CS201: Data Structures and Discrete Mathematics I
Truth Trees.
CS 220: Discrete Structures and their Applications
Midterm Discussion.
The Method of Deduction
The most important idea in logic: Validity of an argument.
CSNB234 ARTIFICIAL INTELLIGENCE
Foundations of Discrete Mathematics
6.4 Truth Tables for Arguments
CS201: Data Structures and Discrete Mathematics I
Chapter 8 Natural Deduction
Doing Derivation.
Introducing Natural Deduction
The Main Connective (Again)
Presentation transcript:

Basic Inference Rules Kareem Khalifa Department of Philosophy Middlebury College

Overview Why this matters Proofs are like games Procedure for constructing formal proofs Sample Exercises

Why this matters We now have two ways of ascertaining validity: –Constructing counterexamples, a fairly natural way of ascertaining validity, but only as reliable as your insight and imagination. –Truth tables, a very reliable way of ascertaining validity, but is both unwieldy and not very natural. Formal proofs of validity (“natural deductions,” “formal inferences”) are more rule-governed than constructing counterexamples, but less unwieldy than truth-tables. –A nice balance!

Proofs are like games Football Initial field position Rules of play (offside, holding, no forward lateral) End zone Proof Premises Basic rules of inference (→E, &E, &I, ↔E, ↔I, vE, vI, ~E) Conclusion

The Basic Inference Rules NameAbbreviation Rule Conditional Elimination (Modus ponens) →E→E From (Φ →Ψ) and Φ, infer Ψ. Conjunction Elimination (Simplification) &E From (Φ&Ψ), infer either Φ or Ψ. Conjunction Introduction (Adjunction) &I From Φ and Ψ, infer (Φ&Ψ). Biconditional Elimination↔E↔E From (Φ↔Ψ), infer (Φ→Ψ) or (Ψ→Φ). Biconditional Introduction↔I↔I From (Φ→Ψ) and (Ψ→Φ), infer (Φ↔Ψ). Disjunction Elimination (Dilemma) vE From (Φ v Ψ), (Φ→θ), and (Ψ→θ), infer θ. Disjunction Introduction (Addition) vI From Φ, infer (Φ v Ψ) or (Ψ v Φ). Negation Elimination (Double Negation) ~E From ~ ~Φ, infer Φ.

Proofs are really like games In football, you move from your initial field position, in accordance with the rules of play, to the end zone. In formal proofs, you move from your premises, in accordance with the rules of inference, to the conclusion.

Playing the game You will be given an argument. It is your task to show that the conclusion follows validly from the premises. To do this: 1.List the premises as the first lines of the proof. Mark them with an “A” for Assumption. 2.Apply the basic rules of inference to the premises and then to the subconclusions that result from those applications. Every line in the proof should have a proposition and a rationale for why you are entitled to assert that proposition. 3.Follow step 2 until you get the desired conclusion. Then you win!

A simple example P  Q, Q  R, P├ R 1. P  Q A 2. Q  R A 3. PA 4. Q1, 3  E Recall:  E says that from (Φ →Ψ) and Φ, you should infer Ψ. In this case, Φ = P and Ψ = Q. So, Line 1 thus gives you (Φ →Ψ) and Line 3 gives you Φ. Recall:  E says that from (Φ →Ψ) and Φ, you should infer Ψ. In this case, Φ = P and Ψ = Q. So, Line 1 thus gives you (Φ →Ψ) and Line 3 gives you Φ. 5. R2, 4  E Recall:  E says that from (Φ →Ψ) and Φ, you should infer Ψ. In this case, Φ = Q and Ψ = R. So, Line 2 thus gives you (Φ →Ψ) and Line 4 gives you Φ. Recall:  E says that from (Φ →Ψ) and Φ, you should infer Ψ. In this case, Φ = Q and Ψ = R. So, Line 2 thus gives you (Φ →Ψ) and Line 4 gives you Φ. This is the desired conclusion. So you win! 

One rule students are eternally tempted to break So this is okay: 1.P  ~~Q A 2.P A 3.~~Q 1, 2  E 4.Q 3 ~E But this isn’t: 1.P  ~~Q A 2.P A 3.P  Q 1, ~E 4.Q 2,3  E The basic rules of inference apply only to whole lines of a proof, not parts of a proposition. X

Proofs are really, really like games Many people can learn to play chess correctly, but it takes some talent and practice to play chess strategically. Many people can use the basic rules of inference properly, but it takes some talent and practice to prove things strategically.

Some helpful strategies Recognize patterns. Think about the big picture, then worry about the details. Reverse engineer. Using “clean-up” procedures, i.e., try to establish common patterns between different premises and intermediate conclusions in the proof. Tease things out of the premises, i.e., use the rules of inference to draw interesting conclusions. Cut the fat, i.e., use the rules of inference to eliminate statements that occur in the premises but not in the conclusion. Know the rules that cause roadblocks for you.

Recognizing patterns {P  {Q  [R v (S & ~T)]}}  (P v S), {P  {Q  [R v (S & ~T)]}} ├ P v S 1. {P  {Q  [R v (S & ~T)]}}  (P v S) A 2. {P  {Q  [R v (S & ~T)]}} A 3. P v S 1, 2  E Recall:  E says that from (Φ →Ψ) and Φ, you should infer Ψ. In this case, Φ = {P  {Q  [R v (S & ~T)]}} and Ψ = P v S. So, Line 1 thus gives you (Φ →Ψ) and Line 2 gives you Φ. Recall:  E says that from (Φ →Ψ) and Φ, you should infer Ψ. In this case, Φ = {P  {Q  [R v (S & ~T)]}} and Ψ = P v S. So, Line 1 thus gives you (Φ →Ψ) and Line 2 gives you Φ.

Reverse engineer Look at the conclusion, and ask yourself how you might get there from the premises you have. In other words, imagine your 2 nd to last step, 3 rd to last step, etc. until you get back to the premises.

A slightly more challenging example ~Q→P, (R & S) →~Q, R, ~T↔S, ~T ├ P A counterexample here is going to be very hard to follow. A truth table will require 32 rows. So, what can a formal proof do with this puppy?

Reverse engineering: For your scratch paper ~Q → P, (R & S) →~Q, R, ~T↔S ~T ├ P 1. ~Q → PA 2. (R & S) →~QA 3. RA 4. ~T↔SA 5. ~TA  6. ~T→S 4 ↔E 7. S 5,~T →S?? →E 8. R&S 3,S?? &I 9. ~Q R&S??, 2 →E 10.  P 1, ~Q?? → E

Example: The final result ~Q → P, (R & S) →~Q, R, ~T↔S ~T ├ P 1. ~Q → PA 2. (R & S) →~QA 3. RA 4. ~T↔SA 5. ~TA  6. ~T→S 4 ↔E 7. S 5,6 →E 8. R&S 3,7 &I 9. ~Q 8,2 →E 10.  P 1,9 → E

Sample Exercise, Nolt P → (Q →R)A 2. PA 3. QA RR To be proven 4. Q → R1, 2 →E 5. R3, 4 →E

Nolt, (P & (Q v R))  S A 2. PA 3. ~~RA SS To be proven 4. R3 ~E 5. Q v R4 v I 6. P & (Q v R)2, 5 &I 7. (P & (Q v R))  S1  E 8. S 6, 7  E