Discrete Mathematics Lecture # 2.

Slides:



Advertisements
Similar presentations
Propositional Equivalences
Advertisements

Discrete Mathematics Lecture 1 Logic of Compound Statements
Truth Tables How to Make and Use. Making a Truth Table To determine the number of rows other than the heading row. To determine the number of rows other.
Propositional Equivalences
PROOF BY CONTRADICTION
Goals Determine the true value of statements with AND, OR, IF..THEN. Negate statements with the connectives above Construct truth tables Understand when.
CS128 – Discrete Mathematics for Computer Science
Logic 1 Statements and Logical Operators. Logic Propositional Calculus – Using statements to build arguments – Arguments are based on statements or propositions.
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.
CSCI2110 – Discrete Mathematics Tutorial 8 Propositional Logic Wong Chung Hoi (Hollis)
Chapter 1 The Logic of Compound Statements. Section 1.1 Logical Form and Logical Equivalence.
Chap. 2 Fundamentals of Logic. Proposition Proposition (or statement): an declarative sentence that is either true or false, but not both. e.g. –Margret.
Fall 2002CMSC Discrete Structures1 Let’s get started with... Logic !
Logical Form and Logical Equivalence Lecture 2 Section 1.1 Fri, Jan 19, 2007.
COS 150 Discrete Structures Assoc. Prof. Svetla Boytcheva Fall semester 2014.
Thinking Mathematically Logic 3.6 Negations of Conditional Statements and De Morgan’s Laws.
Thinking Mathematically Equivalent Statements, Conditional Statements, and De Morgan’s Laws.
Thinking Mathematically
Logical Form and Logical Equivalence Lecture 1 Section 1.1 Wed, Jan 12, 2005.
Logical Form and Logical Equivalence M Logical Form Example 1 If the syntax is faulty or execution results in division by zero, then the program.
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
Propositional Equivalence A needed step towards proofs Copyright © 2014 Curt Hill.
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 # 7. Bi conditional  If p and q are statement variables, the bi conditional of p and q is  “ p if, and only if, q ” and.
Spring 2003CMSC Discrete Structures1 Let’s get started with... Logic !
 2012 Pearson Education, Inc. Slide Chapter 3 Introduction to Logic.
Thinking Mathematically Logic 3.4 Truth Tables for the Conditional and Biconditional.
Logic and Truth Tables Winter 2012 COMP 1380 Discrete Structures I Computing Science Thompson Rivers University.
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.
Introduction to Logic © 2008 Pearson Addison-Wesley.
Logic.
2. The Logic of Compound Statements Summary
Propositional Equivalences
The Foundations: Logic and Proofs
DISCRETE MATHEMATICS CHAPTER I.
Discrete Mathematics Logic.
Thinking Mathematically
Truth Tables and Equivalent Statements
COMP 1380 Discrete Structures I Thompson Rivers University
Lecture 03 Logic and Propositional Calculus Profs. Koike and Yukita
Logical Equivalence of Propositions
Chapter 1 Logic and Proofs.
Classwork/Homework Classwork – Page 90 (11 – 49 odd)
How do I show that two compound propositions are logically equivalent?
(CSC 102) Discrete Structures Lecture 2.
CPCS222 Discrete Structures I
Mathematics for Computing
CMSC Discrete Structures
Copyright © Cengage Learning. All rights reserved.
Propositional Equivalences
Information Technology Department
Propositional Equivalence (§1.2)
Section 3.4 Equivalent Statements
Propositional Equivalences
Discrete Mathematics Lecture # 8.
CSS 342 Data Structures, Algorithms, and Discrete Mathematics I
Chapter 3 Introduction to Logic 2012 Pearson Education, Inc.
Discrete Mathematics Logic.
Discrete Mathematics Lecture # 3.
Equivalent Statements
Statements of Symbolic Logic
COMP 1380 Discrete Structures I Thompson Rivers University
Section 3.3 Truth Tables for the Conditional and Biconditional
Truth Tables for the Conditional and Biconditional
Algebra 1 Section 4.1.
Propositional Satisfiability
Presentation transcript:

Discrete Mathematics Lecture # 2

Truth Table ~ p  q ~ p  (q  ~ r) (pq)  ~ (pq)

Truth Table Truth table for the statement form ~ p  q

Truth Table Truth table for ~ p  (q  ~ r)

Truth Table Truth table for (pq)  ~ (pq)

Exclusive OR When or is used in its exclusive sense, the statement “p or q” means “p or q but not both” or “p or q and not p and q” which translates into symbols as: p  q p XOR q

Exclusive OR- Truth Table p q pq pq ~ (pq) (pq)  ~ (pq) T F

Double Negation ~(~p)  p Same truth value

Examples Rewrite in a simpler form “It is not true that I am not happy” Solution: Let p = “I am happy” then ~ p = “I am not happy” and ~(~ p) = “It is not true that I am not happy” Since ~ (~p)  p Hence the given statement is equivalent to: “I am happy”

Examples ~ (pq) and ~p  ~q are not logically equivalent

De Morgan’s Law The negation of an and statement is logically equivalent to the or statement in which each component is negated. Symbolically ~(p  q)  ~p  ~q.

De Morgan’s Law The negation of an or statement is logically equivalent to the and statement in which each component is negated. Symbolically: ~(p  q)  ~p  ~q

Proof ~(p  q)  ~p  ~q Same truth values

Application Give negations for each of the following statements: The fan is slow or it is very hot. Akram is unfit and Saleem is injured. Solution The fan is not slow and it is not very hot. Akram is not unfit or Saleem is not injured.

Inequalities & De Morgan’s Law Use DeMorgan’s Laws to write the negation of -1 < x  4 for some particular real no. x -1 < x  4 means x > –1 and x  4 By DeMorgan’s Law, the negation is: x > –1 or x  4 Which is equivalent to: x  –1 or x > 4

Exercise (p  q)  r  p (q  r) Are the statements (pq)r and p (q  r) logically equivalent?

Tautology A tautology is a statement form that is always true regardless of the truth values of the statement variables. A tautology is represented by the symbol “T”..

Example The statement form p  ~ p is tautology p  ~p  t

Contradiction A contradiction is a statement form that is always false regardless of the truth values of the statement variables. A contradiction is represented by the symbol “c”.

Example p  ~p c The statement form p  ~ p is a contradiction. p ~ p

Exercise Use truth table to show that (p  q) (~p (p  ~q)) is a tautology. p Q p  q ~ p ~ q p  ~ q ~ p (p  ~q) (p  q)  (~p  (p  ~q)) T F

Exercise Use truth table to show that (p  ~q) (~pq) is a contradiction. p q ~q p~q ~p ~pq (p  ~q) (~pq) T F