Rules of Inference ?

Rules of Inference ?

Rules of inference Section 1.5 MSU/CSE 260 Fall 20091 Review: Logical Implications ? #1 #2 #1 #2 Answer? TTYes TFNo FTYes FFYes MSU/CSE 260 Fall 2009 2 © 2006 by A-H. Esfahanian. All Rights Reserved. 1- Terminology Axiom or Postulate: An underlying assumption; often used to begin a logical argument with. Rules of inference: Rules explaining how conclusions are drawn from axioms/postulates. Proof: A sequence of propositions that forms a valid argument. Fallacy: Incorrect reasoning (invalid argument) MSU/CSE 260 Fall 2009 3 Terminology… Theorem: A proposition that can be shown to be true. Lemma: A simple theorem used in the proof of other theorems. Corollary: A fact that can be immediately deduced from a Theorem/Lemma. Conjecture: A proposition whose correctness is unknown. MSU/CSE 260 Fall 2009 4 © 2006 by A-H. Esfahanian. All Rights Reserved. 1- Rules of inference Rules of inference are used to draw conclusions from hypotheses. These are the logical implication questions for which the answer is YES Consider the question: Does [p ∧ (p → q)] logically imply q The answer is YES as [p ∧ (p → q)] → q is a tautology It is the basis of the rule of inference called modus ponens, which can be represented by the symbolic form p p → q ∴ q which means that whenever p is true and p → q is true we can conclude that q is true. In other words [p ∧ (p → q)] logically implies q MSU/CSE 260 Fall 2009 5 Example Consider the argument: You have a CSE account if you are taking CSE 260. You are taking CSE 260. Therefore, you have a CSE account. This argument is an instance of modus ponens: p: You are taking CSE 260. q: You have a CSE account. Then the argument has the form: p → q p ∴ q Thus, the argument is valid. MSU/CSE 260 Fall 2009 6 © 2006 by A-H. Esfahanian. All Rights Reserved. 1- A Few Tautologies p → (p ∨ q) (p ∧ q) → p p ∧ q → (p ∧ q) [p ∧ (p → q)] → q [¬ q ∧ (p → q)] → ¬ p [(p → q) ∧ (q → r)] → (p → r) [(p ∨ q) ∧ ¬p] → q Each of these tautologies can be formalized as a rule of inference for use in justifying claims in a valid argument. MSU/CSE 260 Fall 2009 7 Rules of Inference p p p → (p ∨ q) logically implies Addition ∴ ∨ p q (p ∨ q) is a tautology ∧ p ∧ q (p q) (p ∧ q) → p logically implies Simplification ∴ p p is a tautology p ∧ p q (p ∧ q) → (p ∧ q) q logically implies Conjunction is a tautology ∴ p ∧ q (p ∧ q) p ∧ → [p (p q)] [p ∧ (p → q)] → q p → q logically implies Modus ponens is a tautology ∴ q q MSU/CSE 260 Fall 2009 8 © 2006 by A-H. Esfahanian. All Rights Reserved. 1- Rules of Inference p p p → (p ∨ q) logically implies Addition ∴ ∨ p q (p ∨ q) is a tautology ∧ p ∧ q (p q) (p ∧ q) → p logically implies Simplification ∴ p p is a tautology p ∧ p q (p ∧ q) → (p ∧ q) q logically implies Conjunction is a tautology ∴ p ∧ q (p ∧ q) p ∧ → [p (p q)] [p ∧ (p → q)] → q p → q logically implies Modus ponens is a tautology ∴ q q MSU/CSE 260 Fall 2009 9 Rules of Inference p p p → (p ∨ q) logically implies Addition ∴ ∨ p q (p ∨ q) is a tautology ∧ p ∧ q (p q) (p ∧ q) → p logically implies Simplification ∴ p p is a tautology p ∧ p q (p ∧ q) → (p ∧ q) q logically implies Conjunction is a tautology ∴ p ∧ q (p ∧ q) p ∧ → [p (p q)] [p ∧ (p → q)] → q p → q logically implies Modus ponens is a tautology ∴ q q MSU/CSE 260 Fall 2009 10 © 2006 by A-H. Esfahanian. All Rights Reserved. 1- Rules of Inference p p p → (p ∨ q) logically implies Addition ∴ ∨ p q (p ∨ q) is a tautology ∧ p ∧ q (p q) (p ∧ q) → p logically implies Simplification ∴ p p is a tautology p ∧ p q (p ∧ q) → (p ∧ q) q logically implies Conjunction is a tautology ∴ p ∧ q (p ∧ q) p ∧ → [p (p q)] [p ∧ (p → q)] → q p → q logically implies Modus ponens is a tautology ∴ q q MSU/CSE 260 Fall 2009 11 Rules of Inference ¬ q ∧ → [¬ q (p q)] [¬ q ∧ (p → q)] → ¬ p p → q logically implies Modus tollens is a tautology ∴ ¬ p ¬ p p → q [(p→q) ∧ (q→r)] [(p→q) ∧ (q→r)] → (p→r) Hypothetical q → r logically implies is a tautology syllogism ∴ p → r (p→r) p ∨ q [(p ∨ q) ∧ ¬p] [(p ∨ q) ∧ ¬p] → q Disjunctive ¬p logically implies is a tautology syllogism ∴ q q p ∨ q [(p ∨ q) ∧ (¬p ∨ r)] ¬ p ∨ r logically implies [(p ∨ q) ∧ (¬p ∨ r)] → q ∨ r ∨ Resolution ∴ q ∨ r q r is a tautology MSU/CSE 260 Fall 2009 12 © 2006 by A-H. Esfahanian. All Rights Reserved. 1- Rules of Inference ¬ q ∧ → [¬ q (p q)] [¬ q ∧ (p → q)] → ¬ p p → q logically implies Modus tollens is a tautology ∴ ¬ p ¬ p p → q [(p→q) ∧ (q→r)] [(p→q) ∧ (q→r)] → (p→r) Hypothetical q → r logically implies is a tautology syllogism ∴ p → r (p→r) p ∨ q [(p ∨ q) ∧ ¬p] [(p ∨ q) ∧ ¬p] → q Disjunctive ¬p logically implies is a tautology syllogism ∴ q q p ∨ q [(p ∨ q) ∧ (¬p ∨ r)] ¬ p ∨ r logically implies [(p ∨ q) ∧ (¬p ∨ r)] → q ∨ r ∨ Resolution ∴ q ∨ r q r is a tautology MSU/CSE 260 Fall 2009 13 Rules of Inference ¬ q ∧ → [¬ q (p q)] [¬ q ∧ (p → q)] → ¬ p p → q logically implies Modus tollens is a tautology ∴ ¬ p ¬ p p → q [(p→q) ∧ (q→r)] [(p→q) ∧ (q→r)] → (p→r) Hypothetical q → r logically implies is a tautology syllogism ∴ p → r (p→r) p ∨ q [(p ∨ q) ∧ ¬p] [(p ∨ q) ∧ ¬p] → q Disjunctive ¬p logically implies is a tautology syllogism ∴ q q p ∨ q [(p ∨ q) ∧ (¬p ∨ r)] ¬ p ∨ r logically implies [(p ∨ q) ∧ (¬p ∨ r)] → q ∨ r ∨ Resolution ∴ q ∨ r q r is a tautology MSU/CSE 260 Fall 2009 14 © 2006 by A-H. Esfahanian. All Rights Reserved. 1- Rules of Inference ¬ q ∧ → [¬ q (p q)] [¬ q ∧ (p → q)] → ¬ p p → q logically implies Modus tollens is a tautology ∴ ¬ p ¬ p p → q [(p→q) ∧ (q→r)] [(p→q) ∧ (q→r)] → (p→r) Hypothetical q → r logically implies is a tautology syllogism ∴ p → r (p→r) p ∨ q [(p ∨ q) ∧ ¬p] [(p ∨ q) ∧ ¬p] → q Disjunctive ¬p logically implies is a tautology syllogism ∴ q q p ∨ q [(p ∨ q) ∧ (¬p ∨ r)] ¬ p ∨ r logically implies [(p ∨ q) ∧ (¬p ∨ r)] → q ∨ r ∨ Resolution ∴ q ∨ r q r is a tautology MSU/CSE 260 Fall 2009 15 Example Is the following argument valid? If the program crashed, an exception was raised. If an exception was raised, someone input a text value for an integer. Therefore, if the program crashed, someone input a text value for an integer. If valid, what rule of inference is used? If not, how do you know it is invalid? p → q p: The program crashed. q → r q: An exception was raised. ∴ p → r r: Someone input a text value for an integer. Hypothetical Syllogism –its valid! MSU/CSE 260 Fall 2009 16 © 2006 by A-H. Esfahanian. All Rights Reserved. 1- Example Is the following argument valid? If the program crashed, an exception was raised. If an exception was raised, someone input a text value for an integer value. Therefore, the program did not crash, If valid, what rule of inference is used? If not, how do you know its invalid? p → q p: The program crashed. q → r q: An exception was raised. ∴¬p r: Someone input a text value for an integer. [(p → q) ∧ (q → r ) → ¬ p] is not a tautology; therefore, the argument is not valid. MSU/CSE 260 Fall 2009 17 Example Is the following argument valid? If the program crashed, an exception was raised. If an exception was raised, someone input a text value for an integer value. No one input a text value for an integer. Therefore, the program did not crash, If valid, what rule of inference is used? If not, how do you know its invalid? p → q p: The program crashed. q → r q: An exception was raised. ¬ r r: Someone input a text value for an ∴¬p integer. MSU/CSE 260 Fall 2009 18 © 2006 by A-H. Esfahanian. All Rights Reserved. 1- Example Is the following argument valid? If the program crashed, an exception was raised. If an exception was raised, someone input a text value for an integer value. No one input a text value for an integer. Therefore, the program did not crash, If valid, what rule of inference is used? If not, how do you know its invalid? [ ( (p → q) ∧ (q → r ) ∧¬r ) → ¬ p ] is a tautology; therefore, the argument is valid. We will shortly develop methods of proof so we don’t have to always convert an inference into a formula and demonstrate that the formula is a tautology; but first … . MSU/CSE 260 Fall 2009 19 Rules of Inference for Quantifications Rule of Name Comments Inference ∀xP(x) Universal ∴ P(c) Specification/Instantiation for any c in the domain (US) or (UI) P(c) Universal generalization for an arbitrary c, not a ∴ ∀xP(x) (UG) particular one ∃xP(x) Existential ∴ P(c) Specification/Instantiation for some specific c (unknown) (ES) or (EI) P(c) Existential generalization Finding one c such that P(c) ∴∃xP(x) (EG) MSU/CSE 260 Fall 2009 20 © 2006 by A-H. Esfahanian. All Rights Reserved. 1- Rules of Inference for Quantifications Rule of Name Comments Inference ∀xP(x) Universal ∴ P(c) Specification/Instantiation for any c in the domain (US) or (UI) P(c) Universal generalization for an arbitrary c, not a ∴ ∀xP(x) (UG) particular one ∃xP(x) Existential ∴ P(c) Specification/Instantiation for some specific c (unknown) (ES) or (EI) P(c) Existential generalization Finding one c such that P(c) ∴∃xP(x) (EG) MSU/CSE 260 Fall 2009 21 Rules of Inference for Quantifications Rule of Name Comments Inference ∀xP(x) Universal ∴ P(c) Specification/Instantiation for any c in the domain (US) or (UI) P(c) Universal generalization for an arbitrary c, not a ∴ ∀xP(x) (UG) particular one ∃xP(x) Existential ∴ P(c) Specification/Instantiation for some specific c (unknown) (ES) or (EI) P(c) Existential generalization Finding one c such that P(c) ∴∃xP(x) (EG) MSU/CSE 260 Fall 2009 22 © 2006 by A-H.

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    13 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us