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

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

Section 1.2: Propositional Logic

The Logic of Compound Statements cont.

Lecture 2. Logic Compound Statements Conditional Statements Valid & Invalid Arguments Digital Logic Circuits. Reading (Epp s textbook)

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

THE LOGIC OF COMPOUND STATEMENTS

PROPOSITIONAL CALCULUS

Chapter 1: The Logic of Compound Statements. January 7, 2008

CHAPTER 1 - LOGIC OF COMPOUND STATEMENTS

MACM 101 Discrete Mathematics I. Exercises on Propositional Logic. Due: Tuesday, September 29th (at the beginning of the class)

Proposition logic and argument. CISC2100, Spring 2017 X.Zhang

Where are my glasses?

10/5/2012. Logic? What is logic? Propositional Logic. Propositional Logic (Rosen, Chapter ) Logic is a truth-preserving system of inference

Proofs: A General How To II. Rules of Inference. Rules of Inference Modus Ponens. Rules of Inference Addition. Rules of Inference Conjunction

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

Propositional Logic. Fall () Propositional Logic Fall / 30

Propositional Logic. Spring Propositional Logic Spring / 32

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

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.

PHI Propositional Logic Lecture 2. Truth Tables

CSC Discrete Math I, Spring Propositional Logic

Today s Lecture 2/25/10. Truth Tables Continued Introduction to Proofs (the implicational rules of inference)

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

Chapter 1 Elementary Logic

Analyzing Arguments with Truth Tables

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

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

Introduction Logic Inference. Discrete Mathematics Andrei Bulatov

Proofs. Introduction II. Notes. Notes. Notes. Slides by Christopher M. Bourke Instructor: Berthe Y. Choueiry. Fall 2007

Artificial Intelligence: Knowledge Representation and Reasoning Week 2 Assessment 1 - Answers

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

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

Chapter 4, Logic using Propositional Calculus Handout

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

CSE 20 DISCRETE MATH. Winter

THE LOGIC OF COMPOUND STATEMENTS

Section 1.1: Logical Form and Logical Equivalence

CSCI-2200 FOUNDATIONS OF COMPUTER SCIENCE

Manual of Logical Style

A. Propositional Logic

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

A Little Deductive Logic

Symbolic Logic 3. For an inference to be deductively valid it is impossible for the conclusion to be false if the premises are true.

CSE 20 DISCRETE MATH. Fall

A Little Deductive Logic

DISCRETE MATH: LECTURE 3

HANDOUT AND SET THEORY. Ariyadi Wijaya

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

3 The Semantics of the Propositional Calculus

CS 2336 Discrete Mathematics

Mat 243 Exam 1 Review

The Importance of Being Formal. Martin Henz. February 5, Propositional Logic

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

Formal Logic. Critical Thinking

1 The Foundation: Logic and Proofs

Section 1.3: Valid and Invalid Arguments

Natural Deduction for Propositional Logic

Deductive and Inductive Logic

Predicate Logic & Quantification

Formal (natural) deduction in propositional logic

Steinhardt School of Culture, Education, and Human Development Department of Teaching and Learning. Mathematical Proof and Proving (MPP)

Rules of Inference. Arguments and Validity

1 The Foundation: Logic and Proofs

A Quick Lesson on Negation

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

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

1.1 Statements and Compound Statements

ICS141: Discrete Mathematics for Computer Science I

Rules Build Arguments Rules Building Arguments

(Refer Slide Time: 02:20)

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

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

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

03 Propositional Logic II

Packet #1: Logic & Proofs. Applied Discrete Mathematics

Propositional Logic: Part II - Syntax & Proofs 0-0

Resolution (14A) Young W. Lim 8/15/14

Introduction to Sets and Logic (MATH 1190)

5. Use a truth table to determine whether the two statements are equivalent. Let t be a tautology and c be a contradiction.

Deductive Systems. Lecture - 3

Proof Worksheet 2, Math 187 Fall 2017 (with solutions)

Supplementary Logic Notes CSE 321 Winter 2009

Discrete Structures & Algorithms. Propositional Logic EECE 320 // UBC

FORMAL PROOFS DONU ARAPURA

The Logic of Compound Statements. CSE 2353 Discrete Computational Structures Spring 2018

Review The Conditional Logical symbols Argument forms. Logic 5: Material Implication and Argument Forms Jan. 28, 2014

Unit I LOGIC AND PROOFS. B. Thilaka Applied Mathematics

8.8 Statement Forms and Material Equivalence

Collins' notes on Lemmon's Logic

PSU MATH RELAYS LOGIC & SET THEORY 2017

COMP Intro to Logic for Computer Scientists. Lecture 6

Predicate Logic. Andreas Klappenecker

5. And. 5.1 The conjunction

Valid Reasoning. Alice E. Fischer. CSCI 1166 Discrete Mathematics for Computing February, Outline Truth and Validity Valid Reasoning

Propositional Logic Arguments (5A) Young W. Lim 11/30/16

software design & management Gachon University Chulyun Kim

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

Language of Propositional Logic

Inference and Proofs (1.6 & 1.7)

Logic and Propositional Calculus

Transcription:

Propositional Logic Argument Forms Ioan Despi despi@turing.une.edu.au University of New England July 19, 2013

Outline Ioan Despi Discrete Mathematics 2 of 1

Order of Precedence Ioan Despi Discrete Mathematics 3 of 1 1 connectives within parentheses, innermost parentheses first 2 3, 4 5 Some people actually place a higher precedence for than for. To avoid possible confusion we shall always insert the parentheses at the appropriate places.

Basic concepts Ioan Despi Discrete Mathematics 4 of 1 A logical argument is built from propositions, also called statements. A proposition is a sentence which is either true or false,e.g., The first computer was built by Babbage. Dogs cannot see blue colour. Berlin is the capital of Albania. Propositions may be either asserted (said to be true) or denied (said to be false). The proposition is the meaning of the statement, not the particular arrangement of words used: beauty exists and there exists beauty both express the same proposition.

Basic concepts Ioan Despi Discrete Mathematics 5 of 1 An argument is a connected series of statements to establish a definite proposition (Monty Python). There are three stages to an argument: 1 premises assertions, often introduced by because, since, obviously and so on. 2 inference deriving new propositions from premises 3 conclusion the final stage of inference, introduced by therefore, it follows that, we conclude, etc. Typically an argument form will take the form p 1, p 2,..., p n, q where propositions p 1,..., p n are the premises and proposition q is the conclusion. The above argument form can also be represented vertically by p 1 p 2. p n q or by p 1 p 2. p n q

Argument Ioan Despi Discrete Mathematics 6 of 1 Definition. (Argument) An argument form (argument) is a finite set of statements called premises, together with a single statement, called the conclusion, which the premises are taken to support. Here is an example of a (deductive) argument: Every event has a cause. (premise) The universe has a beginning. (premise) All beginnings involve an event. (premise) This implies that the beginning of the universe involved an event. (inference) Therefore the universe has a cause. (inference and conclusion) The symbol is used to indicate an argument s conclusion. It is pronounced therefore. Symbolic logic does not care about the contents of arguments. Symbolic logic studies the forms of arguments.

Validity and invalidity Definition. (Validity and Invalidity) An argument is valid if and only if its conclusion must be true when its premises are true. Otherwise, it is invalid. The argument (p 1, p 2,..., p n, q) is valid if and only if the proposition (p 1 p 2... p n) q) is a tautology. The fact that an argument is valid does not imply that its conclusion holds. This is because of the slightly counter-intuitive nature of implication. Obviously a valid argument can consist of true propositions. However, an argument may be entirely valid even if it contains only false propositions (no contradiction of the definition), e.g., All insects have wings. (premise) Woodlice are insects. (premise) Therefore woodlice have wings. (conclusion) The conclusion is not true because the premises are false. If the argument s premises were true, however, the conclusion would be true. The argument is thus entirely valid. Ioan Despi Discrete Mathematics 7 of 1

Validity and invalidity (cont.) Ioan Despi Discrete Mathematics 8 of 1 One can reach a true conclusion from one or more false premises, as in: All fish live in the sea. (premise) Dolphins are fish. (premise) Therefore dolphins live in the sea. (conclusion) If the premises are false and the inference valid, the conclusion can be true or false. If the premises are true and the conclusion false, the inference must be invalid. If the premises are true and the inference valid, the conclusion must be true. To say that an argument is valid is not to say that the conclusion is true, and To say that an argument s conclusion is true is not to say that the argument is valid.

Validity and invalidity (cont.) Notice that a valid argument may have false premises and a false conclusion. Practical Method The validity of an argument can be tested through the use of the truth table by checking if critical rows (the ones where all premises are true) will correspond to the value true for the conclusion. An invalid argument is an argument which is not valid. In other words, it has true premises but a false conclusion. Ioan Despi Discrete Mathematics 9 of 1

Examples Ioan Despi Discrete Mathematics 10 of 1 Example 1. Show that (p q, p q, q r, r) is a valid argument. There are 3 variables (p, q, r) so we need 2 3 = 8 rows in our truth-table. p q r 0 0 0 0 0 1 0 1 0 0 1 1 1 0 0 1 0 1 1 1 0 1 1 1

Examples Ioan Despi Discrete Mathematics 11 of 1 Example 1. Show that (p q, p q, q r, r) is a valid argument. There are 3 variables (p, q, r) so we need 2 3 = 8 rows in our truth-table. p q r p q p q q r 0 0 0 0 1 1 0 0 1 0 1 1 0 1 0 1 1 0 0 1 1 1 1 1 1 0 0 1 0 1 1 0 1 1 0 1 1 1 0 1 1 0 1 1 1 1 1 1

Examples Ioan Despi Discrete Mathematics 12 of 1 Example 1. Show that (p q, p q, q r, r) is a valid argument. There are 3 variables (p, q, r) so we need 2 3 = 8 rows in our truth-table. p q r p q p q q r 0 0 0 0 1 1 0 0 1 0 1 1 0 1 0 1 1 0 0 1 1 1 1 1 1 0 0 1 0 1 1 0 1 1 0 1 1 1 0 1 1 0 1 1 1 1 1 1 critical rows

Examples Ioan Despi Discrete Mathematics 13 of 1 Example 1. Show that (p q, p q, q r, r) is a valid argument. There are 3 variables (p, q, r) so we need 2 3 = 8 rows in our truth-table. p q r p q p q q r 0 0 0 0 1 1 0 0 1 0 1 1 0 1 0 1 1 0 0 1 1 1 1 1 critical rows correspond to 1 for r 1 0 0 1 0 1 1 0 1 1 0 1 1 1 0 1 0 0 1 1 1 1 1 1 Valid arguments can have false conclusions. But a valid argument with a false conclusion must have a false premise.

Examples Ioan Despi Discrete Mathematics 14 of 1 Example 2. Show that (p q p q) is an invalid argument. p q p q p q p q 0 0 1 1 1 1 0 1 1 0 1 0 1 0 0 1 0 1 1 1 0 0 1 1

Examples Ioan Despi Discrete Mathematics 15 of 1 Example 2. Show that (p q p q) is an invalid argument. p q p q p q p q 0 0 1 1 1 1 0 1 1 0 1 0 1 0 0 1 0 1 1 1 0 0 1 1 this critical row fails

Examples Ioan Despi Discrete Mathematics 16 of 1 Example 3. Show that (p q q) is a valid argument. Example 4. Show that (p q, p q) (Modus Ponens) is a valid argument. You can tell modus ponens is valid from the truth table for : p q p q T T T T F F F T T F F T In only one row (the first) are both premises (p q) and p true. And, in this row, q is also true.

Other Simple Argument Forms Ioan Despi Discrete Mathematics 17 of 1 Which of the following are valid? 1 (p q, q p) invalid 2 (p q, q p) valid 3 (p q, p q) invalid 4 (p q, p q) invalid 5 (p q, p q) invalid

More Examples Ioan Despi Discrete Mathematics 18 of 1 An argument form with contradictory premises is valid. (p p, q) The premise formula is a contradiction! Always false. So there is no row on which the premise is true but the conclusion is false. Hence the argument form is valid, by our definition. An argument whose conclusion is a tautology is valid. (p q, r q, s s) There is no row on which (s s) is false, so it is a tautology. Hence there is no row on which the premise formulas are true but the conclusion formula is false. Therefore the argument form is valid, by our definition.

More Examples Ioan Despi Discrete Mathematics 19 of 1 Argument A has five premises and one conclusion. All five premises are true, and the conclusion is true. Is argument A valid? Answer. Not enough information to tell. Whether an argument is valid does not depend on the fact that the premises and conclusion are true. Rather, it depends on whether its possible for the premises to be true and the conclusion false. Argument B has two premises and one conclusion. All two premises are true, and the conclusion is false. Is argument B valid? Answer. No. An argument is valid only if its impossible for the conclusion to be false when all the premises are true. Since you have been told that the premises are true and the conclusion is false, this is not impossible. So the argument is invalid.

Converse, Inverse, and Contrapositive Ioan Despi Discrete Mathematics 20 of 1 Given the implication p q p is called the premise (or hypothesis) and q is called the conclusion. For any such a proposition p q, we also have q p the converse of p q p q the inverse of p q q p the contrapositive of p q The inverse and the converse of an implication are not necesarily true. The contrapositive of an implication is always true. The following argument forms are invalid (aka fallacies): p q q p invalid! p q p q invalid! Fallacies are mistakes of reasoning, as opposed to those that are of a factual nature.

Examples Ioan Despi Discrete Mathematics 21 of 1 Write like if p then q Maths teachers love their job. let p = teaching maths let q = loving your job If you teach maths, then you love your job its converse: If you love your job, then you teach maths (false) its inverse: If you don t teach maths, then you don t love your job (false) its contrapositive: If you don t love your job, then you don t teach maths (true) Try yourself: Students hate homework.

To sum up Ioan Despi Discrete Mathematics 22 of 1 conditional: if p then q if true then converse: if q then p false inverse: if p then q false contrapositive: if q then p true

Rules of Inference Ioan Despi Discrete Mathematics 23 of 1 (Just another name for valid arguments) modus ponens: modus tollens: disjunctive addition: conjunctive addition: conjunctive simplification: p q, p q p q, q p p p q p, q p q p q p Modus (ponendo) ponens [Latin] the way that affirms by affirming Modus (tollendo) tollens [Latin] the way that denies by denying

Ioan Despi Discrete Mathematics 24 of 1 Rules of Inference (Just another name for valid arguments) disjunctive syllogism: hypothetical syllogism: division into cases: rule of contradiction: p q, q p p q, q r p r p q, p r, q r r p p contrapositive equivalence: p q q p Syllogism a deductive scheme of a formal argument consisting of a major (M) and a minor (m) premises, and a conclusion (C). Example All men are human; M All humans are mortal; m Therefore all men are mortal. C

p q, q r, p s t, r, q u s, t 1 q r premise r premise q by modus tollens 2 p q premise q by (1) p by disjunctive syllogism 3 q u s premise q by (1) u s by modus ponens 4 u s by (3) s by conjunctive simplification 5 p by (2) s by (4) p s by conjunctive addition 6 p s t premise p s by (5) t by modus ponens Ioan Despi Discrete Mathematics 25 of 1

p q p q Ioan Despi Discrete Mathematics 26 of 1 We use a truth table to prove it p q p p q p q 0 0 1 1 1 0 1 1 1 1 1 0 0 0 0 1 1 0 1 1 We see that the last two columns (of interest!) are exactly the same, which means the two formulae are equivalent.

p q, q r, r We use a truth table to see if this argument is valid p q r p q q r r 0 0 0 1 1 0 0 0 1 1 1 1 0 1 0 1 0 0 0 1 1 1 1 1 1 0 0 0 1 0 1 0 1 0 1 1 1 1 0 1 0 0 1 1 1 1 1 1 The conclusion r fails at the first critical row, so the argument form is not valid. Ioan Despi Discrete Mathematics 27 of 1

r p, p q, s p r, p r s t, q, t We use the basic inference rules to prove that this argument is valid: 1 q, p q, p (disjunctive syllogism) 2 p, r p, r (modus tollens) 3 p, r, p r (conjunctive addition) 4 p r, r s t, s t (modus ponens) 5 r, r p (disjunctive addition) 6 s p r, s ( r p) (De Morgan s law) 7 r p, s ( r p), s (modus tollens) 8 s t, s, t (disjunctive syllogism) hence the argument form is valid. Ioan Despi Discrete Mathematics 28 of 1

A Problem Ioan Despi Discrete Mathematics 29 of 1 Can you decide who killed E? One person in a gang comprised of four members (say, A, B, C, and D) killed a person named E. A detective obtained the following statements from the gang members (let s say S x denotes the statement made by x, where x {A, B, C, D}): 1 S A : B killed E. 2 S B : C was playing with A when E was knocked off. 3 S C : B didn t kill E. 4 S D : C didn t kill E. The detective was then able to conclude that all but one were lying. Who killed E? Let us consider the following four statements denoted (1) to (4). The first two are true due to the detective s work: (1) Only one of the statements S A, S B, S C, S D is true. (2) One of A, B, C, D killed E.

A Problem (cont.) From statements S A and S C we know that (3) S A S D is true because if S A is true, then B killed E which implies C did not kill E [due to (2)], implying S D is also true. From (1), if S A is true, then all other three sentences (S A, S C,S D ) are false (4) S A S B S C S D is true. Let us examine the following sequence of statements: (a) S A S D (S A, S D ) from (3) (b) S A S B S C S D from (4) (c) S B S C S D S D conjunctive simplificant (d) S A S D hypothetical syllogism from (b), (c) (e) S D S A modus tollens from (a) (f) S A S A hypothetical syllogism from (d), (e) Notice that (a) and (b) are premises, (c) - (e) were obtained from previous ones. We call a sequence of this type a proof sequence, with the last entry called a theorem. Ioan Despi Discrete Mathematics 30 of 1

A Problem (cont.) The sequence (a) (f) can be seen as special valid argument form, in which the truth of the first two statements will ensure the truth of the rest of them. We conclude that S A S A is true, hence S A must be flase from the rule of contradiction: if S A were true, then S A would be true, implying S A is false: contradiction. From the definition of S C we see that S A S C From modus ponens S A S C, S A, S C we conclude S C is true. Since (1) gives S C S A S B S D we obtain by using conjuctive simplification (S C S A S B S D, S A S B S D S D, S C S D ) that is S C S D Finally, from modus ponens (S C S D, S C, S D ) we conclude S D is true, that is C killed E. Verbal arguments in this case are more concise. Can you find them? Ioan Despi Discrete Mathematics 31 of 1