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

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

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

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

CSE 20 DISCRETE MATH. Fall

Predicate Logic. Andreas Klappenecker

MCS-236: Graph Theory Handout #A4 San Skulrattanakulchai Gustavus Adolphus College Sep 15, Methods of Proof

The following techniques for methods of proofs are discussed in our text: - Vacuous proof - Trivial proof

CSE 20 DISCRETE MATH. Winter

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

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

Your quiz in recitation on Tuesday will cover 3.1: Arguments and inference. Your also have an online quiz, covering 3.1, due by 11:59 p.m., Tuesday.

Show Your Work! Point values are in square brackets. There are 35 points possible. Tables of tautologies and contradictions are on the last page.

The Process of Mathematical Proof

Discrete Mathematics Exam File Spring Exam #1

The proposition p is called the hypothesis or antecedent. The proposition q is called the conclusion or consequence.

Proof by Contradiction

Chapter 1 Elementary Logic

At least one of us is a knave. What are A and B?

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

CSE 20 DISCRETE MATH WINTER

CSE 20 DISCRETE MATH SPRING

WUCT121. Discrete Mathematics. Logic. Tutorial Exercises

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

CSCE 222 Discrete Structures for Computing. Review for Exam 1. Dr. Hyunyoung Lee !!!

Supplementary Logic Notes CSE 321 Winter 2009

CITS2211 Discrete Structures Proofs

Mathematical Reasoning Rules of Inference & Mathematical Induction. 1. Assign propositional variables to the component propositional argument.

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

Inference and Proofs (1.6 & 1.7)

Foundations of Mathematics MATH 220 FALL 2017 Lecture Notes

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

Discrete Mathematics & Mathematical Reasoning Predicates, Quantifiers and Proof Techniques

Announcements. Exam 1 Review

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

Readings: Conjecture. Theorem. Rosen Section 1.5

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

Chapter 2 Section 2.1: Proofs Proof Techniques. CS 130 Discrete Structures

A Guide to Proof-Writing

DISCRETE MATH: FINAL REVIEW

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

Intro to Logic and Proofs

Homework 3: Solutions

Logic, Sets, and Proofs

The Foundations: Logic and Proofs. Chapter 1, Part III: Proofs

Logic and Proof. Aiichiro Nakano

Examples: P: it is not the case that P. P Q: P or Q P Q: P implies Q (if P then Q) Typical formula:

CMPSCI 250: Introduction to Computation. Lecture 11: Proof Techniques David Mix Barrington 5 March 2013

Proofs. Chapter 2 P P Q Q

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

9/5/17. Fermat s last theorem. CS 220: Discrete Structures and their Applications. Proofs sections in zybooks. Proofs.

x P(x) x P(x) CSE 311: Foundations of Computing announcements last time: quantifiers, review: logical Inference Fall 2013 Lecture 7: Proofs

What is a proof? Proofing as a social process, a communication art.

Proofs. Chapter 2 P P Q Q

Lecture 5 : Proofs DRAFT

Math 3336: Discrete Mathematics Practice Problems for Exam I

cse 311: foundations of computing Fall 2015 Lecture 6: Predicate Logic, Logical Inference

First order Logic ( Predicate Logic) and Methods of Proof

Some Review Problems for Exam 1: Solutions

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

Math 55 Homework 2 solutions

Proof Techniques (Review of Math 271)

Solutions to Assignment 1

Propositional Logic: Syntax

Logic. Propositional Logic: Syntax. Wffs

A. Propositional Logic

Chapter 2: The Logic of Quantified Statements

1. Propositions: Contrapositives and Converses

Section 1.2: Propositional Logic

Gödel s Incompleteness Theorems by Sally Cockburn (2016)

Logic and Proofs. (A brief summary)

Foundations of Discrete Mathematics

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

Chapter 3. The Logic of Quantified Statements

1.1 Language and Logic

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

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.

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

1.1 Statements and Compound Statements

Elementary Linear Algebra, Second Edition, by Spence, Insel, and Friedberg. ISBN Pearson Education, Inc., Upper Saddle River, NJ.

Basic Logic and Proof Techniques

Meaning of Proof Methods of Proof

Quiz 1. Directions: Show all of your work and justify all of your answers.

Today. Proof using contrapositive. Compound Propositions. Manipulating Propositions. Tautology

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

Computational Logic. Recall of First-Order Logic. Damiano Zanardini

Manual of Logical Style (fresh version 2018)

EECS 1028 M: Discrete Mathematics for Engineers

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

(e) Commutativity: a b = b a. (f) Distributivity of times over plus: a (b + c) = a b + a c and (b + c) a = b a + c a.

Discrete Mathematical Structures: Theory and Applications

The Logic of Compound Statements cont.

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

1. Consider the conditional E = p q r. Use de Morgan s laws to write simplified versions of the following : The negation of E : 5 points

MATH10040: Numbers and Functions Homework 1: Solutions

COT 2104 Homework Assignment 1 (Answers)

Midterm: Sample 3. ECS20 (Fall 2017) 1) Using truth tables, establish for each of the two propositions below if it is a tautology, a contradiction

CSE 1400 Applied Discrete Mathematics Proofs

1 The Foundation: Logic and Proofs

MAT 243 Test 1 SOLUTIONS, FORM A

and problem sheet 1

Transcription:

Logic and Proof

Argument An argument is a sequence of statements. All statements but the first one are called assumptions or hypothesis. The final statement is called the conclusion. An argument is valid if: whenever all the assumptions are true, then the conclusion is true. If today is Wednesday, then yesterday is Tuesday. Today is Wednesday. Yesterday is Tuesday.

Modus Ponens If p then q. p q p q p q p q Modus ponens is Latin meaning method of affirming.

Modus Tollens If p then q. ~q ~p p q p q ~q ~p Modus tollens is Latin meaning method of denying.

Equivalence A student is trying to prove that propositions P, Q, and R are all true. She proceeds as follows. First, she proves three facts: P implies Q Q implies R R implies P. Then she concludes, ``Thus P, Q, and R are all true.'' Proposed argument: ( P Q), ( Q R), ( R P) P Q R Is it valid?

Valid Argument? Conclusion true whenever all assumptions are true. assumptions conclusion To prove an argument is not valid, we just need to find a counterexample.

Valid Arguments? If p then q. q p If you are a fish, then you drink water. You drink water. You are a fish. If p then q. ~p ~q If you are a fish, then you drink water. You are not a fish. You do not drink water.

Exercises

More Exercises Valid argument True conclusion True conclusion Valid argument

Contradiction If you can show that the assumption that the statement p is false leads logically to a contradiction, then you can conclude that p is true. You are working as a clerk. If you have won Mark 6, then you would not work as a clerk. You have not won Mark 6.

Arguments with Quantified Statements Universal instantiation: Universal modus ponens: Universal modus tollens:

Universal Generalization valid rule A Rc () A xr. ( x) providing c is independent of A e.g. given any number x, 2x is an even number => for all x, 2x is an even number.

Not Valid z [Q(z) P(z)] [ x.q(x) y.p(y)] Proof: Give countermodel, where z [Q(z) P(z)] is true, but x.q(x) y.p(y) isfalse. Find a domain, and a predicate. In this example, let domain be integers, Q(z) be true if z is an even number, i.e. Q(z)=even(z) P(z) be true if z is an odd number, i.e. P(z)=odd(z)

Validity z [Q(z) P(z)] [ x.q(x) y.p(y)] Proof strategy: We assume z [Q(z) P(z)] and prove x.q(x) y.p(y)

Proof and Logic We prove mathematical statement by using logic. P Q, Q R, R P P Q R not valid To prove something is true, we need to assume some axioms! This is invented by Euclid in 300 BC, who begins with 5 assumptions about geometry, and derive many theorems as logical consequences. http://en.wikipedia.org/wiki/euclidean_geometry

Proofs

Proving an Implication Goal: If P, then Q. (P implies Q) Method 1: Write assume P, then show that Q logically follows. Claim: If, then

Proving an Implication Goal: If P, then Q. (P implies Q) Method 1: Write assume P, then show that Q logically follows. Claim: If r is irrational, then r is irrational. How to begin with? What if I prove If r is rational, then r is rational, is it equivalent? Yes, this is equivalent; proving if P, then Q is equivalent to proving if not Q, then not P.

Proving an Implication Goal: If P, then Q. (P implies Q) Method 2: Prove the contrapositive, i.e. prove not Q implies not P. Claim: If r is irrational, then r is irrational.

Proving an if and only if Goal: Prove that two statements P and Q are logically equivalent, that is, one holds if and only if the other holds. Example: An integer is a multiple of 3 if and only if the sum of its digits is a multiple of 3. Method 1: Prove P implies Q and Q implies P. Method 1 : Prove P implies Q and not P implies not Q. Method 2: Construct a chain of if and only if statement.

Proof the Contrapositive Statement: If m 2 is even, then m is even Try to prove directly.

Proof the Contrapositive Statement: Contrapositive: If m 2 is even, then m is even If m is odd, then m 2 is odd. Proof (the contrapositive):

Proof by Contradiction P P F To prove P, you prove that not P would lead to ridiculous result, and so P must be true. You are working as a clerk. If you have won Mark 6, then you would not work as a clerk. You have not won Mark 6.

Proof by Contradiction Theorem: 2 is irrational. Proof (by contradiction):

Proof by Contradiction Theorem: 2 is irrational. Proof (by contradiction): 2 Suppose was rational. Choose m, n integers without common prime factors (always possible) such that 2 m n Show that m and n are both even, thus having a common factor 2, a contradiction!

Proof by Contradiction Theorem: 2 is irrational. Proof (by contradiction): Want to prove both m and n are even.

Proof by Contradiction Theorem: 2 is irrational. Proof (by contradiction): Want to prove both m and n are even. 2 m n 2 n m 2 2 2n m so m is even. so can assume m 4l 2 2 2n 4l 2 2 2 n 2l 2 so n is even. m 2l

Proof by Cases e.g. want to prove a nonzero number always has a positive square. x is positive or x is negative if x is positive, then x 2 > 0. if x is negative, then x 2 > 0. x 2 > 0.

Rational vs Irrational Question: If a and b are irrational, can a b be rational?? We know that 2 is irrational, what about 2 2? Case 1: 2 2 is rational Case 2: 2 2 is irrational So in either case there are a,b irrational and a b be rational. We don t need to know which case is true!

Extra

Power and Limits of Logic Good news: Gödel's Completeness Theorem Only need to know a few axioms & rules, to prove all validities. That is, starting from a few propositional & simple predicate validities, every valid assertion can be proved using just universal generalization and modus ponens repeatedly! modus ponens

Power and Limits of Logic Thm 2, bad news: Given a set of axioms, there is no procedure that decides whether quantified assertions are valid. (unlike propositional formulas).

Power and Limits of Logic Gödel's Incompleteness Theorem for Arithmetic Thm 3, worse news: For any reasonable theory that proves basic arithmetic truth, an arithmetic statement that is true, but not provable in the theory, can be constructed. No hope to find a complete and consistent set of axioms! An excellent project topic:

Application: Logic Programming

Other Applications Digital logic: Database system: Making queries Data mining