CS 220: Discrete Structures and their Applications

Slides:



Advertisements
Similar presentations
Discrete Mathematics University of Jazeera College of Information Technology & Design Khulood Ghazal Mathematical Reasoning Methods of Proof.
Advertisements

Rules of Inferences Section 1.5. Definitions Argument: is a sequence of propositions (premises) that end with a proposition called conclusion. Valid Argument:
1 Section 1.5 Rules of Inference. 2 Definitions Theorem: a statement that can be shown to be true Proof: demonstration of truth of theorem –consists of.
The Foundations: Logic and Proofs
Chapter 1: The Foundations: Logic and Proofs 1.1 Propositional Logic 1.2 Propositional Equivalences 1.3 Predicates and Quantifiers 1.4 Nested Quantifiers.
Chapter 3. Mathematical Reasoning 3.1 Methods of proof A theorem is a statement that can be shown to be true. A proof is to demonstrate that a theorem.
CSE115/ENGR160 Discrete Mathematics 01/26/12 Ming-Hsuan Yang UC Merced 1.
Valid Arguments An argument is a sequence of propositions. All but the final proposition are called premises. The last statement is the conclusion. The.
CS128 – Discrete Mathematics for Computer Science
Syllabus Every Week: 2 Hourly Exams +Final - as noted on Syllabus
Proof by Deduction. Deductions and Formal Proofs A deduction is a sequence of logic statements, each of which is known or assumed to be true A formal.
Fall 2002CMSC Discrete Structures1 Let’s proceed to… Mathematical Reasoning.
2.5 Verifying Arguments Write arguments symbolically. Determine when arguments are valid or invalid. Recognize form of standard arguments. Recognize common.
CSCI 115 Chapter 2 Logic. CSCI 115 §2.1 Propositions and Logical Operations.
March 3, 2015Applied Discrete Mathematics Week 5: Mathematical Reasoning 1Arguments Just like a rule of inference, an argument consists of one or more.
Discrete Mathematics CS 2610 August 24, Agenda Last class Introduction to predicates and quantifiers This class Nested quantifiers Proofs.
Rules of Inference Section 1.6. Arguments in Propositional Logic A argument in propositional logic is a sequence of propositions. All but the final proposition.
Fall 2008/2009 I. Arwa Linjawi & I. Asma’a Ashenkity 11 The Foundations: Logic and Proofs Rules of inference.
Lecture 1.3: Predicate Logic, and Rules of Inference* CS 250, Discrete Structures, Fall 2011 Nitesh Saxena *Adopted from previous lectures by Cinda Heeren.
Foundations of Discrete Mathematics Chapter 1 By Dr. Dalia M. Gil, Ph.D.
CT214 – Logical Foundations of Computing Darren Doherty Rm. 311 Dept. of Information Technology NUI Galway
Sound Arguments and Derivations. Topics Sound Arguments Derivations Proofs –Inference rules –Deduction.
Chapter 1 Logic and proofs
Making Inferences with Propositions (Rules of Inference)
2. The Logic of Compound Statements Summary
Advanced Algorithms Analysis and Design
Applied Discrete Mathematics Week 5: Mathematical Reasoning
Lecture Notes 8 CS1502.
CSE15 Discrete Mathematics 01/30/17
Lecture 1.4: Rules of Inference
Knowledge Representation and Reasoning
Discrete Mathematics Logic.
Formal Logic CSC 333.
Chapter 1 Logic and Proofs Homework 1 Two merchants publish new marketing campaign to attract more customers. The first merchant launches a motto “Good.
Applied Discrete Mathematics Week 5: Mathematical Reasoning
COMP 1380 Discrete Structures I Thompson Rivers University
Methods of proof Section 1.6 & 1.7 Wednesday, June 20, 2018
Natural Deduction: Using simple valid argument forms –as demonstrated by truth-tables—as rules of inference. A rule of inference is a rule stating that.
Proof Techniques.
Rules of Inference Section 1.6.
Module #10: Proof Strategies
CS100: Discrete structures
7.1 Rules of Implication I Natural Deduction is a method for deriving the conclusion of valid arguments expressed in the symbolism of propositional logic.
Logical Inferences: A set of premises accompanied by a suggested conclusion regardless of whether or not the conclusion is a logical consequence of the.
CS201: Data Structures and Discrete Mathematics I
Mathematical Reasoning
Chapter 3 Introduction to Logic 2012 Pearson Education, Inc.
3.5 Symbolic Arguments.
Methods of Proof. Methods of Proof Definitions A theorem is a valid logical assertion which can be proved using Axioms: statements which are given.
Deductive Reasoning: Propositional Logic
CS 270 Math Foundations of CS
CMSC Discrete Structures
Applied Discrete Mathematics Week 1: Logic
CS 416 Artificial Intelligence
Back to “Serious” Topics…
Inference Rules: Tautologies
The Method of Deduction
Malini Sen WESTERN LOGIC Presented by Assistant Professor
Natural Deduction Hurley, Logic 7.1.
Discrete Mathematics Logic.
Module #10: Proof Strategies
Foundations of Discrete Mathematics
COMP 1380 Discrete Structures I Thompson Rivers University
Lecture 1.4: Rules of Inference
Valid and Invalid Arguments
Mathematical Reasoning
CS201: Data Structures and Discrete Mathematics I
The Foundations: Logic and Proofs
Conjunctive addition states that if we know that each of two statements is true, we can join them with the conjunction connective and the resulting conjunction.
Rules of inference Section 1.5 Monday, December 02, 2019
Presentation transcript:

CS 220: Discrete Structures and their Applications Logical inference Section 1.11-1.13 in zybooks

Valid arguments in propositional logic Consider the following argument: You need a current password to access department machines You have a current password Therefore: You can access department machines

Valid arguments in propositional logic We’ll write it in a more formal way: You need a current password to access department machines You have a current password ∴You can access department machines

Valid arguments in propositional logic This is an example of a logical argument that has the form: p → q p ∴q This is an inference rule is called Modus ponens

Valid arguments in propositional logic And more generally: p1 p2 .... pn ∴ c arguments or hypotheses An argument is valid whenever ( p1  p2  ...  pn ) → c is a tautology. conclusion

Verifying argument validity using truth tables Let’s verify the validity of modus ponens: p → q p ∴ q p q p → q T F

Verifying argument validity using truth tables Let’s verify the validity of modus ponens: p → q p ∴ q p q p → q T F

Verifying argument validity using truth tables Consider the following argument: p → q p  q ∴ q p q p  q p → q T F

Verifying argument validity using truth tables Consider the following argument: p → q p  q ∴ q The argument is valid because whenever the hypotheses are true, the conclusion is true as well. p q p  q p → q T F

Verifying argument validity using truth tables Consider the following argument: ¬p p → q ∴ ¬q Is it valid? p q ¬q ¬p p → q T F

Verifying argument validity using truth tables Consider the following argument: ¬p p → q ∴ ¬q Is it valid? p q ¬q ¬p p → q T F

Example Let’s prove the validity of the following argument using inference rules: If it is raining or windy, the game will be cancelled. The game will not be cancelled. Therefore, it is not windy.

Example In propositional logic: w: It is windy r: It is raining c: The game will be cancelled (r  w) → c ¬c ∴ ¬w

Example In propositional logic: w: It is windy r: It is raining c: The game will be cancelled (r  w) → c ¬c ∴ ¬w Proof: 1. (r  w) → c Hypothesis 2. ¬c Hypothesis 3. ¬(r  w) Modus tollens, 1, 2 4. ¬r  ¬w De Morgan's law, 3 5. ¬w Simplification, 4 Modus tollens ¬q p → q ∴ ¬p

Inference rules p p → q Modus ponens ∴ q ¬q p → q Modus tollens ∴ ¬p p Addition ∴ p  q p  q Simplification ∴ p q Conjunction ∴ p  q p → q q → r Hypothetical syllogism ∴ p → r p  q ¬p Disjunctive syllogism ∴ q ¬p  r Resolution ∴ q  r

Validity of inference rules We can prove the validity of inference rules as well. Consider Modus Tollens for example: 1. p → q Hypothesis 2. ¬p  q Conditional expressed with with disjunction 3. ¬q Hypothesis 4. ¬p Disjunctive syllogism, 2, 3