DISCRETE MATHEMATICS CHAPTER I.

Slides:



Advertisements
Similar presentations
TRUTH TABLES Section 1.3.
Advertisements

Goals Determine the true value of statements with AND, OR, IF..THEN. Negate statements with the connectives above Construct truth tables Understand when.
Uses for Truth Tables Determine the truth conditions for any compound statementDetermine the truth conditions for any compound statement Determine whether.
1 Section 1.2 Propositional Equivalences. 2 Equivalent Propositions Have the same truth table Can be used interchangeably For example, exclusive or and.
1 Math 306 Foundations of Mathematics I Math 306 Foundations of Mathematics I Goals of this class Introduction to important mathematical concepts Development.
Discrete Mathematics Math 6A Instructor: M. Welling.
Copyright © Cengage Learning. All rights reserved.
Chapter 2: The Logic of Compound Statements 2.1 Logical Forms and Equivalence 12.1 Logical Forms and Equivalences Logic is a science of the necessary laws.
Adapted from Discrete Math
Propositions and Truth Tables
Chapter 3 Section 4 – Slide 1 Copyright © 2009 Pearson Education, Inc. AND.
Mathematical Structures A collection of objects with operations defined on them and the accompanying properties form a mathematical structure or system.
Chapter 1 The Logic of Compound Statements. Section 1.1 Logical Form and Logical Equivalence.
BY: MISS FARAH ADIBAH ADNAN IMK. CHAPTER OUTLINE: PART III 1.3 ELEMENTARY LOGIC INTRODUCTION PROPOSITION COMPOUND STATEMENTS LOGICAL.
Propositional Equivalences
Logical Form and Logical Equivalence Lecture 2 Section 1.1 Fri, Jan 19, 2007.
Reading: Chapter 4 (44-59) from the text book
Chapter 7 Logic, Sets, and Counting
1 Introduction to Abstract Mathematics Expressions (Propositional formulas or forms) Instructor: Hayk Melikya
Chapter 7 Logic, Sets, and Counting Section 1 Logic.
Section 1.2: Propositional Equivalences In the process of reasoning, we often replace a known statement with an equivalent statement that more closely.
Logical Form and Logical Equivalence Lecture 1 Section 1.1 Wed, Jan 12, 2005.
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
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.
Symbolic Logic The Following slide were written using materials from the Book: The Following slide were written using materials from the Book: Discrete.
Discrete Mathematics Lecture # 1. Course Objectives  Express statements with the precision of formal logic.  Analyze arguments to test their validity.
 To combine propositions using connectives  To construct the truth table of a given compound proposition  To define de Morgan Law for logic  To define.
Section 1.4. Propositional Functions Propositional functions become propositions (and have truth values) when their variables are each replaced by a value.
Foundations of Discrete Mathematics Chapter 1 By Dr. Dalia M. Gil, Ph.D.
Law of logic Lecture 4.
 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.
Simple Logic.
Chapter 1 Propositional Logic
Introduction to Logic © 2008 Pearson Addison-Wesley.
Logic.
The Foundations: Logic and Proofs
AND.
CSNB 143 Discrete Mathematical Structures
Lecture 1 – Formal Logic.
Discrete Mathematics Logic.
Truth Tables and Equivalent Statements
Chapter 3: Introduction to Logic
Citra Noviyasari, S.Si, MT
Chapter 1 Logic and Proofs.
How do I show that two compound propositions are logically equivalent?
(CSC 102) Discrete Structures Lecture 2.
Discrete Mathematics Lecture # 2.
Mathematics for Computing
CMSC Discrete Structures
Chapter 3 Introduction to Logic 2012 Pearson Education, Inc.
Logic – Bell Ringer.
Chapter 8 Logic Topics
1.2 Propositional Equivalences
Propositional Equivalences
Information Technology Department
Chapter 3 Introduction to Logic © 2008 Pearson Addison-Wesley.
CHAPTER 1: LOGICS AND PROOF
Propositional Equivalences
TRUTH TABLES.
Applied Discrete Mathematics Week 1: Logic
Chapter 3 Introduction to Logic 2012 Pearson Education, Inc.
Discrete Mathematics Lecture 2: Propositional Logic
1.2 Propositional Equivalences
Chapter 3 Introduction to Logic © 2008 Pearson Addison-Wesley.
Discrete Mathematics Lecture 2: Propositional Logic
Foundations of Discrete Mathematics
1.2 Propositional Equivalences
Logical truths, contradictions and disjunctive normal form
Presentation transcript:

DISCRETE MATHEMATICS CHAPTER I

CHAPTER I Propositions Sentences considered in propositional logic are not arbitrary sentences but are the ones that are either true or false, but not both. This kind of sentences are called propositions. If proposition is true, then we say it has a truth value of “true”; if a proposition is false, its truth value is “false”. Examples:1. “Grass is green”, and “2+5=5” are propositions. The first proposition has the truth value of “true “ and the second proposition “false”. 2. “Close the door” , and “Is it hot outside?” are not propositions. 3. “x is greater than 2”, where x is a variable representing a number, is not a proposition, because unless a specific value is given to x we can not say whether it is true or false, nor do we know what x represents. 4. “He is intelligent or studies every night” is a compound statement with sub statements “He is intelligent” and “He studies every night”. 5. “Where are you going?” is not proposition since it is neither true nor false.

Examples 2 is irrational (T) 3 + 4 = 6 (F) 6 + 1 = 4 + 3 (T) Here are some sentences that are not statements: 6) What did you say? 7) X = 5 8) Give me your book.

Implication(Conditional) Propositions will be denoted by the letters p, q, r . The fundamental property of a proposition is that it is either true or false, but not both. Connectives The words and symbols used to form compound propositions are called connectives. Symbolic form Nature of the compound statement formed by the connective Connective word Symbol used ~ p Negation not ~ , ¬ p ˄ q Conjunction and ˄ p ˅ q Disjunction or ˅ P → q Implication(Conditional) If…..then → P ↔ q Equivalence(Bi-conditional) If and only if ↔

Propositions and Truth Tables As mentioned the truth value of a proposition is either true ( denoted by T)or false (denoted by F). A truth table is a table that shows the truth value of a compound propositions for all possible cases. The truth value of the compound statement ( p ˄ q) is given by the following table: p ˄ q q p T F

The truth value of the compound statement ( p ˅ q ) is given by the following table: 3. ( ~p ) , Negation 4. Conditional , p → q p ˄ q q p T F p ˅ q T T ~p p F T p → q q p T F

5. Equivalence (Bi-conditional) , p ↔ q F 1Example. Example.1 Find the truth table of: ~( p ˄~ q ) p˅~p p ˄ ~p Solutions. a) a b c ~( p ˄~ q ) p ˄~ q q~ q p T F

Tautologies and Contradictions b) p˅~p ~p p T F c) p˄~p ~p p F T Tautologies and Contradictions Some propositions P(p, q, r, …) contain only T in the last column of there truth table, such propositions are called tautologies. Similarly, a proposition P(p, q, r, …) is called a contradiction if it contain only F in the last column of there truth table. For ex. ,Example.1 (b) is a tautology, and the proposition p ˄ ~p in Ex.1 (c) is contradiction.

Find the truth table of ~p ˅ q Example.2 Find the truth table of ~p ˅ q ~p ˅ q ~p q p T F Observe that the above truth table is identical to the truth table of p → q . Hence p → q is logically equivalent the proposition ~p ˅ q . p → q ≡ ~p ˅ q ≡

Law of the Algebra of propositions Let p , q and r be statements, and let (1) represent the true statement and (0) the false statement. Note. All the laws of table (*) come in pairs, called dual pairs. For each expression, one finds the dual by replacing all T(1) by F(0) and all F(0) by T(1) and replacing all ˄ by ˅ and all ˅ by ˄ .

Table * (1b) p ˄ p ≡ p (1a) p ˅ p ≡ p (2b) (p˄ q) ˄ r ≡ p ˄ (q˄ r) (2a) (p ˅ q) ˅ r ≡ p ˅ (q˅ r) (3b) p ˄ q ≡ q ˄ p (3a) p ˅ q ≡ q ˅ p (4b) p ˄ (q˅ r) ≡ (p ˄q) ˅(p ˄ r) (4a) p ˅(q˄ r) ≡ (p ˅q) ˄(p ˅ r) (5b) p ˄ 1 ≡p (5a) p ˅ 0 ≡ p (6b) p ˄ 0 ≡ 0 (6a) p˅ 1 ≡ 1 (7b) p ˄ ~p ≡ 0 (7a) p ˅~ p ≡ 1 (8b) ~F ≡ T (8a) ~T ≡ F (9) ~ (~ p) ≡ p (10b) ~( p ˄ q) ≡ ~ p ˅~ q (10a) ~( p ˅ q) ≡ ~ p ˄ ~ q (11) p→q ≡ ~ p ˅ q ≡ (~ p ˅ q ) ˄(~ q ˅ p ) (12) p↔q ≡ (p→q) ˄ (q→p)

Problems. Verify that the proposition p˅~ (p ˄ q) is a tautology. Verify that the proposition (p ˄ q) ˄ ~ (p ˅ q) is contradiction. Prove that: (a) p ˅ q ≡ ~ (~ p ˄ ~ q) , (b) ~ (p ˄ q) ≡ ~ p ˅ ~ q , (c) ~ (p ˅ q) ≡ ~ p ˄ ~ q (d) (p→q) ˄ (q→p) ≡ p↔q Verify that the proposition [(p↔q) ˄ q] →p is a tautology. Determine the truth table of: (a) ( p→q ) ˅ ~ ( p↔ ~ q ) , (b) ( p→q ) → ( p ˄ q ) Use truth tables to prove that : (a) p ˅ (q ˄ r) ≡ (p ˅ q ) ˄ (p ˅ r) , (b) [ ~ (p ˄ q) ˅ r] → ~ p is a tautology. 7. Simplify each proposition by using the law listed in table * (a) p ˅ (p ˄ q) , (b) ~ (p ˅ q) ˅ (~ p ˄ q ) , (c) ~ (p→ ~ q) ˅ (p˅ q) (d) ~ p ˄ ~(~ p ˅ ~ q ) , (e) ~( p ˄ ~q) ˅(p) ˅ (p˅ q) (f) ~ [~( ~p ˅ q)˅ ( p ˄ ~q)] ˅ q .