EE1J2 – Discrete Maths Lecture 4 Analysis of arguments Logical consequence Rules of deduction Rules of equivalence Formal proof of arguments See: Anderson,

Slides:



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

Introduction to Proofs
Introduction to Theorem Proving
1 Introduction to Abstract Mathematics Valid AND Invalid Arguments 2.3 Instructor: Hayk Melikya
Deduction In addition to being able to represent facts, or real- world statements, as formulas, we want to be able to manipulate facts, e.g., derive new.
Logic Concepts Lecture Module 11.
CS128 – Discrete Mathematics for Computer Science
EE1J2 - Slide 1 EE1J2 – Discrete Maths Lecture 3 Syntax of Propositional Logic Parse trees revised Construction of parse trees Semantics of propositional.
Syllabus Every Week: 2 Hourly Exams +Final - as noted on Syllabus
TR1413: Discrete Mathematics For Computer Science Lecture 3: Formal approach to propositional logic.
So far we have learned about:
From Chapter 4 Formal Specification using Z David Lightfoot
TR1413: Discrete Mathematics For Computer Science Lecture 4: System L.
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.
Introduction to Logic Logical Form: general rules
EE1J2 – Discrete Maths Lecture 5 Analysis of arguments (continued) More example proofs Formalisation of arguments in natural language Proof by contradiction.
Discrete Mathematics and its Applications
Fall 2002CMSC Discrete Structures1 Let’s proceed to… Mathematical Reasoning.
Mathematical Induction Assume that we are given an infinite supply of stamps of two different denominations, 3 cents and and 5 cents. Prove using mathematical.
WARM UP EXERCSE Consider the right triangle below with M the midpoint of the hypotenuse. Is MA = MC? Why or why not? MC B A 1.
Methods of Proof & Proof Strategies
A Brief Summary for Exam 1 Subject Topics Propositional Logic (sections 1.1, 1.2) –Propositions Statement, Truth value, Proposition, Propositional symbol,
MATH 224 – Discrete Mathematics
Chap. 2 Fundamentals of Logic. Proposition Proposition (or statement): an declarative sentence that is either true or false, but not both. e.g. –Margret.
March 3, 2015Applied Discrete Mathematics Week 5: Mathematical Reasoning 1Arguments Just like a rule of inference, an argument consists of one or more.
F22H1 Logic and Proof Week 6 Reasoning. How can we show that this is a tautology (section 11.2): The hard way: “logical calculation” The “easy” way: “reasoning”
10/17/2015 Prepared by Dr.Saad Alabbad1 CS100 : Discrete Structures Proof Techniques(1) Dr.Saad Alabbad Department of Computer Science
1 Sections 1.5 & 3.1 Methods of Proof / Proof Strategy.
Discrete Structures (DS)
Propositional Logic Dr. Rogelio Dávila Pérez Profesor-Investigador División de Posgrado Universidad Autónoma Guadalajara
2.3Logical Implication: Rules of Inference From the notion of a valid argument, we begin a formal study of what we shall mean by an argument and when such.
1 CMSC 250 Discrete Structures CMSC 250 Lecture 1.
SSK3003 DISCRETE STRUCTURES
Chapter 3: Introduction to Logic. Logic Main goal: use logic to analyze arguments (claims) to see if they are valid or invalid. This is useful for math.
1 Introduction to Abstract Mathematics Expressions (Propositional formulas or forms) Instructor: Hayk Melikya
Lecture 9 Conditional Statements CSCI – 1900 Mathematics for Computer Science Fall 2014 Bill Pine.
CS6133 Software Specification and Verification
1 Discrete Structures – CNS2300 Text Discrete Mathematics and Its Applications Kenneth H. Rosen (5 th Edition) Chapter 3 The Foundations: Logic and Proof,
Conditional Statements – Page 1CSCI 1900 – Discrete Structures CSCI 1900 Discrete Structures Conditional Statements Reading: Kolman, Section 2.2.
CSci 2011 Discrete Mathematics Lecture 4 CSci 2011.
Symbolic Logic The Following slide were written using materials from the Book: The Following slide were written using materials from the Book: Discrete.
CS104:Discrete Structures Chapter 2: Proof Techniques.
CSE 311: Foundations of Computing Fall 2013 Lecture 8: Proofs and Set theory.
ARTIFICIAL INTELLIGENCE Lecture 2 Propositional Calculus.
1 Introduction to Abstract Mathematics Proof Methods , , ~, ,  Instructor: Hayk Melikya Purpose of Section:Most theorems in mathematics.
Foundations of Discrete Mathematics Chapter 1 By Dr. Dalia M. Gil, Ph.D.
Discrete Mathematical Structures: Theory and Applications 1 Logic: Learning Objectives  Learn about statements (propositions)  Learn how to use logical.
Logic and Truth Tables Winter 2012 COMP 1380 Discrete Structures I Computing Science Thompson Rivers University.
Chapter 1 Logic and proofs
2. The Logic of Compound Statements Summary
Advanced Algorithms Analysis and Design
Discrete Mathematics Logic.
COMP 1380 Discrete Structures I Thompson Rivers University
Methods of proof Section 1.6 & 1.7 Wednesday, June 20, 2018
Proof Techniques.
Information Technology Department
Propositional Equivalence (§1.2)
CS201: Data Structures and Discrete Mathematics I
Mathematical Reasoning
CS 270 Math Foundations of CS
CS 220: Discrete Structures and their Applications
Applied Discrete Mathematics Week 1: Logic
The Method of Deduction
Computer Security: Art and Science, 2nd Edition
Discrete Mathematics Logic.
Foundations of Discrete Mathematics
COMP 1380 Discrete Structures I Thompson Rivers University
Logic Logic is a discipline that studies the principles and methods used to construct valid arguments. An argument is a related sequence of statements.
Mathematical Reasoning
CS201: Data Structures and Discrete Mathematics I
Presentation transcript:

EE1J2 – Discrete Maths Lecture 4 Analysis of arguments Logical consequence Rules of deduction Rules of equivalence Formal proof of arguments See: Anderson, “Discrete Mathematics with Combinatorics” (referred to in lecture 1)

Logical Consequence Let  be a set of formulae and f a formula f is a logical consequence of  if for any assignment of truth values to atomic propositions for which all of the members of  true, f is also true If f is a logical consequence of , write  ⊨ f Note: this is consistent with ⊨ f when f is a tautology This is important! It is the basis of formalisation of arguments

Arguments An argument consists of: A set  of formulae, called the assumptions or hypotheses A formula f, called the conclusion If  ⊨ f then the argument is a valid argument

Valid Arguments In other words: An argument is valid if its conclusion is a logical consequence of its assumptions

Notation An intuitive way to write an argument with a set of hypotheses  and conclusion f is as follows:  ---  f hypotheses conclusion

Example 1 Suppose  = {p, p  q, q  r}, f = p  q  r Then the corresponding argument can be written: p p  q q  r  p  q  r Assume that p is true, p  q is true, and q  r is true. Then p and q and r are all true.

Example 1 (continued) Test validity of argument using truth table: pqrp pqpq qrqr pqrpqr TTTTTTT TTFTTFF TFTTFTF TFFTFTF FTTFTTF FTFFTFF FFTFTTF FFFFTTF

Example 1 (continued) pqrp pqpq qrqr pqrpqr TTTTTTT TTFTTFF TFTTFTF TFFTFTF FTTFTTF FTFFTFF FFTFTTF FFFFTTF This is the only row for which all hypotheses are true. Conclusion is also true Therefore argument is valid

Example 2 Suppose  = {p  q, q  r, r}, f = p Then the corresponding argument can be written: p  q q  r r  p

Example 2 (continued) Test validity of argument using truth table: pqr pqpq qrqr rp TTTTTTT TTFTFFT TFTFTTT TFFFTFT FTTTTTF FTFTFFF FFTTTTF FFFTTFF

Example 2 (continued) pqr pqpq qrqr rp TTTTTTT TTFTFFT TFTFTTT TFFFTFT FTTTTTF FTFTFFF FFTTTTF FFFTTFF In this row all hypotheses are true. But the conclusion is false Therefore argument is not valid

Proofs in Propositional Logic In mathematics, a proof is a sequence of steps, each of which is: Self-evident (or axiomatic), or An explicitly stated assumption (or hypothesis), or Deduced from previous steps using rules of deduction

Example ‘traditional’ proof Show that if n is an integer and n is even then n 2 is even. Proof 1. n is even, so there exists an integer m such that n = 2m (by definition of ‘even’) 2. So, n 2 = (2m) 2 = 4m 2 = 2(2m 2 ) (by rules of arithmetic) 3. Hence n 2 = 2l (where l=2m 2 ), so n 2 is even.

Rules of deduction The rules of logic which are used to derive new theorems from axioms, assumptions and existing theorems are called rules of deduction A rule of deduction is just a simple argument which is known to be valid. So, it consists of a set of hypotheses  and a conclusion f such that  ⊨ f is true

Rules of inference Rules of deduction are simple arguments which can be validated using truth tables For more complex arguments, involving many propositions, use of truth tables is not practical Complex arguments are validated via formal proofs, using simpler arguments which are known to be valid already

Review of the last lecture Valid arguments An argument is valid if its conclusion is a logical consequence of its assumptions The simplest way to prove that an argument is valid is to use a truth table For any assignment of T and F to the elementary propositions in the assumptions and conclusion, if all assumptions are true then the conclusion must be true

Review of last lecture Problems: If the number of elementary propositions is large then the number of rows in the truth table will be very large If the formulae are complex, then the number of columns in the truth table will be large So, try to show that more complex arguments are valid using formal proofs

Proofs in Propositional Logic In mathematics, a proof is a sequence of steps, Each step is: Self-evident (or axiomatic), or An explicitly stated assumption, or Deduced from previous steps using rules of deduction

Review of last lecture Rules of deduction are just simple arguments which have already been proved to be valid Because they are simple, can use truth tables to show that they are valid

Example rules of deduction Law of Detachment: Syllogism: p  q p  q p  q q  r  p  r

Proof using truth tables pq pqpq pq TTTTT TFFTF FTTFT FFTFF pqr pqpqqrqrprpr T T TTTT TTFTFF TFTFTT TFFFTF FTTTTT FTFTFT FFTTTT FFFTTT

More rules of deduction Modus Tollens: Addition: p  q  q   p p  p  q

More rules of deduction Specialization: Conjunction: p  q  p p q  p  q

More rules of deduction Cases: Case elimination: p p  (r  s) r  q s  q  q p  q p  (r  r)  q

More rules of inference Reductio ad Absurdum: We’ll see later that this is also known as ‘Proof by Contradiction’  p  (r  r)  p Basically, this says that if q implies both r and  r, then q must be false

The symbol  Recall that the symbol  means logical equivalence Recall that if f and g are both formulae involving the elementary propositions p 1,…,p N, then f  g if and only if f and g have the same truth table. So, in principle the simplest way to show that two formulae are logically equivalent is to construct their truth tables and show that they are the same

Standard equivalences Using this method we can establish a set of standard equivalences which we can use later in proofs Suppose p, q and r are elementary propositions: Commutative Laws: p  q  q  p p  q  q  p

More standard equivalences Associative Laws: (p  q)  r  p  (q  r) (p  q)  r  p  (q  r) Idempotent Laws: p  p  p p  p  p

More standard equivalences Distributive Laws: p  (q  r)  (p  q)  (p  r) p  (q  r)  (p  q)  (p  r) De Morgan’s Laws:  (p  q)  (  p)  (  q)  (p  q)  (  p)  (  q)

Example proof p  (q  r)  (p  q)  (p  r) pqr(p  (q  r))((p  q)  (p  r)) TT T TTT T TTTT T TTT TTFTTTFFTTTTTTF TFTTTFFTTTFTTTT TFFTTFFFTTFTTTF FTTFTTTTFTTTFTT FTFFFTFFFTTFFFF FFTFFFFTFFFFFTT FFFFFFFFFFFFFTF

More standard equivalences Law of double negation:  p  p Equivalence of contrapositive: p  q   q   p Another useful equivalence: p  q   p  q p   p is a tautology p   p is a contradiction

Definition of proof A proof that a formula f is a logical consequence of a set of assumptions  is a sequence of statements, ending with f, each of which is: True by assumption (i.e. in  ), or An axiom or definition, or A previous theorem, or A statement implied by previous statements by a rule of deduction, or Logically equivalent to a previous statement

Example proof 1 Show that: is a valid argument p  q  r  q  r   p Intuitively, if we assume  r and  r  q are both true, then  q must be true. If, in addition, p  q is true, then  q   p is true. Combining  q and  q   p,  p must be true.

Example proof 1 (continued) 1. p  q(given) 2.  r   q(given) 3.  r(given) 4.  q(from 2, 3 and Law of Detachment) 5.  q   p(from 1 by Equivalence) 6.  p(from 4, 5 and Law of Detachment) Assumptions Conclusion

Example proof 2 Show that: is a valid argument p  q q  r p  s  r  s Intuitively, if p  q is assumed true, then either p or q must be true (or both). If p is true and p  s is true, then s must be true. If q is true and q  r is true, then r must be true. Hence r or s must be true (or both)

Example proof 2 Where do we start? The assumptions combine the  and  connectives These are related by p  q   p  q Also  p  p, so  p  q  p  q So, conclusion can be written  r  s  r  s So, can we get  r   q  p  s ?

Example proof 2 (continued) 1. p  q(given) 2. q  r(given) 3. p  s(given) 4.  r   q(2 and Equiv. of contrapositive) 5. q  p(1 and commutativity) 6.   q  p(5 and law of double negation) 7.  q  p(6 and standard equivalence) 8.  r  s(4, 7 & 3 and syllogism) 9. r  s(8 and standard equivalence)

Example 3  ( p  q )  r  q  p  r Let’s try to prove:

The Completeness Theorem In a more rigorous course on logic, a distinction would be made between the statements: f is a logical consequence of  (written  ⊨ f ), and f is proveable from  (written  ⊢ f ) The completeness theorem says that these two notions are the same.

Completeness Theorem for Propositional Logic If  is a set of formulae in Propositional Logic, and f is a formula in Propositional Logic, then  ⊨ f if and only if  ⊢ f f is a logical consequence of  if and only if f is provable from 

Summary Formal proof in propositional logic Rules of inference Rules of equivalence Example proofs