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

Similar documents
Rules of Inference. Arguments and Validity

CS 2336 Discrete Mathematics

Rules Build Arguments Rules Building Arguments

Introduction Logic Inference. Discrete Mathematics Andrei Bulatov

Discrete Structures of Computer Science Propositional Logic III Rules of Inference

Readings: Conjecture. Theorem. Rosen Section 1.5

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

software design & management Gachon University Chulyun Kim

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

Intro to Logic and Proofs

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

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

Sec$on Summary. Valid Arguments Inference Rules for Propositional Logic. Inference Rules for Quantified Statements. Building Arguments

ECOM Discrete Mathematics

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

Review: Potential stumbling blocks

CSCI-2200 FOUNDATIONS OF COMPUTER SCIENCE

Agenda. Introduction to Proofs Dr Patrick Chan School of Computer Science and Engineering South China University of Technology

DISCRETE MATHEMATICS BA202

Sec$on Summary. Valid Arguments Inference Rules for Propositional Logic. Inference Rules for Quantified Statements. Building Arguments

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

Why Learning Logic? Logic. Propositional Logic. Compound Propositions

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

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

PROPOSITIONAL CALCULUS

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

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

ICS141: Discrete Mathematics for Computer Science I

CHAPTER 1 - LOGIC OF COMPOUND STATEMENTS

Predicate Logic. Andreas Klappenecker

1 The Foundation: Logic and Proofs

Logic and Proof. Aiichiro Nakano

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.

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

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

Discrete Structures for Computer Science

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

1 The Foundation: Logic and Proofs

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

The Logic of Compound Statements cont.

CSE 20 DISCRETE MATH. Fall

Announcements. Exam 1 Review

Mathacle. PSet ---- Algebra, Logic. Level Number Name: Date: I. BASICS OF PROPOSITIONAL LOGIC

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

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

CSE 20 DISCRETE MATH. Winter

Do not start until you are given the green signal

Chapter 4, Logic using Propositional Calculus Handout

Reexam in Discrete Mathematics

With Question/Answer Animations. Chapter 1, Part III: Proofs

PHI Propositional Logic Lecture 2. Truth Tables

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

Manual of Logical Style

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

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

Analyzing Arguments with Truth Tables

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

Knowledge Representation. Propositional logic

A. Propositional Logic

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

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

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

Discrete Mathematics

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

Section 1.2: Propositional Logic

WUCT121. Discrete Mathematics. Logic. Tutorial Exercises

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

CSC 125 :: Final Exam May 3 & 5, 2010

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

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

Inference and Proofs (1.6 & 1.7)

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

HW1 graded review form? HW2 released CSE 20 DISCRETE MATH. Fall

Logic, Sets, and Proofs

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

Anna University, Chennai, November/December 2012

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

Discrete Mathematics. Propositional & Predicate Logic. Lecture Notes

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

Knowledge Representation. Propositional logic.

Full file at Chapter 1

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

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

EECS 1028 M: Discrete Mathematics for Engineers

Unit I LOGIC AND PROOFS. B. Thilaka Applied Mathematics

Predicate Logic & Quantification

Math 3336: Discrete Mathematics Practice Problems for Exam I

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

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

DISCRETE MATH: LECTURE 3

Advanced Topics in LP and FP

THE LOGIC OF COMPOUND STATEMENTS

CSE 20: Discrete Mathematics

Packet #1: Logic & Proofs. Applied Discrete Mathematics

A Quick Lesson on Negation

MAT 243 Test 1 SOLUTIONS, FORM A

CS0441 Discrete Structures Recitation 3. Xiang Xiao

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

Where are my glasses?

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

Transcription:

Methods of Proof CSE0 Discrete Computational Structures Lecture 4 When is a mathematical argument correct? What methods can be used to construct mathematical arguments? Important in many computer science applications Verify a computer program is correct To establish a OS is secure Making inferences n AI Show system specs are consistent... 1 1.6 Rules of Inference Proof: valid arguments that establish the truth of a mathematical statement Argument: a sequence of statements that end with a conclusion Valid: the conclusion or final statement of the argument must follow the truth of proceeding statements or of the argument Argument and inference An argument is valid if and only if it is impossible for all the s to be true and the conclusion to be false Rules of inference: use them to deduce (construct) new statements from statements that we already have Basic tools for establishing the truth of statements 4 1

s 1/8/015 Valid arguments in propositional logic Consider the following arguments involving propositions If you have a correct password, then you can log onto the network You have a correct password therefore, You can log onto the network p p q conclusion 5 Valid arguments (( p ) p) is tautology When ((p q) p) is true, both p q and p are true, and thus q must be also be true This form of argument is true because when the s are true, the conclusion must be true 6 p: You have access to the network q: You can change your grade p q: If you have access to the network, then you can change your grade If you have access to the network, then you can change your grade (p q) You have access to the network (p) so You can change your grade (q) If you have access to the network, then you can change your grade (p q) You have access to the network (p) so You can change your grade (q) Valid arguments But the conclusion is not true Argument form: a sequence of compound propositions involving propositional variables 7 8

Rules of inference for propositional logic Can always use truth table to show an argument form is valid For an argument form with 10 propositional variables, the truth table requires 10 rows The tautology (( p ) p) is the rule of inference called modus ponens (mode that affirms), or the law of detachment p p q 9 If both statements If it snows today, then we will go skiing and It is snowing today are true. By modus ponens, it follows the conclusion We will go skiing is true 10 If then ( ) ( ). We know that 9 Consequent ly,( ) ( ) 4 Is it a valid argument? Is conclusion true? The s of the argument are p q and p, and q is the conclusion This argument is valid by using modus ponens But one of the s is false, consequently we cannot conclude the conclusion is true Furthermore, the conclusion is not true 11 1

It is not sunny this afternoon and it is colder than yesterday We will go swimming only if it is sunny If we do not go swimming, then we will take a canoe trip If we take a canoe trip, then we will be home by sunset r s s t p r p Can we conclude We will be home by sunset? t 1) p ) p ) r p 4) r 5) r s 6) s 7) s t 8) t simplication using (1) modus tollens using () and () modus ponens using (4) modus ponens using (6) and (7) 1 14 If you send me an email message, then I will finish my program p If you do not send me an email message, then I will go to sleep early p r If I go to sleep early, then I will wake up feeling refreshed r s 1) p ) q p contrapositive of (1) ) p r 4) q r hypotheica l syllogism using () and () 5) r s 6) q s hypothetic al syllogism using (4) and (5) Resolution Based on the tautology p ) ( p r)) ( q Resolvent: q r Let q=r, we have ( p ) ( p ) Let r=f, we have ( p ) p Important in logic programming, AI, etc. (( r) If I do not finish writing the program, then I will wake up feeling refreshed q s 15 16 4

Jasmine is skiing or it is not snowing It is snowing or Bart is playing hockey imply Jasmine is skiing or Bart is playing hockey q p p r q r To construct proofs using resolution as the only rule of inference, the hypotheses and the conclusion must be expressed as clauses Clause: a disjunction of variables or negations of these variables Show ( p ) r and r s imply p s ( p ) r ( p r) ( q r) r s r s 17 18 Fallacies Inaccurate arguments (( p ) ) p is not a tautology as it is false when p is false and q is true If you do every problem in this book, then you will learn discrete mathematics. You learned discrete mathematics Therefore you did every problem in this book ( p ) Inference with quantified statements Instantiation: c is one particular member of the domain Generalization: for an arbitrary member c 19 1 5

Everyone in this discrete mathematics has taken a course in computer science and Marla is a student in this class imply Marla has taken a course in computer science 1. x( d( c( ). d( Marl c( Marl. d( Marl 4. c( Marl universal instantiat ion from (1) modus ponens from () and () A student in this class has not read the book, and Everyone in this class passed the first exam imply Someone who passed the first exam has not read the book 1. x( c( ). c(. c( 4. x( c( 5. c( 6. 7. b( 8. 9. x( ) existentia l instantiat ion from (1) simpliciation from () universal instantiat ion from (4) modus ponens from () and (5) simplication from () conjunctio n of (6) and (7) existentia l generalization form (8) Universal modus ponens Use universal instantiation and modus ponens to derive new rule x( ( ), where a is a particular element in the domain q( Universal modus tollens Combine universal modus tollens and universal instantiation x( ( ) q(, where a is a particular element in the domain Assume For all positive integers n, if n is greater than 4, then n is less than n is true. Show 100 < 100 4 5 6