Discrete Mathematics and Its Applications Kenneth H

Slides:



Advertisements
Similar presentations
1. Propositions A proposition is a declarative sentence that is either true or false. Examples of propositions: The Moon is made of green cheese. Trenton.
Advertisements

The Foundation: Logic Conditional Statements Muhammad Arief download dari
2.2 Conditional Statements. Goals Identify statements which are conditional Identify the antecedent and consequent of a conditional statement Negate conditional.
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.
Discrete Mathematics Math 6A Instructor: M. Welling.
CSE115/ENGR160 Discrete Mathematics 01/17/12 Ming-Hsuan Yang UC Merced 1.
First Order Logic. Propositional Logic A proposition is a declarative sentence (a sentence that declares a fact) that is either true or false, but not.
Adapted from Discrete Math
The Foundations: Logic and Proofs
Discrete Mathematics Goals of a Discrete Mathematics Learn how to think mathematically 1. Mathematical Reasoning Foundation for discussions of methods.
Propositions and Truth Tables
Discrete Maths 2. Propositional Logic Objective
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.
Chapter 1: The Foundations: Logic and Proofs
BY: MISS FARAH ADIBAH ADNAN IMK. CHAPTER OUTLINE: PART III 1.3 ELEMENTARY LOGIC INTRODUCTION PROPOSITION COMPOUND STATEMENTS LOGICAL.
Discrete Mathematics Lecture1 Miss.Amal Alshardy.
Chapter 2: The Logic of Compound Statements 2.2 Conditional Statements
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.
Lecture Propositional Equivalences. Compound Propositions Compound propositions are made by combining existing propositions using logical operators.
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.
Thinking Mathematically
Propositional Logic ITCS 2175 (Rosen Section 1.1, 1.2)
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.
Chapter 1: The Foundations: Logic and Proofs
Section 1.1. Section Summary Propositions Connectives Negation Conjunction Disjunction Implication; contrapositive, inverse, converse Biconditional Truth.
Mathematics for Comter I Lecture 2: Logic (1) Basic definitions Logical operators Translating English sentences.
LECTURE 1. Disrete mathematics and its application by rosen 7 th edition THE FOUNDATIONS: LOGIC AND PROOFS 1.1 PROPOSITIONAL LOGIC.
رياضيات متقطعة لعلوم الحاسب MATH 226. Text books: (Discrete Mathematics and its applications) Kenneth H. Rosen, seventh Edition, 2012, McGraw- Hill.
Section 1.1. Propositions A proposition is a declarative sentence that is either true or false. Examples of propositions: a) The Moon is made of green.
Discrete Mathematics Lecture # 4. Conditional Statements or Implication  If p and q are statement variables, the conditional of q by p is “If p then.
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. Chapter Summary  Propositional Logic  The Language of Propositions (1.1)  Logical Equivalences (1.3)  Predicate Logic  The Language of.
CS-7081 Application - 1. CS-7082 Example - 2 CS-7083 Simplifying a Statement – 3.
Simple Logic.
Discrete Structures for Computer Science Presented By: Andrew F. Conn Slides adapted from: Adam J. Lee Lecture #1: Introduction, Propositional Logic August.
Chapter 1 Propositional Logic
Presented by: Tutorial Services The Math Center
2. The Logic of Compound Statements Summary
CSNB 143 Discrete Mathematical Structures
Thinking Mathematically
Niu Kun Discrete Mathematics Chapter 1 The Foundations: Logic and Proof, Sets, and Functions Niu Kun 离散数学.
Logic.
Citra Noviyasari, S.Si, MT
MATH 245 Spring 2009 This is mathematics for computer science
(CSC 102) Discrete Structures Lecture 2.
CPCS222 Discrete Structures I
Ch.1 (Part 1): The Foundations: Logic and Proofs
The Foundations: Logic and Proofs
Principles of Computing – UFCFA3-30-1
Chapter 8 Logic Topics
CS100: Discrete structures
Information Technology Department
Chapter 1 The Foundations: Logic and Proof, Sets, and Functions
CHAPTER 1: LOGICS AND PROOF
Chapter 3 Introduction to Logic 2012 Pearson Education, Inc.
TRUTH TABLES continued.
(1.4) An Introduction to Logic
1 Chapter An Introduction to Problem Solving
Discrete Mathematics Lecture 2: Propositional Logic
1 Chapter An Introduction to Problem Solving
MAT 3100 Introduction to Proof
Discrete Mathematics Lecture 2: Propositional Logic
Statements of Symbolic Logic
1.2 Propositional Equivalences
Logic Logic is a discipline that studies the principles and methods used to construct valid arguments. An argument is a related sequence of statements.
1.3 Propositional Equivalences
Discrete Structures Prepositional Logic 2
Conditional Statements Section 2.3 GEOMETRY
The Foundations: Logic and Proofs
Presentation transcript:

Discrete Mathematics and Its Applications Kenneth H Discrete Mathematics and Its Applications Kenneth H. Rosen SEVENTH EDITION L Al-zaid Math1101

Introduction to Logic 1.1 Propositional Logic Propositions A proposition is a declarative sentence (that is, a sentence that declares a fact) that is either true or false, but not both. EXAMPLE l All the following declarative sentences are propositions. 1 . Washington, D.C., is the capital of the United States of America. 2 . Toronto is the capital of Canada. 3. 1 + 1 =2 4. 2 + 2 = 3 L Al-zaid Math1101

Some sentences that are not propositions are given in Example 2 . EXAMPLE 2 Consider the following sentences. 1 . What time is it? 2 . Read this carefully. 3 . x + 1 = 2 . 4 . x + y = Z. The truth value of a proposition is true, denoted by T, if it is a true proposition and false, denoted by F, if it is a false proposition. L Al-zaid Math1101

We use letters to denote propositional variables (or statement variables), that is, variables that represent propositions, just as letters are used to denote numerical variables. The area of logic that deals with propositions is called the propositional calculus or propositional logic. compound propositions, are formed from existing propositions using logical operators. L Al-zaid Math1101

DEFINITION 1 : Let p be a proposition DEFINITION 1 : Let p be a proposition. The negation of p, denoted by ¬p (also denoted by p), is the statement "It is not the case that p." The proposition ¬ p is read "not p." The truth value of the negation of p, - p, is the opposite of the truth value of p. L Al-zaid Math1101

EXAMPLE 3 : Find the negation of the proposition "Today is Friday EXAMPLE 3 : Find the negation of the proposition "Today is Friday.“ and express this in simple English. Solution: EXAMPLE 4: Find the negation of the proposition 2+2=5. L Al-zaid Math1101

Table 1 displays the truth table for the negation of a proposition p. This table has a row for each of the two possible truth values of a proposition P. Each row shows the truth value of ¬P corresponding to the truth value of p for this row. p ¬ p T F F T L Al-zaid Math1101

The negation operator constructs a new proposition from a single existing proposition. We will now introduce the logical operators that are used to form new propositions from two or more existing propositions. These logical operators are also called connectives. L Al-zaid Math1101

DEFINITION 2 Let p and q be propositions DEFINITION 2 Let p and q be propositions. The conjunction of p and q, denoted by p /\ q, is the proposition "p and q ." The conjunction p /\ q is true when both p and q are true and is false otherwise. L Al-zaid Math1101

L Al-zaid Math1101

EXAMPLE 5 Find the conjunction of the propositions p and q where p is the proposition "Today is Friday" and q is the proposition "It is raining today.“ Solution: L Al-zaid Math1101

DEFINITION 3: Let p and q be propositions DEFINITION 3: Let p and q be propositions. The disjunction of p and q, denoted by p V q, is the proposition "p or q ." The disjunction p V q is false when both p and q are false and is true otherwise. L Al-zaid Math1101

L Al-zaid Math1101

EXAMPLE 6: What is the disjunction of the propositions p and q where p is the proposition "Today is Friday“ and q is the proposition "It is raining today.“ Solution: L Al-zaid Math1101

Conditional Statements DEFINITION 5: Let p and q be propositions. The conditional statement 𝑝→𝑞 is the proposition "if p, then q ." The conditional statement 𝑝→𝑞 is false when p is true and q is false, and true otherwise. In the conditional statement 𝑝→𝑞 , p is called the hypothesis (or antecedent or premise) and q is called the conclusion (or consequence) L Al-zaid Math1101

The statement 𝑝→𝑞 is called a conditional statement because 𝑝→𝑞 asserts that q is true on the condition that p holds. A conditional statement is also called an implication. statement 𝑝→𝑞 is true when both p and q are true and when p is false (no matter what truth value q has). L Al-zaid Math1101

L Al-zaid Math1101

CONVERSE, CONTRAPOSITIVE, AND INVERSE We can form some new conditional statements starting with a conditional statement p  q . In particular, there are three related conditional statements that occur so often that they have special names. 1/ The proposition q  p is called the converse of p  q . 2/ The contrapositive of p  q is the proposition -q  -p. 3/ The proposition -p  -q is called the inverse of p  q. We will see that of these three conditional statements formed from p  q , only the contrapositive always has the same truth value as p  q . L Al-zaid Math1101

When two compound propositions always have the same truth value we call them equivalent, so that a conditional statement and its contrapositive are equivalent The converse and the inverse of a conditional statement are also equivalent, but neither is equivalent to the original conditional statement L Al-zaid Math1101

BICONDITIONALS Let p and q be propositions. The biconditional statement p⟷𝑞 is the proposition "p if and only if q ." The biconditional statement p⟷𝑞 is true when p and q have the same truth values, and is false otherwise. Biconditional statements are also called bi-implications. L Al-zaid Math1101

L Al-zaid Math1101

There are some other common ways to express p ↔ q: "p is necessary and sufficient for q " "if p then q , and conversely" "p iff q ." L Al-zaid Math1101

Truth Tables o f Compound Propositions L Al-zaid Math1101

Homework Page 12, 13,14,15 1 (a,c,e,f) 3 (a,c) 8 (a,b,c,f,g) 16(a,d) 31 (d,e) 36 (b) 37 (a) L Al-zaid Math1101