04 March 2009Instructor: Tasneem Darwish1 University of Palestine Faculty of Applied Engineering and Urban Planning Software Engineering Department Introduction.

Slides:



Advertisements
Similar presentations
TRUTH TABLES The general truth tables for each of the connectives tell you the value of any possible statement for each of the connectives. Negation.
Advertisements

22 March 2009Instructor: Tasneem Darwish1 University of Palestine Faculty of Applied Engineering and Urban Planning Software Engineering Department Introduction.
Chapter Two Symbolizing in Sentential Logic This chapter is a preliminary to the project of building a model of validity for sentential arguments. We.
Goals Determine the true value of statements with AND, OR, IF..THEN. Negate statements with the connectives above Construct truth tables Understand when.
08 March 2009Instructor: Tasneem Darwish1 University of Palestine Faculty of Applied Engineering and Urban Planning Software Engineering Department Introduction.
CS128 – Discrete Mathematics for Computer Science
Logic Chapter 2. Proposition "Proposition" can be defined as a declarative statement having a specific truth-value, true or false. Examples: 2 is a odd.
Propositional Logic. Negation Given a proposition p, negation of p is the ‘not’ of p.
From Chapter 4 Formal Specification using Z David Lightfoot
1 Section 1.1 Logic. 2 Proposition Statement that is either true or false –can’t be both –in English, must contain a form of “to be” Examples: –Cate Sheller.
SEVENTH EDITION and EXPANDED SEVENTH EDITION
CSE115/ENGR160 Discrete Mathematics 01/17/12 Ming-Hsuan Yang UC Merced 1.
01 March 2009Instructor: Tasneem Darwish1 University of Palestine Faculty of Applied Engineering and Urban Planning Software Engineering Department Introduction.
Adapted from Discrete Math
Chapter 3 – Introduction to Logic The initial motivation for the study of logic was to learn to distinguish good arguments from bad arguments. Logic is.
Intro to Discrete Structures
Propositions and Truth Tables
Propositions and Truth Tables. Proposition: Makes a claim that may be either true or false; it must have the structure of a complete sentence.
Chapter 2 – Fundamentals of Logic. Outline Basic Connectives and Truth Tables Logical Equivalence: The Laws of Logic Ligical Implication: Rules of Inference.
Chapter 8 Logic DP Studies. Content A Propositions B Compound propositions C Truth tables and logical equivalence D Implication and equivalence E Converse,
Discrete Mathematics and Its Applications
Mathematical Structures A collection of objects with operations defined on them and the accompanying properties form a mathematical structure or system.
BY: MISS FARAH ADIBAH ADNAN IMK. CHAPTER OUTLINE: PART III 1.3 ELEMENTARY LOGIC INTRODUCTION PROPOSITION COMPOUND STATEMENTS LOGICAL.
Chapter 5 – Logic CSNB 143 Discrete Mathematical Structures.
(CSC 102) Lecture 3 Discrete Structures. Previous Lecture Summary Logical Equivalences. De Morgan’s laws. Tautologies and Contradictions. Laws of Logic.
Barnett/Ziegler/Byleen Finite Mathematics 11e1 Chapter 7 Review Important Terms, Symbols, Concepts 7.1. Logic A proposition is a statement (not a question.
CSNB143 – Discrete Structure LOGIC. Learning Outcomes Student should be able to know what is it means by statement. Students should be able to identify.
Lecture 4. CONDITIONAL STATEMENTS: Consider the statement: "If you earn an A in Math, then I'll buy you a computer." This statement is made up of two.
LOGIC Lesson 2.1. What is an on-the-spot Quiz  This quiz is defined by me.  While I’m having my lectures, you have to be alert.  Because there are.
1 Introduction to Abstract Mathematics Expressions (Propositional formulas or forms) Instructor: Hayk Melikya
Thinking Mathematically
Chapter 2 Logic 2.1 Statements 2.2 The Negation of a Statement 2.3 The Disjunction and Conjunction of Statements 2.4 The Implication 2.5 More on Implications.
1 Propositional Logic Introduction. 2 What is propositional logic? Propositional Logic is concerned with propositions and their interrelationships. 
Chapter 1: The Foundations: Logic and Proofs
CSNB143 – Discrete Structure Topic 4 – Logic. Learning Outcomes Students should be able to define statement. Students should be able to identify connectives.
Mathematics for Comter I Lecture 2: Logic (1) Basic definitions Logical operators Translating English sentences.
 2012 Pearson Education, Inc. Slide Chapter 3 Introduction to Logic.
Thinking Mathematically Logic 3.4 Truth Tables for the Conditional and Biconditional.
3.3 – The Conditional A conditional statement is a compound statement that uses the connective if…then. The conditional is written with an arrow, so “if.
1 Georgia Tech, IIC, GVU, 2006 MAGIC Lab Rossignac Lecture 01: Boolean Logic Sections 1.1 and 1.2 Jarek Rossignac.
CS104 The Foundations: Logic and Proof 1. 2 What is Discrete Structure?  Discrete Objects  Separated from each other (Opposite of continuous)  e.g.,
Chapter 1 Logic and proofs
 Conjunctive Normal Form: A logic form must satisfy one of the following conditions 1) It must be a single variable (A) 2) It must be the negation of.
INTRODUCTION TO LOGIC. PURPOSE: – To distinguish good arguments from poor ones Arguments consist of STATEMENTS – A statement is a sentence that can be.
Simple Logic.
Chapter 1 Propositional Logic
Introduction to Logic © 2008 Pearson Addison-Wesley.
Presented by: Tutorial Services The Math Center
2. The Logic of Compound Statements Summary
AND.
DISCRETE MATHEMATICS CHAPTER I.
CSNB 143 Discrete Mathematical Structures
Truth Tables and Equivalent Statements
Truth Tables for Negation, Conjunction, and Disjunction
Logic.
Principles of Computing – UFCFA3-30-1
Chapter 3 Introduction to Logic 2012 Pearson Education, Inc.
Chapter 8 Logic Topics
Information Technology Department
Discrete Mathematics and Its Applications Kenneth H
Chapter 3 Introduction to Logic 2012 Pearson Education, Inc.
Discrete Mathematics Lecture 2: Propositional Logic
Discrete Mathematics Lecture 2: Propositional Logic
Statements of Symbolic Logic
CHAPTER 3 Logic.
Section 3.3 Truth Tables for the Conditional and Biconditional
Section 3.2 Truth Tables for Negation, Conjunction, and Disjunction
Truth Tables for the Conditional and Biconditional
Statements and Logical Connectives
Logic of Informatics Introduction.
Presentation transcript:

04 March 2009Instructor: Tasneem Darwish1 University of Palestine Faculty of Applied Engineering and Urban Planning Software Engineering Department Introduction to Discrete Mathematics Propositional Logic

04 March 2009Instructor: Tasneem Darwish2 Outlines Propositions and Truth Values. Logical Connectives and Truth Tables. Tautologies and Contradictions.

04 March 2009Instructor: Tasneem Darwish3 Logic is used to determine the validity of arguments. Logic provides rules that can be used to judged an argument as sound or unsound. A proposition is a declarative statement which is either true or false, but not both. Examples of propositions: Triangles have four vertices = 4. 6 < 24. Tomorrow is Thursday. Propositions and Truth Values

04 March 2009Instructor: Tasneem Darwish4 Exclamations, questions and demands are not propositions since they cannot be declared true or false. The following are not propositions: Keep off the grass. That’s Fantastic! Did you go to Jane’s party? Don’t say that. The truth (T) or falsity (F) of a proposition is called truth value. Propositions and Truth Values

04 March 2009Instructor: Tasneem Darwish5 Propositions are conventionally symbolized using the letters p, q, r,.. Example: p: Manchester is in Scotland. q: Apples are fruits. b: Today is Wednesday. Propositions and Truth Values

04 March 2009Instructor: Tasneem Darwish6 A simple proposition consist of a single statement. A Compound proposition is a combination of simple propositions linked using logical connectives. The truth value of any compound proposition is determined by: The truth values of its component simple propositions. The particular connective, or connectives, used to link them. Logical Connectives and Truth Tables

04 March 2009Instructor: Tasneem Darwish7 All connectives are performed on more than one proposition except the negation operation. The negation operation has the effect of reversing the truth value of the proposition. The negation of a proposition p is written as  ̄ p (or ~p or ¬ p) The truth table for the negation operation: Logical Connectives and Truth Tables

04 March 2009Instructor: Tasneem Darwish8 The logical connectives that can be used to link pairs of propositions are: Conjunction Inclusive Disjunction. Exclusive Disjunction. The conditional connective. The bi-conditional connective. Logical Connectives and Truth Tables

04 March 2009Instructor: Tasneem Darwish9 Any two simple propositions can be combined by using the word ‘and’ between them. The resulting compound proposition is called the conjunction of its two simple propositions component. Example : p : The sun is shining. q : children eat ice cream. p ∧ q : The sun is shining and children eat ice cream. Or p. q: The sun is shining and children eat ice cream. Conjunction

04 March 2009Instructor: Tasneem Darwish10 The following truth table gives the truth values of p ∧ q. the conjunction p ∧ q is true only when both p and q are true. Conjunction

04 March 2009Instructor: Tasneem Darwish11 Any two simple propositions can be combined by using the word ‘or’ between them. The resulting compound proposition is called the Disjunction of its two simple propositions component. There are two types of disjunction: Inclusive Disjunction. Exclusive Disjunction. Disjunction

04 March 2009Instructor: Tasneem Darwish12 For propositions p and q, p ∨ q symbolizes the inclusive disjunction of p and q. The inclusive disjunction is true when either or both of its components are true and is false otherwise. The truth table for p ∨ q is Disjunction

04 March 2009Instructor: Tasneem Darwish13 For propositions p and q, symbolizes the exclusive disjunction of p and q. The exclusive disjunction is true when exactly one of its components is true. The truth table for is Disjunction

04 March 2009Instructor: Tasneem Darwish14 The conditional connective (implication) is symbolized by→. The linguistic expression of a conditional proposition is normally ‘if... then... ’ as in the following example: p : I eat breakfast. q : I don’t eat lunch. p → q : If I eat breakfast then I don’t eat lunch. Alternative expressions for p →q are: I eat breakfast only if I don’t eat lunch. Whenever I eat breakfast, I don’t eat lunch. That I eat breakfast implies that I don’t eat lunch. The Conditional connective

04 March 2009Instructor: Tasneem Darwish15 The conditional connective truth table is as follows: The proposition p is sometimes called the antecedent and q the consequent. The proposition p is said to be a sufficient condition for q and q a necessary condition for p. False is considered stronger than True. If the antecedent is stronger than or equal to the consequent, then the conditional connective value is TRUE The Conditional connective

04 March 2009Instructor: Tasneem Darwish16 The biconditional connective is symbolized by↔, and expressed by ‘if and only if... then... ’. Example: p : I eat breakfast. q : I don’t eat lunch. p ↔ q : I eat breakfast if and only if I don’t eat lunch (or alternatively, ‘If and only if I eat breakfast, then I don’t eat lunch’). The truth table for p ↔ q is given by: for p ↔ q to be true, p and q must both have the same truth values. The Biconditional connective

04 March 2009Instructor: Tasneem Darwish17 Consider the following propositions: p : Mathematicians are generous. q : Spiders hate algebra. Write the compound propositions symbolized by: (i) p ∨  ̄ q(ii) (q ∧ p) (iii)  ̄ p →q(iv)  ̄ p ↔  ̄ q. Solution (i) Mathematicians are generous or spiders don’t hate algebra (or both). (ii) It is not the case that spiders hate algebra and mathematicians are generous. (iii) If mathematicians are not generous then spiders hate algebra. (iv) Mathematicians are not generous if and only if spiders don’t hate algebra. Examples 1.1

04 March 2009Instructor: Tasneem Darwish18 Consider the propositions p: ‘Today is Monday’ q :‘I’ll go to London’. Write the symbols for the following propositions: (i) If today is Monday then I won’t go to London. (ii) Today is Monday or I’ll go to London, but not both. (iii) I’ll go to London and today is not Monday. (iv) If and only if today is not Monday then I’ll go to London. Solution (i)p →  ̄ q(ii) (iii) q ∧  ̄ p(iv)  ̄ p ↔ q. Examples 1.1

04 March 2009Instructor: Tasneem Darwish19 Construct truth tables for the following compound propositions. (i)  ̄ p ∨ q(ii)  ̄ p ∧  ̄ q (iii)  ̄ q → p(iv)  ̄ p ↔  ̄ q. Examples 1.1

04 March 2009Instructor: Tasneem Darwish20 Construct truth tables for: (i) p →(q ∧ r )(ii) (  ̄ p ∨ q) ↔  ̄ r. Examples 1.1

04 March 2009Instructor: Tasneem Darwish21 A tautology is a compound proposition which is true no matter what the truth values of its simple components. A contradiction is a compound proposition which is false no matter what the truth values of its simple components. Example 1.2: Show that the following propositions are tautologies: p ∨  ̄ p (p ∧ q) ∨ (p ∧ q) Tautologies and Contradictions

04 March 2009Instructor: Tasneem Darwish22 Example 1.3: Show that (p ∧  ̄ q) ∧ (  ̄ p ∨ q) is a contradiction Tautologies and Contradictions

04 March 2009Instructor: Tasneem Darwish23