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

Similar documents
Why Proofs? Proof Techniques. Theorems. Other True Things. Proper Proof Technique. How To Construct A Proof. By Chuck Cusack

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

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

3 Rules of Inferential Logic

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

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

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

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

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

CHAPTER 1 - LOGIC OF COMPOUND STATEMENTS

Sets of Real Numbers

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

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

Chapter 3. The Logic of Quantified Statements

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

The Logic of Compound Statements cont.

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

1 The Foundation: Logic and Proofs

Discrete Mathematics

Discrete Structures of Computer Science Propositional Logic III Rules of Inference

Rules Build Arguments Rules Building Arguments

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

Introduction Logic Inference. Discrete Mathematics Andrei Bulatov

1 The Foundation: Logic and Proofs

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

DISCRETE MATH: LECTURE Chapter 3.3 Statements with Multiple Quantifiers If you want to establish the truth of a statement of the form

Intro to Logic and Proofs

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

MATH 2710: NOTES FOR ANALYSIS

CS 2336 Discrete Mathematics

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

software design & management Gachon University Chulyun Kim

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

Where are my glasses?

A. Propositional Logic

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

Chapter 1 Elementary Logic

CSE 20 DISCRETE MATH. Winter

Predicate Logic. Andreas Klappenecker

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

Logic, Sets, and Proofs

CSE 20 DISCRETE MATH. Fall

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

THE LOGIC OF COMPOUND STATEMENTS

CSCI-2200 FOUNDATIONS OF COMPUTER SCIENCE

CITS2211 Discrete Structures Proofs

ECOM Discrete Mathematics

MAT 243 Test 1 SOLUTIONS, FORM A

MA3H1 TOPICS IN NUMBER THEORY PART III

Rules of Inference. Arguments and Validity

DISCRETE MATH: LECTURE 3

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

Inference and Proofs (1.6 & 1.7)

Math 4400/6400 Homework #8 solutions. 1. Let P be an odd integer (not necessarily prime). Show that modulo 2,

DISCRETE MATH: LECTURE 6

Readings: Conjecture. Theorem. Rosen Section 1.5

PSU MATH RELAYS LOGIC & SET THEORY 2017

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

Resolution (7A) Young Won Lim 4/21/18

Mat 243 Exam 1 Review

PHI Propositional Logic Lecture 2. Truth Tables

Packet #2: Set Theory & Predicate Calculus. Applied Discrete Mathematics

Lecture 2: Proof Techniques Lecturer: Lale Özkahya

PHIL012. SYMBOLIC LOGIC PROPOSITIONAL LOGIC DERIVATIONS

DISCRETE MATH: FINAL REVIEW

Math 3336: Discrete Mathematics Practice Problems for Exam I

Undergraduate Notes in Mathematics. Arkansas Tech University Department of Mathematics. Introductory Notes in Discrete Mathematics Solution Guide

Deductive and Inductive Logic

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

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

Mobius Functions, Legendre Symbols, and Discriminants

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

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

First order Logic ( Predicate Logic) and Methods of Proof

Tools for reasoning: Logic. Ch. 1: Introduction to Propositional Logic Truth values, truth tables Boolean logic: Implications:

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

Chapter 2: The Logic of Quantified Statements

Propositional Logic. Fall () Propositional Logic Fall / 30

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

1) Let h = John is healthy, w = John is wealthy and s = John is wise Write the following statement is symbolic form

Section 3.1: Direct Proof and Counterexample 1

Section 1.3: Valid and Invalid Arguments

1.1 Statements and Compound Statements

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

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

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

Argument. whenever all the assumptions are true, then the conclusion is true. If today is Wednesday, then yesterday is Tuesday. Today is Wednesday.

DISCRETE MATHEMATICS BA202

STUDY PROBLEMS FOR EXAM I CMSC 203 DISCRETE STRUCTURES. n (n +1)(2n +1), 6. j 2 = 1(1+1)(2 1+1) 6. k (k +1)(2k +1) 6

f(r) = a d n) d + + a0 = 0

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

Analyzing Arguments with Truth Tables

Proofs. Chapter 2 P P Q Q

Math 104B: Number Theory II (Winter 2012)

COMP219: Artificial Intelligence. Lecture 19: Logic for KR

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

Section 1.2: Propositional Logic

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

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

Logical Form 5 Famous Valid Forms. Today s Lecture 1/26/10

Transcription:

400 lecture note #2 [Ch 3, 4] Logic and Proofs (2) 1. Valid and Invalid Arguments ( 2.3, 3.4) 1) Basics An argument is a sequence of statements ( s1, s2,, sn). All statements in an argument, excet for the final one are remises (or assumtions or hyotheses). The final statement is the conclusion. An argument is valid when all remises are true, the conclusion is also true. In fact, the conclusion is inferred or deduced from the truth of the remises. An argument is invalid when all remises are true but the conclusion is false. To determine the validity of an argument, we go by these stes: 1. Construct a truth table for all statements involved. 2. Identify the rows in which all remises are true critical rows. 3. If the conclusion for all critical rows are true, the argument is false. Otherwise the argument is false. q ~r q r Therefore r Exercise: [Section 2.3, Exercise #8,. 61] Use truth table to determine whether the given argument form is valid or invalid. q q r r

2) Modus Ponens and Modus Tollens An argument which consists of two remises and a conclusion is called a syllogism. Two forms of syllogisms: 1. Modus Ponens ( Method of affirmation ) If then q. Therefore q Socrates is a human. Therefore, Socrates is mortal. 2. Modus Tollens ( Method of denying ) If then q. ~q Therefore ~ Zeus is not moral. Therefore, Zeus is not a human. Exercise: [Section 2.3, #26, 27,. 62] For each roblem, write the logical form of each argument, and determine if the argument is valid or invalid. a) If I go to the movies, I won t finish my homework. If I don t finish my homework, I won t do well on the exam tomorrow. If I go to the movies, I won t do well on the exam. b) If this number is larger than 2, then its square is larger than 4. This number is not larger than 2. The square of this number is not larger than 4. 3) Rules of Inference Some general forms of logical inferences (i.e., Rules of Inference). Generalization Secialization Elimination Transitivity Conjunction q (for any statement of q) q q q q q ~q ~ q q q r r q q

Contradiction Proof by Division into Cases ~ c (where c means contradiction) therefore q r q r r Exercise: [Section 2.3, Exercise #41,. 63] Given a set of remises and a conclusion, use the rules of inferences to deduce the conclusion from the remises. Assume all variables are statement variables. a. q r b. s q c. t d. t e. r s f. q 4) Formal Proof A formal roof of a conclusion C, given remises 1, 2,,n consists of a sequence of stes, each of which alies some inference rule to remises or reviously-roven statements (antecedents) to yield a new true statement (the consequent). A roof demonstrates that if the remises are true, then the conclusion is true. Examle: Suose we have the following remises: o It is not sunny and it is cold. o We will swim if only if it is sunny. o If we do not swim, then we will canoe. o If we canoe, then we will be home early. Given these remises, rove the theorem We will be home early using inference rules. Proof: Let us adot the following abbreviations: sunny = It is sunny ; cold = It is cold ; swim = We will swim ; canoe = We will canoe ; early = We will be home early. Then, the remises can be written as: (1) ~sunny cold (2) swim sunny (3) ~swim canoe (4) canoe early Inference stes:

1. ~sunny cold Premise #1. 2. ~sunny Simlification of 1. 3. swim sunny Premise #2. 4. ~swim IFF Truth table on 2,3. 5. ~swim canoe Premise #3. 6. canoe Modus onens on 4,5. 7. canoe early Premise #4. 8. early Modus onens on 6,7. 5) Rules of Inference for Quantifiers Based on the rincile of universal instantiation If some roerty is true of everything in a set, then it is true of any articular thing in the set. o For all real number x, x^2 >= 0. Two forms: 1. Universal Modus Ponens For all x, if P(x), then Q(x). P(a) for a articular a. Therefore, Q(a). 2. Universal Modus Tollens Examle 1: Socrates is human. Therefore, Socrates is moral. Examle 2: For all even integer x, its square is even. A articular k is even. Therefore, k^2 is even. For all x, if P(x), then Q(x). ~Q(a) for a articular a. Therefore, ~P(a). Examle: Zeus is not modal. Therefore, Zeus is not human. Validity of arguments with quantified statements. To say that an argument form is valid means the following: No matter what articular redicates are substituted for the redicate symbols in its remises, if the resulting remise statements are all true, then the conclusion is also true. An argument is called valid if, and only if, its form is valid. HOWEVER, be careful in using either form in a roof Both forms are ONLY roving the instantiated value (a). Exercise: [Section 3.4, Exercise #19,. 143] Rewrite the statement No good cars are chea in the form x, if P(x) then Q(x). Indicate whether each of the following arguments is valid or invalid, and justify your answers. a) No good car is chea. A Rimbaud is a good car. A Rimbaud is not chea. b) No good car is chea. A Simbaru is not chea. A Simbaru is a good car.

2. Methods of Proof ( 4.1-4.7) After an argument is determined to be valid, we can construct a roof. But before we roceed to roofs, we must remember that Validity of an argument is only about the form ( Modus Ponens), and NOT about the content. If 2 = 3, then I ate my hat. I ate my hat. 2 = 3. In constructing a roof, we aly reasoning based on the truth/falsity of the domain of the argument. 1) Some terminology Axiom -- a logical sentence/statement. Theorem -- a roosition that has been roved to be true. "For all real number x, x 2 >= 0". Lemma -- a theorem that is not too interesting by itself but useful in roving other theorems. "For all real number x, x 2 >= x". Corollary -- a theorem which follows from another theorem quickly. "For all real number x, x 2 + 1 >= 0". 2) Various roof techniques Examle: To rove a theorem "If P(x1,..,xn), then Q (x1,..,xn)", where x1 D1,.., xn Dn. a. Direct roof and counter examle o Show the theorem is true for all values of x1 D1,.., xn Dn, or show a counterexamle (x1,..,xn) in which the theorem is false. o Examle: Proosition: If n is any even integer, then (-1) n = 1. Proof: Suose n is any even integer. Then n = 2k for some integer k. Hence, by laws of exonents of algebra, (-1) n = (-1) 2k = ((-1) 2 ) k = 1 k = 1. Therefore, the roosition is true. b. Proof by contradiction o To rove the theorem (to be true), show that assuming the negation of the theorem leads to a contradiction. o Stes: 1. Start with (P(x1,..,xn) Q (x1,..,xn)), which is equivalent to P(x1,..,xn) Q (x1,..,xn). 2. Then show there are no x1,..,xn which make that negated theorem true. o Examle1: Proosition: For all integers n, if n 2 is even, then n is even. Proof: Suose not. That is, [Negation of the theorem] suose there exists an integer n such that n 2 is even and n is odd. Since n is odd, n = 2k + 1 for some integer k. Then,

n 2 = (2k + 1) 2 = (2k + 1)(2k + 1) = 4k 2 + 4k + 1 = 2(2k 2 + 2k) + 1 by the laws of algebra. Let m = 2k 2 + 2k. Then, m is an integer because 2 and k are integers, and sums and roducts of integers are integers. It follows by substitution that n 2 = 2m + 1 for an integer m, and thus n 2 is odd. Thus contradiction. [Hence, the suosition is false and the theorem is true.] o Examle2: Proosition: Prove that 2 1/2 is irrational. Proof: Suose not. That is, [Negation of the theorem] suose 2 1/2 is rational. Then 2 1/2 = /q for some integer and q with q 0 and gcd(,q) = 1. Since 2 1/2 = /q, we know (/q) 2 = 2 (i.e., square root of 2, to the ower of 2). Then we get (/q) 2 = 2 /q 2 = 2, and 2 = 2* q 2. So 2 is even. Let = 2k for some integer k. So 2 = (2k) 2 = 4k 2, which is equal to 2* q 2. Dividing both sides by 2, we get 2k 2 = q 2. Since k 2 is an integer, q 2 is even, therefore q is even. But then and q have a common divisor, namely 2, so we have a contradiction. c. Proof by contraosition o Prove the theorem If P(x1,..,xn), then Q (x1,..,xn) directly by showing (to be true), roving its contraositive, If ~ Q (x1,..,xn), then ~P(x1,..,xn). o Examle: Proosition: For all integers n, if n 2 is even, then n is even. Proof: We show if n is odd, n 2 is odd. Suose n is any odd integer. By definition of odd, n = 2k + 1 for some integer k. By substation and algebra, n 2 = (2k + 1) 2 = (2k + 1)(2k + 1) = 4k 2 + 4k + 1 = 2(2k 2 + 2k) + 1. Let m = 2k 2 + 2k. Then, m is an integer because 2 and k are integers, and sums and roducts of integers are integers. It follows by substitution that n 2 = 2m + 1 for an integer m, and thus n 2 is odd. d. (Dis)roof by counterexamle 4) Exercises o Prove a universally quantified theorem is false by giving a counterexamle. o Examle: Proosition: Every ositive integer is the sum of the squares of two integers. Proof: The theorem is false. For the ositive integer 3, there is no way 3 can be exressed as the sum of the squares of two integers. 3 = x 2 + y 2 => then both x 2 < 3 and y 2 < 3 => x = 0 or 1 and y = 0 or 1. But for either case, x 2 + y 2 < 3. a. Give a roof by contradiction of the following statement: For all real numbers x and y, if x + y >= 2, then either x >= 1 or y >= 1.

b. [Section 4.6, Exercise #18,. 206] Fill in the blanks in the following roof by contraosition that for all integers n, if 5 does not divide n 2 then 5 does not divide n. Proof (by contraosition): [The contraositive is: For all integers n, if 5 n then 5 n 2.] Suose n is any integer such that (a). [We must show that (b).] By definition of divisibility, n = (c) for some integer k. By substitution, n 2 = (d) = 5(5k 2 ). But 5k 2 is an integer because it is a roduct of integers. Hence n 2 = 5 (an integer), and so (e) [as was to be shown]. c. [Section 4.1, Exercise #47,. 162] Determine whether the statement is true or false. Justify your answer with a roof or a counterexamle. If a sum of two integers is even, then one of the summands is even.